#
tokens: 47675/50000 9/1627 files (page 41/183)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 41 of 183. Use http://codebase.md/xmlui-org/xmlui/xmlui-standalone.umd.js?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   └── config.json
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog-optimized.yml
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── an-advanced-codefence.gif
│   │   │   │   ├── an-advanced-codefence.mp4
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── codefence-runner.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   ├── lorem-ipsum.png
│   │   │   │   ├── playground-checkbox-source.png
│   │   │   │   ├── playground.png
│   │   │   │   ├── use-xmlui-mcp-to-find-a-howto.png
│   │   │   │   └── xmlui-demo-gallery.png
│   │   │   ├── introducing-xmlui.md
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   ├── xmlui-playground.md
│   │   │   └── xmlui-powered-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   ├── rss.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       └── blog-theme.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── FancyButton.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── control-cache-invalidation.md
│   │   │   │   ├── debounce-user-input-for-api-calls.md
│   │   │   │   ├── debounce-with-changelistener.md
│   │   │   │   ├── debug-a-component.md
│   │   │   │   ├── delay-a-datasource-until-another-datasource-is-ready.md
│   │   │   │   ├── delegate-a-method.md
│   │   │   │   ├── do-custom-form-validation.md
│   │   │   │   ├── expose-a-method-from-a-component.md
│   │   │   │   ├── filter-and-transform-data-from-an-api.md
│   │   │   │   ├── group-items-in-list-by-a-property.md
│   │   │   │   ├── handle-background-operations.md
│   │   │   │   ├── hide-an-element-until-its-datasource-is-ready.md
│   │   │   │   ├── make-a-set-of-equal-width-cards.md
│   │   │   │   ├── make-a-table-responsive.md
│   │   │   │   ├── make-navpanel-width-responsive.md
│   │   │   │   ├── modify-a-value-reported-in-a-column.md
│   │   │   │   ├── paginate-a-list.md
│   │   │   │   ├── pass-data-to-a-modal-dialog.md
│   │   │   │   ├── react-to-button-click-not-keystrokes.md
│   │   │   │   ├── set-the-initial-value-of-a-select-from-fetched-data.md
│   │   │   │   ├── share-a-modaldialog-across-components.md
│   │   │   │   ├── sync-selections-between-table-and-list-views.md
│   │   │   │   ├── update-ui-optimistically.md
│   │   │   │   ├── use-built-in-form-validation.md
│   │   │   │   └── use-the-same-modaldialog-to-add-or-edit.md
│   │   │   ├── howto.md
│   │   │   ├── intro.md
│   │   │   ├── layout.md
│   │   │   ├── markup.md
│   │   │   ├── mcp.md
│   │   │   ├── modal-dialogs.md
│   │   │   ├── news-and-reviews.md
│   │   │   ├── reactive-intro.md
│   │   │   ├── refactoring.md
│   │   │   ├── routing-and-links.md
│   │   │   ├── samples
│   │   │   │   ├── color-palette.xmlui
│   │   │   │   ├── color-values.xmlui
│   │   │   │   ├── shadow-sizes.xmlui
│   │   │   │   ├── spacing-sizes.xmlui
│   │   │   │   ├── swatch.xmlui
│   │   │   │   ├── theme-gallery-brief.xmlui
│   │   │   │   └── theme-gallery.xmlui
│   │   │   ├── scoping.md
│   │   │   ├── scripting.md
│   │   │   ├── styles-and-themes
│   │   │   │   ├── common-units.md
│   │   │   │   ├── layout-props.md
│   │   │   │   ├── theme-variable-defaults.md
│   │   │   │   ├── theme-variables.md
│   │   │   │   └── themes.md
│   │   │   ├── template-properties.md
│   │   │   ├── test.md
│   │   │   ├── tutorial-01.md
│   │   │   ├── tutorial-02.md
│   │   │   ├── tutorial-03.md
│   │   │   ├── tutorial-04.md
│   │   │   ├── tutorial-05.md
│   │   │   ├── tutorial-06.md
│   │   │   ├── tutorial-07.md
│   │   │   ├── tutorial-08.md
│   │   │   ├── tutorial-09.md
│   │   │   ├── tutorial-10.md
│   │   │   ├── tutorial-11.md
│   │   │   ├── tutorial-12.md
│   │   │   ├── universal-properties.md
│   │   │   ├── user-defined-components.md
│   │   │   ├── vscode.md
│   │   │   ├── working-with-markdown.md
│   │   │   ├── working-with-text.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-charts
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── BarChart.md
│   │   │   │   ├── DonutChart.md
│   │   │   │   ├── LabelList.md
│   │   │   │   ├── Legend.md
│   │   │   │   ├── LineChart.md
│   │   │   │   └── PieChart.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   └── xmlui-spreadsheet
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       └── Spreadsheet.md
│   │   ├── resources
│   │   │   ├── devdocs
│   │   │   │   ├── debug-proxy-object-2.png
│   │   │   │   ├── debug-proxy-object.png
│   │   │   │   ├── table_editor_01.png
│   │   │   │   ├── table_editor_02.png
│   │   │   │   ├── table_editor_03.png
│   │   │   │   ├── table_editor_04.png
│   │   │   │   ├── table_editor_05.png
│   │   │   │   ├── table_editor_06.png
│   │   │   │   ├── table_editor_07.png
│   │   │   │   ├── table_editor_08.png
│   │   │   │   ├── table_editor_09.png
│   │   │   │   ├── table_editor_10.png
│   │   │   │   ├── table_editor_11.png
│   │   │   │   ├── table-editor-01.png
│   │   │   │   ├── table-editor-02.png
│   │   │   │   ├── table-editor-03.png
│   │   │   │   ├── table-editor-04.png
│   │   │   │   ├── table-editor-06.png
│   │   │   │   ├── table-editor-07.png
│   │   │   │   ├── table-editor-08.png
│   │   │   │   ├── table-editor-09.png
│   │   │   │   └── xmlui-rendering-of-tiptap-markdown.png
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   ├── clients.json
│   │   │   │   ├── daily-revenue.json
│   │   │   │   ├── dashboard-stats.json
│   │   │   │   ├── demo.xmlui
│   │   │   │   ├── demo.xmlui.xs
│   │   │   │   ├── downloads
│   │   │   │   │   └── downloads.json
│   │   │   │   ├── for-download
│   │   │   │   │   ├── index-with-api.html
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── mockApi.js
│   │   │   │   │   ├── start-darwin.sh
│   │   │   │   │   ├── start-linux.sh
│   │   │   │   │   ├── start.bat
│   │   │   │   │   └── xmlui
│   │   │   │   │       └── xmlui-standalone.umd.js
│   │   │   │   ├── getting-started
│   │   │   │   │   ├── cl-tutorial-final.zip
│   │   │   │   │   ├── cl-tutorial.zip
│   │   │   │   │   ├── cl-tutorial2.zip
│   │   │   │   │   ├── cl-tutorial3.zip
│   │   │   │   │   ├── cl-tutorial4.zip
│   │   │   │   │   ├── cl-tutorial5.zip
│   │   │   │   │   ├── cl-tutorial6.zip
│   │   │   │   │   ├── getting-started.zip
│   │   │   │   │   ├── hello-xmlui.zip
│   │   │   │   │   ├── xmlui-empty.zip
│   │   │   │   │   └── xmlui-starter.zip
│   │   │   │   ├── howto
│   │   │   │   │   └── component-icons
│   │   │   │   │       └── up-arrow.svg
│   │   │   │   ├── invoices.json
│   │   │   │   ├── monthly-status.json
│   │   │   │   ├── news-and-reviews.json
│   │   │   │   ├── products.json
│   │   │   │   ├── releases.json
│   │   │   │   ├── tutorials
│   │   │   │   │   ├── datasource
│   │   │   │   │   │   └── api.ts
│   │   │   │   │   └── p2do
│   │   │   │   │       ├── api.ts
│   │   │   │   │       └── todo-logo.svg
│   │   │   │   └── xmlui.json
│   │   │   ├── github.svg
│   │   │   ├── images
│   │   │   │   ├── apiaction-tutorial
│   │   │   │   │   ├── add-success.png
│   │   │   │   │   ├── apiaction-param.png
│   │   │   │   │   ├── change-completed.png
│   │   │   │   │   ├── change-in-progress.png
│   │   │   │   │   ├── confirm-delete.png
│   │   │   │   │   ├── data-error.png
│   │   │   │   │   ├── data-progress.png
│   │   │   │   │   ├── data-success.png
│   │   │   │   │   ├── display-1.png
│   │   │   │   │   ├── item-deleted.png
│   │   │   │   │   ├── item-updated.png
│   │   │   │   │   ├── missing-api-key.png
│   │   │   │   │   ├── new-item-added.png
│   │   │   │   │   └── test-message.png
│   │   │   │   ├── chat-api
│   │   │   │   │   └── domain-model.svg
│   │   │   │   ├── components
│   │   │   │   │   ├── image
│   │   │   │   │   │   └── breakfast.jpg
│   │   │   │   │   ├── markdown
│   │   │   │   │   │   └── colors.png
│   │   │   │   │   └── modal
│   │   │   │   │       ├── deep_link_dialog_1.jpg
│   │   │   │   │       └── deep_link_dialog_2.jpg
│   │   │   │   ├── create-apps
│   │   │   │   │   ├── collapsed-vertical.png
│   │   │   │   │   ├── using-forms-warning-dialog.png
│   │   │   │   │   └── using-forms.png
│   │   │   │   ├── datasource-tutorial
│   │   │   │   │   ├── data-with-header.png
│   │   │   │   │   ├── filtered-data.png
│   │   │   │   │   ├── filtered-items.png
│   │   │   │   │   ├── initial-page-items.png
│   │   │   │   │   ├── list-items.png
│   │   │   │   │   ├── next-page-items.png
│   │   │   │   │   ├── no-data.png
│   │   │   │   │   ├── pagination-1.jpg
│   │   │   │   │   ├── pagination-1.png
│   │   │   │   │   ├── polling-1.png
│   │   │   │   │   ├── refetch-data.png
│   │   │   │   │   ├── slow-loading.png
│   │   │   │   │   ├── test-message.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── unconventional-data.png
│   │   │   │   │   └── unfiltered-items.png
│   │   │   │   ├── flower.jpg
│   │   │   │   ├── get-started
│   │   │   │   │   ├── add-new-contact.png
│   │   │   │   │   ├── app-modified.png
│   │   │   │   │   ├── app-start.png
│   │   │   │   │   ├── app-with-boxes.png
│   │   │   │   │   ├── app-with-toast.png
│   │   │   │   │   ├── boilerplate-structure.png
│   │   │   │   │   ├── cl-initial.png
│   │   │   │   │   ├── cl-start.png
│   │   │   │   │   ├── contact-counts.png
│   │   │   │   │   ├── contact-dialog-title.png
│   │   │   │   │   ├── contact-dialog.png
│   │   │   │   │   ├── contact-menus.png
│   │   │   │   │   ├── contact-predicates.png
│   │   │   │   │   ├── context-menu.png
│   │   │   │   │   ├── dashboard-numbers.png
│   │   │   │   │   ├── default-contact-list.png
│   │   │   │   │   ├── delete-contact.png
│   │   │   │   │   ├── delete-task.png
│   │   │   │   │   ├── detailed-template.png
│   │   │   │   │   ├── edit-contact-details.png
│   │   │   │   │   ├── edited-contact-saved.png
│   │   │   │   │   ├── empty-sections.png
│   │   │   │   │   ├── filter-completed.png
│   │   │   │   │   ├── fullwidth-desktop.png
│   │   │   │   │   ├── fullwidth-mobile.png
│   │   │   │   │   ├── initial-table.png
│   │   │   │   │   ├── items-and-badges.png
│   │   │   │   │   ├── loading-message.png
│   │   │   │   │   ├── new-contact-button.png
│   │   │   │   │   ├── new-contact-saved.png
│   │   │   │   │   ├── no-empty-sections.png
│   │   │   │   │   ├── personal-todo-initial.png
│   │   │   │   │   ├── piechart.png
│   │   │   │   │   ├── review-today.png
│   │   │   │   │   ├── rudimentary-dashboard.png
│   │   │   │   │   ├── section-collapsed.png
│   │   │   │   │   ├── sectioned-items.png
│   │   │   │   │   ├── sections-ordered.png
│   │   │   │   │   ├── spacex-list-with-links.png
│   │   │   │   │   ├── spacex-list.png
│   │   │   │   │   ├── start-personal-todo-1.png
│   │   │   │   │   ├── submit-new-contact.png
│   │   │   │   │   ├── submit-new-task.png
│   │   │   │   │   ├── syntax-highlighting.png
│   │   │   │   │   ├── table-with-badge.png
│   │   │   │   │   ├── template-with-card.png
│   │   │   │   │   ├── test-emulated-api.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── todo-logo.png
│   │   │   │   │   └── xmlui-tools.png
│   │   │   │   ├── HelloApp.png
│   │   │   │   ├── HelloApp2.png
│   │   │   │   ├── logos
│   │   │   │   │   ├── xmlui1.svg
│   │   │   │   │   ├── xmlui2.svg
│   │   │   │   │   ├── xmlui3.svg
│   │   │   │   │   ├── xmlui4.svg
│   │   │   │   │   ├── xmlui5.svg
│   │   │   │   │   ├── xmlui6.svg
│   │   │   │   │   └── xmlui7.svg
│   │   │   │   ├── pdf
│   │   │   │   │   └── dummy-pdf.jpg
│   │   │   │   ├── rendering-engine
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   ├── Component.svg
│   │   │   │   │   ├── CompoundComponent.svg
│   │   │   │   │   ├── RootComponent.svg
│   │   │   │   │   └── tree-with-containers.svg
│   │   │   │   ├── reviewers-guide
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   └── incbutton-in-action.png
│   │   │   │   ├── tools
│   │   │   │   │   └── boilerplate-structure.png
│   │   │   │   ├── try.svg
│   │   │   │   ├── tutorial
│   │   │   │   │   ├── app-chat-history.png
│   │   │   │   │   ├── app-content-placeholder.png
│   │   │   │   │   ├── app-header-and-content.png
│   │   │   │   │   ├── app-links-channel-selected.png
│   │   │   │   │   ├── app-links-click.png
│   │   │   │   │   ├── app-navigation.png
│   │   │   │   │   ├── finished-ex01.png
│   │   │   │   │   ├── finished-ex02.png
│   │   │   │   │   ├── hello.png
│   │   │   │   │   ├── splash-screen-advanced.png
│   │   │   │   │   ├── splash-screen-after-click.png
│   │   │   │   │   ├── splash-screen-centered.png
│   │   │   │   │   ├── splash-screen-events.png
│   │   │   │   │   ├── splash-screen-expression.png
│   │   │   │   │   ├── splash-screen-reuse-after.png
│   │   │   │   │   ├── splash-screen-reuse-before.png
│   │   │   │   │   └── splash-screen.png
│   │   │   │   └── tutorial-01.png
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   ├── Boxes.xmlui
│   │   │   ├── Breadcrumb.xmlui
│   │   │   ├── ChangeLog.xmlui
│   │   │   ├── ColorPalette.xmlui
│   │   │   ├── DocumentLinks.xmlui
│   │   │   ├── DocumentPage.xmlui
│   │   │   ├── DocumentPageNoTOC.xmlui
│   │   │   ├── Icons.xmlui
│   │   │   ├── IncButton.xmlui
│   │   │   ├── IncButton2.xmlui
│   │   │   ├── NameValue.xmlui
│   │   │   ├── PageNotFound.xmlui
│   │   │   ├── PaletteItem.xmlui
│   │   │   ├── Palettes.xmlui
│   │   │   ├── SectionHeader.xmlui
│   │   │   ├── TBD.xmlui
│   │   │   ├── Test.xmlui
│   │   │   ├── ThemesIntro.xmlui
│   │   │   ├── ThousandThemes.xmlui
│   │   │   ├── TubeStops.xmlui
│   │   │   ├── TubeStops.xmlui.xs
│   │   │   └── TwoColumnCode.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│   ├── tsconfig.json
│   ├── xmlui-animations
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── Animation.tsx
│   │       ├── AnimationNative.tsx
│   │       ├── FadeAnimation.tsx
│   │       ├── FadeInAnimation.tsx
│   │       ├── FadeOutAnimation.tsx
│   │       ├── index.tsx
│   │       ├── ScaleAnimation.tsx
│   │       └── SlideInAnimation.tsx
│   ├── xmlui-devtools
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── devtools
│   │   │   │   ├── DevTools.tsx
│   │   │   │   ├── DevToolsNative.module.scss
│   │   │   │   ├── DevToolsNative.tsx
│   │   │   │   ├── ModalDialog.module.scss
│   │   │   │   ├── ModalDialog.tsx
│   │   │   │   ├── ModalVisibilityContext.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── editor
│   │   │   │   └── Editor.tsx
│   │   │   └── index.tsx
│   │   └── vite.config-overrides.ts
│   ├── xmlui-hello-world
│   │   ├── .gitignore
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── HelloWorld.module.scss
│   │       ├── HelloWorld.tsx
│   │       ├── HelloWorldNative.tsx
│   │       └── index.tsx
│   ├── xmlui-os-frames
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── IPhoneFrame.module.scss
│   │       ├── IPhoneFrame.tsx
│   │       ├── MacOSAppFrame.module.scss
│   │       ├── MacOSAppFrame.tsx
│   │       ├── WindowsAppFrame.module.scss
│   │       └── WindowsAppFrame.tsx
│   ├── xmlui-pdf
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   ├── components
│   │   │   │   └── Pdf.xmlui
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── LazyPdfNative.tsx
│   │       ├── Pdf.module.scss
│   │       └── Pdf.tsx
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── hooks
│   │       │   ├── usePlayground.ts
│   │       │   └── useToast.ts
│   │       ├── index.tsx
│   │       ├── playground
│   │       │   ├── Box.module.scss
│   │       │   ├── Box.tsx
│   │       │   ├── CodeSelector.tsx
│   │       │   ├── ConfirmationDialog.module.scss
│   │       │   ├── ConfirmationDialog.tsx
│   │       │   ├── Editor.tsx
│   │       │   ├── Header.module.scss
│   │       │   ├── Header.tsx
│   │       │   ├── Playground.tsx
│   │       │   ├── PlaygroundContent.module.scss
│   │       │   ├── PlaygroundContent.tsx
│   │       │   ├── PlaygroundNative.module.scss
│   │       │   ├── PlaygroundNative.tsx
│   │       │   ├── Preview.module.scss
│   │       │   ├── Preview.tsx
│   │       │   ├── Select.module.scss
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.tsx
│   │       │   ├── ToneSwitcher.tsx
│   │       │   ├── Tooltip.module.scss
│   │       │   ├── Tooltip.tsx
│   │       │   └── utils.ts
│   │       ├── providers
│   │       │   ├── Toast.module.scss
│   │       │   └── ToastProvider.tsx
│   │       ├── state
│   │       │   └── store.ts
│   │       ├── themes
│   │       │   └── theme.ts
│   │       └── utils
│   │           └── helpers.ts
│   ├── xmlui-search
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Search.module.scss
│   │       └── Search.tsx
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Spreadsheet.tsx
│   │       └── SpreadsheetNative.tsx
│   └── xmlui-website-blocks
│       ├── .gitignore
│       ├── CHANGELOG.md
│       ├── demo
│       │   ├── components
│       │   │   ├── HeroBackgroundBreakoutPage.xmlui
│       │   │   ├── HeroBackgroundsPage.xmlui
│       │   │   ├── HeroContentsPage.xmlui
│       │   │   ├── HeroTextAlignPage.xmlui
│       │   │   ├── HeroTextPage.xmlui
│       │   │   └── HeroTonesPage.xmlui
│       │   ├── Main.xmlui
│       │   └── themes
│       │       └── default.ts
│       ├── index.html
│       ├── index.ts
│       ├── meta
│       │   └── componentsMetadata.ts
│       ├── package.json
│       ├── public
│       │   └── resources
│       │       ├── building.jpg
│       │       └── xmlui-logo.svg
│       └── src
│           ├── Carousel
│           │   ├── Carousel.module.scss
│           │   ├── Carousel.tsx
│           │   ├── CarouselContext.tsx
│           │   └── CarouselNative.tsx
│           ├── FancyButton
│           │   ├── FancyButton.module.scss
│           │   ├── FancyButton.tsx
│           │   └── FancyButton.xmlui
│           ├── Hello
│           │   ├── Hello.tsx
│           │   ├── Hello.xmlui
│           │   └── Hello.xmlui.xs
│           ├── HeroSection
│           │   ├── HeroSection.module.scss
│           │   ├── HeroSection.spec.ts
│           │   ├── HeroSection.tsx
│           │   └── HeroSectionNative.tsx
│           ├── index.tsx
│           ├── ScrollToTop
│           │   ├── ScrollToTop.module.scss
│           │   ├── ScrollToTop.tsx
│           │   └── ScrollToTopNative.tsx
│           └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│   ├── codefence
│   │   └── xmlui-code-fence-docs.md
│   ├── create-app
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── create-app.ts
│   │   ├── helpers
│   │   │   ├── copy.ts
│   │   │   ├── get-pkg-manager.ts
│   │   │   ├── git.ts
│   │   │   ├── install.ts
│   │   │   ├── is-folder-empty.ts
│   │   │   ├── is-writeable.ts
│   │   │   ├── make-dir.ts
│   │   │   └── validate-pkg.ts
│   │   ├── index.ts
│   │   ├── package.json
│   │   ├── templates
│   │   │   ├── default
│   │   │   │   └── ts
│   │   │   │       ├── gitignore
│   │   │   │       ├── index.html
│   │   │   │       ├── index.ts
│   │   │   │       ├── public
│   │   │   │       │   ├── mockServiceWorker.js
│   │   │   │       │   ├── resources
│   │   │   │       │   │   ├── favicon.ico
│   │   │   │       │   │   └── xmlui-logo.svg
│   │   │   │       │   └── serve.json
│   │   │   │       └── src
│   │   │   │           ├── components
│   │   │   │           │   ├── ApiAware.xmlui
│   │   │   │           │   ├── Home.xmlui
│   │   │   │           │   ├── IncButton.xmlui
│   │   │   │           │   └── PagePanel.xmlui
│   │   │   │           ├── config.ts
│   │   │   │           └── Main.xmlui
│   │   │   ├── index.ts
│   │   │   └── types.ts
│   │   └── tsconfig.json
│   ├── create-xmlui-hello-world
│   │   ├── index.js
│   │   └── package.json
│   └── vscode
│       ├── .gitignore
│       ├── .vscode
│       │   ├── launch.json
│       │   └── tasks.json
│       ├── .vscodeignore
│       ├── build.sh
│       ├── CHANGELOG.md
│       ├── esbuild.js
│       ├── eslint.config.mjs
│       ├── formatter-docs.md
│       ├── generate-test-sample.sh
│       ├── LICENSE.md
│       ├── package-lock.json
│       ├── package.json
│       ├── README.md
│       ├── resources
│       │   ├── xmlui-logo.png
│       │   └── xmlui-markup-syntax-highlighting.png
│       ├── src
│       │   ├── extension.ts
│       │   └── server.ts
│       ├── syntaxes
│       │   └── xmlui.tmLanguage.json
│       ├── test-samples
│       │   └── sample.xmlui
│       ├── tsconfig.json
│       └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
    ├── .gitignore
    ├── bin
    │   ├── bootstrap.cjs
    │   ├── bootstrap.js
    │   ├── build-lib.ts
    │   ├── build.ts
    │   ├── index.ts
    │   ├── preview.ts
    │   ├── start.ts
    │   ├── vite-xmlui-plugin.ts
    │   └── viteConfig.ts
    ├── CHANGELOG.md
    ├── conventions
    │   ├── component-qa-checklist.md
    │   ├── copilot-conventions.md
    │   ├── create-xmlui-components.md
    │   ├── mermaid.md
    │   ├── testing-conventions.md
    │   └── xmlui-in-a-nutshell.md
    ├── dev-docs
    │   ├── accessibility.md
    │   ├── build-system.md
    │   ├── build-xmlui.md
    │   ├── component-behaviors.md
    │   ├── components-with-options.md
    │   ├── containers.md
    │   ├── data-operations.md
    │   ├── glossary.md
    │   ├── index.md
    │   ├── next
    │   │   ├── component-dev-guide.md
    │   │   ├── configuration-management-enhancement-summary.md
    │   │   ├── documentation-scripts-refactoring-complete-summary.md
    │   │   ├── documentation-scripts-refactoring-plan.md
    │   │   ├── duplicate-pattern-extraction-summary.md
    │   │   ├── error-handling-standardization-summary.md
    │   │   ├── generating-component-reference.md
    │   │   ├── index.md
    │   │   ├── logging-consistency-implementation-summary.md
    │   │   ├── project-build.md
    │   │   ├── project-structure.md
    │   │   ├── theme-context.md
    │   │   ├── tiptap-design-considerations.md
    │   │   ├── working-with-code.md
    │   │   ├── xmlui-runtime-architecture
    │   │   └── xmlui-wcag-accessibility-report.md
    │   ├── react-fundamentals.md
    │   ├── release-method.md
    │   ├── standalone-app.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── get-langserver-metadata.js
    │   ├── inline-links.mjs
    │   └── README-e2e-summary.md
    ├── src
    │   ├── abstractions
    │   │   ├── _conventions.md
    │   │   ├── ActionDefs.ts
    │   │   ├── AppContextDefs.ts
    │   │   ├── ComponentDefs.ts
    │   │   ├── ContainerDefs.ts
    │   │   ├── ExtensionDefs.ts
    │   │   ├── FunctionDefs.ts
    │   │   ├── RendererDefs.ts
    │   │   ├── scripting
    │   │   │   ├── BlockScope.ts
    │   │   │   ├── Compilation.ts
    │   │   │   ├── LogicalThread.ts
    │   │   │   ├── LoopScope.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── ScriptParserError.ts
    │   │   │   ├── Token.ts
    │   │   │   ├── TryScope.ts
    │   │   │   └── TryScopeExp.ts
    │   │   └── ThemingDefs.ts
    │   ├── components
    │   │   ├── _conventions.md
    │   │   ├── abstractions.ts
    │   │   ├── Accordion
    │   │   │   ├── Accordion.md
    │   │   │   ├── Accordion.module.scss
    │   │   │   ├── Accordion.spec.ts
    │   │   │   ├── Accordion.tsx
    │   │   │   ├── AccordionContext.tsx
    │   │   │   ├── AccordionItem.tsx
    │   │   │   ├── AccordionItemNative.tsx
    │   │   │   └── AccordionNative.tsx
    │   │   ├── Animation
    │   │   │   └── AnimationNative.tsx
    │   │   ├── APICall
    │   │   │   ├── APICall.md
    │   │   │   ├── APICall.spec.ts
    │   │   │   ├── APICall.tsx
    │   │   │   └── APICallNative.tsx
    │   │   ├── App
    │   │   │   ├── App.md
    │   │   │   ├── App.module.scss
    │   │   │   ├── App.spec.ts
    │   │   │   ├── App.tsx
    │   │   │   ├── AppLayoutContext.ts
    │   │   │   ├── AppNative.tsx
    │   │   │   ├── AppStateContext.ts
    │   │   │   ├── doc-resources
    │   │   │   │   ├── condensed-sticky.xmlui
    │   │   │   │   ├── condensed.xmlui
    │   │   │   │   ├── horizontal-sticky.xmlui
    │   │   │   │   ├── horizontal.xmlui
    │   │   │   │   ├── vertical-full-header.xmlui
    │   │   │   │   ├── vertical-sticky.xmlui
    │   │   │   │   └── vertical.xmlui
    │   │   │   ├── IndexerContext.ts
    │   │   │   ├── LinkInfoContext.ts
    │   │   │   ├── SearchContext.tsx
    │   │   │   ├── Sheet.module.scss
    │   │   │   └── Sheet.tsx
    │   │   ├── AppHeader
    │   │   │   ├── AppHeader.md
    │   │   │   ├── AppHeader.module.scss
    │   │   │   ├── AppHeader.spec.ts
    │   │   │   ├── AppHeader.tsx
    │   │   │   └── AppHeaderNative.tsx
    │   │   ├── AppState
    │   │   │   ├── AppState.md
    │   │   │   ├── AppState.spec.ts
    │   │   │   ├── AppState.tsx
    │   │   │   └── AppStateNative.tsx
    │   │   ├── AutoComplete
    │   │   │   ├── AutoComplete.md
    │   │   │   ├── AutoComplete.module.scss
    │   │   │   ├── AutoComplete.spec.ts
    │   │   │   ├── AutoComplete.tsx
    │   │   │   ├── AutoCompleteContext.tsx
    │   │   │   └── AutoCompleteNative.tsx
    │   │   ├── Avatar
    │   │   │   ├── Avatar.md
    │   │   │   ├── Avatar.module.scss
    │   │   │   ├── Avatar.spec.ts
    │   │   │   ├── Avatar.tsx
    │   │   │   └── AvatarNative.tsx
    │   │   ├── Backdrop
    │   │   │   ├── Backdrop.md
    │   │   │   ├── Backdrop.module.scss
    │   │   │   ├── Backdrop.spec.ts
    │   │   │   ├── Backdrop.tsx
    │   │   │   └── BackdropNative.tsx
    │   │   ├── Badge
    │   │   │   ├── Badge.md
    │   │   │   ├── Badge.module.scss
    │   │   │   ├── Badge.spec.ts
    │   │   │   ├── Badge.tsx
    │   │   │   └── BadgeNative.tsx
    │   │   ├── Bookmark
    │   │   │   ├── Bookmark.md
    │   │   │   ├── Bookmark.module.scss
    │   │   │   ├── Bookmark.spec.ts
    │   │   │   ├── Bookmark.tsx
    │   │   │   └── BookmarkNative.tsx
    │   │   ├── Breakout
    │   │   │   ├── Breakout.module.scss
    │   │   │   ├── Breakout.spec.ts
    │   │   │   ├── Breakout.tsx
    │   │   │   └── BreakoutNative.tsx
    │   │   ├── Button
    │   │   │   ├── Button-style.spec.ts
    │   │   │   ├── Button.md
    │   │   │   ├── Button.module.scss
    │   │   │   ├── Button.spec.ts
    │   │   │   ├── Button.tsx
    │   │   │   └── ButtonNative.tsx
    │   │   ├── Card
    │   │   │   ├── Card.md
    │   │   │   ├── Card.module.scss
    │   │   │   ├── Card.spec.ts
    │   │   │   ├── Card.tsx
    │   │   │   └── CardNative.tsx
    │   │   ├── Carousel
    │   │   │   ├── Carousel.md
    │   │   │   ├── Carousel.module.scss
    │   │   │   ├── Carousel.spec.ts
    │   │   │   ├── Carousel.tsx
    │   │   │   ├── CarouselContext.tsx
    │   │   │   ├── CarouselItem.tsx
    │   │   │   ├── CarouselItemNative.tsx
    │   │   │   └── CarouselNative.tsx
    │   │   ├── ChangeListener
    │   │   │   ├── ChangeListener.md
    │   │   │   ├── ChangeListener.spec.ts
    │   │   │   ├── ChangeListener.tsx
    │   │   │   └── ChangeListenerNative.tsx
    │   │   ├── chart-color-schemes.ts
    │   │   ├── Charts
    │   │   │   ├── AreaChart
    │   │   │   │   ├── AreaChart.md
    │   │   │   │   ├── AreaChart.spec.ts
    │   │   │   │   ├── AreaChart.tsx
    │   │   │   │   └── AreaChartNative.tsx
    │   │   │   ├── BarChart
    │   │   │   │   ├── BarChart.md
    │   │   │   │   ├── BarChart.module.scss
    │   │   │   │   ├── BarChart.spec.ts
    │   │   │   │   ├── BarChart.tsx
    │   │   │   │   └── BarChartNative.tsx
    │   │   │   ├── DonutChart
    │   │   │   │   ├── DonutChart.spec.ts
    │   │   │   │   └── DonutChart.tsx
    │   │   │   ├── LabelList
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   ├── LabelListNative.module.scss
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── DataSource
    │   │   │   ├── DataSource.md
    │   │   │   └── DataSource.tsx
    │   │   ├── DateInput
    │   │   │   ├── DateInput.md
    │   │   │   ├── DateInput.module.scss
    │   │   │   ├── DateInput.spec.ts
    │   │   │   ├── DateInput.tsx
    │   │   │   └── DateInputNative.tsx
    │   │   ├── DatePicker
    │   │   │   ├── DatePicker.md
    │   │   │   ├── DatePicker.module.scss
    │   │   │   ├── DatePicker.spec.ts
    │   │   │   ├── DatePicker.tsx
    │   │   │   └── DatePickerNative.tsx
    │   │   ├── DropdownMenu
    │   │   │   ├── DropdownMenu.md
    │   │   │   ├── DropdownMenu.module.scss
    │   │   │   ├── DropdownMenu.spec.ts
    │   │   │   ├── DropdownMenu.tsx
    │   │   │   ├── DropdownMenuNative.tsx
    │   │   │   ├── MenuItem.md
    │   │   │   └── SubMenuItem.md
    │   │   ├── EmojiSelector
    │   │   │   ├── EmojiSelector.md
    │   │   │   ├── EmojiSelector.spec.ts
    │   │   │   ├── EmojiSelector.tsx
    │   │   │   └── EmojiSelectorNative.tsx
    │   │   ├── ExpandableItem
    │   │   │   ├── ExpandableItem.module.scss
    │   │   │   ├── ExpandableItem.spec.ts
    │   │   │   ├── ExpandableItem.tsx
    │   │   │   └── ExpandableItemNative.tsx
    │   │   ├── FileInput
    │   │   │   ├── FileInput.md
    │   │   │   ├── FileInput.module.scss
    │   │   │   ├── FileInput.spec.ts
    │   │   │   ├── FileInput.tsx
    │   │   │   └── FileInputNative.tsx
    │   │   ├── FileUploadDropZone
    │   │   │   ├── FileUploadDropZone.md
    │   │   │   ├── FileUploadDropZone.module.scss
    │   │   │   ├── FileUploadDropZone.spec.ts
    │   │   │   ├── FileUploadDropZone.tsx
    │   │   │   └── FileUploadDropZoneNative.tsx
    │   │   ├── FlowLayout
    │   │   │   ├── FlowLayout.md
    │   │   │   ├── FlowLayout.module.scss
    │   │   │   ├── FlowLayout.spec.ts
    │   │   │   ├── FlowLayout.spec.ts-snapshots
    │   │   │   │   └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
    │   │   │   ├── FlowLayout.tsx
    │   │   │   └── FlowLayoutNative.tsx
    │   │   ├── Footer
    │   │   │   ├── Footer.md
    │   │   │   ├── Footer.module.scss
    │   │   │   ├── Footer.spec.ts
    │   │   │   ├── Footer.tsx
    │   │   │   └── FooterNative.tsx
    │   │   ├── Form
    │   │   │   ├── Form.md
    │   │   │   ├── Form.module.scss
    │   │   │   ├── Form.spec.ts
    │   │   │   ├── Form.tsx
    │   │   │   ├── formActions.ts
    │   │   │   ├── FormContext.ts
    │   │   │   └── FormNative.tsx
    │   │   ├── FormItem
    │   │   │   ├── FormItem.md
    │   │   │   ├── FormItem.module.scss
    │   │   │   ├── FormItem.spec.ts
    │   │   │   ├── FormItem.tsx
    │   │   │   ├── FormItemNative.tsx
    │   │   │   ├── HelperText.module.scss
    │   │   │   ├── HelperText.tsx
    │   │   │   ├── ItemWithLabel.tsx
    │   │   │   └── Validations.ts
    │   │   ├── FormSection
    │   │   │   ├── FormSection.md
    │   │   │   ├── FormSection.ts
    │   │   │   └── FormSection.xmlui
    │   │   ├── Fragment
    │   │   │   ├── Fragment.spec.ts
    │   │   │   └── Fragment.tsx
    │   │   ├── Heading
    │   │   │   ├── abstractions.ts
    │   │   │   ├── H1.md
    │   │   │   ├── H1.spec.ts
    │   │   │   ├── H2.md
    │   │   │   ├── H2.spec.ts
    │   │   │   ├── H3.md
    │   │   │   ├── H3.spec.ts
    │   │   │   ├── H4.md
    │   │   │   ├── H4.spec.ts
    │   │   │   ├── H5.md
    │   │   │   ├── H5.spec.ts
    │   │   │   ├── H6.md
    │   │   │   ├── H6.spec.ts
    │   │   │   ├── Heading.md
    │   │   │   ├── Heading.module.scss
    │   │   │   ├── Heading.spec.ts
    │   │   │   ├── Heading.tsx
    │   │   │   └── HeadingNative.tsx
    │   │   ├── HoverCard
    │   │   │   ├── HoverCard.tsx
    │   │   │   └── HovercardNative.tsx
    │   │   ├── HtmlTags
    │   │   │   ├── HtmlTags.module.scss
    │   │   │   ├── HtmlTags.spec.ts
    │   │   │   └── HtmlTags.tsx
    │   │   ├── Icon
    │   │   │   ├── AdmonitionDanger.tsx
    │   │   │   ├── AdmonitionInfo.tsx
    │   │   │   ├── AdmonitionNote.tsx
    │   │   │   ├── AdmonitionTip.tsx
    │   │   │   ├── AdmonitionWarning.tsx
    │   │   │   ├── ApiIcon.tsx
    │   │   │   ├── ArrowDropDown.module.scss
    │   │   │   ├── ArrowDropDown.tsx
    │   │   │   ├── ArrowDropUp.module.scss
    │   │   │   ├── ArrowDropUp.tsx
    │   │   │   ├── ArrowLeft.module.scss
    │   │   │   ├── ArrowLeft.tsx
    │   │   │   ├── ArrowRight.module.scss
    │   │   │   ├── ArrowRight.tsx
    │   │   │   ├── Attach.tsx
    │   │   │   ├── Binding.module.scss
    │   │   │   ├── Binding.tsx
    │   │   │   ├── BoardIcon.tsx
    │   │   │   ├── BoxIcon.tsx
    │   │   │   ├── CheckIcon.tsx
    │   │   │   ├── ChevronDownIcon.tsx
    │   │   │   ├── ChevronLeft.tsx
    │   │   │   ├── ChevronRight.tsx
    │   │   │   ├── ChevronUpIcon.tsx
    │   │   │   ├── CodeFileIcon.tsx
    │   │   │   ├── CodeSandbox.tsx
    │   │   │   ├── CompactListIcon.tsx
    │   │   │   ├── ContentCopyIcon.tsx
    │   │   │   ├── DarkToLightIcon.tsx
    │   │   │   ├── DatabaseIcon.module.scss
    │   │   │   ├── DatabaseIcon.tsx
    │   │   │   ├── DocFileIcon.tsx
    │   │   │   ├── DocIcon.tsx
    │   │   │   ├── DotMenuHorizontalIcon.tsx
    │   │   │   ├── DotMenuIcon.tsx
    │   │   │   ├── EmailIcon.tsx
    │   │   │   ├── EmptyFolderIcon.tsx
    │   │   │   ├── ErrorIcon.tsx
    │   │   │   ├── ExpressionIcon.tsx
    │   │   │   ├── FillPlusCricleIcon.tsx
    │   │   │   ├── FilterIcon.tsx
    │   │   │   ├── FolderIcon.tsx
    │   │   │   ├── GlobeIcon.tsx
    │   │   │   ├── HomeIcon.tsx
    │   │   │   ├── HyperLinkIcon.tsx
    │   │   │   ├── Icon.md
    │   │   │   ├── Icon.module.scss
    │   │   │   ├── Icon.spec.ts
    │   │   │   ├── Icon.tsx
    │   │   │   ├── IconNative.tsx
    │   │   │   ├── ImageFileIcon.tsx
    │   │   │   ├── Inspect.tsx
    │   │   │   ├── LightToDark.tsx
    │   │   │   ├── LinkIcon.tsx
    │   │   │   ├── ListIcon.tsx
    │   │   │   ├── LooseListIcon.tsx
    │   │   │   ├── MoonIcon.tsx
    │   │   │   ├── MoreOptionsIcon.tsx
    │   │   │   ├── NoSortIcon.tsx
    │   │   │   ├── PDFIcon.tsx
    │   │   │   ├── PenIcon.tsx
    │   │   │   ├── PhoneIcon.tsx
    │   │   │   ├── PhotoIcon.tsx
    │   │   │   ├── PlusIcon.tsx
    │   │   │   ├── SearchIcon.tsx
    │   │   │   ├── ShareIcon.tsx
    │   │   │   ├── SortAscendingIcon.tsx
    │   │   │   ├── SortDescendingIcon.tsx
    │   │   │   ├── StarsIcon.tsx
    │   │   │   ├── SunIcon.tsx
    │   │   │   ├── svg
    │   │   │   │   ├── admonition_danger.svg
    │   │   │   │   ├── admonition_info.svg
    │   │   │   │   ├── admonition_note.svg
    │   │   │   │   ├── admonition_tip.svg
    │   │   │   │   ├── admonition_warning.svg
    │   │   │   │   ├── api.svg
    │   │   │   │   ├── arrow-dropdown.svg
    │   │   │   │   ├── arrow-left.svg
    │   │   │   │   ├── arrow-right.svg
    │   │   │   │   ├── arrow-up.svg
    │   │   │   │   ├── attach.svg
    │   │   │   │   ├── binding.svg
    │   │   │   │   ├── box.svg
    │   │   │   │   ├── bulb.svg
    │   │   │   │   ├── code-file.svg
    │   │   │   │   ├── code-sandbox.svg
    │   │   │   │   ├── dark_to_light.svg
    │   │   │   │   ├── database.svg
    │   │   │   │   ├── doc.svg
    │   │   │   │   ├── empty-folder.svg
    │   │   │   │   ├── expression.svg
    │   │   │   │   ├── eye-closed.svg
    │   │   │   │   ├── eye-dark.svg
    │   │   │   │   ├── eye.svg
    │   │   │   │   ├── file-text.svg
    │   │   │   │   ├── filter.svg
    │   │   │   │   ├── folder.svg
    │   │   │   │   ├── img.svg
    │   │   │   │   ├── inspect.svg
    │   │   │   │   ├── light_to_dark.svg
    │   │   │   │   ├── moon.svg
    │   │   │   │   ├── pdf.svg
    │   │   │   │   ├── photo.svg
    │   │   │   │   ├── share.svg
    │   │   │   │   ├── stars.svg
    │   │   │   │   ├── sun.svg
    │   │   │   │   ├── trending-down.svg
    │   │   │   │   ├── trending-level.svg
    │   │   │   │   ├── trending-up.svg
    │   │   │   │   ├── txt.svg
    │   │   │   │   ├── unknown-file.svg
    │   │   │   │   ├── unlink.svg
    │   │   │   │   └── xls.svg
    │   │   │   ├── TableDeleteColumnIcon.tsx
    │   │   │   ├── TableDeleteRowIcon.tsx
    │   │   │   ├── TableInsertColumnIcon.tsx
    │   │   │   ├── TableInsertRowIcon.tsx
    │   │   │   ├── TrashIcon.tsx
    │   │   │   ├── TrendingDownIcon.tsx
    │   │   │   ├── TrendingLevelIcon.tsx
    │   │   │   ├── TrendingUpIcon.tsx
    │   │   │   ├── TxtIcon.tsx
    │   │   │   ├── UnknownFileIcon.tsx
    │   │   │   ├── UnlinkIcon.tsx
    │   │   │   ├── UserIcon.tsx
    │   │   │   ├── WarningIcon.tsx
    │   │   │   └── XlsIcon.tsx
    │   │   ├── IconProvider.tsx
    │   │   ├── IconRegistryContext.tsx
    │   │   ├── IFrame
    │   │   │   ├── IFrame.md
    │   │   │   ├── IFrame.module.scss
    │   │   │   ├── IFrame.spec.ts
    │   │   │   ├── IFrame.tsx
    │   │   │   └── IFrameNative.tsx
    │   │   ├── Image
    │   │   │   ├── Image.md
    │   │   │   ├── Image.module.scss
    │   │   │   ├── Image.spec.ts
    │   │   │   ├── Image.tsx
    │   │   │   └── ImageNative.tsx
    │   │   ├── Input
    │   │   │   ├── index.ts
    │   │   │   ├── InputAdornment.module.scss
    │   │   │   ├── InputAdornment.tsx
    │   │   │   ├── InputDivider.module.scss
    │   │   │   ├── InputDivider.tsx
    │   │   │   ├── InputLabel.module.scss
    │   │   │   ├── InputLabel.tsx
    │   │   │   ├── PartialInput.module.scss
    │   │   │   └── PartialInput.tsx
    │   │   ├── InspectButton
    │   │   │   ├── InspectButton.module.scss
    │   │   │   └── InspectButton.tsx
    │   │   ├── Items
    │   │   │   ├── Items.md
    │   │   │   ├── Items.spec.ts
    │   │   │   ├── Items.tsx
    │   │   │   └── ItemsNative.tsx
    │   │   ├── Link
    │   │   │   ├── Link.md
    │   │   │   ├── Link.module.scss
    │   │   │   ├── Link.spec.ts
    │   │   │   ├── Link.tsx
    │   │   │   └── LinkNative.tsx
    │   │   ├── List
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── List.md
    │   │   │   ├── List.module.scss
    │   │   │   ├── List.spec.ts
    │   │   │   ├── List.tsx
    │   │   │   └── ListNative.tsx
    │   │   ├── Logo
    │   │   │   ├── doc-resources
    │   │   │   │   └── xmlui-logo.svg
    │   │   │   ├── Logo.md
    │   │   │   ├── Logo.tsx
    │   │   │   └── LogoNative.tsx
    │   │   ├── Markdown
    │   │   │   ├── CodeText.module.scss
    │   │   │   ├── CodeText.tsx
    │   │   │   ├── Markdown.md
    │   │   │   ├── Markdown.module.scss
    │   │   │   ├── Markdown.spec.ts
    │   │   │   ├── Markdown.tsx
    │   │   │   ├── MarkdownNative.tsx
    │   │   │   ├── parse-binding-expr.ts
    │   │   │   └── utils.ts
    │   │   ├── metadata-helpers.ts
    │   │   ├── ModalDialog
    │   │   │   ├── ConfirmationModalContextProvider.tsx
    │   │   │   ├── Dialog.module.scss
    │   │   │   ├── Dialog.tsx
    │   │   │   ├── ModalDialog.md
    │   │   │   ├── ModalDialog.module.scss
    │   │   │   ├── ModalDialog.spec.ts
    │   │   │   ├── ModalDialog.tsx
    │   │   │   ├── ModalDialogNative.tsx
    │   │   │   └── ModalVisibilityContext.tsx
    │   │   ├── NavGroup
    │   │   │   ├── NavGroup.md
    │   │   │   ├── NavGroup.module.scss
    │   │   │   ├── NavGroup.spec.ts
    │   │   │   ├── NavGroup.tsx
    │   │   │   ├── NavGroupContext.ts
    │   │   │   └── NavGroupNative.tsx
    │   │   ├── NavLink
    │   │   │   ├── NavLink.md
    │   │   │   ├── NavLink.module.scss
    │   │   │   ├── NavLink.spec.ts
    │   │   │   ├── NavLink.tsx
    │   │   │   └── NavLinkNative.tsx
    │   │   ├── NavPanel
    │   │   │   ├── NavPanel.md
    │   │   │   ├── NavPanel.module.scss
    │   │   │   ├── NavPanel.spec.ts
    │   │   │   ├── NavPanel.tsx
    │   │   │   └── NavPanelNative.tsx
    │   │   ├── NestedApp
    │   │   │   ├── AppWithCodeView.module.scss
    │   │   │   ├── AppWithCodeView.tsx
    │   │   │   ├── AppWithCodeViewNative.tsx
    │   │   │   ├── defaultProps.tsx
    │   │   │   ├── logo.svg
    │   │   │   ├── NestedApp.module.scss
    │   │   │   ├── NestedApp.tsx
    │   │   │   ├── NestedAppNative.tsx
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── utils.ts
    │   │   ├── NoResult
    │   │   │   ├── NoResult.md
    │   │   │   ├── NoResult.module.scss
    │   │   │   ├── NoResult.spec.ts
    │   │   │   ├── NoResult.tsx
    │   │   │   └── NoResultNative.tsx
    │   │   ├── NumberBox
    │   │   │   ├── numberbox-abstractions.ts
    │   │   │   ├── NumberBox.md
    │   │   │   ├── NumberBox.module.scss
    │   │   │   ├── NumberBox.spec.ts
    │   │   │   ├── NumberBox.tsx
    │   │   │   └── NumberBoxNative.tsx
    │   │   ├── Option
    │   │   │   ├── Option.md
    │   │   │   ├── Option.spec.ts
    │   │   │   ├── Option.tsx
    │   │   │   ├── OptionNative.tsx
    │   │   │   └── OptionTypeProvider.tsx
    │   │   ├── PageMetaTitle
    │   │   │   ├── PageMetaTilteNative.tsx
    │   │   │   ├── PageMetaTitle.md
    │   │   │   ├── PageMetaTitle.spec.ts
    │   │   │   └── PageMetaTitle.tsx
    │   │   ├── Pages
    │   │   │   ├── Page.md
    │   │   │   ├── Pages.md
    │   │   │   ├── Pages.module.scss
    │   │   │   ├── Pages.tsx
    │   │   │   └── PagesNative.tsx
    │   │   ├── Pagination
    │   │   │   ├── Pagination.md
    │   │   │   ├── Pagination.module.scss
    │   │   │   ├── Pagination.spec.ts
    │   │   │   ├── Pagination.tsx
    │   │   │   └── PaginationNative.tsx
    │   │   ├── PositionedContainer
    │   │   │   ├── PositionedContainer.module.scss
    │   │   │   ├── PositionedContainer.tsx
    │   │   │   └── PositionedContainerNative.tsx
    │   │   ├── ProfileMenu
    │   │   │   ├── ProfileMenu.module.scss
    │   │   │   └── ProfileMenu.tsx
    │   │   ├── ProgressBar
    │   │   │   ├── ProgressBar.md
    │   │   │   ├── ProgressBar.module.scss
    │   │   │   ├── ProgressBar.spec.ts
    │   │   │   ├── ProgressBar.tsx
    │   │   │   └── ProgressBarNative.tsx
    │   │   ├── Queue
    │   │   │   ├── Queue.md
    │   │   │   ├── Queue.spec.ts
    │   │   │   ├── Queue.tsx
    │   │   │   ├── queueActions.ts
    │   │   │   └── QueueNative.tsx
    │   │   ├── RadioGroup
    │   │   │   ├── RadioGroup.md
    │   │   │   ├── RadioGroup.module.scss
    │   │   │   ├── RadioGroup.spec.ts
    │   │   │   ├── RadioGroup.tsx
    │   │   │   ├── RadioGroupNative.tsx
    │   │   │   ├── RadioItem.tsx
    │   │   │   └── RadioItemNative.tsx
    │   │   ├── RealTimeAdapter
    │   │   │   ├── RealTimeAdapter.tsx
    │   │   │   └── RealTimeAdapterNative.tsx
    │   │   ├── Redirect
    │   │   │   ├── Redirect.md
    │   │   │   ├── Redirect.spec.ts
    │   │   │   └── Redirect.tsx
    │   │   ├── ResponsiveBar
    │   │   │   ├── README.md
    │   │   │   ├── ResponsiveBar.md
    │   │   │   ├── ResponsiveBar.module.scss
    │   │   │   ├── ResponsiveBar.spec.ts
    │   │   │   ├── ResponsiveBar.tsx
    │   │   │   └── ResponsiveBarNative.tsx
    │   │   ├── Select
    │   │   │   ├── HiddenOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   └── SelectNative.tsx
    │   │   ├── SelectionStore
    │   │   │   ├── SelectionStore.md
    │   │   │   ├── SelectionStore.tsx
    │   │   │   └── SelectionStoreNative.tsx
    │   │   ├── Slider
    │   │   │   ├── Slider.md
    │   │   │   ├── Slider.module.scss
    │   │   │   ├── Slider.spec.ts
    │   │   │   ├── Slider.tsx
    │   │   │   └── SliderNative.tsx
    │   │   ├── Slot
    │   │   │   ├── Slot.md
    │   │   │   ├── Slot.spec.ts
    │   │   │   └── Slot.ts
    │   │   ├── SlotItem.tsx
    │   │   ├── SpaceFiller
    │   │   │   ├── SpaceFiller.md
    │   │   │   ├── SpaceFiller.module.scss
    │   │   │   ├── SpaceFiller.spec.ts
    │   │   │   ├── SpaceFiller.tsx
    │   │   │   └── SpaceFillerNative.tsx
    │   │   ├── Spinner
    │   │   │   ├── Spinner.md
    │   │   │   ├── Spinner.module.scss
    │   │   │   ├── Spinner.spec.ts
    │   │   │   ├── Spinner.tsx
    │   │   │   └── SpinnerNative.tsx
    │   │   ├── Splitter
    │   │   │   ├── HSplitter.md
    │   │   │   ├── HSplitter.spec.ts
    │   │   │   ├── Splitter.md
    │   │   │   ├── Splitter.module.scss
    │   │   │   ├── Splitter.spec.ts
    │   │   │   ├── Splitter.tsx
    │   │   │   ├── SplitterNative.tsx
    │   │   │   ├── utils.ts
    │   │   │   ├── VSplitter.md
    │   │   │   └── VSplitter.spec.ts
    │   │   ├── Stack
    │   │   │   ├── CHStack.md
    │   │   │   ├── CHStack.spec.ts
    │   │   │   ├── CVStack.md
    │   │   │   ├── CVStack.spec.ts
    │   │   │   ├── HStack.md
    │   │   │   ├── HStack.spec.ts
    │   │   │   ├── Stack.md
    │   │   │   ├── Stack.module.scss
    │   │   │   ├── Stack.spec.ts
    │   │   │   ├── Stack.tsx
    │   │   │   ├── StackNative.tsx
    │   │   │   ├── VStack.md
    │   │   │   └── VStack.spec.ts
    │   │   ├── StickyBox
    │   │   │   ├── StickyBox.md
    │   │   │   ├── StickyBox.module.scss
    │   │   │   ├── StickyBox.tsx
    │   │   │   └── StickyBoxNative.tsx
    │   │   ├── Switch
    │   │   │   ├── Switch.md
    │   │   │   ├── Switch.spec.ts
    │   │   │   └── Switch.tsx
    │   │   ├── Table
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── react-table-config.d.ts
    │   │   │   ├── Table.md
    │   │   │   ├── Table.module.scss
    │   │   │   ├── Table.spec.ts
    │   │   │   ├── Table.tsx
    │   │   │   ├── TableNative.tsx
    │   │   │   └── useRowSelection.tsx
    │   │   ├── TableOfContents
    │   │   │   ├── TableOfContents.module.scss
    │   │   │   ├── TableOfContents.spec.ts
    │   │   │   ├── TableOfContents.tsx
    │   │   │   └── TableOfContentsNative.tsx
    │   │   ├── Tabs
    │   │   │   ├── TabContext.tsx
    │   │   │   ├── TabItem.md
    │   │   │   ├── TabItem.tsx
    │   │   │   ├── TabItemNative.tsx
    │   │   │   ├── Tabs.md
    │   │   │   ├── Tabs.module.scss
    │   │   │   ├── Tabs.spec.ts
    │   │   │   ├── Tabs.tsx
    │   │   │   └── TabsNative.tsx
    │   │   ├── Text
    │   │   │   ├── Text.md
    │   │   │   ├── Text.module.scss
    │   │   │   ├── Text.spec.ts
    │   │   │   ├── Text.tsx
    │   │   │   └── TextNative.tsx
    │   │   ├── TextArea
    │   │   │   ├── TextArea.md
    │   │   │   ├── TextArea.module.scss
    │   │   │   ├── TextArea.spec.ts
    │   │   │   ├── TextArea.tsx
    │   │   │   ├── TextAreaNative.tsx
    │   │   │   ├── TextAreaResizable.tsx
    │   │   │   └── useComposedRef.ts
    │   │   ├── TextBox
    │   │   │   ├── TextBox.md
    │   │   │   ├── TextBox.module.scss
    │   │   │   ├── TextBox.spec.ts
    │   │   │   ├── TextBox.tsx
    │   │   │   └── TextBoxNative.tsx
    │   │   ├── Theme
    │   │   │   ├── NotificationToast.tsx
    │   │   │   ├── Theme.md
    │   │   │   ├── Theme.module.scss
    │   │   │   ├── Theme.spec.ts
    │   │   │   ├── Theme.tsx
    │   │   │   └── ThemeNative.tsx
    │   │   ├── TimeInput
    │   │   │   ├── TimeInput.md
    │   │   │   ├── TimeInput.module.scss
    │   │   │   ├── TimeInput.spec.ts
    │   │   │   ├── TimeInput.tsx
    │   │   │   ├── TimeInputNative.tsx
    │   │   │   └── utils.ts
    │   │   ├── Timer
    │   │   │   ├── Timer.md
    │   │   │   ├── Timer.spec.ts
    │   │   │   ├── Timer.tsx
    │   │   │   └── TimerNative.tsx
    │   │   ├── Toggle
    │   │   │   ├── Toggle.module.scss
    │   │   │   └── Toggle.tsx
    │   │   ├── ToneChangerButton
    │   │   │   ├── ToneChangerButton.md
    │   │   │   ├── ToneChangerButton.spec.ts
    │   │   │   └── ToneChangerButton.tsx
    │   │   ├── ToneSwitch
    │   │   │   ├── ToneSwitch.md
    │   │   │   ├── ToneSwitch.module.scss
    │   │   │   ├── ToneSwitch.spec.ts
    │   │   │   ├── ToneSwitch.tsx
    │   │   │   └── ToneSwitchNative.tsx
    │   │   ├── Tooltip
    │   │   │   ├── Tooltip.md
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.spec.ts
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── TooltipNative.tsx
    │   │   ├── Tree
    │   │   │   ├── testData.ts
    │   │   │   ├── Tree-dynamic.spec.ts
    │   │   │   ├── Tree-icons.spec.ts
    │   │   │   ├── Tree.md
    │   │   │   ├── Tree.spec.ts
    │   │   │   ├── TreeComponent.module.scss
    │   │   │   ├── TreeComponent.tsx
    │   │   │   └── TreeNative.tsx
    │   │   ├── TreeDisplay
    │   │   │   ├── TreeDisplay.md
    │   │   │   ├── TreeDisplay.module.scss
    │   │   │   ├── TreeDisplay.tsx
    │   │   │   └── TreeDisplayNative.tsx
    │   │   ├── ValidationSummary
    │   │   │   ├── ValidationSummary.module.scss
    │   │   │   └── ValidationSummary.tsx
    │   │   └── VisuallyHidden.tsx
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   ├── ComponentRenderer.ts
    │   │   │   ├── LoaderRenderer.ts
    │   │   │   ├── standalone.ts
    │   │   │   └── treeAbstractions.ts
    │   │   ├── action
    │   │   │   ├── actions.ts
    │   │   │   ├── APICall.tsx
    │   │   │   ├── FileDownloadAction.tsx
    │   │   │   ├── FileUploadAction.tsx
    │   │   │   ├── NavigateAction.tsx
    │   │   │   └── TimedAction.tsx
    │   │   ├── ApiBoundComponent.tsx
    │   │   ├── appContext
    │   │   │   ├── date-functions.ts
    │   │   │   ├── math-function.ts
    │   │   │   └── misc-utils.ts
    │   │   ├── AppContext.tsx
    │   │   ├── behaviors
    │   │   │   ├── Behavior.tsx
    │   │   │   └── CoreBehaviors.tsx
    │   │   ├── component-hooks.ts
    │   │   ├── ComponentDecorator.tsx
    │   │   ├── ComponentViewer.tsx
    │   │   ├── CompoundComponent.tsx
    │   │   ├── constants.ts
    │   │   ├── DebugViewProvider.tsx
    │   │   ├── descriptorHelper.ts
    │   │   ├── devtools
    │   │   │   ├── InspectorDialog.module.scss
    │   │   │   ├── InspectorDialog.tsx
    │   │   │   └── InspectorDialogVisibilityContext.tsx
    │   │   ├── EngineError.ts
    │   │   ├── event-handlers.ts
    │   │   ├── InspectorButton.module.scss
    │   │   ├── InspectorContext.tsx
    │   │   ├── interception
    │   │   │   ├── abstractions.ts
    │   │   │   ├── ApiInterceptor.ts
    │   │   │   ├── ApiInterceptorProvider.tsx
    │   │   │   ├── apiInterceptorWorker.ts
    │   │   │   ├── Backend.ts
    │   │   │   ├── Errors.ts
    │   │   │   ├── IndexedDb.ts
    │   │   │   ├── initMock.ts
    │   │   │   ├── InMemoryDb.ts
    │   │   │   ├── ReadonlyCollection.ts
    │   │   │   └── useApiInterceptorContext.tsx
    │   │   ├── loader
    │   │   │   ├── ApiLoader.tsx
    │   │   │   ├── DataLoader.tsx
    │   │   │   ├── ExternalDataLoader.tsx
    │   │   │   ├── Loader.tsx
    │   │   │   ├── MockLoaderRenderer.tsx
    │   │   │   └── PageableLoader.tsx
    │   │   ├── LoaderComponent.tsx
    │   │   ├── markup-check.ts
    │   │   ├── parts.ts
    │   │   ├── renderers.ts
    │   │   ├── rendering
    │   │   │   ├── AppContent.tsx
    │   │   │   ├── AppRoot.tsx
    │   │   │   ├── AppWrapper.tsx
    │   │   │   ├── buildProxy.ts
    │   │   │   ├── collectFnVarDeps.ts
    │   │   │   ├── ComponentAdapter.tsx
    │   │   │   ├── ComponentWrapper.tsx
    │   │   │   ├── Container.tsx
    │   │   │   ├── containers.ts
    │   │   │   ├── ContainerWrapper.tsx
    │   │   │   ├── ErrorBoundary.module.scss
    │   │   │   ├── ErrorBoundary.tsx
    │   │   │   ├── InvalidComponent.module.scss
    │   │   │   ├── InvalidComponent.tsx
    │   │   │   ├── nodeUtils.ts
    │   │   │   ├── reducer.ts
    │   │   │   ├── renderChild.tsx
    │   │   │   ├── StandaloneComponent.tsx
    │   │   │   ├── StateContainer.tsx
    │   │   │   ├── UnknownComponent.module.scss
    │   │   │   ├── UnknownComponent.tsx
    │   │   │   └── valueExtractor.ts
    │   │   ├── reportEngineError.ts
    │   │   ├── RestApiProxy.ts
    │   │   ├── script-runner
    │   │   │   ├── asyncProxy.ts
    │   │   │   ├── AttributeValueParser.ts
    │   │   │   ├── bannedFunctions.ts
    │   │   │   ├── BindingTreeEvaluationContext.ts
    │   │   │   ├── eval-tree-async.ts
    │   │   │   ├── eval-tree-common.ts
    │   │   │   ├── eval-tree-sync.ts
    │   │   │   ├── ParameterParser.ts
    │   │   │   ├── process-statement-async.ts
    │   │   │   ├── process-statement-common.ts
    │   │   │   ├── process-statement-sync.ts
    │   │   │   ├── ScriptingSourceTree.ts
    │   │   │   ├── simplify-expression.ts
    │   │   │   ├── statement-queue.ts
    │   │   │   └── visitors.ts
    │   │   ├── StandaloneApp.tsx
    │   │   ├── StandaloneExtensionManager.ts
    │   │   ├── TableOfContentsContext.tsx
    │   │   ├── theming
    │   │   │   ├── _themes.scss
    │   │   │   ├── component-layout-resolver.ts
    │   │   │   ├── extendThemeUtils.ts
    │   │   │   ├── hvar.ts
    │   │   │   ├── layout-resolver.ts
    │   │   │   ├── parse-layout-props.ts
    │   │   │   ├── StyleContext.tsx
    │   │   │   ├── StyleRegistry.ts
    │   │   │   ├── ThemeContext.tsx
    │   │   │   ├── ThemeProvider.tsx
    │   │   │   ├── themes
    │   │   │   │   ├── base-utils.ts
    │   │   │   │   ├── palette.ts
    │   │   │   │   ├── root.ts
    │   │   │   │   ├── solid.ts
    │   │   │   │   ├── theme-colors.ts
    │   │   │   │   └── xmlui.ts
    │   │   │   ├── themeVars.module.scss
    │   │   │   ├── themeVars.ts
    │   │   │   ├── transformThemeVars.ts
    │   │   │   └── utils.ts
    │   │   ├── utils
    │   │   │   ├── actionUtils.ts
    │   │   │   ├── audio-utils.ts
    │   │   │   ├── base64-utils.ts
    │   │   │   ├── compound-utils.ts
    │   │   │   ├── css-utils.ts
    │   │   │   ├── DataLoaderQueryKeyGenerator.ts
    │   │   │   ├── date-utils.ts
    │   │   │   ├── extractParam.ts
    │   │   │   ├── hooks.tsx
    │   │   │   ├── LruCache.ts
    │   │   │   ├── mergeProps.ts
    │   │   │   ├── misc.ts
    │   │   │   ├── request-params.ts
    │   │   │   ├── statementUtils.ts
    │   │   │   └── treeUtils.ts
    │   │   └── xmlui-parser.ts
    │   ├── index-standalone.ts
    │   ├── index.scss
    │   ├── index.ts
    │   ├── language-server
    │   │   ├── server-common.ts
    │   │   ├── server-web-worker.ts
    │   │   ├── server.ts
    │   │   ├── services
    │   │   │   ├── common
    │   │   │   │   ├── docs-generation.ts
    │   │   │   │   ├── lsp-utils.ts
    │   │   │   │   ├── metadata-utils.ts
    │   │   │   │   └── syntax-node-utilities.ts
    │   │   │   ├── completion.ts
    │   │   │   ├── diagnostic.ts
    │   │   │   ├── format.ts
    │   │   │   └── hover.ts
    │   │   └── xmlui-metadata-generated.js
    │   ├── logging
    │   │   ├── LoggerContext.tsx
    │   │   ├── LoggerInitializer.tsx
    │   │   ├── LoggerService.ts
    │   │   └── xmlui.ts
    │   ├── logo.svg
    │   ├── parsers
    │   │   ├── common
    │   │   │   ├── GenericToken.ts
    │   │   │   ├── InputStream.ts
    │   │   │   └── utils.ts
    │   │   ├── scripting
    │   │   │   ├── code-behind-collect.ts
    │   │   │   ├── Lexer.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── Parser.ts
    │   │   │   ├── ParserError.ts
    │   │   │   ├── ScriptingNodeTypes.ts
    │   │   │   ├── TokenTrait.ts
    │   │   │   ├── TokenType.ts
    │   │   │   └── tree-visitor.ts
    │   │   ├── style-parser
    │   │   │   ├── errors.ts
    │   │   │   ├── source-tree.ts
    │   │   │   ├── StyleInputStream.ts
    │   │   │   ├── StyleLexer.ts
    │   │   │   ├── StyleParser.ts
    │   │   │   └── tokens.ts
    │   │   └── xmlui-parser
    │   │       ├── CharacterCodes.ts
    │   │       ├── diagnostics.ts
    │   │       ├── fileExtensions.ts
    │   │       ├── index.ts
    │   │       ├── lint.ts
    │   │       ├── parser.ts
    │   │       ├── ParserError.ts
    │   │       ├── scanner.ts
    │   │       ├── syntax-kind.ts
    │   │       ├── syntax-node.ts
    │   │       ├── transform.ts
    │   │       ├── utils.ts
    │   │       ├── xmlui-serializer.ts
    │   │       └── xmlui-tree.ts
    │   ├── react-app-env.d.ts
    │   ├── syntax
    │   │   ├── monaco
    │   │   │   ├── grammar.monacoLanguage.ts
    │   │   │   ├── index.ts
    │   │   │   ├── xmlui-dark.ts
    │   │   │   ├── xmlui-light.ts
    │   │   │   └── xmluiscript.monacoLanguage.ts
    │   │   └── textMate
    │   │       ├── index.ts
    │   │       ├── xmlui-dark.json
    │   │       ├── xmlui-light.json
    │   │       ├── xmlui.json
    │   │       └── xmlui.tmLanguage.json
    │   ├── testing
    │   │   ├── assertions.ts
    │   │   ├── component-test-helpers.ts
    │   │   ├── ComponentDrivers.ts
    │   │   ├── drivers
    │   │   │   ├── DateInputDriver.ts
    │   │   │   ├── index.ts
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── index.ts
    │   │   ├── infrastructure
    │   │   │   ├── index.html
    │   │   │   ├── main.tsx
    │   │   │   ├── public
    │   │   │   │   ├── mockServiceWorker.js
    │   │   │   │   ├── resources
    │   │   │   │   │   ├── bell.svg
    │   │   │   │   │   ├── box.svg
    │   │   │   │   │   ├── doc.svg
    │   │   │   │   │   ├── eye.svg
    │   │   │   │   │   ├── flower-640x480.jpg
    │   │   │   │   │   ├── sun.svg
    │   │   │   │   │   ├── test-image-100x100.jpg
    │   │   │   │   │   └── txt.svg
    │   │   │   │   └── serve.json
    │   │   │   └── TestBed.tsx
    │   │   └── themed-app-test-helpers.ts
    │   └── vite-env.d.ts
    ├── tests
    │   ├── components
    │   │   ├── CodeBlock
    │   │   │   └── hightlight-code.test.ts
    │   │   ├── playground-pattern.test.ts
    │   │   └── Tree
    │   │       └── Tree-states.test.ts
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   └── treeAbstractions.test.ts
    │   │   ├── container
    │   │   │   └── buildProxy.test.ts
    │   │   ├── interception
    │   │   │   ├── orderBy.test.ts
    │   │   │   ├── ReadOnlyCollection.test.ts
    │   │   │   └── request-param-converter.test.ts
    │   │   ├── scripts-runner
    │   │   │   ├── AttributeValueParser.test.ts
    │   │   │   ├── eval-tree-arrow-async.test.ts
    │   │   │   ├── eval-tree-arrow.test.ts
    │   │   │   ├── eval-tree-func-decl-async.test.ts
    │   │   │   ├── eval-tree-func-decl.test.ts
    │   │   │   ├── eval-tree-pre-post.test.ts
    │   │   │   ├── eval-tree-regression.test.ts
    │   │   │   ├── eval-tree.test.ts
    │   │   │   ├── function-proxy.test.ts
    │   │   │   ├── parser-regression.test.ts
    │   │   │   ├── process-event.test.ts
    │   │   │   ├── process-function.test.ts
    │   │   │   ├── process-implicit-context.test.ts
    │   │   │   ├── process-statement-asgn.test.ts
    │   │   │   ├── process-statement-destruct.test.ts
    │   │   │   ├── process-statement-regs.test.ts
    │   │   │   ├── process-statement-sync.test.ts
    │   │   │   ├── process-statement.test.ts
    │   │   │   ├── process-switch-sync.test.ts
    │   │   │   ├── process-switch.test.ts
    │   │   │   ├── process-try-sync.test.ts
    │   │   │   ├── process-try.test.ts
    │   │   │   └── test-helpers.ts
    │   │   ├── test-metadata-handler.ts
    │   │   ├── theming
    │   │   │   ├── border-segments.test.ts
    │   │   │   ├── component-layout.resolver.test.ts
    │   │   │   ├── layout-property-parser.test.ts
    │   │   │   ├── layout-resolver.test.ts
    │   │   │   ├── layout-resolver2.test.ts
    │   │   │   ├── layout-vp-override.test.ts
    │   │   │   └── padding-segments.test.ts
    │   │   └── utils
    │   │       ├── date-utils.test.ts
    │   │       ├── format-human-elapsed-time.test.ts
    │   │       └── LruCache.test.ts
    │   ├── language-server
    │   │   ├── completion.test.ts
    │   │   ├── format.test.ts
    │   │   ├── hover.test.ts
    │   │   └── mockData.ts
    │   └── parsers
    │       ├── common
    │       │   └── input-stream.test.ts
    │       ├── markdown
    │       │   └── parse-binding-expression.test.ts
    │       ├── parameter-parser.test.ts
    │       ├── paremeter-parser.test.ts
    │       ├── scripting
    │       │   ├── eval-tree-arrow.test.ts
    │       │   ├── eval-tree-pre-post.test.ts
    │       │   ├── eval-tree.test.ts
    │       │   ├── function-proxy.test.ts
    │       │   ├── lexer-literals.test.ts
    │       │   ├── lexer-misc.test.ts
    │       │   ├── module-parse.test.ts
    │       │   ├── parser-arrow.test.ts
    │       │   ├── parser-assignments.test.ts
    │       │   ├── parser-binary.test.ts
    │       │   ├── parser-destructuring.test.ts
    │       │   ├── parser-errors.test.ts
    │       │   ├── parser-expressions.test.ts
    │       │   ├── parser-function.test.ts
    │       │   ├── parser-literals.test.ts
    │       │   ├── parser-primary.test.ts
    │       │   ├── parser-regex.test.ts
    │       │   ├── parser-statements.test.ts
    │       │   ├── parser-unary.test.ts
    │       │   ├── process-event.test.ts
    │       │   ├── process-implicit-context.test.ts
    │       │   ├── process-statement-asgn.test.ts
    │       │   ├── process-statement-destruct.test.ts
    │       │   ├── process-statement-regs.test.ts
    │       │   ├── process-statement-sync.test.ts
    │       │   ├── process-statement.test.ts
    │       │   ├── process-switch-sync.test.ts
    │       │   ├── process-switch.test.ts
    │       │   ├── process-try-sync.test.ts
    │       │   ├── process-try.test.ts
    │       │   ├── simplify-expression.test.ts
    │       │   ├── statement-hooks.test.ts
    │       │   └── test-helpers.ts
    │       ├── style-parser
    │       │   ├── generateHvarChain.test.ts
    │       │   ├── parseHVar.test.ts
    │       │   ├── parser.test.ts
    │       │   └── tokens.test.ts
    │       └── xmlui
    │           ├── lint.test.ts
    │           ├── parser.test.ts
    │           ├── scanner.test.ts
    │           ├── transform.attr.test.ts
    │           ├── transform.circular.test.ts
    │           ├── transform.element.test.ts
    │           ├── transform.errors.test.ts
    │           ├── transform.escape.test.ts
    │           ├── transform.regression.test.ts
    │           ├── transform.script.test.ts
    │           ├── transform.test.ts
    │           └── xmlui.ts
    ├── tests-e2e
    │   ├── api-bound-component-regression.spec.ts
    │   ├── api-call-as-extracted-component.spec.ts
    │   ├── assign-to-object-or-array-regression.spec.ts
    │   ├── binding-regression.spec.ts
    │   ├── children-as-template-context-vars.spec.ts
    │   ├── compound-component.spec.ts
    │   ├── context-vars-regression.spec.ts
    │   ├── data-bindings.spec.ts
    │   ├── datasource-and-api-usage-in-var.spec.ts
    │   ├── datasource-direct-binding.spec.ts
    │   ├── datasource-onLoaded-regression.spec.ts
    │   ├── modify-array-item-regression.spec.ts
    │   ├── namespaces.spec.ts
    │   ├── push-to-array-regression.spec.ts
    │   ├── screen-breakpoints.spec.ts
    │   ├── scripting.spec.ts
    │   ├── state-scope-in-pages.spec.ts
    │   └── state-var-scopes.spec.ts
    ├── tsconfig.bin.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

