#
tokens: 47187/50000 5/1630 files (page 58/145)
lines: off (toggle) GitHub
raw markdown copy
This is page 58 of 145. Use http://codebase.md/xmlui-org/xmlui/xmlui/mockApiDef.js?lines=false&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-swa.yml
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs-swa.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
│   │   ├── staticwebapp.config.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
│   │           ├── HelloMd.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
│   │   ├── staticwebapp.config.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.module.scss
│   │       │   ├── 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.tsx
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.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
    │   ├── component-metadata.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
    │   ├── theme-variables-refactoring.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── extract-component-metadata.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
    │   ├── generate-metadata-markdown.js
    │   ├── 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.module.scss
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   └── 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
    │   │   │   └── test-padding.xmlui
    │   │   ├── 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.json
    ├── tsdown.config.ts
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

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

```markdown
# Tooltip [#tooltip]

A tooltip component that displays text when hovering over trigger content.

## Using Tooltip [#using-tooltip]

You rarely need to use the Tooltip component directly, as visual components support three properties, `tootip`, `tooltipMarkdown`, and `tooltipOptions` respectively. When you utilize the `tooltip` property with a visual component, hovering over that component displays the associated text.

### The `tooltip` property [#the-tooltip-property]

```xmlui-pg display copy height="180px" /tooltip/ name="Example: using the tooltip property"
<App>
  <CHStack height="100px" verticalAlignment="center" >
    <Button
      label="Hover the mouse over me!"
      tooltip="I'm hovered!"
    >
    </Button>
  </CHStack>
</App>
```

### The `tooltipMarkdown` property [#the-tooltipmarkdown-property]

The `tooltipMarkdown` property allows you to use the tooltip with markdown syntax.

```xmlui-pg display copy /tooltipMarkdown/ name="Example: using the tooltipMarkdown property"
<App>
  <VStack height="80px" width="fit-content">
    <Card
      title="Tooltip with markdown"
      tooltipMarkdown="This *example* uses `toolTipMarkdown`"
      tooltipOptions="right"
    />
  </VStack>
</App>
```

### The `tooltipOptions` property [#the-tooltipoptions-property]

The tooltip provides several options (see the properties of this component), influencing its behavior and appearance. You can set the `tooltipOptions` property to define these options.

For example, the following example positions the tooltip to the right, making it appear somewhat distant from the component.

```xmlui-pg display copy height="180px" /tooltipOptions/ name="Example: using the tooltipOptions property"
<App>
  <CHStack height="100px" verticalAlignment="center" >
    <Button
      label="Hover the mouse over me!"
      tooltip="I'm hovered"
      tooltipOptions="right; sideOffset: 32"
    >
    </Button>
  </CHStack>
</App>
```

You can define `tooltipOptions` as a string or as an object. In the latter case, the object declares name and value pairs describing the visual options:

```xmlui-pg display copy height="180px" /tooltipOptions/ name="Example: tooltipOptions as an object"
<App>
  <CHStack height="100px" verticalAlignment="center" >
    <Button
      label="Hover the mouse over me!"
      tooltip="Use an object"
      tooltipOptions="{{ showArrow: false, side: 'bottom', align: 'start' }}"
    >
    </Button>
  </CHStack>
</App>
```

The string form of `tooltipOptions` is composed of names or name and value pairs separated by semicolons. The properties that allow enumerations (such as `side` or `align`) can be set with a name representing a single value. Properties with boolean values can use the property name to represent the `true` value, or the property name prefixed with an exclamation mark to signify a `false` value. Numeric values are separated from the property name by a colon, and they do not use units. Here are a few examples:

```xmlui-pg display copy height="300px" /tooltipOptions/ name="Example: tooltipOptions as a string"
<App>
  <VStack height="100px" horizontalAlignment="center" gap="3rem">
    <Card
      title="Tooltip to the left with 800ms delay"
      tooltip="I'm a Tooltip"
      tooltipOptions="left; delayDuration: 800; !showArrow" />
    <HStack>
      <Icon
        name="email"
        width="48px"
        height="48px"
        tooltipMarkdown="**Tooltip** to the bottom with no arrows, aligned left"
        tooltipOptions="bottom; !showArrow; start" />
      <Icon
        name="phone"
        width="48px"
        height="48px"
        tooltipMarkdown="*Tooltip* to the bottom with arrows, 28 pixels away"
        tooltipOptions="bottom; showArrow; sideOffset: 28" />
    </HStack>
  </VStack>
</App>
```

### Using the Tooltip component [#using-the-tooltip-component]

Instead of using the tooltip-related properties, you can wrap the component into a `Tooltip`:

```xmlui-pg display copy height="260px" name="Example: Using the Tooltip component"
<App>
  <VStack height="100px" horizontalAlignment="center">
    <Tooltip side="bottom" markdown="This *example* uses a `Tooltip` component">
      <Stack>
        <Card title="Card 1: within a Tooltip" />
        <Card title="Card 2: within the same Tooltip" />
      </Stack>
    </Tooltip>
  </VStack>
</App>
```

### Using a Tooltip template [#using-a-tooltip-template]

You can specify tooltips that you could not otherwise do with the `text` or `markdown` properties.

```xmlui-pg display copy height="200px" name="Example: Using a tooltipTemplate" /tooltipTemplate/
<App>
  <VStack height="100px" horizontalAlignment="center">
    <Tooltip side="bottom">
      <property name="tooltipTemplate">
        <HStack>
          <Stack width="24px" height="24px" backgroundColor="purple" />
          <H2>This is a tooltip</H2>
        </HStack>
      </property>
      <Card title="I have a templated Tooltip!" />
    </Tooltip>
  </VStack>
