@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,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/segmented-control-item.js';
|
|
7
|
+
import type { UndSegmentedControlItem as UndSegmentedControlItemElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndSegmentedControlItemProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndSegmentedControlItemElement>, 'value' | 'label' | 'description' | 'checked' | 'disabled'> {
|
|
11
|
+
/** Value submitted, and the group's `value`, when this option is checked. */
|
|
12
|
+
value?: UndSegmentedControlItemElement['value'];
|
|
13
|
+
/** Visible label text (or pass the label as children). */
|
|
14
|
+
label?: UndSegmentedControlItemElement['label'];
|
|
15
|
+
/** Help text under the option label. */
|
|
16
|
+
description?: UndSegmentedControlItemElement['description'];
|
|
17
|
+
/** Whether this option is checked. The group keeps it in sync; as an attribute it marks the option checked by default. */
|
|
18
|
+
checked?: UndSegmentedControlItemElement['checked'];
|
|
19
|
+
/** Disables this option only. */
|
|
20
|
+
disabled?: UndSegmentedControlItemElement['disabled'];
|
|
21
|
+
ref?: Ref<UndSegmentedControlItemElement>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** One segment of a segmented control. */
|
|
25
|
+
export function UndSegmentedControlItem(props: UndSegmentedControlItemProps): ReactElement {
|
|
26
|
+
return createElement('und-segmented-control-item', props);
|
|
27
|
+
}
|
|
@@ -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/segmented-control.js';
|
|
7
|
+
import type { UndSegmentedControl as UndSegmentedControlElement } from '@und-ui/core';
|
|
8
|
+
import { useControlledProp, type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndSegmentedControlProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndSegmentedControlElement>, 'orientation' | 'label' | 'description' | 'error' | 'value' | 'defaultValue' | 'name' | 'required' | 'disabled' | 'onInput' | 'onChange'> {
|
|
12
|
+
/** Layout of the segments. Unlike a plain radio group, a segmented control is horizontal by default. The arrow keys work in both directions either way. */
|
|
13
|
+
orientation?: UndSegmentedControlElement['orientation'];
|
|
14
|
+
/** Visible group label (referenced by `aria-labelledby`). */
|
|
15
|
+
label?: UndSegmentedControlElement['label'];
|
|
16
|
+
/** Help text for the group, referenced by `aria-describedby`. */
|
|
17
|
+
description?: UndSegmentedControlElement['description'];
|
|
18
|
+
/** Error message for the group. Setting it marks the group invalid. */
|
|
19
|
+
error?: UndSegmentedControlElement['error'];
|
|
20
|
+
/** Value of the checked option (`''` when none is checked). */
|
|
21
|
+
value?: UndSegmentedControlElement['value'];
|
|
22
|
+
/** Value checked after a form reset (defaults to the initial value). */
|
|
23
|
+
defaultValue?: UndSegmentedControlElement['defaultValue'];
|
|
24
|
+
/** Name shared by the options and submitted with the form data. */
|
|
25
|
+
name?: UndSegmentedControlElement['name'];
|
|
26
|
+
/** Requires a choice before the form submits. */
|
|
27
|
+
required?: UndSegmentedControlElement['required'];
|
|
28
|
+
/** Disables every option. */
|
|
29
|
+
disabled?: UndSegmentedControlElement['disabled'];
|
|
30
|
+
/** Native `input` from the segment that became checked. */
|
|
31
|
+
onInput?: (event: UndEvent<InputEvent, UndSegmentedControlElement>) => void;
|
|
32
|
+
/** Native `change` from the segment that became checked. */
|
|
33
|
+
onChange?: (event: UndEvent<Event, UndSegmentedControlElement>) => void;
|
|
34
|
+
ref?: Ref<UndSegmentedControlElement>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** A single-choice control of adjacent segments with an animated indicator. */
|
|
38
|
+
export function UndSegmentedControl(props: UndSegmentedControlProps): ReactElement {
|
|
39
|
+
const { onInput, onChange, ref, ...rest } = props;
|
|
40
|
+
// Controlled when `value` is set: a change the handler rejects is undone.
|
|
41
|
+
const controlled = useControlledProp<UndSegmentedControlElement, 'value'>('value', props.value, ref);
|
|
42
|
+
return createElement('und-segmented-control', {
|
|
43
|
+
...rest,
|
|
44
|
+
ref: controlled.ref,
|
|
45
|
+
'oninput': (event: UndEvent<InputEvent, UndSegmentedControlElement>) => {
|
|
46
|
+
onInput?.(event);
|
|
47
|
+
controlled.settle();
|
|
48
|
+
},
|
|
49
|
+
'onchange': onChange,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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/selectable-card.js';
|
|
7
|
+
import type { UndSelectableCard as UndSelectableCardElement } from '@und-ui/core';
|
|
8
|
+
import { useControlledProp, type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndSelectableCardProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndSelectableCardElement>, 'type' | 'checked' | 'defaultChecked' | 'value' | 'label' | 'description' | 'error' | 'required' | 'optional' | 'disabled' | 'name' | 'onInput' | 'onChange'> {
|
|
12
|
+
/** `checkbox` toggles on its own; `radio` selects one card of those that share a `name`. */
|
|
13
|
+
type?: UndSelectableCardElement['type'];
|
|
14
|
+
/** Whether the control is checked. The `checked` attribute also sets the default restored by a form reset, as on a native checkbox. */
|
|
15
|
+
checked?: UndSelectableCardElement['checked'];
|
|
16
|
+
/** Checked state restored on form reset (defaults to the initial `checked`). */
|
|
17
|
+
defaultChecked?: UndSelectableCardElement['defaultChecked'];
|
|
18
|
+
/** Value submitted with `name` when checked. */
|
|
19
|
+
value?: UndSelectableCardElement['value'];
|
|
20
|
+
/** Visible label text. Rich content (links) can be passed as children instead on choice controls. */
|
|
21
|
+
label?: UndSelectableCardElement['label'];
|
|
22
|
+
/** Help text under the label, referenced by `aria-describedby`. */
|
|
23
|
+
description?: UndSelectableCardElement['description'];
|
|
24
|
+
/** Error message. Setting it marks the control invalid (`aria-invalid`, `setCustomValidity`) and shows the message, prefixed with a visually hidden "Error:". Native validation messages are shown automatically after a failed submit and cleared once the value is valid. */
|
|
25
|
+
error?: UndSelectableCardElement['error'];
|
|
26
|
+
/** Requires a value before the form submits (native constraint validation). */
|
|
27
|
+
required?: UndSelectableCardElement['required'];
|
|
28
|
+
/** Shows an "(optional)" marker after the label (GOV.UK style). Ignored when `required` is set. */
|
|
29
|
+
optional?: UndSelectableCardElement['optional'];
|
|
30
|
+
/** Disables the control. A disabled ancestor `<fieldset>` also disables it. */
|
|
31
|
+
disabled?: UndSelectableCardElement['disabled'];
|
|
32
|
+
/** Name submitted with the form data. */
|
|
33
|
+
name?: UndSelectableCardElement['name'];
|
|
34
|
+
/** Native `input` from the inner input. */
|
|
35
|
+
onInput?: (event: UndEvent<InputEvent, UndSelectableCardElement>) => void;
|
|
36
|
+
/** Native `change` after the user selects or clears the card. */
|
|
37
|
+
onChange?: (event: UndEvent<Event, UndSelectableCardElement>) => void;
|
|
38
|
+
ref?: Ref<UndSelectableCardElement>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** A card that is a checkbox or radio, selectable anywhere on the card. */
|
|
42
|
+
export function UndSelectableCard(props: UndSelectableCardProps): ReactElement {
|
|
43
|
+
const { onInput, onChange, ref, ...rest } = props;
|
|
44
|
+
// Controlled when `checked` is set: a change the handler rejects is undone.
|
|
45
|
+
const controlled = useControlledProp<UndSelectableCardElement, 'checked'>('checked', props.checked, ref);
|
|
46
|
+
return createElement('und-selectable-card', {
|
|
47
|
+
...rest,
|
|
48
|
+
ref: controlled.ref,
|
|
49
|
+
'oninput': onInput,
|
|
50
|
+
'onchange': (event: UndEvent<Event, UndSelectableCardElement>) => {
|
|
51
|
+
onChange?.(event);
|
|
52
|
+
controlled.settle();
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
@@ -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/side-nav-heading.js';
|
|
7
|
+
import type { UndSideNavHeading as UndSideNavHeadingElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndSideNavHeadingProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndSideNavHeadingElement>, 'rail'> {
|
|
11
|
+
/** Set by the parent `und-side-nav` while it is collapsed to the rail. */
|
|
12
|
+
rail?: UndSideNavHeadingElement['rail'];
|
|
13
|
+
ref?: Ref<UndSideNavHeadingElement>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** A group heading. */
|
|
17
|
+
export function UndSideNavHeading(props: UndSideNavHeadingProps): ReactElement {
|
|
18
|
+
return createElement('und-side-nav-heading', props);
|
|
19
|
+
}
|
|
@@ -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/side-nav-item.js';
|
|
7
|
+
import type { UndSideNavItem as UndSideNavItemElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndSideNavItemProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndSideNavItemElement>, 'href' | 'current' | 'disabled' | 'label' | 'target' | 'rail'> {
|
|
11
|
+
/** Link target. Without it the item renders as a button. */
|
|
12
|
+
href?: UndSideNavItemElement['href'];
|
|
13
|
+
/** Marks the item as the current page (`aria-current="page"`). */
|
|
14
|
+
current?: UndSideNavItemElement['current'];
|
|
15
|
+
/** Disables the item. */
|
|
16
|
+
disabled?: UndSideNavItemElement['disabled'];
|
|
17
|
+
/** Accessible name when it differs from the text content (icon-only items). */
|
|
18
|
+
label?: UndSideNavItemElement['label'];
|
|
19
|
+
/** Where to open the link (`_blank` adds `rel="noopener noreferrer"`). */
|
|
20
|
+
target?: UndSideNavItemElement['target'];
|
|
21
|
+
/** Set by the parent `und-side-nav` while it is collapsed to the rail. */
|
|
22
|
+
rail?: UndSideNavItemElement['rail'];
|
|
23
|
+
ref?: Ref<UndSideNavItemElement>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** A navigation link. */
|
|
27
|
+
export function UndSideNavItem(props: UndSideNavItemProps): ReactElement {
|
|
28
|
+
return createElement('und-side-nav-item', props);
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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/side-nav-section.js';
|
|
7
|
+
import type { UndSideNavSection as UndSideNavSectionElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndSideNavSectionProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndSideNavSectionElement>, 'label' | 'expanded' | 'rail' | 'onUndToggle'> {
|
|
12
|
+
/** The text of the section button. */
|
|
13
|
+
label?: UndSideNavSectionElement['label'];
|
|
14
|
+
/** Whether the nested items are shown. */
|
|
15
|
+
expanded?: UndSideNavSectionElement['expanded'];
|
|
16
|
+
/** Set by the parent `und-side-nav` while it is collapsed to the rail. */
|
|
17
|
+
rail?: UndSideNavSectionElement['rail'];
|
|
18
|
+
/** The user opened or closed the section. */
|
|
19
|
+
onUndToggle?: (event: UndEvent<CustomEvent<unknown>, UndSideNavSectionElement>) => void;
|
|
20
|
+
ref?: Ref<UndSideNavSectionElement>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** A collapsible group of nav items. */
|
|
24
|
+
export function UndSideNavSection(props: UndSideNavSectionProps): ReactElement {
|
|
25
|
+
const { onUndToggle, ...rest } = props;
|
|
26
|
+
return createElement('und-side-nav-section', {
|
|
27
|
+
...rest,
|
|
28
|
+
'onund-toggle': onUndToggle,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -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/side-nav.js';
|
|
7
|
+
import type { UndSideNav as UndSideNavElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndSideNavProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndSideNavElement>, 'label' | 'collapsed' | 'collapsible' | 'collapseLabel' | 'expandLabel' | 'onUndCollapseChange'> {
|
|
12
|
+
/** Accessible name of the navigation landmark (localise it). */
|
|
13
|
+
label?: UndSideNavElement['label'];
|
|
14
|
+
/** Collapsed to an icon rail. */
|
|
15
|
+
collapsed?: UndSideNavElement['collapsed'];
|
|
16
|
+
/** Shows the button that collapses and expands the nav. */
|
|
17
|
+
collapsible?: UndSideNavElement['collapsible'];
|
|
18
|
+
/** Name of the collapse button while the nav is expanded. */
|
|
19
|
+
collapseLabel?: UndSideNavElement['collapseLabel'];
|
|
20
|
+
/** Name of the collapse button while the nav is collapsed. */
|
|
21
|
+
expandLabel?: UndSideNavElement['expandLabel'];
|
|
22
|
+
/** The user collapsed or expanded the nav. */
|
|
23
|
+
onUndCollapseChange?: (event: UndEvent<CustomEvent<unknown>, UndSideNavElement>) => void;
|
|
24
|
+
ref?: Ref<UndSideNavElement>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Vertical navigation with sections and a collapsible rail. */
|
|
28
|
+
export function UndSideNav(props: UndSideNavProps): ReactElement {
|
|
29
|
+
const { onUndCollapseChange, ...rest } = props;
|
|
30
|
+
return createElement('und-side-nav', {
|
|
31
|
+
...rest,
|
|
32
|
+
'onund-collapse-change': onUndCollapseChange,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -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/stack.js';
|
|
7
|
+
import type { UndStack as UndStackElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndStackProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndStackElement>, 'direction' | 'gap' | 'alignItems' | 'justifyContent' | 'wrap' | 'inline'> {
|
|
11
|
+
/** Main axis: `column` (vertical) or `row` (horizontal). */
|
|
12
|
+
direction?: UndStackElement['direction'];
|
|
13
|
+
/** Gap between items, a space token step (`0` to `32`, for example `4`). */
|
|
14
|
+
gap?: UndStackElement['gap'];
|
|
15
|
+
/** Cross-axis alignment. */
|
|
16
|
+
alignItems?: UndStackElement['alignItems'];
|
|
17
|
+
/** Main-axis distribution. */
|
|
18
|
+
justifyContent?: UndStackElement['justifyContent'];
|
|
19
|
+
/** Lets items wrap onto further lines. */
|
|
20
|
+
wrap?: UndStackElement['wrap'];
|
|
21
|
+
/** Shrinks to its content instead of filling the line. */
|
|
22
|
+
inline?: UndStackElement['inline'];
|
|
23
|
+
ref?: Ref<UndStackElement>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Stacks children in a row or column with a consistent gap. */
|
|
27
|
+
export function UndStack(props: UndStackProps): ReactElement {
|
|
28
|
+
return createElement('und-stack', props);
|
|
29
|
+
}
|
|
@@ -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/status-dot.js';
|
|
7
|
+
import type { UndStatusDot as UndStatusDotElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndStatusDotProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndStatusDotElement>, 'tone' | 'label'> {
|
|
11
|
+
/** Color intent and shape. */
|
|
12
|
+
tone?: UndStatusDotElement['tone'];
|
|
13
|
+
/** Accessible name of a dot that has no visible text ("Online"). Ignored when the element has text. */
|
|
14
|
+
label?: UndStatusDotElement['label'];
|
|
15
|
+
ref?: Ref<UndStatusDotElement>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** A status marker whose meaning is also in its shape and name. */
|
|
19
|
+
export function UndStatusDot(props: UndStatusDotProps): ReactElement {
|
|
20
|
+
return createElement('und-status-dot', props);
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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/step.js';
|
|
7
|
+
import type { UndStep as UndStepElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndStepProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndStepElement>, 'label' | 'description' | 'status' | 'state' | 'orientation' | 'index' | 'total' | 'clickable'> {
|
|
11
|
+
/** Visible label (or pass the label as children). */
|
|
12
|
+
label?: UndStepElement['label'];
|
|
13
|
+
/** Supporting text under the label. */
|
|
14
|
+
description?: UndStepElement['description'];
|
|
15
|
+
/** Set to `error` to flag the step. Otherwise the stepper derives the state. */
|
|
16
|
+
status?: UndStepElement['status'];
|
|
17
|
+
/** The step's state, managed by `und-stepper`. */
|
|
18
|
+
state?: UndStepElement['state'];
|
|
19
|
+
/** Layout, managed by `und-stepper`. */
|
|
20
|
+
orientation?: UndStepElement['orientation'];
|
|
21
|
+
index?: UndStepElement['index'];
|
|
22
|
+
total?: UndStepElement['total'];
|
|
23
|
+
clickable?: UndStepElement['clickable'];
|
|
24
|
+
ref?: Ref<UndStepElement>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** One step in a stepper. */
|
|
28
|
+
export function UndStep(props: UndStepProps): ReactElement {
|
|
29
|
+
return createElement('und-step', props);
|
|
30
|
+
}
|
|
@@ -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/stepper.js';
|
|
7
|
+
import type { UndStepper as UndStepperElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndStepperProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndStepperElement>, 'current' | 'orientation' | 'label' | 'clickable' | 'nonLinear' | 'onUndStepSelect'> {
|
|
12
|
+
/** Zero-based position of the current step. A value past the last step marks every step completed. */
|
|
13
|
+
current?: UndStepperElement['current'];
|
|
14
|
+
/** Layout of the steps. */
|
|
15
|
+
orientation?: UndStepperElement['orientation'];
|
|
16
|
+
/** Accessible name of the list (`aria-label`), for example "Checkout progress". */
|
|
17
|
+
label?: UndStepperElement['label'];
|
|
18
|
+
/** Makes the steps the user can go to buttons. */
|
|
19
|
+
clickable?: UndStepperElement['clickable'];
|
|
20
|
+
/** With `clickable`, lets the user go to any step, not only completed ones. */
|
|
21
|
+
nonLinear?: UndStepperElement['nonLinear'];
|
|
22
|
+
/** The user chose a step. Cancelable: `preventDefault()` keeps `current` where it is. */
|
|
23
|
+
onUndStepSelect?: (event: UndEvent<CustomEvent<unknown>, UndStepperElement>) => void;
|
|
24
|
+
ref?: Ref<UndStepperElement>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Shows progress through a sequence of steps. */
|
|
28
|
+
export function UndStepper(props: UndStepperProps): ReactElement {
|
|
29
|
+
const { onUndStepSelect, ...rest } = props;
|
|
30
|
+
return createElement('und-stepper', {
|
|
31
|
+
...rest,
|
|
32
|
+
'onund-step-select': onUndStepSelect,
|
|
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/tab-menu.js';
|
|
7
|
+
import type { UndTabMenu as UndTabMenuElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndTabMenuProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndTabMenuElement>, 'label' | 'orientation'> {
|
|
11
|
+
/** Accessible name of the navigation landmark (localise it). */
|
|
12
|
+
label?: UndTabMenuElement['label'];
|
|
13
|
+
/** Layout of the links. */
|
|
14
|
+
orientation?: UndTabMenuElement['orientation'];
|
|
15
|
+
ref?: Ref<UndTabMenuElement>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Tab-styled links between pages. */
|
|
19
|
+
export function UndTabMenu(props: UndTabMenuProps): ReactElement {
|
|
20
|
+
return createElement('und-tab-menu', props);
|
|
21
|
+
}
|
|
@@ -8,7 +8,7 @@ import type { UndTable as UndTableElement } from '@und-ui/core';
|
|
|
8
8
|
import { type UndEvent } from './shared.js';
|
|
9
9
|
|
|
10
10
|
export interface UndTableProps
|
|
11
|
-
extends Omit<HTMLAttributes<UndTableElement>, 'label' | 'density' | 'striped' | 'stickyHeader' | 'sortMessage' | 'ascendingLabel' | 'descendingLabel' | 'onUndSort'> {
|
|
11
|
+
extends Omit<HTMLAttributes<UndTableElement>, 'label' | 'density' | 'striped' | 'stickyHeader' | 'stickyFirstColumn' | 'resizable' | 'selectionMessage' | 'resizeLabel' | 'sortMessage' | 'ascendingLabel' | 'descendingLabel' | 'onUndSort' | 'onUndSelectionChange' | 'onUndColumnResize' | 'onUndExpandChange'> {
|
|
12
12
|
/** Accessible name of the scroll region. Defaults to the caption text. */
|
|
13
13
|
label?: UndTableElement['label'];
|
|
14
14
|
/** Cell spacing. */
|
|
@@ -17,6 +17,14 @@ export interface UndTableProps
|
|
|
17
17
|
striped?: UndTableElement['striped'];
|
|
18
18
|
/** Keeps the header row visible while the region scrolls vertically. Set a maximum height with `--und-table-max-height`. */
|
|
19
19
|
stickyHeader?: UndTableElement['stickyHeader'];
|
|
20
|
+
/** Keeps the first column visible while the region scrolls horizontally. */
|
|
21
|
+
stickyFirstColumn?: UndTableElement['stickyFirstColumn'];
|
|
22
|
+
/** Adds a keyboard- and pointer-operable resize handle to each header cell (cells with `data-resize="false"` or a column span are skipped). */
|
|
23
|
+
resizable?: UndTableElement['resizable'];
|
|
24
|
+
/** Text of the selected-count status; `{count}` is replaced. */
|
|
25
|
+
selectionMessage?: UndTableElement['selectionMessage'];
|
|
26
|
+
/** Accessible name of a resize handle; `{column}` is replaced by the header text. */
|
|
27
|
+
resizeLabel?: UndTableElement['resizeLabel'];
|
|
20
28
|
/** Announcement after sorting; `{column}` and `{direction}` are replaced. */
|
|
21
29
|
sortMessage?: UndTableElement['sortMessage'];
|
|
22
30
|
/** Word used for `{direction}` when sorting ascending. */
|
|
@@ -25,14 +33,23 @@ export interface UndTableProps
|
|
|
25
33
|
descendingLabel?: UndTableElement['descendingLabel'];
|
|
26
34
|
/** A sortable header was activated. Cancel it to sort the data yourself; `aria-sort` and the announcement still update. */
|
|
27
35
|
onUndSort?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
36
|
+
/** The user changed the row selection. */
|
|
37
|
+
onUndSelectionChange?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
38
|
+
/** The user resized a column. */
|
|
39
|
+
onUndColumnResize?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
40
|
+
/** The user expanded or collapsed a row. */
|
|
41
|
+
onUndExpandChange?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
28
42
|
ref?: Ref<UndTableElement>;
|
|
29
43
|
}
|
|
30
44
|
|
|
31
|
-
/** A styled native table with responsive overflow and
|
|
45
|
+
/** A styled native table with responsive overflow, sorting, selection, resizing and expandable rows. */
|
|
32
46
|
export function UndTable(props: UndTableProps): ReactElement {
|
|
33
|
-
const { onUndSort, ...rest } = props;
|
|
47
|
+
const { onUndSort, onUndSelectionChange, onUndColumnResize, onUndExpandChange, ...rest } = props;
|
|
34
48
|
return createElement('und-table', {
|
|
35
49
|
...rest,
|
|
36
50
|
'onund-sort': onUndSort,
|
|
51
|
+
'onund-selection-change': onUndSelectionChange,
|
|
52
|
+
'onund-column-resize': onUndColumnResize,
|
|
53
|
+
'onund-expand-change': onUndExpandChange,
|
|
37
54
|
});
|
|
38
55
|
}
|
|
@@ -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/text.js';
|
|
7
|
+
import type { UndText as UndTextElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndTextProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndTextElement>, 'size' | 'weight' | 'tone' | 'lines' | 'block'> {
|
|
11
|
+
/** Type scale step. `inherit` keeps the surrounding font size and line height. */
|
|
12
|
+
size?: UndTextElement['size'];
|
|
13
|
+
/** Font weight. Unset keeps the weight of the size. */
|
|
14
|
+
weight?: UndTextElement['weight'];
|
|
15
|
+
/** Color intent. */
|
|
16
|
+
tone?: UndTextElement['tone'];
|
|
17
|
+
/** Clamps the text to this many lines and ends it with an ellipsis (visual only; the full text stays available to assistive technology). Unset or 0 shows all of it. A clamped text is block level. */
|
|
18
|
+
lines?: UndTextElement['lines'];
|
|
19
|
+
/** Lays the text out as a block instead of inline. */
|
|
20
|
+
block?: UndTextElement['block'];
|
|
21
|
+
ref?: Ref<UndTextElement>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Text with size, weight, tone and optional line clamping. */
|
|
25
|
+
export function UndText(props: UndTextProps): ReactElement {
|
|
26
|
+
return createElement('und-text', props);
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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/thumbnail.js';
|
|
7
|
+
import type { UndThumbnail as UndThumbnailElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndThumbnailProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndThumbnailElement>, 'src' | 'alt' | 'ratio' | 'fit' | 'loading' | 'onUndLoad' | 'onUndError'> {
|
|
12
|
+
/** Image URL. Only http(s), blob, `data:image/...` and relative URLs load. */
|
|
13
|
+
src?: UndThumbnailElement['src'];
|
|
14
|
+
/** Text alternative. Required; `""` marks the image decorative. */
|
|
15
|
+
alt?: UndThumbnailElement['alt'];
|
|
16
|
+
/** Aspect ratio as `16/9`, `4:3` or a number (width over height). Default 1. */
|
|
17
|
+
ratio?: UndThumbnailElement['ratio'];
|
|
18
|
+
/** How the image fills the box. */
|
|
19
|
+
fit?: UndThumbnailElement['fit'];
|
|
20
|
+
/** Image loading strategy. */
|
|
21
|
+
loading?: UndThumbnailElement['loading'];
|
|
22
|
+
/** The image loaded. */
|
|
23
|
+
onUndLoad?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
|
|
24
|
+
/** The image failed; the fallback is shown. */
|
|
25
|
+
onUndError?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
|
|
26
|
+
ref?: Ref<UndThumbnailElement>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** An image with an aspect ratio and a fallback. */
|
|
30
|
+
export function UndThumbnail(props: UndThumbnailProps): ReactElement {
|
|
31
|
+
const { onUndLoad, onUndError, ...rest } = props;
|
|
32
|
+
return createElement('und-thumbnail', {
|
|
33
|
+
...rest,
|
|
34
|
+
'onund-load': onUndLoad,
|
|
35
|
+
'onund-error': onUndError,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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/time-input.js';
|
|
7
|
+
import type { UndTimeInput as UndTimeInputElement } from '@und-ui/core';
|
|
8
|
+
import { useControlledProp, type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndTimeInputProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndTimeInputElement>, 'value' | 'defaultValue' | 'min' | 'max' | 'step' | 'locale' | 'hourCycle' | 'size' | 'readOnly' | 'placeholder' | 'autocomplete' | 'label' | 'description' | 'error' | 'required' | 'optional' | 'disabled' | 'name' | 'onUndChange' | 'onInput' | 'onChange'> {
|
|
12
|
+
/** The time, `HH:MM` (24-hour), or empty. */
|
|
13
|
+
value?: UndTimeInputElement['value'];
|
|
14
|
+
/** Value restored on form reset (defaults to the initial `value`). */
|
|
15
|
+
defaultValue?: UndTimeInputElement['defaultValue'];
|
|
16
|
+
/** Earliest allowed time, `HH:MM`. */
|
|
17
|
+
min?: UndTimeInputElement['min'];
|
|
18
|
+
/** Latest allowed time, `HH:MM`. */
|
|
19
|
+
max?: UndTimeInputElement['max'];
|
|
20
|
+
/** Minutes added or removed by the Up and Down Arrow keys. */
|
|
21
|
+
step?: UndTimeInputElement['step'];
|
|
22
|
+
/** BCP 47 tag for the format. Defaults to the page language. */
|
|
23
|
+
locale?: UndTimeInputElement['locale'];
|
|
24
|
+
/** `auto` follows the locale (`en-IN` is 12-hour, `de` is 24-hour); `12` and `24` force it. */
|
|
25
|
+
hourCycle?: UndTimeInputElement['hourCycle'];
|
|
26
|
+
/** Size of the field. */
|
|
27
|
+
size?: UndTimeInputElement['size'];
|
|
28
|
+
/** Makes the value read-only. */
|
|
29
|
+
readOnly?: UndTimeInputElement['readOnly'];
|
|
30
|
+
/** Placeholder. Defaults to the format pattern, such as `hh:mm am`. */
|
|
31
|
+
placeholder?: UndTimeInputElement['placeholder'];
|
|
32
|
+
/** Autofill hint. Off by default. */
|
|
33
|
+
autocomplete?: UndTimeInputElement['autocomplete'];
|
|
34
|
+
/** Visible label text. Rich content (links) can be passed as children instead on choice controls. */
|
|
35
|
+
label?: UndTimeInputElement['label'];
|
|
36
|
+
/** Help text under the label, referenced by `aria-describedby`. */
|
|
37
|
+
description?: UndTimeInputElement['description'];
|
|
38
|
+
/** Error message. Setting it marks the control invalid (`aria-invalid`, `setCustomValidity`) and shows the message, prefixed with a visually hidden "Error:". Native validation messages are shown automatically after a failed submit and cleared once the value is valid. */
|
|
39
|
+
error?: UndTimeInputElement['error'];
|
|
40
|
+
/** Requires a value before the form submits (native constraint validation). */
|
|
41
|
+
required?: UndTimeInputElement['required'];
|
|
42
|
+
/** Shows an "(optional)" marker after the label (GOV.UK style). Ignored when `required` is set. */
|
|
43
|
+
optional?: UndTimeInputElement['optional'];
|
|
44
|
+
/** Disables the control. A disabled ancestor `<fieldset>` also disables it. */
|
|
45
|
+
disabled?: UndTimeInputElement['disabled'];
|
|
46
|
+
/** Name submitted with the form data. */
|
|
47
|
+
name?: UndTimeInputElement['name'];
|
|
48
|
+
/** The time was committed (blur, Enter, or a key step). `value` is `HH:MM`, or empty. */
|
|
49
|
+
onUndChange?: (event: UndEvent<CustomEvent<{ value: string }>, UndTimeInputElement>) => void;
|
|
50
|
+
/** Native input event of the text input. */
|
|
51
|
+
onInput?: (event: UndEvent<Event, UndTimeInputElement>) => void;
|
|
52
|
+
/** Native change event of the text input. */
|
|
53
|
+
onChange?: (event: UndEvent<Event, UndTimeInputElement>) => void;
|
|
54
|
+
ref?: Ref<UndTimeInputElement>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** A text time field with a locale-aware 12 or 24-hour format. */
|
|
58
|
+
export function UndTimeInput(props: UndTimeInputProps): ReactElement {
|
|
59
|
+
const { onUndChange, onInput, onChange, ref, ...rest } = props;
|
|
60
|
+
// Controlled when `value` is set: a change the handler rejects is undone.
|
|
61
|
+
const controlled = useControlledProp<UndTimeInputElement, 'value'>('value', props.value, ref);
|
|
62
|
+
return createElement('und-time-input', {
|
|
63
|
+
...rest,
|
|
64
|
+
ref: controlled.ref,
|
|
65
|
+
'onund-change': onUndChange,
|
|
66
|
+
'oninput': (event: UndEvent<Event, UndTimeInputElement>) => {
|
|
67
|
+
onInput?.(event);
|
|
68
|
+
controlled.settle();
|
|
69
|
+
},
|
|
70
|
+
'onchange': onChange,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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/timer.js';
|
|
7
|
+
import type { UndTimer as UndTimerElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndTimerProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndTimerElement>, 'mode' | 'duration' | 'autostart' | 'label' | 'completeLabel' | 'announceEvery' | 'onUndTick' | 'onUndComplete'> {
|
|
12
|
+
/** `elapsed` counts up from zero; `countdown` counts down from `duration`. */
|
|
13
|
+
mode?: UndTimerElement['mode'];
|
|
14
|
+
/** Countdown length in seconds. */
|
|
15
|
+
duration?: UndTimerElement['duration'];
|
|
16
|
+
/** Starts when connected. */
|
|
17
|
+
autostart?: UndTimerElement['autostart'];
|
|
18
|
+
/** Accessible name. */
|
|
19
|
+
label?: UndTimerElement['label'];
|
|
20
|
+
/** Announced when a countdown reaches zero. */
|
|
21
|
+
completeLabel?: UndTimerElement['completeLabel'];
|
|
22
|
+
/** Speak the time every this many seconds while running (0 never). */
|
|
23
|
+
announceEvery?: UndTimerElement['announceEvery'];
|
|
24
|
+
/** The displayed second changed. */
|
|
25
|
+
onUndTick?: (event: UndEvent<CustomEvent<unknown>, UndTimerElement>) => void;
|
|
26
|
+
/** A countdown reached zero. */
|
|
27
|
+
onUndComplete?: (event: UndEvent<CustomEvent<unknown>, UndTimerElement>) => void;
|
|
28
|
+
ref?: Ref<UndTimerElement>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** An elapsed-time or countdown timer with start, pause and reset. */
|
|
32
|
+
export function UndTimer(props: UndTimerProps): ReactElement {
|
|
33
|
+
const { onUndTick, onUndComplete, ...rest } = props;
|
|
34
|
+
return createElement('und-timer', {
|
|
35
|
+
...rest,
|
|
36
|
+
'onund-tick': onUndTick,
|
|
37
|
+
'onund-complete': onUndComplete,
|
|
38
|
+
});
|
|
39
|
+
}
|