--------------------------------------------------------------------------------
/xmlui/src/components/TimeInput/TimeInput.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import styles from "./TimeInput.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import {
  6 |   createMetadata,
  7 |   d,
  8 |   dAutoFocus,
  9 |   dDidChange,
 10 |   dEnabled,
 11 |   dEndIcon,
 12 |   dEndText,
 13 |   dGotFocus,
 14 |   dInitialValue,
 15 |   dLostFocus,
 16 |   dReadonly,
 17 |   dStartIcon,
 18 |   dStartText,
 19 |   dValidationStatus,
 20 | } from "../metadata-helpers";
 21 | import { TimeInputNative, defaultProps } from "./TimeInputNative";
 22 | 
 23 | const COMP = "TimeInput";
 24 | 
 25 | export const TimeInputMd = createMetadata({
 26 |   status: "experimental",
 27 |   description:
 28 |     "`TimeInput` provides time input with support for 12-hour and 24-hour formats " +
 29 |     "and configurable precision for hours, minutes, and seconds.",
 30 |   parts: {
 31 |     hour: {
 32 |       description: "The hour input field.",
 33 |     },
 34 |     minute: {
 35 |       description: "The minute input field.",
 36 |     },
 37 |     second: {
 38 |       description: "The second input field.",
 39 |     },
 40 |     ampm: {
 41 |       description: "The AM/PM indicator.",
 42 |     },
 43 |     clearButton: {
 44 |       description: "The button to clear the time input.",
 45 |     },
 46 |   },
 47 |   props: {
 48 |     initialValue: dInitialValue(),
 49 |     autoFocus: dAutoFocus(),
 50 |     readOnly: dReadonly(),
 51 |     enabled: dEnabled(defaultProps.enabled),
 52 |     validationStatus: dValidationStatus(defaultProps.validationStatus),
 53 |     hour24: {
 54 |       description: "Whether to use 24-hour format (true) or 12-hour format with AM/PM (false)",
 55 |       valueType: "boolean",
 56 |       defaultValue: defaultProps.hour24,
 57 |     },
 58 |     seconds: {
 59 |       description: "Whether to show and allow input of seconds",
 60 |       valueType: "boolean", 
 61 |       defaultValue: defaultProps.seconds,
 62 |     },
 63 |     minTime: {
 64 |       description: "Minimum time that the user can select",
 65 |       valueType: "string",
 66 |     },
 67 |     maxTime: {
 68 |       description: "Maximum time that the user can select",
 69 |       valueType: "string",
 70 |     },
 71 |     clearable: {
 72 |       description: "Whether to show a clear button that allows clearing the selected time",
 73 |       valueType: "boolean",
 74 |       defaultValue: defaultProps.clearable,
 75 |     },
 76 |     clearIcon: {
 77 |       description: "The icon to display in the clear button.",
 78 |       valueType: "string",
 79 |     },
 80 |     clearToInitialValue: {
 81 |       description: "Whether the clear button resets the time input to its initial value",
 82 |       valueType: "boolean",
 83 |       defaultValue: defaultProps.clearToInitialValue,
 84 |     },
 85 |     required: {
 86 |       description: "Whether the time input should be required",
 87 |       valueType: "boolean",
 88 |       defaultValue: defaultProps.required,
 89 |     },
 90 |     startText: dStartText(),
 91 |     startIcon: dStartIcon(),
 92 |     endText: dEndText(),
 93 |     endIcon: dEndIcon(),
 94 |     gap: {
 95 |       description:
 96 |         "This property defines the gap between the adornments and the input area. If not " +
 97 |         "set, the gap declared by the current theme is used.",
 98 |       valueType: "string",
 99 |     },
100 |     emptyCharacter: {
101 |       description: "Character to use as placeholder for empty time values. If longer than 1 character, uses the first character. Defaults to '-'",
102 |       valueType: "string",
103 |       defaultValue: defaultProps.emptyCharacter,
104 |     },
105 |   },
106 |   events: {
107 |     didChange: dDidChange(COMP),
108 |     gotFocus: dGotFocus(COMP),
109 |     lostFocus: dLostFocus(COMP),
110 |     invalidTime: d("Fired when the user enters an invalid time"),
111 |   },
112 |   apis: {
113 |     focus: {
114 |       description: `Focus the ${COMP} component.`,
115 |       signature: "focus(): void",
116 |     },
117 |     value: {
118 |       description: `You can query the component's value. If no value is set, it will retrieve \`undefined\`.`,
119 |       signature: "get value(): any",
120 |     },
121 |     setValue: {
122 |       description: `This method sets the current value of the ${COMP}.`,
123 |       signature: "set value(value: any): void",
124 |       parameters: {
125 |         value: "The new time value to set for the time picker.",
126 |       },
127 |     },
128 |     isoValue: {
129 |       description: `Get the current time value formatted in ISO standard (HH:MM:SS) using 24-hour format, suitable for JSON serialization.`,
130 |       signature: "isoValue(): string | null",
131 |     },
132 |   },
133 |   themeVars: parseScssVar(styles.themeVars),
134 |   defaultThemeVars: {
135 |     // TimeInput specific theme variables
136 |     [`paddingHorizontal-${COMP}`]: "$space-2",
137 |     [`paddingVertical-${COMP}`]: "$space-2",
138 |     [`color-divider-${COMP}`]: "$textColor-secondary",
139 |     [`spacing-divider-${COMP}`]: "1px 0",
140 |     [`width-input-${COMP}`]: "1.8em",
141 |     [`minWidth-input-${COMP}`]: "0.54em",
142 |     [`padding-input-${COMP}`]: "0 2px",
143 |     [`textAlign-input-${COMP}`]: "center",
144 |     [`fontSize-input-${COMP}`]: "inherit",
145 |     [`borderRadius-input-${COMP}`]: "$borderRadius",
146 |     [`backgroundColor-input-${COMP}-invalid`]: "rgba(220, 53, 69, 0.15)",
147 |     [`padding-button-${COMP}`]: "4px 4px",
148 |     [`borderRadius-button-${COMP}`]: "$borderRadius",
149 |     [`hoverColor-button-${COMP}`]: "$color-surface-800",
150 |     [`disabledColor-button-${COMP}`]: "$textColor-disabled",
151 |     [`outlineColor-button-${COMP}--focused`]: "$color-accent-500",
152 |     [`outlineWidth-button-${COMP}--focused`]: "2px",
153 |     [`outlineOffset-button-${COMP}--focused`]: "0",
154 |     [`minWidth-ampm-${COMP}`]: "2.2em",
155 |     [`fontSize-ampm-${COMP}`]: "inherit",
156 |   },
157 | });
158 | 
159 | export const timeInputComponentRenderer = createComponentRenderer(
160 |   COMP,
161 |   TimeInputMd,
162 |   ({
163 |     node,
164 |     state,
165 |     updateState,
166 |     extractValue,
167 |     className,
168 |     lookupEventHandler,
169 |     registerComponentApi,
170 |   }) => {
171 |     const extractedInitialValue = extractValue(node.props.initialValue);
172 |     const stateValue = state?.value;
173 | 
174 |     return (
175 |       <TimeInputNative
176 |         className={className}
177 |         initialValue={extractedInitialValue}
178 |         value={stateValue}
179 |         updateState={updateState}
180 |         registerComponentApi={registerComponentApi}
181 |         enabled={extractValue.asOptionalBoolean(node.props.enabled, defaultProps.enabled)}
182 |         autoFocus={extractValue.asOptionalBoolean(node.props.autoFocus, defaultProps.autoFocus)}
183 |         readOnly={extractValue.asOptionalBoolean(node.props.readOnly, defaultProps.readOnly)}
184 |         validationStatus={extractValue(node.props.validationStatus)}
185 |         hour24={extractValue.asOptionalBoolean(node.props.hour24, defaultProps.hour24)}
186 |         seconds={extractValue.asOptionalBoolean(node.props.seconds, defaultProps.seconds)}
187 |         minTime={extractValue(node.props.minTime)}
188 |         maxTime={extractValue(node.props.maxTime)}
189 |         clearable={extractValue.asOptionalBoolean(node.props.clearable, defaultProps.clearable)}
190 |         clearIcon={extractValue(node.props.clearIcon)}
191 |         clearToInitialValue={extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps.clearToInitialValue)}
192 |         required={extractValue.asOptionalBoolean(node.props.required, defaultProps.required)}
193 |         startText={extractValue(node.props.startText)}
194 |         startIcon={extractValue(node.props.startIcon)}
195 |         endText={extractValue(node.props.endText)}
196 |         endIcon={extractValue(node.props.endIcon)}
197 |         gap={extractValue.asOptionalString(node.props.gap)}
198 |         emptyCharacter={extractValue.asOptionalString(node.props.emptyCharacter, defaultProps.emptyCharacter)}
199 |         onDidChange={lookupEventHandler("didChange")}
200 |         onFocus={lookupEventHandler("gotFocus")}
201 |         onBlur={lookupEventHandler("lostFocus")}
202 |         onInvalidChange={lookupEventHandler("invalidTime")}
203 |       />
204 |     );
205 |   },
206 | );
207 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/Pagination/Pagination.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import { createComponentRenderer } from "../../components-core/renderers";
  2 | import { parseScssVar } from "../../components-core/theming/themeVars";
  3 | import { createMetadata, d, dEnabled } from "../metadata-helpers";
  4 | import {
  5 |   PositionValues,
  6 |   defaultProps,
  7 |   type PageNumber,
  8 |   PageNumberValues,
  9 |   PaginationNative,
 10 | } from "./PaginationNative";
 11 | import styles from "./Pagination.module.scss";
 12 | import {
 13 |   orientationOptionMd,
 14 |   type OrientationOptions,
 15 |   orientationOptionValues,
 16 | } from "../abstractions";
 17 | 
 18 | const COMP = "Pagination";
 19 | 
 20 | export const PaginationMd = createMetadata({
 21 |   status: "experimental",
 22 |   description:
 23 |     "`Pagination` enables navigation through large datasets by dividing content into pages. " +
 24 |     "It provides controls for page navigation and can display current page information.",
 25 |   props: {
 26 |     enabled: dEnabled(),
 27 |     itemCount: d(
 28 |       "Total number of items to paginate. " +
 29 |         "If not provided, the component renders simplified pagination controls " +
 30 |         "that are enabled/disabled using the `hasPrevPage` and `hasNextPage` props.",
 31 |       undefined,
 32 |       "number",
 33 |     ),
 34 |     pageSize: d("Number of items per page", undefined, "number", defaultProps.pageSize),
 35 |     pageIndex: d("Current page index (0-based)", undefined, "number", defaultProps.pageIndex),
 36 |     maxVisiblePages: d(
 37 |       "Maximum number of page buttons to display. " +
 38 |         "If the value is not among the allowed values, it will fall back to the default.",
 39 |       PageNumberValues,
 40 |       "number",
 41 |       defaultProps.maxVisiblePages,
 42 |     ),
 43 |     showPageInfo: d(
 44 |       "Whether to show page information",
 45 |       undefined,
 46 |       "boolean",
 47 |       defaultProps.showPageInfo,
 48 |     ),
 49 |     showPageSizeSelector: d(
 50 |       "Whether to show the page size selector",
 51 |       undefined,
 52 |       "boolean",
 53 |       defaultProps.showPageSizeSelector,
 54 |     ),
 55 |     showCurrentPage: d(
 56 |       "Whether to show the current page indicator",
 57 |       undefined,
 58 |       "boolean",
 59 |       defaultProps.showCurrentPage,
 60 |     ),
 61 |     pageSizeOptions: d(
 62 |       "Array of page sizes the user can select from. If provided, shows a page size selector dropdown",
 63 |     ),
 64 |     hasPrevPage: d(
 65 |       "Whether to disable the previous page button. Only takes effect if itemCount is not provided.",
 66 |       undefined,
 67 |       "boolean",
 68 |     ),
 69 |     hasNextPage: d(
 70 |       "Whether to disable the next page button. Only takes effect if itemCount is not provided.",
 71 |       undefined,
 72 |       "boolean",
 73 |     ),
 74 |     orientation: {
 75 |       description: "Layout orientation of the pagination component",
 76 |       options: orientationOptionValues,
 77 |       type: "string",
 78 |       availableValues: orientationOptionMd,
 79 |       default: defaultProps.orientation,
 80 |     },
 81 |     pageSizeSelectorPosition: {
 82 |       description: "Determines where to place the page size selector in the layout.",
 83 |       options: PositionValues,
 84 |       type: "string",
 85 |       default: defaultProps.pageSizeSelectorPosition,
 86 |     },
 87 |     pageInfoPosition: {
 88 |       description: "Determines where to place the page information in the layout.",
 89 |       options: PositionValues,
 90 |       type: "string",
 91 |       default: defaultProps.pageInfoPosition,
 92 |     },
 93 |     buttonRowPosition: d(
 94 |       "Determines where to place the pagination button row in the layout.",
 95 |       PositionValues,
 96 |       "string",
 97 |       defaultProps.buttonRowPosition,
 98 |     ),
 99 |   },
100 |   events: {
101 |     pageDidChange: d("Fired when the current page changes"),
102 |     pageSizeDidChange: d("Fired when the page size changes"),
103 |   },
104 |   apis: {
105 |     moveFirst: {
106 |       description: "Moves to the first page",
107 |       signature: "moveFirst(): void",
108 |     },
109 |     moveLast: {
110 |       description: "Moves to the last page",
111 |       signature: "moveLast(): void",
112 |     },
113 |     movePrev: {
114 |       description: "Moves to the previous page",
115 |       signature: "movePrev(): void",
116 |     },
117 |     moveNext: {
118 |       description: "Moves to the next page",
119 |       signature: "moveNext(): void",
120 |     },
121 |     currentPage: {
122 |       description: "Gets the current page number (1-based)",
123 |     },
124 |     currentPageSize: {
125 |       description: "Gets the current page size",
126 |     },
127 |   },
128 |   themeVars: parseScssVar(styles.themeVars),
129 |   defaultThemeVars: {
130 |     "padding-Pagination": "$space-4",
131 |     "backgroundColor-Pagination": "transparent",
132 |     "borderColor-Pagination": "$color-gray-300",
133 |     "textColor-Pagination": "$color-gray-600",
134 |     "backgroundColor-selector-Pagination": "transparent",
135 |     "textColor-selector-Pagination": "$color-gray-600",
136 |     "borderRadius-selector-Pagination": "$borderRadius",
137 |     "gap-buttonRow-Pagination": "$space-2",
138 |   },
139 | });
140 | 
141 | export const paginationComponentRenderer = createComponentRenderer(
142 |   COMP,
143 |   PaginationMd,
144 |   ({ node, extractValue, lookupEventHandler, registerComponentApi, updateState, className }) => {
145 |     let maxVisiblePages = extractValue.asOptionalNumber(
146 |       node.props.maxVisiblePages,
147 |       defaultProps.maxVisiblePages,
148 |     );
149 |     if (!PageNumberValues.includes(maxVisiblePages as any)) {
150 |       console.warn(
151 |         `Invalid maxVisiblePages value provided To Pagination: ${maxVisiblePages}. Falling back to default.`,
152 |       );
153 |       maxVisiblePages = defaultProps.maxVisiblePages;
154 |     }
155 | 
156 |     let orientation = extractValue.asOptionalString(
157 |       node.props.orientation,
158 |       defaultProps.orientation,
159 |     );
160 |     if (!orientationOptionValues.includes(orientation as any)) {
161 |       console.warn(
162 |         `Invalid orientation value provided To Pagination: ${orientation}. Falling back to default.`,
163 |       );
164 |       orientation = defaultProps.orientation;
165 |     }
166 | 
167 |     return (
168 |       <PaginationNative
169 |         enabled={extractValue.asOptionalBoolean(node.props.enabled, true)}
170 |         itemCount={extractValue.asOptionalNumber(node.props.itemCount)}
171 |         pageSize={extractValue.asOptionalNumber(node.props.pageSize, defaultProps.pageSize)}
172 |         pageIndex={extractValue.asOptionalNumber(node.props.pageIndex, defaultProps.pageIndex)}
173 |         showPageInfo={extractValue.asOptionalBoolean(
174 |           node.props.showPageInfo,
175 |           defaultProps.showPageInfo,
176 |         )}
177 |         showPageSizeSelector={extractValue.asOptionalBoolean(
178 |           node.props.showPageSizeSelector,
179 |           defaultProps.showPageSizeSelector,
180 |         )}
181 |         showCurrentPage={extractValue.asOptionalBoolean(
182 |           node.props.showCurrentPage,
183 |           defaultProps.showCurrentPage,
184 |         )}
185 |         hasPrevPage={extractValue.asOptionalBoolean(node.props.hasPrevPage)}
186 |         hasNextPage={extractValue.asOptionalBoolean(node.props.hasNextPage)}
187 |         maxVisiblePages={maxVisiblePages as PageNumber}
188 |         pageSizeOptions={extractValue(node.props.pageSizeOptions) as number[] | undefined}
189 |         orientation={orientation as OrientationOptions}
190 |         buttonRowPosition={extractValue.asOptionalString(
191 |           node.props.buttonRowPosition,
192 |           defaultProps.buttonRowPosition,
193 |         )}
194 |         pageSizeSelectorPosition={extractValue.asOptionalString(
195 |           node.props.pageSizeSelectorPosition,
196 |           defaultProps.pageSizeSelectorPosition,
197 |         )}
198 |         pageInfoPosition={extractValue.asOptionalString(
199 |           node.props.pageInfoPosition,
200 |           defaultProps.pageInfoPosition,
201 |         )}
202 |         onPageDidChange={lookupEventHandler("pageDidChange")}
203 |         onPageSizeDidChange={lookupEventHandler("pageSizeDidChange")}
204 |         registerComponentApi={registerComponentApi}
205 |         updateState={updateState}
206 |         className={className}
207 |       />
208 |     );
209 |   },
210 | );
211 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/RadioGroup/RadioGroupNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import React, {
  2 |   createContext,
  3 |   type CSSProperties,
  4 |   type ForwardedRef,
  5 |   forwardRef,
  6 |   useCallback,
  7 |   useContext,
  8 |   useEffect,
  9 |   useId,
 10 |   useMemo,
 11 |   useRef,
 12 | } from "react";
 13 | import * as InnerRadioGroup from "@radix-ui/react-radio-group";
 14 | import classnames from "classnames";
 15 | 
 16 | import styles from "./RadioGroup.module.scss";
 17 | 
 18 | import type { RegisterComponentApiFn, UpdateStateFn } from "../../abstractions/RendererDefs";
 19 | import { noop } from "../../components-core/constants";
 20 | import { useEvent } from "../../components-core/utils/misc";
 21 | import type { Option, ValidationStatus } from "../abstractions";
 22 | import OptionTypeProvider from "../Option/OptionTypeProvider";
 23 | import { UnwrappedRadioItem } from "./RadioItemNative";
 24 | import { convertOptionValue } from "../Option/OptionNative";
 25 | 
 26 | type RadioGroupProps = {
 27 |   id?: string;
 28 |   initialValue?: string;
 29 |   autofocus?: boolean;
 30 |   value?: string;
 31 |   enabled?: boolean;
 32 |   style?: CSSProperties;
 33 |   className?: string;
 34 |   validationStatus?: ValidationStatus;
 35 |   label?: string;
 36 |   labelPosition?: string;
 37 |   labelWidth?: string;
 38 |   labelBreak?: boolean;
 39 |   required?: boolean;
 40 |   readOnly?: boolean;
 41 |   updateState?: UpdateStateFn;
 42 |   onDidChange?: (newValue: string) => void;
 43 |   onFocus?: (ev: React.FocusEvent<HTMLDivElement>) => void;
 44 |   onBlur?: (ev: React.FocusEvent<HTMLDivElement>) => void;
 45 |   children?: React.ReactNode;
 46 |   registerComponentApi?: RegisterComponentApiFn;
 47 | };
 48 | 
 49 | export const defaultProps: Pick<
 50 |   RadioGroupProps,
 51 |   "value" | "initialValue" | "enabled" | "validationStatus" | "required" | "readOnly"
 52 | > = {
 53 |   value: "",
 54 |   initialValue: "",
 55 |   enabled: true,
 56 |   validationStatus: "none" as ValidationStatus,
 57 |   required: false,
 58 |   readOnly: false,
 59 | };
 60 | 
 61 | const RadioGroupStatusContext = createContext<{
 62 |   value?: string;
 63 |   setValue?: (value: string) => void;
 64 |   status: ValidationStatus;
 65 |   enabled?: boolean;
 66 | }>({
 67 |   status: "none",
 68 |   enabled: defaultProps.enabled,
 69 | });
 70 | 
 71 | export const RadioGroup = forwardRef(function RadioGroup(
 72 |   {
 73 |     id,
 74 |     value = defaultProps.value,
 75 |     initialValue = defaultProps.initialValue,
 76 |     autofocus,
 77 |     enabled = defaultProps.enabled,
 78 |     validationStatus = defaultProps.validationStatus,
 79 |     label,
 80 |     labelPosition,
 81 |     labelWidth,
 82 |     labelBreak,
 83 |     required = defaultProps.required,
 84 |     readOnly = defaultProps.readOnly,
 85 |     updateState = noop,
 86 |     onDidChange = noop,
 87 |     onFocus = noop,
 88 |     onBlur = noop,
 89 |     children,
 90 |     registerComponentApi,
 91 |     style,
 92 |     className,
 93 |     ...rest
 94 |   }: RadioGroupProps,
 95 |   forwardedRef: ForwardedRef<HTMLDivElement>,
 96 | ) {
 97 |   const [focused, setFocused] = React.useState(false);
 98 |   const radioGroupRef = useRef<HTMLDivElement>(null);
 99 | 
100 |   // --- Initialize the related field with the input's initial value
101 |   useEffect(() => {
102 |     updateState({ value: convertOptionValue(initialValue) }, { initial: true });
103 |   }, [initialValue, updateState]);
104 | 
105 |   // --- Handle autofocus by focusing the first radio option
106 |   useEffect(() => {
107 |     if (autofocus && radioGroupRef.current) {
108 |       // Find the first radio item element
109 |       const firstRadioItem = radioGroupRef.current.querySelector('[role="radio"]');
110 |       if (firstRadioItem) {
111 |         (firstRadioItem as HTMLElement).focus();
112 |       }
113 |     }
114 |   }, [autofocus]);
115 | 
116 |   // --- Custom focus handler for label clicks
117 |   const focusActiveOption = useCallback(() => {
118 |     if (radioGroupRef.current) {
119 |       // First try to find the currently selected radio option
120 |       const selectedRadio = radioGroupRef.current.querySelector('[role="radio"][aria-checked="true"]');
121 |       if (selectedRadio) {
122 |         (selectedRadio as HTMLElement).focus();
123 |         return;
124 |       }
125 |       
126 |       // If no option is selected, focus the first one
127 |       const firstRadio = radioGroupRef.current.querySelector('[role="radio"]');
128 |       if (firstRadio) {
129 |         (firstRadio as HTMLElement).focus();
130 |       }
131 |     }
132 |   }, []);
133 | 
134 |   // --- Handle the value change events for this input
135 | 
136 |   const updateValue = useCallback(
137 |     (value: string) => {
138 |       updateState({ value });
139 |       onDidChange(value);
140 |     },
141 |     [onDidChange, updateState],
142 |   );
143 | 
144 |   const onInputChange = useCallback(
145 |     (value: string) => {
146 |       if (readOnly) return;
147 |       updateValue(value);
148 |     },
149 |     [updateValue, readOnly],
150 |   );
151 | 
152 |   // --- Manage obtaining and losing the focus
153 |   const handleOnFocus = useCallback(
154 |     (ev: React.FocusEvent<HTMLDivElement, Element>) => {
155 |       setFocused(true);
156 |       onFocus?.(ev);
157 |     },
158 |     [onFocus],
159 |   );
160 | 
161 |   const handleOnBlur = useCallback(
162 |     (ev: React.FocusEvent<HTMLDivElement, Element>) => {
163 |       setFocused(false);
164 |       onBlur?.(ev);
165 |     },
166 |     [onBlur],
167 |   );
168 | 
169 |   const setValue = useEvent((val: string) => {
170 |     updateValue(val);
171 |   });
172 | 
173 |   useEffect(() => {
174 |     registerComponentApi?.({
175 |       //focus,
176 |       setValue,
177 |     });
178 |   }, [/* focus, */ registerComponentApi, setValue]);
179 | 
180 |   const contextValue = useMemo(() => {
181 |     return { value, setValue: updateValue, status: validationStatus, enabled };
182 |   }, [value, updateValue, validationStatus, enabled]);
183 | 
184 |   return (
185 |     <OptionTypeProvider Component={RadioGroupOption}>
186 |       <RadioGroupStatusContext.Provider value={contextValue}>
187 |         <InnerRadioGroup.Root
188 |           {...rest}
189 |           style={style}
190 |           ref={radioGroupRef}
191 |           id={id}
192 |           onBlur={handleOnBlur}
193 |           onFocus={handleOnFocus}
194 |           onValueChange={onInputChange}
195 |           value={value}
196 |           disabled={!enabled}
197 |           required={required}
198 |           aria-readonly={readOnly}
199 |           className={classnames(className, styles.radioGroupContainer, {
200 |             [styles.focused]: focused,
201 |             [styles.disabled]: !enabled,
202 |           })}
203 |         >
204 |           {children}
205 |         </InnerRadioGroup.Root>
206 |       </RadioGroupStatusContext.Provider>
207 |     </OptionTypeProvider>
208 |   );
209 | });
210 | 
211 | export const RadioGroupOption = ({
212 |   value,
213 |   label,
214 |   enabled = true,
215 |   optionRenderer,
216 |   style,
217 |   className,
218 | }: Option) => {
219 |   const id = useId();
220 |   const radioGroupContext = useContext(RadioGroupStatusContext);
221 | 
222 |   const statusStyles = useMemo(
223 |     () => ({
224 |       [styles.disabled]: radioGroupContext.enabled === false ? true : !enabled,
225 |       [styles.error]: value === radioGroupContext.value && radioGroupContext.status === "error",
226 |       [styles.warning]: value === radioGroupContext.value && radioGroupContext.status === "warning",
227 |       [styles.valid]: value === radioGroupContext.value && radioGroupContext.status === "valid",
228 |     }),
229 |     [enabled, radioGroupContext, value],
230 |   );
231 | 
232 |   const item = useMemo(
233 |     () => (
234 |       <>
235 |         <UnwrappedRadioItem
236 |           id={id}
237 |           value={value}
238 |           checked={value === radioGroupContext.value}
239 |           disabled={!enabled}
240 |           statusStyles={statusStyles}
241 |         />
242 |         <label htmlFor={id} className={classnames(styles.label, statusStyles)}>
243 |           {label ?? value}
244 |         </label>
245 |       </>
246 |     ),
247 |     [enabled, id, label, statusStyles, value, radioGroupContext],
248 |   );
249 | 
250 |   return (
251 |     <div
252 |       key={id}
253 |       className={classnames(styles.radioOptionContainer, className)}
254 |       style={style}
255 |       data-radio-item
256 |     >
257 |       {!!optionRenderer ? (
258 |         <label className={styles.optionLabel}>
259 |           <div className={styles.itemContainer}>{item}</div>
260 |           {optionRenderer({
261 |             $checked: value === radioGroupContext.value,
262 |             $setChecked: radioGroupContext.setValue,
263 |           })}
264 |         </label>
265 |       ) : (
266 |         item
267 |       )}
268 |     </div>
269 |   );
270 | };
271 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/ModalDialog/ModalDialog.spec.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { expect, test } from "../../testing/fixtures";
  2 | 
  3 | // =============================================================================
  4 | // OPEN/CLOSE TESTS
  5 | // =============================================================================
  6 | 
  7 | test.describe("Open/Close", () => {
  8 |   test("Imperative open - without params", async ({ page, initTestBed }) => {
  9 |     await initTestBed(`
 10 |       <Fragment>
 11 |         <Button testId="button" onClick="modal.open()">open modal (imperative)</Button>
 12 |         <ModalDialog id="modal">
 13 |           <Text testId="textInModal">Hello</Text>
 14 |         </ModalDialog>
 15 |       </Fragment>
 16 |     `);
 17 | 
 18 |     await expect(page.getByTestId("textInModal")).not.toBeVisible();
 19 |     await page.getByTestId("button").click();
 20 |     await expect(page.getByTestId("textInModal")).toBeVisible();
 21 |   });
 22 | 
 23 |   test("Imperative open - with param inside", async ({ page, initTestBed }) => {
 24 |     await initTestBed(`
 25 |       <Fragment>
 26 |         <Button testId="button" onClick="modal.open('PARAM_VALUE')">open modal (imperative)</Button>
 27 |         <ModalDialog id="modal">
 28 |           <Text testId="textInModal">{$param}</Text>
 29 |         </ModalDialog>
 30 |       </Fragment>
 31 |     `);
 32 | 
 33 |     await page.getByTestId("button").click();
 34 |     await expect(page.getByTestId("textInModal")).toHaveText("PARAM_VALUE");
 35 |   });
 36 | 
 37 |   test("Imperative open - with multiple param inside", async ({ page, initTestBed }) => {
 38 |     await initTestBed(`
 39 |       <Fragment>
 40 |         <Button testId="button" onClick="modal.open('PARAM_VALUE1', 'PARAM_VALUE2')">open modal (imperative)</Button>
 41 |         <ModalDialog id="modal">
 42 |           <Text testId="textInModal1">{$params[0]}</Text>
 43 |           <Text testId="textInModal2">{$params[1]}</Text>
 44 |         </ModalDialog>
 45 |       </Fragment>
 46 |     `);
 47 | 
 48 |     await page.getByTestId("button").click();
 49 |     await expect(page.getByTestId("textInModal1")).toHaveText("PARAM_VALUE1");
 50 |     await expect(page.getByTestId("textInModal2")).toHaveText("PARAM_VALUE2");
 51 |   });
 52 | 
 53 |   test("Imperative open - with param in title", async ({ page, initTestBed }) => {
 54 |     await initTestBed(`
 55 |       <Fragment>
 56 |         <Button testId="button" onClick="modal.open('PARAM_VALUE')">open modal (imperative)</Button>
 57 |         <ModalDialog id="modal" title="{$param}"/>
 58 |       </Fragment>
 59 |     `);
 60 | 
 61 |     await page.getByTestId("button").click();
 62 |     await expect(page.getByTestId("modal").getByRole("heading")).toHaveText("PARAM_VALUE");
 63 |   });
 64 | 
 65 |   test("Preserves $item context variable from Table Column", async ({ page, initTestBed }) => {
 66 |     await initTestBed(`
 67 |       <Table data='{[
 68 |         {id: 1, company: "Acme Corp", order: 1},
 69 |       ]}'>
 70 |         <Column>
 71 |           <ModalDialog id="dialog" testId="dialog" title="{$item.company}">
 72 |             <Text testId="modal-text">{JSON.stringify($item)}</Text>
 73 |           </ModalDialog>
 74 |           <Button testId="btn-{$itemIndex}" onClick="dialog.open()">{$item.company}</Button>
 75 |         </Column>
 76 |       </Table>
 77 |     `);
 78 | 
 79 |     // Test first row
 80 |     await page.getByTestId("btn-0").click();
 81 |     const modal = page.getByTestId("dialog");
 82 |     await expect(modal).toBeVisible();
 83 |     await expect(modal).toContainText("Acme Corp");
 84 |   });
 85 | 
 86 |   test("Declarative open/close", async ({ page, initTestBed }) => {
 87 |     await initTestBed(`
 88 |     <Fragment var.isOpen="{false}">
 89 |       <Button testId="button" onClick="isOpen = true">open modal</Button>
 90 |       <ModalDialog when="{isOpen}" onClose="isOpen = false" testId="modal">
 91 |         <Text testId="textInModal">Hello</Text>
 92 |       </ModalDialog>
 93 |       <Text testId="isOpen">{isOpen + ''}</Text>
 94 |     </Fragment>
 95 |   `);
 96 | 
 97 |     await expect(page.getByTestId("textInModal")).not.toBeVisible();
 98 |     await expect(page.getByTestId("isOpen")).toHaveText("false");
 99 |     await page.getByTestId("button").click();
100 |     await expect(page.getByTestId("textInModal")).toBeVisible();
101 |     await expect(page.getByTestId("isOpen")).toHaveText("true");
102 |     //click modal close button
103 |     await page.getByTestId("modal").getByRole("button").click();
104 |     await expect(page.getByTestId("textInModal")).not.toBeVisible();
105 |     await expect(page.getByTestId("isOpen")).toHaveText("false");
106 |   });
107 | 
108 |   test("maxWidth works", async ({ page, initTestBed, createModalDialogDriver }) => {
109 |     await initTestBed(`
110 |       <Fragment>
111 |         <Button testId="button" onClick="modal.open()">open modal (imperative)</Button>
112 |         <ModalDialog id="modal" maxWidth="250px">
113 |           <Text testId="textInModal">Hello</Text>
114 |         </ModalDialog>
115 |       </Fragment>
116 |     `);
117 | 
118 |     const modal = await createModalDialogDriver("modal");
119 | 
120 |     await expect(modal.component).not.toBeVisible();
121 |     await expect(page.getByTestId("textInModal")).not.toBeVisible();
122 |     await page.getByTestId("button").click();
123 |     await expect(modal.component).toBeVisible();
124 |     await expect(modal.component).toHaveCSS("max-width", "250px");
125 |     await expect(page.getByTestId("textInModal")).toBeVisible();
126 |   });
127 | 
128 |   test("backgroundColor works", async ({ page, initTestBed, createModalDialogDriver }) => {
129 |     await initTestBed(`
130 |       <Fragment>
131 |         <Button testId="button" onClick="modal.open()">open modal (imperative)</Button>
132 |         <ModalDialog id="modal" backgroundColor="rgb(255, 255, 0)">
133 |           <Text testId="textInModal">Hello</Text>
134 |         </ModalDialog>
135 |       </Fragment>
136 |     `);
137 | 
138 |     const modal = await createModalDialogDriver("modal");
139 | 
140 |     await page.getByTestId("button").click();
141 |     await expect(modal.component).toBeVisible();
142 |     await expect(modal.component).toHaveCSS("background-color", "rgb(255, 255, 0)");
143 |     await expect(page.getByTestId("textInModal")).toBeVisible();
144 |   });
145 | 
146 | 
147 |   test("modal is scrollable in fullScreen mode and hides background content", async ({ page, initTestBed, createModalDialogDriver }) => {
148 |     await initTestBed(`
149 |       <Fragment>
150 |         <!-- Background page content that should be completely hidden by the modal -->
151 |         <VStack testId="pageContent" height="300vh" backgroundColor="lightblue">
152 |           <Button testId="button" onClick="modal.open()">
153 |             open modal
154 |           </Button>
155 |           <Stack height="*" verticalAlignment="end">
156 |               <Text testId="pageBottomText">
157 |                   Should be hidden
158 |               </Text>
159 |           </Stack>
160 |         </VStack>
161 |         <ModalDialog id="modal" fullScreen="{true}">
162 |           <VStack>
163 |             <Text testId="textInModal">
164 |               Content that should be scrollable
165 |             </Text>
166 |             <Stack
167 |               testId="longContent"
168 |               height="300vh"
169 |               verticalAlignment="end">
170 |               <Text testId="bottomText">
171 |                 Long content
172 |               </Text>
173 |             </Stack>
174 |           </VStack>
175 |         </ModalDialog>
176 |       </Fragment>
177 |     `);
178 | 
179 |     const modal = await createModalDialogDriver("modal");
180 | 
181 |     // Verify page content is initially visible before opening modal
182 |     await expect(page.getByTestId("pageContent")).toBeVisible();
183 |   
184 |     await expect(page.getByTestId("pageEndText")).not.toBeInViewport();
185 |     
186 |     // Open the modal
187 |     await page.getByTestId("button").click();
188 |     await expect(modal.component).toBeVisible();
189 | 
190 |     
191 |     
192 |     // Verify modal completely covers page content - all page content should be hidden
193 |     await expect(page.getByTestId("textInModal")).toBeVisible();
194 |     await expect(page.getByTestId("bottomText")).not.toBeInViewport();
195 | 
196 |     await page.getByTestId("bottomText").scrollIntoViewIfNeeded();
197 | 
198 |     await expect(page.getByTestId("pageBottomText")).not.toBeInViewport();
199 |   });
200 | });
201 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/TreeDisplay/TreeDisplayNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import { type CSSProperties, type ForwardedRef, forwardRef, type ReactNode, useMemo } from "react";
  2 | import classnames from "classnames";
  3 | 
  4 | import styles from "./TreeDisplay.module.scss";
  5 | 
  6 | type TreeNode = {
  7 |   label: string;
  8 |   level: number;
  9 |   children: TreeNode[];
 10 |   isLast?: boolean;
 11 | };
 12 | 
 13 | type Props = {
 14 |   style?: CSSProperties;
 15 |   className?: string;
 16 |   children?: ReactNode;
 17 |   content?: string;
 18 |   itemHeight?: number;
 19 | };
 20 | 
 21 | export const defaultProps: Pick<Props, "content" | "itemHeight"> = {
 22 |   content: "",
 23 |   itemHeight: 20
 24 | };
 25 | 
 26 | // Parse the indented text into a tree structure
 27 | const parseTreeContent = (content: string): TreeNode[] => {
 28 |   if (!content) return [];
 29 | 
 30 |   const lines = content.split("\n").filter((line) => line.trim());
 31 |   if (lines.length === 0) return [];
 32 | 
 33 |   const rootNodes: TreeNode[] = [];
 34 |   const levelMap: { [level: number]: TreeNode[] } = {};
 35 | 
 36 |   lines.forEach((line) => {
 37 |     // Count leading spaces to determine level
 38 |     const leadingSpaces = line.length - line.trimLeft().length;
 39 |     const currentLevel = leadingSpaces;
 40 |     const label = line.trim();
 41 |     const node: TreeNode = { label, level: currentLevel, children: [] };
 42 | 
 43 |     // If we're at level 0, this is a root node
 44 |     if (currentLevel === 0) {
 45 |       rootNodes.push(node);
 46 |       levelMap[0] = rootNodes;
 47 |       return;
 48 |     }
 49 | 
 50 |     // Find the nearest parent level
 51 |     let parentLevel = currentLevel - 1;
 52 |     while (parentLevel >= 0) {
 53 |       if (levelMap[parentLevel] && levelMap[parentLevel].length > 0) {
 54 |         // Get the last node at the parent level
 55 |         const parent = levelMap[parentLevel][levelMap[parentLevel].length - 1];
 56 |         parent.children.push(node);
 57 | 
 58 |         // Initialize or update this level's map entry
 59 |         if (!levelMap[currentLevel]) {
 60 |           levelMap[currentLevel] = [];
 61 |         }
 62 |         levelMap[currentLevel].push(node);
 63 |         return;
 64 |       }
 65 |       parentLevel--;
 66 |     }
 67 | 
 68 |     // If we get here, something is wrong with the tree structure
 69 |     // Add to root as fallback
 70 |     rootNodes.push(node);
 71 |   });
 72 | 
 73 |   // Mark last children at each level for correct connector rendering
 74 |   const markLastChildren = (nodes: TreeNode[]) => {
 75 |     if (nodes.length > 0) {
 76 |       nodes[nodes.length - 1].isLast = true;
 77 |       nodes.forEach((node) => {
 78 |         if (node.children.length > 0) {
 79 |           markLastChildren(node.children);
 80 |         }
 81 |       });
 82 |     }
 83 |   };
 84 | 
 85 |   markLastChildren(rootNodes);
 86 |   return rootNodes;
 87 | };
 88 | 
 89 | // Calculate the total height of a node and its descendants
 90 | const calculateNodeHeight = (node: TreeNode, itemHeight: number): number => {
 91 |   if (node.children.length === 0) {
 92 |     return itemHeight; // Single node height
 93 |   }
 94 |   return (
 95 |     itemHeight +
 96 |     node.children.reduce((acc, child) => acc + calculateNodeHeight(child, itemHeight), 0)
 97 |   );
 98 | };
 99 | 