</App>
```

A `tooltipTemplate` may be able to use the `$tooltip` context variable.

```xmlui-pg display copy height="600px" name="Example: tooltipTemplate with $tooltip context variable"
<App
    var.starData="{[
      { star_date: '2025-02-11T00:00:00Z', xmlui_stars: 0, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-18T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-19T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-20T00:00:00Z', xmlui_stars: 48, xmlui_test_server_stars: 5, xmlui_invoice_stars: 2, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-21T00:00:00Z', xmlui_stars: 62, xmlui_test_server_stars: 8, xmlui_invoice_stars: 3, xmlui_mcp_stars: 2 },
      { star_date: '2025-07-22T00:00:00Z', xmlui_stars: 16, xmlui_test_server_stars: 3, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-23T00:00:00Z', xmlui_stars: 6, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-24T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-25T00:00:00Z', xmlui_stars: 10, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-26T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-27T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-28T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-29T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-07-30T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
      { star_date: '2025-07-31T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-01T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-05T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-07T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
      { star_date: '2025-08-08T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-12T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
      { star_date: '2025-08-14T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-15T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-18T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
      { star_date: '2025-08-19T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
      { star_date: '2025-08-20T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 }
    ]}"
  >

    <VStack padding="$space-4" gap="$space-4">
      <Text fontSize="$fontSize-xl" fontWeight="$fontWeight-semibold">
        XMLUI Stars Over Time
      </Text>

      <Card height="400px">
        <LineChart
          data="{starData}"
          yKeys="{['xmlui_stars', 'xmlui_test_server_stars', 'xmlui_invoice_stars', 'xmlui_mcp_stars']}"
          xKey="star_date"
          showLegend="true"
          tickFormatterX="{formatDateWithoutYear}">
          <property name="tooltipTemplate">
            <Theme
              border-cell-Table="none"
              padding-cell-Table="0">
              <VStack
                gap="0"
                width="16rem"
                borderRadius="$borderRadius"
                boxShadow="$boxShadow-md"
                backgroundColor="$color-surface-100">
                <Text>
                  {formatDate($tooltip.label)}
                </Text>
                <Table
                  lineHeight="$lineHeight-tight"
                  data="{$tooltip.payload}"
                  hideHeader="true"
                  noBottomBorder="true">
                  <Column width="3*">
                    <HStack gap="$space-2" verticalAlignment="center">
                      <Stack
                        width="8px"
                        height="8px"
                        backgroundColor="{$item.color}" />
                      <Text fontSize="$fontSize-smaller">
                        {$item.label}
                      </Text>
                    </HStack>
                  </Column>
                  <Column>
                    <Text fontSize="$fontSize-smaller">
                      {$item.value}
                    </Text>
                  </Column>
                </Table>
              </VStack>
            </Theme>
          </property>
        </LineChart>
      </Card>
    </VStack>
</App>
```

## Properties [#properties]

### `align` (default: "center") [#align-default-center]

The preferred alignment against the trigger

Available values: `start`, `center` **(default)**, `end`

### `alignOffset` (default: 0) [#alignoffset-default-0]

An offset in pixels from the 'start' or 'end' alignment options

### `avoidCollisions` (default: true) [#avoidcollisions-default-true]

When true, overrides the side and align preferences to prevent collisions with boundary edges

### `defaultOpen` (default: false) [#defaultopen-default-false]

The open state of the tooltip when it is initially rendered

### `delayDuration` (default: 700) [#delayduration-default-700]

The duration from when the mouse enters a tooltip trigger until the tooltip opens (in ms)

### `markdown` [#markdown]

The markdown content to display in the tooltip

### `showArrow` (default: false) [#showarrow-default-false]

Whether to show the arrow pointing to the trigger element

### `side` (default: "top") [#side-default-top]

The preferred side of the trigger to render against when open

Available values: `top` **(default)**, `right`, `bottom`, `left`

### `sideOffset` (default: 4) [#sideoffset-default-4]

The distance in pixels from the trigger

### `skipDelayDuration` (default: 300) [#skipdelayduration-default-300]

How much time a user has to enter another trigger without incurring a delay again (in ms)

### `text` [#text]

The text content to display in the tooltip

### `tooltipTemplate` [#tooltiptemplate]

The template for the tooltip content

## Events [#events]

This component does not have any events.

## Exposed Methods [#exposed-methods]

This component does not expose any methods.

## Styling [#styling]

### Theme Variables [#theme-variables]

| Variable | Default Value (Light) | Default Value (Dark) |
| --- | --- | --- |
| [animation](../styles-and-themes/layout-props/#animation)-Tooltip | cubic-bezier(0.16, 1, 0.3, 1) | cubic-bezier(0.16, 1, 0.3, 1) |
| [animationDuration](../styles-and-themes/layout-props/#animationDuration)-Tooltip | 400ms | 400ms |
| [backgroundColor](../styles-and-themes/common-units/#color)-Tooltip | $color-surface-0 | $color-surface-200 |
| [border](../styles-and-themes/common-units/#border)-Tooltip | none | none |
| [borderBottom](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [borderBottomColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderBottomStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderBottomWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderEndEndRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
| [borderEndStartRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
| [borderHorizontal](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [borderHorizontalColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderHorizontalStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderHorizontalWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderLeft](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [color](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderLeftStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderLeftWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | 4px | 4px |
| [borderRight](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [color](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderRightStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderRightWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderStartEndRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
| [borderStartStartRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
| [borderStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderTop](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [borderTopColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderTopStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderTopWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderHorizontal](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
| [borderVerticalColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
| [borderVerticalStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
| [borderVerticalWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [borderWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [boxShadow](../styles-and-themes/common-units/#boxShadow)-Tooltip | hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px | hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px |
| [fill](../styles-and-themes/common-units/#color)-arrow-Tooltip | $color-surface-200 | $color-surface-200 |
| [fontSize](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
| [lineHeight](../styles-and-themes/common-units/#size)-Tooltip | 1 | 1 |
| [padding](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [paddingBottom](../styles-and-themes/common-units/#size)-Tooltip | 10px | 10px |
| [paddingHorizontal](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [paddingLeft](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
| [paddingRight](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
| [paddingTop](../styles-and-themes/common-units/#size)-Tooltip | 10px | 10px |
| [paddingVertical](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
| [stroke](../styles-and-themes/common-units/#color)-arrow-Tooltip | $color-surface-200 | $color-surface-200 |
| [strokeWidth](../styles-and-themes/common-units/#size)-arrow-Tooltip | 0 | 0 |
| [textColor](../styles-and-themes/common-units/#color)-Tooltip | $textcolor-primary | $textcolor-primary |

```

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

```typescript
import { getBounds, getStyles } from "../../testing/component-test-helpers";
import { expect, test } from "../../testing/fixtures";

const PAGE_WIDTH = 1200;
const PAGE_HEIGHT = 500;
test.use({ viewport: { width: PAGE_WIDTH, height: PAGE_HEIGHT } });

test("Themed NavPanel", async ({ page, initTestBed }) => {
  const EXPECTED_COLOR = "rgb(23, 35, 43)";
  await initTestBed(
    `
    <App layout="vertical">
      <Theme tone="dark">
        <NavPanel testId="nav-panel">
          <NavLink to="/something">Something</NavLink>
        </NavPanel>
      </Theme>
    </App>
  `,
    {
      themes: [
        {
          id: "test",
          extends: "light",
          tones: {
            dark: {
              themeVars: {
                "background-color": EXPECTED_COLOR,
              },
            },
          },
        },
      ],
      defaultTheme: "test",
    },
  );
  const { backgroundColor } = await getStyles(page.getByTestId("nav-panel"), "background-color");
  const boundingRect = await getBounds(page.getByTestId("nav-panel"));

  expect(boundingRect.top).toBe(0);
  expect(boundingRect.height).toBe(PAGE_HEIGHT);
  expect(boundingRect.bottom).toBe(PAGE_HEIGHT);
  expect(backgroundColor).toBe(EXPECTED_COLOR);
});

test("Themed AppHeader", async ({ page, initTestBed }) => {
  const EXPECTED_COLOR = "rgb(28, 43, 53)";
  await initTestBed(
    `
    <App layout="vertical" scrollWholePage="false">
      <Theme tone="dark">
        <AppHeader testId="app-header"/>
      </Theme>
    </App>
  `,
    {
      themes: [
        {
          id: "test",
          extends: "light",
          tones: {
            dark: {
              themeVars: {
                "background-color": EXPECTED_COLOR,
              },
            },
          },
        },
      ],
      defaultTheme: "test",
    },
  );
  const { backgroundColor } = await getStyles(page.getByTestId("app-header"), "background-color");
  const boundingRect = await getBounds(page.getByTestId("app-header"));

  expect(boundingRect.top).toBe(0);
  expect(boundingRect.width).toBe(PAGE_WIDTH);
  expect(backgroundColor).toBe(EXPECTED_COLOR);
});

test("Themed Footer", async ({ page, initTestBed }) => {
  const EXPECTED_COLOR = "rgb(28, 43, 53)";
  await initTestBed(
    `
    <App scrollWholePage="false">
      <Theme tone="dark">
        <Footer testId="app-footer"/>
      </Theme>
    </App>
  `,
    {
      themes: [
        {
          id: "test",
          extends: "light",
          tones: {
            dark: {
              themeVars: {
                "background-color": EXPECTED_COLOR,
              },
            },
          },
        },
      ],
      defaultTheme: "test",
    },
  );

  const { backgroundColor } = await getStyles(page.getByTestId("app-footer"), "background-color");
  const boundingRect = await getBounds(page.getByTestId("app-footer"));

  expect(boundingRect.left).toBe(0);
  expect(boundingRect.bottom).toEqualWithTolerance(PAGE_HEIGHT, 0.01);
  expect(boundingRect.width).toEqualWithTolerance(PAGE_WIDTH, 0.01);
  expect(backgroundColor).toBe(EXPECTED_COLOR);
});

test("Themed H1 regression", async ({ page, initTestBed }) => {
  await initTestBed(`
    <App>
      <Theme textColor-H1="rgb(255, 0, 0)" textColor-H2="rgb(0, 255, 0)">
          <H1 testId="red">Should be red</H1>
          <H2 testId="green">Should be green</H2>
      </Theme>
    </App>
  `);

  const { color: h1Color } = await getStyles(page.getByTestId("red"), "color");
  const { color: h2Color } = await getStyles(page.getByTestId("green"), "color");

  expect(h1Color).toBe("rgb(255, 0, 0)");
  expect(h2Color).toBe("rgb(0, 255, 0)");
});

// =============================================================================
// APPLYIF PROPERTY TESTS
// =============================================================================

test.describe("applyIf Property", () => {
  test("applies theme when applyIf is true (default)", async ({ page, initTestBed }) => {
    const EXPECTED_COLOR = "rgb(255, 0, 0)";
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="${EXPECTED_COLOR}" applyIf="true">
          <Button testId="themed-button">Themed Button</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor } = await getStyles(page.getByTestId("themed-button"), "background-color");
    expect(backgroundColor).toBe(EXPECTED_COLOR);
  });

  test("applies theme when applyIf is omitted (defaults to true)", async ({ page, initTestBed }) => {
    const EXPECTED_COLOR = "rgb(0, 255, 0)";
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="${EXPECTED_COLOR}">
          <Button testId="themed-button">Themed Button</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor } = await getStyles(page.getByTestId("themed-button"), "background-color");
    expect(backgroundColor).toBe(EXPECTED_COLOR);
  });

  test("does not apply theme when applyIf is false", async ({ page, initTestBed }) => {
    const THEME_COLOR = "rgb(255, 0, 0)";
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="${THEME_COLOR}" applyIf="false">
          <Button testId="unthemed-button">Unthemed Button</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor } = await getStyles(page.getByTestId("unthemed-button"), "background-color");
    // Should not have the theme color when applyIf is false
    expect(backgroundColor).not.toBe(THEME_COLOR);
  });

  test("renders children without theme wrapper when applyIf is false", async ({ page, initTestBed }) => {
    await initTestBed(`
      <App>
        <Theme tone="dark" applyIf="false">
          <Button testId="button">Button Text</Button>
          <H1 testId="header">Header Text</H1>
        </Theme>
      </App>
    `);

    // Children should still be rendered and visible
    await expect(page.getByTestId("button")).toBeVisible();
    await expect(page.getByTestId("header")).toBeVisible();
    await expect(page.getByTestId("button")).toHaveText("Button Text");
    await expect(page.getByTestId("header")).toHaveText("Header Text");
  });

  test("supports dynamic applyIf with binding expressions", async ({ page, initTestBed }) => {
    const { testStateDriver } = await initTestBed(`
      <App>
        <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState === true}">
          <Button testId="conditional-button" onClick="testState = testState === true ? false : true">Toggle Theme</Button>
        </Theme>
      </App>
    `);

    // Initially testState is null, expression evaluates to false
    const initialBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
    expect(initialBackground.backgroundColor).not.toBe("rgb(255, 0, 0)");

    // Click to make testState true, theme should be applied
    await page.getByTestId("conditional-button").click();
    await expect.poll(testStateDriver.testState).toBe(true);

    const appliedBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
    expect(appliedBackground.backgroundColor).toBe("rgb(255, 0, 0)");

    // Click again to make testState false, theme should not be applied
    await page.getByTestId("conditional-button").click();
    await expect.poll(testStateDriver.testState).toBe(false);

    const removedBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
    expect(removedBackground.backgroundColor).not.toBe("rgb(255, 0, 0)");
  });

  test("handles nested themes with different applyIf values", async ({ page, initTestBed }) => {
    const OUTER_COLOR = "rgb(255, 0, 0)";
    const INNER_COLOR = "rgb(0, 255, 0)";
    
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="${OUTER_COLOR}" applyIf="true">
          <Button testId="outer-themed">Outer Themed</Button>
          <Theme backgroundColor-Button="${INNER_COLOR}" applyIf="false">
            <Button testId="inner-unthemed">Inner Unthemed</Button>
          </Theme>
        </Theme>
      </App>
    `);

    // Outer button should have outer theme applied
    const { backgroundColor: outerBg } = await getStyles(page.getByTestId("outer-themed"), "background-color");
    expect(outerBg).toBe(OUTER_COLOR);

    // Inner button should inherit outer theme (inner theme not applied due to applyIf=false)
    const { backgroundColor: innerBg } = await getStyles(page.getByTestId("inner-unthemed"), "background-color");
    expect(innerBg).toBe(OUTER_COLOR); // Should inherit from outer theme
  });

  test("applies multiple theme variables when applyIf is true", async ({ page, initTestBed }) => {
    const BG_COLOR = "rgb(255, 0, 0)";
    const TEXT_COLOR = "rgb(0, 255, 0)";
    
    await initTestBed(`
      <App>
        <Theme 
          backgroundColor-Button="${BG_COLOR}" 
          textColor-Button="${TEXT_COLOR}"
          applyIf="true"
        >
          <Button testId="multi-themed">Multi Themed</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor } = await getStyles(
      page.getByTestId("multi-themed"), 
      "background-color"
    );
    const { color } = await getStyles(
      page.getByTestId("multi-themed"), 
      "color"
    );
    expect(backgroundColor).toBe(BG_COLOR);
    expect(color).toBe(TEXT_COLOR);
  });

  test("does not apply any theme variables when applyIf is false", async ({ page, initTestBed }) => {
    const BG_COLOR = "rgb(255, 0, 0)";
    const TEXT_COLOR = "rgb(0, 255, 0)";
    
    await initTestBed(`
      <App>
        <Theme 
          backgroundColor-Button="${BG_COLOR}" 
          textColor-Button="${TEXT_COLOR}"
          applyIf="false"
        >
          <Button testId="no-theme">No Theme</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor } = await getStyles(
      page.getByTestId("no-theme"), 
      "background-color"
    );
    const { color } = await getStyles(
      page.getByTestId("no-theme"), 
      "color"
    );
    expect(backgroundColor).not.toBe(BG_COLOR);
    expect(color).not.toBe(TEXT_COLOR);
  });
});

// =============================================================================
// APPLYIF EDGE CASES
// =============================================================================

test.describe("applyIf Edge Cases", () => {
  test("handles null applyIf value gracefully", async ({ page, initTestBed }) => {
    const { testStateDriver } = await initTestBed(`
      <App>
        <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState === 'apply'}">
          <Button testId="null-apply" onClick="testState = testState === 'apply' ? null : 'apply'">Button</Button>
        </Theme>
      </App>
    `);

    // Initially testState is null, expression evaluates to false
    const initialBg = await getStyles(page.getByTestId("null-apply"), "background-color");
    expect(initialBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
    
    // Button should still be visible
    await expect(page.getByTestId("null-apply")).toBeVisible();

    // Click to set testState to 'apply', theme should be applied
    await page.getByTestId("null-apply").click();
    await expect.poll(testStateDriver.testState).toBe("apply");
    
    const appliedBg = await getStyles(page.getByTestId("null-apply"), "background-color");
    expect(appliedBg.backgroundColor).toBe("rgb(255, 0, 0)");

    // Click again to set testState to null, theme should not be applied
    await page.getByTestId("null-apply").click();
    await expect.poll(testStateDriver.testState).toBe(null);
    
    const removedBg = await getStyles(page.getByTestId("null-apply"), "background-color");
    expect(removedBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
  });

  test("handles undefined applyIf value (defaults to true)", async ({ page, initTestBed }) => {
    const { testStateDriver } = await initTestBed(`
      <App>
        <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState > 10 ? true : undefined}">
          <Button testId="undefined-apply" onClick="testState = testState == null ? 5 : testState + 10">Button</Button>
        </Theme>
      </App>
    `);

    // Initially testState is null, expression evaluates to undefined (should use default true)
    const initialBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
    expect(initialBg.backgroundColor).toBe("rgb(255, 0, 0)"); // undefined should default to true
    
    // Button should still be visible
    await expect(page.getByTestId("undefined-apply")).toBeVisible();

    // Click to set testState to 5, expression evaluates to undefined (should use default true)
    await page.getByTestId("undefined-apply").click();
    await expect.poll(testStateDriver.testState).toBe(5);
    
    const afterFirstClickBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
    expect(afterFirstClickBg.backgroundColor).toBe("rgb(255, 0, 0)"); // undefined should default to true

    // Click again to set testState to 15, expression evaluates to true (explicit true)
    await page.getByTestId("undefined-apply").click();
    await expect.poll(testStateDriver.testState).toBe(15);
    
    const afterSecondClickBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
    expect(afterSecondClickBg.backgroundColor).toBe("rgb(255, 0, 0)");
  });

  test("handles string 'false' as truthy value", async ({ page, initTestBed }) => {
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="false">
          <Button testId="string-false">Button</Button>
        </Theme>
      </App>
    `);

    // String "false" should be treated as boolean false, so theme should not be applied
    const { backgroundColor } = await getStyles(page.getByTestId("string-false"), "background-color");
    expect(backgroundColor).not.toBe("rgb(255, 0, 0)");
  });

  test("handles numeric values correctly", async ({ page, initTestBed }) => {
    const THEME_COLOR = "rgb(255, 0, 0)";
    
    // Test with 0 (falsy)
    await initTestBed(`
      <App>
        <Theme backgroundColor-Button="${THEME_COLOR}" applyIf="{0}">
          <Button testId="zero-apply">Button Zero</Button>
        </Theme>
      </App>
    `);

    const { backgroundColor: zeroBg } = await getStyles(page.getByTestId("zero-apply"), "background-color");
    expect(zeroBg).not.toBe(THEME_COLOR);
  });

  test("works with complex conditional expressions", async ({ page, initTestBed }) => {
    const { testStateDriver } = await initTestBed(`
      <App>
        <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState > 5}">
          <Button testId="complex-condition" onClick="testState = testState == null ? 1 : testState + 3">
            Increment by 3
          </Button>
        </Theme>
      </App>
    `);

    // Initially testState is null, condition should be false
    const initialBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
    expect(initialBg.backgroundColor).not.toBe("rgb(255, 0, 0)");

    // Click once: testState becomes 1 (1 > 5 is false)
    await page.getByTestId("complex-condition").click();
    await expect.poll(testStateDriver.testState).toBe(1);
    
    const firstClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
    expect(firstClickBg.backgroundColor).not.toBe("rgb(255, 0, 0)");

    // Click again: testState becomes 4 (4 > 5 is false)
    await page.getByTestId("complex-condition").click();
    await expect.poll(testStateDriver.testState).toBe(4);
    
    const secondClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
    expect(secondClickBg.backgroundColor).not.toBe("rgb(255, 0, 0)");

    // Click again: testState becomes 7 (7 > 5 is true, theme should apply)
    await page.getByTestId("complex-condition").click();
    await expect.poll(testStateDriver.testState).toBe(7);
    
    const thirdClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
    expect(thirdClickBg.backgroundColor).toBe("rgb(255, 0, 0)");
  });

  test("preserves children structure when applyIf is false", async ({ page, initTestBed }) => {
    await initTestBed(`
      <App>
        <Theme applyIf="false">
          <VStack testId="container">
            <Button testId="first-button">First</Button>
            <H1 testId="header">Header</H1>
            <Button testId="second-button">Second</Button>
          </VStack>
        </Theme>
      </App>
    `);

    // All children should be present and in correct order
    await expect(page.getByTestId("container")).toBeVisible();
    await expect(page.getByTestId("first-button")).toBeVisible();
    await expect(page.getByTestId("header")).toBeVisible();
    await expect(page.getByTestId("second-button")).toBeVisible();

    // Check text content is preserved
    await expect(page.getByTestId("first-button")).toHaveText("First");
    await expect(page.getByTestId("header")).toHaveText("Header");
    await expect(page.getByTestId("second-button")).toHaveText("Second");
  });
});

```

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

```typescript
import { expect, test } from "../../testing/fixtures";

// =============================================================================
// BASIC FUNCTIONALITY TESTS
// =============================================================================

test.describe("Basic Functionality", () => {
  test("renders with basic data array", async ({ initTestBed, page }) => {
    await initTestBed(`
      <Items data="{[
        { name: 'Item 1' },
        { name: 'Item 2' },
        { name: 'Item 3' }
      ]}">
        <Text testId="item-{$itemIndex}">{$item.name}</Text>
      </Items>
    `);

    await expect(page.getByTestId("item-0")).toContainText("Item 1");
    await expect(page.getByTestId("item-1")).toContainText("Item 2");
    await expect(page.getByTestId("item-2")).toContainText("Item 3");
  });

  test("renders with inline itemTemplate property", async ({ initTestBed, page }) => {
    await initTestBed(`
      <Items data="{[
        { value: 'First' },
        { value: 'Second' }
      ]}">
        <property name="itemTemplate">
          <Text testId="template-item-{$itemIndex}">{$item.value}</Text>
        </property>
      </Items>
    `);

    await expect(page.getByTestId("template-item-0")).toContainText("First");
    await expect(page.getByTestId("template-item-1")).toContainText("Second");
  });

  test("renders nothing with empty data array", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="container">
        <Text>Container Content</Text>
        <Items data="{[]}">
          <Text>{$item.name}</Text>
        </Items>
      </VStack>
    `);

    const container = page.getByTestId("container");
    await expect(container).toBeVisible();
    
    // Should contain the text we added to make container visible
    await expect(container).toContainText("Container Content");
    
    // Container should have exactly one child (our text element, not the empty Items)
    const textElements = container.locator("div").filter({ hasText: "Container Content" });
    await expect(textElements).toHaveCount(1);
  });

  test("renders nothing with null data", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="container">
        <Text>Container Content</Text>
        <Items data="{null}">
          <Text>{$item.name}</Text>
        </Items>
      </VStack>
    `);

    const container = page.getByTestId("container");
    await expect(container).toBeVisible();
    
    // Should contain the text we added to make container visible
    await expect(container).toContainText("Container Content");
    
    // Container should have exactly one child (our text element, not the null Items)
    const textElements = container.locator("div").filter({ hasText: "Container Content" });
    await expect(textElements).toHaveCount(1);
  });

  test("renders nothing with undefined data", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="container">
        <Text>Container Content</Text>
        <Items data="{undefined}">
          <Text>{$item.name}</Text>
        </Items>
      </VStack>
    `);

    const container = page.getByTestId("container");
    await expect(container).toBeVisible();
    
    // Should contain the text we added to make container visible
    await expect(container).toContainText("Container Content");
    
    // Container should have exactly one child (our text element, not the undefined Items)
    const textElements = container.locator("div").filter({ hasText: "Container Content" });
    await expect(textElements).toHaveCount(1);
  });

  // =============================================================================
  // CONTEXT VARIABLES TESTS
  // =============================================================================

  test.describe("Context Variables", () => {
    test("$item provides current data item", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{[
          { id: 1, title: 'First Item' },
          { id: 2, title: 'Second Item' }
        ]}">
          <Text testId="item-{$item.id}">{$item.title}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-1")).toContainText("First Item");
      await expect(page.getByTestId("item-2")).toContainText("Second Item");
    });

    test("$itemIndex provides zero-based index", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{['A', 'B', 'C']}">
          <Text testId="index-{$itemIndex}">Index: {$itemIndex}, Value: {$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("index-0")).toContainText("Index: 0, Value: A");
      await expect(page.getByTestId("index-1")).toContainText("Index: 1, Value: B");
      await expect(page.getByTestId("index-2")).toContainText("Index: 2, Value: C");
    });

    test("$isFirst indicates first item", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{['Alpha', 'Beta', 'Gamma']}">
          <Text testId="item-{$itemIndex}">{$isFirst ? 'FIRST: ' : ''}{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("FIRST: Alpha");
      await expect(page.getByTestId("item-1")).toContainText("Beta");
      await expect(page.getByTestId("item-2")).toContainText("Gamma");
    });

    test("$isLast indicates last item", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{['Alpha', 'Beta', 'Gamma']}">
          <Text testId="item-{$itemIndex}">{$item}{$isLast ? ' :LAST' : ''}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("Alpha");
      await expect(page.getByTestId("item-1")).toContainText("Beta");
      await expect(page.getByTestId("item-2")).toContainText("Gamma :LAST");
    });

    test("$isFirst and $isLast work with single item", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{['OnlyItem']}">
          <Text testId="only-item">
            {$isFirst ? 'FIRST ' : ''}{$item}{$isLast ? ' LAST' : ''}
          </Text>
        </Items>
      `);

      await expect(page.getByTestId("only-item")).toContainText("FIRST OnlyItem LAST");
    });
  });

  // =============================================================================
  // REVERSE PROPERTY TESTS
  // =============================================================================

  test.describe("Reverse Property", () => {
    test("default behavior renders items in original order", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{['First', 'Second', 'Third']}">
          <Text testId="item-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      // Let's first see what the default behavior is
      await expect(page.getByTestId("item-0")).toBeVisible();
      await expect(page.getByTestId("item-1")).toBeVisible();
      await expect(page.getByTestId("item-2")).toBeVisible();
    });

    test("reverse=false renders items in original order", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items reverse="{false}" data="{['First', 'Second', 'Third']}">
          <Text testId="item-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("First");
      await expect(page.getByTestId("item-1")).toContainText("Second");
      await expect(page.getByTestId("item-2")).toContainText("Third");
    });

    test("reverse=true renders items in reversed order", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items reverse="{true}" data="{['First', 'Second', 'Third']}">
          <Text testId="item-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("Third");
      await expect(page.getByTestId("item-1")).toContainText("Second");
      await expect(page.getByTestId("item-2")).toContainText("First");
    });

    test("reverse=true maintains correct context variables", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items reverse="{true}" data="{['A', 'B', 'C']}">
          <Text testId="item-{$itemIndex}">
            {$item} - Index:{$itemIndex} - First:{$isFirst ? 'yes' : 'no'} - Last:{$isLast ? 'yes' : 'no'}
          </Text>
        </Items>
      `);

      // With reverse=true, order is C, B, A but indices should be 0, 1, 2
      await expect(page.getByTestId("item-0")).toContainText("C - Index:0 - First:yes - Last:no");
      await expect(page.getByTestId("item-1")).toContainText("B - Index:1 - First:no - Last:no");
      await expect(page.getByTestId("item-2")).toContainText("A - Index:2 - First:no - Last:yes");
    });
  });

  // =============================================================================
  // ALTERNATIVE DATA SOURCES TESTS
  // =============================================================================

  test.describe("Data Sources", () => {
    test("items property works as alternative to data property", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items items="{[
          { name: 'Via Items Prop' },
          { name: 'Second Item' }
        ]}">
          <Text testId="item-{$itemIndex}">{$item.name}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("Via Items Prop");
      await expect(page.getByTestId("item-1")).toContainText("Second Item");
    });

    test("object converts to array via Object.values", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{{
          key1: 'First Value',
          key2: 'Second Value',
          key3: 'Third Value'
        }}">
          <Text testId="item-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      // Object.values order may vary, so we check that all values are present
      await expect(page.getByTestId("item-0")).toBeVisible();
      await expect(page.getByTestId("item-1")).toBeVisible();
      await expect(page.getByTestId("item-2")).toBeVisible();
      
      // Check that values from the object are rendered
      const items = page.locator('[data-testid^="item-"]');
      await expect(items).toHaveCount(3);
    });
  });

  // =============================================================================
  // DATA TYPE EDGE CASES TESTS
  // =============================================================================

  test.describe("Data Type Edge Cases", () => {
    test("handles special characters in data", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{[
          'Unicode: 👨‍👩‍👧‍👦',
          'Chinese: 你好世界',
          'Special chars'
        ]}">
          <Text testId="item-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("item-0")).toContainText("Unicode: 👨‍👩‍👧‍👦");
      await expect(page.getByTestId("item-1")).toContainText("Chinese: 你好世界");
      await expect(page.getByTestId("item-2")).toContainText("Special chars");
    });

    test("handles numeric data items", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{[0, 1, 42, -5, 3.14, NaN, Infinity]}">
          <Text testId="number-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("number-0")).toContainText("0");
      await expect(page.getByTestId("number-1")).toContainText("1");
      await expect(page.getByTestId("number-2")).toContainText("42");
      await expect(page.getByTestId("number-3")).toContainText("-5");
      await expect(page.getByTestId("number-4")).toContainText("3.14");
      await expect(page.getByTestId("number-5")).toContainText("NaN");
      await expect(page.getByTestId("number-6")).toContainText("Infinity");
    });

    test("handles boolean data items", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{[true, false]}">
          <Text testId="bool-{$itemIndex}">{$item}</Text>
        </Items>
      `);

      await expect(page.getByTestId("bool-0")).toContainText("true");
      await expect(page.getByTestId("bool-1")).toContainText("false");
    });

    test("handles mixed data types", async ({ initTestBed, page }) => {
      await initTestBed(`
        <Items data="{[
          'string',
          42,
          true,
          { name: 'object' }
        ]}">
          <Text testId="mixed-{$itemIndex}">
            {typeof $item === 'object' && $item !== null ? $item.name || 'object' : $item}
          </Text>
        </Items>
      `);

      await expect(page.getByTestId("mixed-0")).toContainText("string");
      await expect(page.getByTestId("mixed-1")).toContainText("42");
      await expect(page.getByTestId("mixed-2")).toContainText("true");
      await expect(page.getByTestId("mixed-3")).toContainText("object");
    });
  });
});

// =============================================================================
// OTHER EDGE CASE TESTS
// =============================================================================

test.describe("Other Edge Cases", () => {
  test("handles no template children gracefully", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="container">
        <Text>Before Items</Text>
        <Items data="{['item1', 'item2']}">
        </Items>
        <Text>After Items</Text>
      </VStack>
    `);

    const container = page.getByTestId("container");
    await expect(container).toBeVisible();
    
    // Should still render the surrounding text elements
    await expect(container).toContainText("Before Items");
    await expect(container).toContainText("After Items");
    
    // Items with no template should not render anything
    const beforeText = page.getByText("Before Items");
    const afterText = page.getByText("After Items");
    await expect(beforeText).toBeVisible();
    await expect(afterText).toBeVisible();
  });

  test("component renders without wrapper element", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="parent">
        <Text>Before Items</Text>
        <Items data="{['Test Item']}">
          <Text testId="item-content">{$item}</Text>
        </Items>
        <Text>After Items</Text>
      </VStack>
    `);

    // Items should not add its own wrapper - the item content should be a direct child
    const parent = page.getByTestId("parent");
    await expect(parent).toContainText("Before Items");
    await expect(parent).toContainText("Test Item");
    await expect(parent).toContainText("After Items");
    
    // The item should be rendered directly
    await expect(page.getByTestId("item-content")).toContainText("Test Item");
  });

  test("handles large arrays gracefully", async ({ initTestBed, page }) => {
    // Test with smaller array that can be handled inline
    await initTestBed(`
      <Items data="{[
        { id: 0, name: 'Item 0' },
        { id: 1, name: 'Item 1' },
        { id: 2, name: 'Item 2' },
        { id: 50, name: 'Item 50' },
        { id: 99, name: 'Item 99' }
      ]}">
        <Text testId="item-{$item.id}">#{$item.id}: {$item.name}</Text>
      </Items>
    `);

    // Check that all items are rendered
    await expect(page.getByTestId("item-0")).toContainText("#0: Item 0");
    await expect(page.getByTestId("item-1")).toContainText("#1: Item 1");
    await expect(page.getByTestId("item-2")).toContainText("#2: Item 2");
    await expect(page.getByTestId("item-50")).toContainText("#50: Item 50");
    await expect(page.getByTestId("item-99")).toContainText("#99: Item 99");
  });

  test("handles deeply nested data structures", async ({ initTestBed, page }) => {
    await initTestBed(`
      <Items data="{[
        { 
          user: { profile: { name: 'John', details: { age: 30 } } },
          settings: { theme: 'dark' }
        },
        {
          user: { profile: { name: 'Jane', details: { age: 25 } } },
          settings: { theme: 'light' }
        }
      ]}">
        <Text testId="user-{$itemIndex}">
          {$item.user.profile.name} ({$item.user.profile.details.age}) - Theme: {$item.settings.theme}
        </Text>
      </Items>
    `);

    await expect(page.getByTestId("user-0")).toContainText("John (30) - Theme: dark");
    await expect(page.getByTestId("user-1")).toContainText("Jane (25) - Theme: light");
  });

  test("handles non-array data gracefully", async ({ initTestBed, page }) => {
    await initTestBed(`
      <VStack testId="container">
        <Text>Container Content</Text>
        <Items data="not-an-array">
          <Text>{$item}</Text>
        </Items>
      </VStack>
    `);

    const container = page.getByTestId("container");
    await expect(container).toBeVisible();
    
    // Should contain the text we added to make container visible
    await expect(container).toContainText("Container Content");
    
    // Non-array data should result in no items rendered, but container should still be visible
    const textElements = container.locator("div").filter({ hasText: "Container Content" });
    await expect(textElements).toHaveCount(1);
  });
});

```