100 | // Render a node and its children with SVG line connectors
101 | const renderTreeNode = (
102 |   node: TreeNode,
103 |   index: number,
104 |   itemHeight: number,
105 |   level = 0,
106 |   ancestorLines: boolean[] = [],
107 | ): JSX.Element => {
108 |   const isLast = node.isLast;
109 |   const isRoot = level === 0;
110 |   const hasChildren = node.children.length > 0;
111 |   const nodeHeight = hasChildren ? calculateNodeHeight(node, itemHeight) : itemHeight;
112 |   const halfHeight = itemHeight / 2;
113 |   return (
114 |     <div key={`${node.label}-${index}`} className={styles.treeNode}>
115 |       <div className={styles.treeNodeRow} style={{ height: `${itemHeight}px` }}>
116 |         <div
117 |           className={styles.connectorArea}
118 |           style={{
119 |             marginLeft: `${level * itemHeight}px`,
120 |             width: `${itemHeight}px`,
121 |             height: `${itemHeight}px`,
122 |           }}
123 |         >
124 |           {/* Single SVG for all connector lines at this level */}
125 |           <svg
126 |             className={styles.connector}
127 |             width={itemHeight}
128 |             height={hasChildren ? nodeHeight : itemHeight}
129 |             viewBox={`0 0 ${itemHeight} ${hasChildren ? nodeHeight : itemHeight}`}
130 |             style={{ position: "absolute", top: 0, left: 0 }}
131 |           >
132 |             {isRoot && (
133 |               <>
134 |                 {/* Horizontal line from the left edge to the text */}
135 |                 <line
136 |                   x1={halfHeight}
137 |                   y1={halfHeight}
138 |                   x2={itemHeight}
139 |                   y2={halfHeight}
140 |                   strokeWidth="1.5"
141 |                   className={styles.connectorLine}
142 |                 />
143 |               </>
144 |             )}
145 |             {!isRoot && (
146 |               <>
147 |                 {/* Vertical line from top */}
148 |                 <line
149 |                   x1={halfHeight}
150 |                   y1={0}
151 |                   x2={halfHeight}
152 |                   y2={isLast ? halfHeight : itemHeight}
153 |                   strokeWidth="1.5"
154 |                   className={styles.connectorLine}
155 |                 />
156 | 
157 |                 {/* Horizontal line to content */}
158 |                 <line
159 |                   x1={halfHeight}
160 |                   y1={halfHeight}
161 |                   x2={itemHeight}
162 |                   y2={halfHeight}
163 |                   strokeWidth="1.5"
164 |                   className={styles.connectorLine}
165 |                 />
166 |               </>
167 |             )}
168 | 
169 |             {/* Vertical line down through children if not last child */}
170 |             {!isLast && hasChildren && (
171 |               <line
172 |                 x1={halfHeight}
173 |                 y1={halfHeight}
174 |                 x2={halfHeight}
175 |                 y2={nodeHeight}
176 |                 strokeWidth="1.5"
177 |                 className={styles.connectorLine}
178 |               />
179 |             )}
180 | 
181 |             {/* Render ancestor vertical lines */}
182 |             {ancestorLines.map(
183 |               (shouldDraw, i) =>
184 |                 shouldDraw && (
185 |                   <line
186 |                     key={`ancestor-${i}`}
187 |                     x1={halfHeight - (level - i) * itemHeight}
188 |                     y1={0}
189 |                     x2={halfHeight - (level - i) * itemHeight}
190 |                     y2={nodeHeight}
191 |                     strokeWidth="1.5"
192 |                     className={styles.connectorLine}
193 |                   />
194 |                 ),
195 |             )}
196 |           </svg>
197 |         </div>
198 |         <div className={styles.treeNodeContent} style={{ lineHeight: `${itemHeight}px` }}>
199 |           {node.label}
200 |         </div>
201 |       </div>
202 | 
203 |       {hasChildren && (
204 |         <div className={styles.childrenContainer}>
205 |           {node.children.map((child, i) => {
206 |             // Create new ancestor lines array for child nodes
207 |             const newAncestorLines = [...ancestorLines];
208 |             while (newAncestorLines.length <= level) {
209 |               newAncestorLines.push(false);
210 |             }
211 |             // Set current level's line status: draw if this child is not the last child
212 |             newAncestorLines[level] = i !== node.children.length - 1;
213 |             return renderTreeNode(child, i, itemHeight, level + 1, newAncestorLines);
214 |           })}
215 |         </div>
216 |       )}
217 |     </div>
218 |   );
219 | };
220 | 
221 | export const TreeDisplay = forwardRef(function TreeDisplay(
222 |   { style, className, children, content = defaultProps.content, itemHeight = defaultProps.itemHeight }: Props,
223 |   forwardedRef: ForwardedRef<HTMLDivElement>,
224 | ) {
225 |   const contentString = (content || children?.toString() || "").toString();
226 | 
227 |   const treeNodes = useMemo(() => parseTreeContent(contentString), [contentString]);
228 | 
229 |   return (
230 |     <div className={classnames(styles.treeDisplay, className)} style={style} ref={forwardedRef}>
231 |       <div className={styles.content}>
232 |         {treeNodes.map((node, index) => renderTreeNode(node, index, itemHeight, 0, []))}
233 |       </div>
234 |     </div>
235 |   );
236 | });
237 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/Animation/AnimationNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import { animated, useSpring, useInView } from "@react-spring/web";
  2 | import type { ForwardedRef } from "react";
  3 | import React, { Children, forwardRef, useEffect, useId, useMemo, useState } from "react";
  4 | import { useCallback } from "react";
  5 | import { composeRefs } from "@radix-ui/react-compose-refs";
  6 | 
  7 | import type { RegisterComponentApiFn } from "../..";
  8 | import { isPlainObject } from "lodash-es";
  9 | 
 10 | export type AnimationProps = {
 11 |   children?: React.ReactNode;
 12 |   animation: any;
 13 |   registerComponentApi?: RegisterComponentApiFn;
 14 |   onStop?: () => void;
 15 |   onStart?: () => void;
 16 |   animateWhenInView?: boolean;
 17 |   duration?: number;
 18 |   reverse?: boolean;
 19 |   loop?: boolean;
 20 |   once?: boolean;
 21 |   delay?: number;
 22 | };
 23 | 
 24 | const AnimatedComponent = animated(
 25 |   forwardRef(function InlineComponentDef(props: any, ref: ForwardedRef<any>) {
 26 |     const { children, ...rest } = props;
 27 | 
 28 |     if (!React.isValidElement(children)) {
 29 |       return children;
 30 |     }
 31 |     return React.cloneElement(children, { ...rest, ref });
 32 |   }),
 33 | );
 34 | 
 35 | export const defaultProps: Pick<
 36 |   AnimationProps,
 37 |   "delay" | "animateWhenInView" | "reverse" | "loop" | "once"
 38 | > = {
 39 |   delay: 0,
 40 |   animateWhenInView: false,
 41 |   reverse: false,
 42 |   loop: false,
 43 |   once: false,
 44 | };
 45 | 
 46 | export const parseAnimation = (animation: string | object): object => {
 47 |   if (typeof animation === "object") {
 48 |     return animation;
 49 |   }
 50 | 
 51 |   const presetAnimations: Record<string, object> = {
 52 |     fadein: {
 53 |       from: { opacity: 0 },
 54 |       to: { opacity: 1 },
 55 |     },
 56 |     fadeout: {
 57 |       from: { opacity: 1 },
 58 |       to: { opacity: 0 },
 59 |     },
 60 |     slidein: {
 61 |       from: { transform: "translateX(-100%)" },
 62 |       to: { transform: "translateX(0%)" },
 63 |     },
 64 |     slideout: {
 65 |       from: { transform: "translateX(0%)" },
 66 |       to: { transform: "translateX(100%)" },
 67 |     },
 68 |     popin: {
 69 |       from: { transform: "scale(0.8)", opacity: 0 },
 70 |       to: { transform: "scale(1)", opacity: 1 },
 71 |     },
 72 |     popout: {
 73 |       from: { transform: "scale(1)", opacity: 1 },
 74 |       to: { transform: "scale(0.8)", opacity: 0 },
 75 |     },
 76 |     flipin: {
 77 |       from: { transform: "rotateY(90deg)", opacity: 0 },
 78 |       to: { transform: "rotateY(0deg)", opacity: 1 },
 79 |     },
 80 |     flipout: {
 81 |       from: { transform: "rotateY(0deg)", opacity: 1 },
 82 |       to: { transform: "rotateY(90deg)", opacity: 0 },
 83 |     },
 84 |     rotatein: {
 85 |       from: { transform: "rotate(-180deg)", opacity: 0 },
 86 |       to: { transform: "rotate(0deg)", opacity: 1 },
 87 |     },
 88 |     rotateout: {
 89 |       from: { transform: "rotate(0deg)", opacity: 1 },
 90 |       to: { transform: "rotate(180deg)", opacity: 0 },
 91 |     },
 92 |     zoomin: {
 93 |       from: { transform: "scale(0)", opacity: 0 },
 94 |       to: { transform: "scale(1)", opacity: 1 },
 95 |     },
 96 |     zoomout: {
 97 |       from: { transform: "scale(1)", opacity: 1 },
 98 |       to: { transform: "scale(0)", opacity: 0 },
 99 |     },
100 |   };
101 | 
102 |   return presetAnimations[animation] || { from: {}, to: {} };
103 | };
104 | 
105 | /**
106 |  * Helper function to parse a single animation-specific option value.
107 |  */
108 | function parseAnimationOptionValue(name: string, value: string): any {
109 |   switch (name) {
110 |     case "duration":
111 |     case "delay":
112 |       const num = parseInt(value, 10);
113 |       return isNaN(num) ? undefined : num;
114 | 
115 |     case "animateWhenInView":
116 |     case "reverse":
117 |     case "loop":
118 |     case "once":
119 |       const lowerVal = value.toLowerCase();
120 |       if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
121 |       if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
122 |       return undefined;
123 | 
124 |     default:
125 |       return undefined;
126 |   }
127 | }
128 | 
129 | /**
130 |  * Parses animation options from a string or object.
131 |  */
132 | export function parseAnimationOptions(input: any): Partial<AnimationProps> {
133 |   if (isPlainObject(input)) {
134 |     return input as Partial<AnimationProps>;
135 |   }
136 | 
137 |   if (typeof input === "string") {
138 |     const options: Partial<AnimationProps> = {};
139 |     const values = input
140 |       .split(";")
141 |       .map((value) => value.trim())
142 |       .filter((value) => value.length > 0);
143 | 
144 |     for (const value of values) {
145 |       if (value.includes(":")) {
146 |         const [name, val] = value.split(":").map((part) => part.trim());
147 |         if (name && val) {
148 |           const parsedValue = parseAnimationOptionValue(name, val);
149 |           if (parsedValue !== undefined) {
150 |             (options as any)[name] = parsedValue;
151 |           }
152 |         }
153 |       } else {
154 |         const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
155 |         if (booleanOptions.includes(value)) {
156 |           (options as any)[value] = true;
157 |         } else if (value.startsWith("!") && value.length > 1) {
158 |           const optionName = value.substring(1);
159 |           if (booleanOptions.includes(optionName)) {
160 |             (options as any)[optionName] = false;
161 |           }
162 |         }
163 |       }
164 |     }
165 |     return options;
166 |   }
167 | 
168 |   return {};
169 | }
170 | 
171 | export const Animation = forwardRef(function Animation(
172 |   {
173 |     children,
174 |     registerComponentApi,
175 |     animation,
176 |     duration,
177 |     onStop,
178 |     onStart,
179 |     delay = defaultProps.delay,
180 |     animateWhenInView = defaultProps.animateWhenInView,
181 |     reverse = defaultProps.reverse,
182 |     loop = defaultProps.loop,
183 |     once = defaultProps.once,
184 |     ...rest
185 |   }: AnimationProps,
186 |   forwardedRef: ForwardedRef<HTMLDivElement>,
187 | ) {
188 |   const [_animation] = useState(animation);
189 |   const [toggle, setToggle] = useState(false);
190 |   const [reset, setReset] = useState(false);
191 |   const [count, setCount] = useState(0);
192 |   const times = 1;
193 |   const animationId = useId();
194 | 
195 |   const animationSettings = useMemo<any>(
196 |     () => ({
197 |       from: _animation.from,
198 |       to: _animation.to,
199 |       config: {
200 |         ..._animation.config,
201 |         duration,
202 |       },
203 |       delay,
204 |       loop,
205 |       reset,
206 |       reverse: toggle,
207 |       onRest: () => {
208 |         onStop?.();
209 |         if (loop) {
210 |           if (reverse) {
211 |             setCount(count + 1);
212 |             setToggle(!toggle);
213 |           }
214 |           setReset(true);
215 |         } else {
216 |           if (reverse && count < times) {
217 |             setCount(count + 1);
218 |             setToggle(!toggle);
219 |           }
220 |         }
221 |       },
222 |       onStart: () => {
223 |         onStart?.();
224 |       },
225 |     }),
226 |     [
227 |       _animation.config,
228 |       _animation.from,
229 |       _animation.to,
230 |       count,
231 |       delay,
232 |       duration,
233 |       loop,
234 |       onStart,
235 |       onStop,
236 |       reset,
237 |       once,
238 |       reverse,
239 |       toggle,
240 |     ],
241 |   );
242 | 
243 |   const [springs, api] = useSpring(
244 |     () => ({
245 |       ...animationSettings,
246 |     }),
247 |     [animationSettings],
248 |   );
249 | 
250 |   const [ref, animationStyles] = useInView(() => animationSettings, {
251 |     once,
252 |   });
253 |   const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
254 | 
255 |   const startAnimation = useCallback(() => {
256 |     void api.start(_animation);
257 |     return () => {
258 |       api.stop();
259 |     };
260 |   }, [_animation, api]);
261 | 
262 |   const stopAnimation = useCallback(() => {
263 |     api.stop();
264 |   }, [api]);
265 | 
266 |   useEffect(() => {
267 |     registerComponentApi?.({
268 |       start: startAnimation,
269 |       stop: stopAnimation,
270 |     });
271 |   }, [registerComponentApi, startAnimation, stopAnimation]);
272 | 
273 |   const content = useMemo(() => {
274 |     return Children.map(children, (child, index) =>
275 |       animateWhenInView ? (
276 |         <AnimatedComponent key={index} {...rest} style={animationStyles} ref={composedRef}>
277 |           {child}
278 |         </AnimatedComponent>
279 |       ) : (
280 |         <AnimatedComponent key={index} {...rest} style={springs} ref={forwardedRef}>
281 |           {child}
282 |         </AnimatedComponent>
283 |       ),
284 |     );
285 |   }, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
286 | 
287 |   return content;
288 | });
289 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/ChangeListener/ChangeListener.spec.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { test, expect } from "../../testing/fixtures";
  2 | 
  3 | // =============================================================================
  4 | // BASIC FUNCTIONALITY TESTS
  5 | // =============================================================================
  6 | 
  7 | test("component fires didChange event when listenTo value changes", async ({
  8 |   page,
  9 |   initTestBed,
 10 | }) => {
 11 |   await initTestBed(
 12 |     `<App var.counter="{0}" var.oneBigger="{1}">
 13 |       <Button label="Increment" onClick="{counter++}" />
 14 |       <ChangeListener
 15 |         listenTo="{counter}"
 16 |         onDidChange="oneBigger = counter + 1" />
 17 |       <Text testId="counterText">{counter}</Text>
 18 |       <Text testId="oneBiggerText">{oneBigger}</Text>
 19 |     </App>`,
 20 |   );
 21 | 
 22 |   const counterText = page.getByTestId("counterText");
 23 |   const oneBiggerText = page.getByTestId("oneBiggerText");
 24 | 
 25 |   await expect(counterText).toHaveText("0");
 26 |   await expect(oneBiggerText).toHaveText("1");
 27 | 
 28 |   await page.getByRole("button", { name: "Increment" }).click();
 29 | 
 30 |   await expect(counterText).toHaveText("1");
 31 |   await expect(oneBiggerText).toHaveText("2");
 32 | });
 33 | 
 34 | test("component does not fire event when unrelated values change", async ({
 35 |   page,
 36 |   initTestBed,
 37 | }) => {
 38 |   await initTestBed(
 39 |     `<App var.a="{0}" var.counter="{0}" var.oneBigger="{1}">
 40 |       <Button label="Increment" onClick="{counter++}" />
 41 |       <ChangeListener
 42 |         listenTo="{a}"
 43 |         onDidChange="oneBigger = counter + 1" />
 44 |       <Text testId="counterText">{counter}</Text>
 45 |       <Text testId="oneBiggerText">{oneBigger}</Text>
 46 |     </App>`,
 47 |   );
 48 | 
 49 |   const counterText = page.getByTestId("counterText");
 50 |   const oneBiggerText = page.getByTestId("oneBiggerText");
 51 | 
 52 |   await expect(counterText).toHaveText("0");
 53 |   await expect(oneBiggerText).toHaveText("1");
 54 | 
 55 |   await page.getByRole("button", { name: "Increment" }).click();
 56 | 
 57 |   await expect(counterText).toHaveText("1");
 58 |   await expect(oneBiggerText).toHaveText("1");
 59 | });
 60 | 
 61 | test("component passes both previous and new values to the handler", async ({
 62 |   page,
 63 |   initTestBed,
 64 | }) => {
 65 |   await initTestBed(`
 66 |     <VStack var.counter="{0}" var.clone="{0}">
 67 |       <Button testId="button" onClick="counter++">Increment</Button>
 68 |       <Text testId="text">{clone}</Text>
 69 |       <ChangeListener
 70 |         listenTo="{counter}"
 71 |         onDidChange="chg => clone = chg.prevValue + '|' + chg.newValue" />
 72 |     </VStack>
 73 |   `);
 74 | 
 75 |   // Click the button to change the counter value
 76 |   await page.locator("button").click();
 77 | 
 78 |   // Check that the event fired and testState was updated
 79 |   await expect(page.getByTestId("text")).toHaveText("0|1");
 80 | });
 81 | 
 82 | // =============================================================================
 83 | // EDGE CASE TESTS
 84 | // =============================================================================
 85 | 
 86 | test("component handles complex data types", async ({ page, initTestBed }) => {
 87 |   await initTestBed(`
 88 |     <VStack var.data="{{ a: 1, b: [2, { counter: 10}] }}" var.clone="{0}">
 89 |       <Button testId="incRelevant" onClick="data.b[1].counter++">Increment</Button>
 90 |       <Button testId="incIrrelevant" onClick="data.a++">Increment irrelevant</Button>
 91 |       <Text testId="text">{clone}</Text>
 92 |       <ChangeListener
 93 |         listenTo="{data.b[1].counter}"
 94 |         onDidChange="chg => clone = chg.newValue" />
 95 |     </VStack>
 96 |   `);
 97 | 
 98 |   await expect(page.getByTestId("text")).toHaveText("10");
 99 | 
100 |   // make sure the irrelevant parts of the data doesn't get listenedTo
101 |   await page.getByTestId("incIrrelevant").click();
102 |   await expect(page.getByTestId("text")).toHaveText("10");
103 | 
104 |   await page.getByTestId("incRelevant").click();
105 | 
106 |   // Check that the event fired and testState was updated
107 |   await expect(page.getByTestId("text")).toHaveText("11");
108 | });
109 | 
110 | test("component handles undefined and null values", async ({ page, initTestBed }) => {
111 |   await initTestBed(`
112 |     <VStack var.counter="{0}" var.clone="{0}">
113 |       <Button testId="setNull" onClick="counter = null">Set Null</Button>
114 |       <Button testId="setUndefined" onClick="counter = undefined">Set Undefined</Button>
115 |       <Button testId="setValue" onClick="counter = 3">Set Value</Button>
116 |       <Text testId="text">
117 |         {clone === undefined ? 'undefined' : JSON.stringify(clone)}
118 |       </Text>
119 |       <ChangeListener listenTo="{counter}" onDidChange="chg => clone = chg.newValue" />
120 |     </VStack>`);
121 | 
122 |   await page.getByTestId("setNull").click();
123 |   await expect(page.getByTestId("text")).toHaveText("null");
124 |   await page.getByTestId("setUndefined").click();
125 |   await expect(page.getByTestId("text")).toHaveText("undefined");
126 |   await page.getByTestId("setValue").click();
127 |   await expect(page.getByTestId("text")).toHaveText("3");
128 | });
129 | 
130 | test("component doesn't fire on identical primitive values", async ({ page, initTestBed }) => {
131 |   await initTestBed(`
132 |     <VStack var.counter="{0}" var.clicked="{0}" var.data="{1}">
133 |       <Button testId="setToPrimitive" onClick="clicked++; data = data + 1 - 1">
134 |         Set The Same Primitive
135 |       </Button>
136 |       <Text testId="text">{clicked}|{counter}|{data}</Text>
137 |       <ChangeListener listenTo="{data}" onDidChange="counter++" />
138 |     </VStack>
139 |   `);
140 | 
141 |   await expect(page.getByTestId("text")).toHaveText("0|1|1");
142 |   await page.locator("button").click();
143 |   await expect(page.getByTestId("text")).toHaveText("1|1|1");
144 |   await page.locator("button").click();
145 |   await expect(page.getByTestId("text")).toHaveText("2|1|1");
146 | });
147 | 
148 | // =============================================================================
149 | // INTEGRATION TESTS
150 | // =============================================================================
151 | 
152 | test("component works with multiple listeners on the same value", async ({ page, initTestBed }) => {
153 |   await initTestBed(`
154 |     <VStack var.counter1="{0}" var.counter2="{0}" var.clicked="{0}">
155 |       <Button testId="setToPrimitive" onClick="clicked++;">
156 |         Set The Same Primitive
157 |       </Button>
158 |       <Text testId="text">{clicked}|{counter1}|{counter2}</Text>
159 |       <ChangeListener listenTo="{clicked}" onDidChange="counter1++" />
160 |       <ChangeListener listenTo="{clicked}" onDidChange="counter2++" />
161 |     </VStack>
162 |   `);
163 | 
164 |   await expect(page.getByTestId("text")).toHaveText("0|1|1");
165 |   await page.locator("button").click();
166 |   await expect(page.getByTestId("text")).toHaveText("1|2|2");
167 |   await page.locator("button").click();
168 |   await expect(page.getByTestId("text")).toHaveText("2|3|3");
169 | });
170 | 
171 | test("component works with conditional rendering", async ({ page, initTestBed }) => {
172 |   await initTestBed(`
173 |     <VStack var.counter="{0}" var.clone="{0}" var.show="{false}">
174 |       <Button testId="button" onClick="counter++">Increment</Button>
175 |       <Button testId="showButton" onClick="show = !show">Toggle Show</Button>
176 |       <Text testId="text">
177 |         {clone}
178 |       </Text>
179 |       <ChangeListener
180 |         when="{show}"
181 |         listenTo="{counter}"
182 |         onDidChange="clone = counter" />
183 |     </VStack>
184 |   `);
185 | 
186 |   // Click the button to change the counter value
187 |   await page.getByTestId("button").click();
188 |   await expect(page.getByTestId("text")).toHaveText("0");
189 |   await page.getByTestId("button").click();
190 |   await expect(page.getByTestId("text")).toHaveText("0");
191 |   await page.getByTestId("button").click();
192 |   await expect(page.getByTestId("text")).toHaveText("0");
193 |   await page.getByTestId("showButton").click();
194 |   await expect(page.getByTestId("text")).toHaveText("3");
195 |   await page.getByTestId("button").click();
196 |   await expect(page.getByTestId("text")).toHaveText("4");
197 |   await page.getByTestId("showButton").click();
198 |   await page.getByTestId("button").click();
199 |   await expect(page.getByTestId("text")).toHaveText("4");
200 | });
201 | 
```

--------------------------------------------------------------------------------
/docs/content/components/ColorPicker.md:
--------------------------------------------------------------------------------

```markdown
  1 | # ColorPicker [#colorpicker]
  2 | 
  3 | `ColorPicker` enables users to choose colors by specifying RGB, HSL, or HEX values.
  4 | 
  5 | ## Using `ColorPicker` [#using-colorpicker]
  6 | 
  7 | This component allows you to edit or select a color using RGB, HSL, or CSS HEX notation. It displays a popup over the UI and lets you use the mouse or keyboard to edit or select a color.
  8 | 
  9 | ```xmlui-pg copy display name="Example: using ColorPicker"
 10 | <App>
 11 |   <ColorPicker id="colorPicker" label="Select your favorite color" />
 12 |   <Text>Selected color: {colorPicker.value}</Text>
 13 | </App>
 14 | ```
 15 | 
 16 | ## Properties [#properties]
 17 | 
 18 | ### `autoFocus` (default: false) [#autofocus-default-false]
 19 | 
 20 | If this property is set to `true`, the component gets the focus automatically when displayed.
 21 | 
 22 | ### `enabled` (default: true) [#enabled-default-true]
 23 | 
 24 | This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).
 25 | 
 26 | ### `initialValue` [#initialvalue]
 27 | 
 28 | This property sets the component's initial value.
 29 | 
 30 | ```xmlui-pg copy display name="Example: using ColorPicker"
 31 | <App>
 32 |   <ColorPicker 
 33 |     id="colorPicker" 
 34 |     label="Select your favorite color" 
 35 |     initialValue="#ff0080"
 36 |     />
 37 |   <Text>Selected color: {colorPicker.value}</Text>
 38 | </App>
 39 | ```
 40 | 
 41 | ### `readOnly` (default: false) [#readonly-default-false]
 42 | 
 43 | Set this property to `true` to disallow changing the component value.
 44 | 
 45 | ```xmlui-pg copy display name="Example: readOnly"
 46 | <App>
 47 |   <ColorPicker initialValue="#ffff00" label="Cannot be edited" readOnly />
 48 | </App>
 49 | ```
 50 | 
 51 | ### `required` (default: false) [#required-default-false]
 52 | 
 53 | Set this property to `true` to indicate it must have a value before submitting the containing form.
 54 | 
 55 | ### `validationStatus` (default: "none") [#validationstatus-default-none]
 56 | 
 57 | This property allows you to set the validation status of the input component.
 58 | 
 59 | Available values:
 60 | 
 61 | | Value | Description |
 62 | | --- | --- |
 63 | | `valid` | Visual indicator for an input that is accepted |
 64 | | `warning` | Visual indicator for an input that produced a warning |
 65 | | `error` | Visual indicator for an input that produced an error |
 66 | 
 67 | ```xmlui-pg copy display name="Example: validationStatus"
 68 | <App>
 69 |   <ColorPicker initialValue="#c0c0ff" label="Valid" validationStatus="valid" />
 70 |   <ColorPicker initialValue="#c0c0ff" label="Warning" validationStatus="warning" />
 71 |   <ColorPicker initialValue="#c0c0ff" label="Error" validationStatus="error" />
 72 | </App>
 73 | ```
 74 | 
 75 | ## Events [#events]
 76 | 
 77 | ### `didChange` [#didchange]
 78 | 
 79 | This event is triggered when value of ColorPicker has changed.
 80 | 
 81 | ### `gotFocus` [#gotfocus]
 82 | 
 83 | This event is triggered when the ColorPicker has received the focus.
 84 | 
 85 | ### `lostFocus` [#lostfocus]
 86 | 
 87 | This event is triggered when the ColorPicker has lost the focus.
 88 | 
 89 | ## Exposed Methods [#exposed-methods]
 90 | 
 91 | ### `focus` [#focus]
 92 | 
 93 | Focus the ColorPicker component.
 94 | 
 95 | **Signature**: `focus(): void`
 96 | 
 97 | ### `setValue` [#setvalue]
 98 | 
 99 | This method sets the current value of the ColorPicker.