--------------------------------------------------------------------------------
/xmlui/tests/parsers/scripting/process-switch.test.ts:
--------------------------------------------------------------------------------

```typescript
import { createEvalContext, parseStatements } from "./test-helpers";
import { describe, expect, it, assert } from "vitest";
import { processStatementQueueAsync } from "../../../src/components-core/script-runner/process-statement-async";

describe("Process switch statements", () => {
  it("no case", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            switch (x) {
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.x).equal(0);
  });

  it("no matching case #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 3:
                y++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("no matching case #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("no matching case #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("matching case #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
                break;
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              default:
                y++;
                break;  
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              default:
                y++;
                break;  
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              default:
                y++;
                break;  
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #5", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
              default:
                y++;
                break;  
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case, fall-through #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(2);
  });

  it("matching case, fall-through #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("matching case, fall-through #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("matching case, fall-through #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
              case 3:
                y++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                case 1:
                  y++;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(10);
  });

  it("switch in loop #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                case 1:
                  y++;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
              break;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  break;
                case 3:
                  y++;
                  break;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(5);
  });

  it("switch in loop #5 (continue)", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  x += 3;
                  continue;
                case 3:
                  y++;
              }
              x++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("switch in loop #6 (return)", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  x += 3;
                  return;
                case 3:
                  y++;
              }
              x++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("switch has its own scope", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            let z = 0;
            switch (x) {
              case 0:
                let y = 3;
                z = y + 1;
                break;
              case 1:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks![0].vars.y).equal(0);
    expect(thread.blocks![0].vars.z).equal(4);
  });

  it("switch fails with multiple let", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                let z = 3;
              case 1:
                let z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });

  it("switch fails with multiple const/let", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                let z = 3;
              case 1:
                const z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });

  it("switch fails with multiple const", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                const z = 3;
              case 1:
                const z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });
});

```

--------------------------------------------------------------------------------
/xmlui/tests/components-core/scripts-runner/process-switch.test.ts:
--------------------------------------------------------------------------------

```typescript
import { createEvalContext, parseStatements } from "./test-helpers";
import { describe, expect, it, assert } from "vitest";
import { processStatementQueueAsync } from "../../../src/components-core/script-runner/process-statement-async";

describe("Process switch statements (exp)", () => {
  it("no case", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            switch (x) {
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.x).equal(0);
  });

  it("no matching case #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 3:
                y++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("no matching case #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("no matching case #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(0);
  });

  it("matching case #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
                break;
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              default:
                y++;
                break;  
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              default:
                y++;
                break;  
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              default:
                y++;
                break;  
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case #5", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
              default:
                y++;
                break;  
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(1);
  });

  it("matching case, fall-through #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
                break;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(2);
  });

  it("matching case, fall-through #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
                break;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("matching case, fall-through #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
              case 3:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("matching case, fall-through #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                y++;
              case 1:
                y++;
              case 2:
                y++;
              case 3:
                y++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #1", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                case 1:
                  y++;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(10);
  });

  it("switch in loop #2", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                case 1:
                  y++;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
              break;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #3", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  break;
                case 3:
                  y++;
                  break;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(4);
  });

  it("switch in loop #4", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                case 3:
                  y++;
              }
              x++;
            }  
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(5);
  });

  it("switch in loop #5 (continue)", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  x += 3;
                  continue;
                case 3:
                  y++;
              }
              x++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks!.length).equal(1);
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("switch in loop #6 (return)", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            while (x < 4) {
              switch (x) {
                case 0:
                  y++;
                  break;
                case 1:
                  y++;
                  break;
                case 2:
                  y++;
                  x += 3;
                  return;
                case 3:
                  y++;
              }
              x++;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks![0].vars.y).equal(3);
  });

  it("switch has its own scope", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            let z = 0;
            switch (x) {
              case 0:
                let y = 3;
                z = y + 1;
                break;
              case 1:
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act
    await processStatementQueueAsync(statements, evalContext);

    // --- Assert
    const thread = evalContext.mainThread!;
    expect(thread.blocks![0].vars.y).equal(0);
    expect(thread.blocks![0].vars.z).equal(4);
  });

  it("switch fails with multiple let", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                let z = 3;
              case 1:
                let z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });

  it("switch fails with multiple const/let", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                let z = 3;
              case 1:
                const z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });

  it("switch fails with multiple const", async () => {
    // --- Arrange
    const source = `
            let x = 0;
            let y = 0;
            switch (x) {
              case 0:
                const z = 3;
              case 1:
                const z = 4;
                y++;
                break;
            }
        `;
    const evalContext = createEvalContext({});
    const statements = parseStatements(source);

    // --- Act/Assert
    try {
      await processStatementQueueAsync(statements, evalContext);
    } catch (err: any) {
      expect(err.toString().includes("already declared")).equal(true);
      return;
    }
    assert.fail("Exception expected");
  });
});

```
Page 58/145FirstPrevNextLast