100 | 
101 | **Signature**: `set value(value: string): void`
102 | 
103 | - `value`: The new value to set for the color picker.
104 | 
105 | ```xmlui-pg copy display name="Example: setValue"
106 | <App>
107 |   <App>
108 |     <ColorPicker 
109 |       id="colorPicker" 
110 |       label="Select your favorite color" 
111 |       initialValue="#808080" />
112 |     <HStack>
113 |       <Button
114 |         label="Set to red"
115 |         onClick="colorPicker.setValue('#ff0000')" />
116 |       <Button
117 |         label="Set to green"
118 |         onClick="colorPicker.setValue('#00c000')" />
119 |       <Button
120 |         label="Set to blue"
121 |         onClick="colorPicker.setValue('#0000ff')" />
122 |     </HStack>
123 |   </App>
124 | </App>
125 | ```
126 | 
127 | ### `value` [#value]
128 | 
129 | This method returns the current value of the ColorPicker.
130 | 
131 | **Signature**: `get value(): string`
132 | 
133 | ## Styling [#styling]
134 | 
135 | ### Theme Variables [#theme-variables]
136 | 
137 | | Variable | Default Value (Light) | Default Value (Dark) |
138 | | --- | --- | --- |
139 | | [backgroundColor](../styles-and-themes/common-units/#color)-ColorPicker | *none* | *none* |
140 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default | *none* | *none* |
141 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default--focus | *none* | *none* |
142 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default--hover | *none* | *none* |
143 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error | *none* | *none* |
144 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error--focus | *none* | *none* |
145 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error--hover | *none* | *none* |
146 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success | *none* | *none* |
147 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success--focus | *none* | *none* |
148 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success--hover | *none* | *none* |
149 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning | *none* | *none* |
150 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning--focus | *none* | *none* |
151 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning--hover | *none* | *none* |
152 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-default | *none* | *none* |
153 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-error | *none* | *none* |
154 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-success | *none* | *none* |
155 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-warning | *none* | *none* |
156 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-default | *none* | *none* |
157 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-error | *none* | *none* |
158 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-success | *none* | *none* |
159 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-warning | *none* | *none* |
160 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-default | *none* | *none* |
161 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-error | *none* | *none* |
162 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-success | *none* | *none* |
163 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-warning | *none* | *none* |
164 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default | *none* | *none* |
165 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default--focus | *none* | *none* |
166 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default--hover | *none* | *none* |
167 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error | *none* | *none* |
168 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error--focus | *none* | *none* |
169 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error--hover | *none* | *none* |
170 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success | *none* | *none* |
171 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success--focus | *none* | *none* |
172 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success--hover | *none* | *none* |
173 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning | *none* | *none* |
174 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning--focus | *none* | *none* |
175 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning--hover | *none* | *none* |
176 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/TextArea/TextAreaNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import React, {
  2 |   type ChangeEventHandler,
  3 |   type CSSProperties,
  4 |   type ForwardedRef,
  5 |   forwardRef,
  6 |   type TextareaHTMLAttributes,
  7 |   useCallback,
  8 |   useEffect,
  9 |   useRef,
 10 |   useState,
 11 | } from "react";
 12 | import classnames from "classnames";
 13 | import TextareaAutosize from "react-textarea-autosize";
 14 | import { isNil } from "lodash-es";
 15 | 
 16 | import styles from "./TextArea.module.scss";
 17 | 
 18 | import type { RegisterComponentApiFn, UpdateStateFn } from "../../abstractions/RendererDefs";
 19 | import { noop } from "../../components-core/constants";
 20 | import { useEvent } from "../../components-core/utils/misc";
 21 | import type { ValidationStatus } from "../abstractions";
 22 | import TextAreaResizable from "./TextAreaResizable";
 23 | import { PART_INPUT } from "../../components-core/parts";
 24 | import { composeRefs } from "@radix-ui/react-compose-refs";
 25 | 
 26 | export const resizeOptionKeys = ["horizontal", "vertical", "both"] as const;
 27 | export type ResizeOptions = (typeof resizeOptionKeys)[number];
 28 | 
 29 | type Props = {
 30 |   id?: string;
 31 |   value?: string;
 32 |   placeholder?: string;
 33 |   required?: boolean;
 34 |   readOnly?: boolean;
 35 |   allowCopy?: boolean;
 36 |   updateState?: UpdateStateFn;
 37 |   validationStatus?: ValidationStatus;
 38 |   autoFocus?: boolean;
 39 |   initialValue?: string;
 40 |   resize?: ResizeOptions;
 41 |   enterSubmits?: boolean;
 42 |   escResets?: boolean;
 43 |   onDidChange?: (e: any) => void;
 44 |   onFocus?: () => void;
 45 |   onBlur?: () => void;
 46 |   controlled?: boolean;
 47 |   style?: CSSProperties;
 48 |   className?: string;
 49 |   registerComponentApi?: RegisterComponentApiFn;
 50 |   autoSize?: boolean;
 51 |   maxRows?: number;
 52 |   minRows?: number;
 53 |   maxLength?: number;
 54 |   rows?: number;
 55 |   enabled?: boolean;
 56 | };
 57 | 
 58 | export const defaultProps = {
 59 |   value: "",
 60 |   placeholder: "",
 61 |   required: false,
 62 |   readOnly: false,
 63 |   allowCopy: true,
 64 |   updateState: noop,
 65 |   autoFocus: false,
 66 |   initialValue: "",
 67 |   onDidChange: noop,
 68 |   onFocus: noop,
 69 |   onBlur: noop,
 70 |   controlled: true,
 71 |   enterSubmits: true,
 72 |   rows: 2,
 73 |   enabled: true,
 74 | };
 75 | 
 76 | export const TextArea = forwardRef(function TextArea(
 77 |   {
 78 |     id,
 79 |     value = defaultProps.value,
 80 |     placeholder = defaultProps.placeholder,
 81 |     required = defaultProps.required,
 82 |     readOnly = defaultProps.readOnly,
 83 |     allowCopy = defaultProps.allowCopy,
 84 |     updateState = defaultProps.updateState,
 85 |     validationStatus,
 86 |     autoFocus = defaultProps.autoFocus,
 87 |     initialValue = defaultProps.initialValue,
 88 |     resize,
 89 |     onDidChange = defaultProps.onDidChange,
 90 |     onFocus = defaultProps.onFocus,
 91 |     onBlur = defaultProps.onBlur,
 92 |     controlled = defaultProps.controlled,
 93 |     enterSubmits = defaultProps.enterSubmits,
 94 |     escResets,
 95 |     style,
 96 |     className,
 97 |     registerComponentApi,
 98 |     autoSize,
 99 |     maxRows,
100 |     minRows,
101 |     maxLength,
102 |     rows = defaultProps.rows,
103 |     enabled = defaultProps.enabled,
104 |     ...rest
105 |   }: Props,
106 |   forwardedRef: ForwardedRef<HTMLTextAreaElement>,
107 | ) {
108 |   // --- The component is initially unfocused
109 |   const inputRef = useRef<HTMLTextAreaElement>(null);
110 |   const ref = forwardRef ? composeRefs(forwardedRef, inputRef) : inputRef;
111 |   const [cursorPosition, setCursorPosition] = useState(null);
112 |   const [focused, setFocused] = React.useState(false);
113 | 
114 |   const updateValue = useCallback(
115 |     (value: string) => {
116 |       updateState({ value: value });
117 |       onDidChange(value);
118 |     },
119 |     [onDidChange, updateState],
120 |   );
121 | 
122 |   const onInputChange: ChangeEventHandler<HTMLTextAreaElement> = useCallback(
123 |     (event) => {
124 |       updateValue(event.target.value);
125 |     },
126 |     [updateValue],
127 |   );
128 | 
129 |   useEffect(() => {
130 |     updateState({ value: initialValue }, { initial: true });
131 |   }, [initialValue, updateState]);
132 | 
133 |   useEffect(() => {
134 |     if (autoFocus) {
135 |       setTimeout(() => {
136 |         inputRef.current?.focus();
137 |       }, 0);
138 |     }
139 |   }, [autoFocus, inputRef.current]);
140 | 
141 |   // --- Execute this function when the user copies the value
142 |   const handleCopy = (event: React.SyntheticEvent) => {
143 |     if (allowCopy) {
144 |       return true;
145 |     } else {
146 |       event.preventDefault();
147 |       return false;
148 |     }
149 |   };
150 | 
151 |   // --- Manage obtaining and losing the focus
152 |   const handleOnFocus = () => {
153 |     setFocused(true);
154 |     onFocus?.();
155 |   };
156 |   const handleOnBlur = () => {
157 |     setFocused(false);
158 |     onBlur?.();
159 |   };
160 | 
161 |   const focus = useCallback(() => {
162 |     setTimeout(() => {
163 |       inputRef.current?.focus();
164 |     }, 0);
165 |   }, []);
166 | 
167 |   const insert = useCallback(
168 |     (text: any) => {
169 |       const input = inputRef?.current;
170 |       if (input && text) {
171 |         const start = input.selectionStart;
172 |         const value = input.value;
173 |         onInputChange({
174 |           // @ts-ignore
175 |           target: {
176 |             value: value.substring(0, start) + text + value.substring(start),
177 |           },
178 |         });
179 |         setCursorPosition(start + text.length);
180 |       }
181 |     },
182 |     [inputRef, onInputChange],
183 |   );
184 | 
185 |   const setValue = useEvent((val: string) => {
186 |     updateValue(val);
187 |   });
188 | 
189 |   useEffect(() => {
190 |     if (cursorPosition) {
191 |       const input = inputRef?.current;
192 |       if (input) {
193 |         input.setSelectionRange(cursorPosition, cursorPosition);
194 |         setCursorPosition(null);
195 |       }
196 |     }
197 |   }, [value, cursorPosition, inputRef]);
198 | 
199 |   useEffect(() => {
200 |     registerComponentApi?.({
201 |       focus,
202 |       insert,
203 |       setValue,
204 |     });
205 |   }, [focus, insert, registerComponentApi, setValue]);
206 | 
207 |   // --- Handle the Enter key press
208 |   const handleEnter = useCallback(
209 |     (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
210 |       if (e.currentTarget.form && enterSubmits && e.key.toLowerCase() === "enter" && !e.shiftKey) {
211 |         // -- Do not generate a new line
212 |         e.preventDefault();
213 |         e.currentTarget.form?.requestSubmit();
214 |       }
215 |       if (e.currentTarget.form && escResets && e.key.toLowerCase() === "escape" && !e.shiftKey) {
216 |         e.preventDefault();
217 |         e.currentTarget.form?.reset();
218 |       }
219 |     },
220 |     [enterSubmits, escResets],
221 |   );
222 | 
223 |   let classes = classnames(className, styles.textarea, {
224 |     [styles.resizeHorizontal]: resize === "horizontal",
225 |     [styles.resizeVertical]: resize === "vertical",
226 |     [styles.resizeBoth]: resize === "both",
227 |     [styles.focused]: focused,
228 |     [styles.disabled]: !enabled,
229 |     [styles.error]: validationStatus === "error",
230 |     [styles.warning]: validationStatus === "warning",
231 |     [styles.valid]: validationStatus === "valid",
232 |   });
233 |   const textareaProps: TextareaHTMLAttributes<HTMLTextAreaElement> &
234 |     React.RefAttributes<HTMLTextAreaElement> = {
235 |     ...rest,
236 |     id,
237 |     className: classes,
238 |     ref,
239 |     style: style as any,
240 |     value: controlled ? value || "" : undefined,
241 |     disabled: !enabled,
242 |     name: id,
243 |     placeholder,
244 |     required,
245 |     maxLength,
246 |     "aria-multiline": true,
247 |     "aria-readonly": readOnly,
248 |     readOnly: readOnly,
249 |     onChange: onInputChange,
250 |     onCopy: handleCopy,
251 |     onFocus: handleOnFocus,
252 |     onBlur: handleOnBlur,
253 |     onKeyDown: handleEnter,
254 |     autoComplete: "off",
255 |   };
256 | 
257 |   if (resize === "both" || resize === "horizontal" || resize === "vertical") {
258 |     return (
259 |       <TextAreaResizable
260 |         {...textareaProps}
261 |         data-part-id={PART_INPUT}
262 |         style={style as any}
263 |         className={classnames(classes)}
264 |         maxRows={maxRows}
265 |         minRows={minRows}
266 |         rows={rows}
267 |       />
268 |     );
269 |   }
270 |   if (autoSize || !isNil(maxRows) || !isNil(minRows)) {
271 |     return (
272 |       <TextareaAutosize
273 |         {...textareaProps}
274 |         data-part-id={PART_INPUT}
275 |         style={style as any}
276 |         className={classnames(classes)}
277 |         maxRows={maxRows}
278 |         minRows={minRows}
279 |         rows={rows}
280 |       />
281 |     );
282 |   }
283 | 
284 |   return (
285 |     <textarea
286 |       {...textareaProps}
287 |       data-part-id={PART_INPUT}
288 |       rows={rows}
289 |       className={classnames(classes)}
290 |     />
291 |   );
292 | });
293 | 
```
Page 41/183FirstPrevNextLast