This is page 77 of 190. Use http://codebase.md/xmlui-org/xmlui/xmlui/tools/vscode/resources/xmlui-markup-syntax-highlighting.png?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ └── tender-llamas-dress.md
├── .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
│ │ │ ├── Choose.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
│ │ └── 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
│ │ ├── Choose
│ │ │ ├── Choose.md
│ │ │ ├── Choose.spec.ts
│ │ │ └── Choose.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
1 | # Tooltip [#tooltip]
2 |
3 | A tooltip component that displays text when hovering over trigger content.
4 |
5 | ## Using Tooltip [#using-tooltip]
6 |
7 | 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.
8 |
9 | ### The `tooltip` property [#the-tooltip-property]
10 |
11 | ```xmlui-pg display copy height="180px" /tooltip/ name="Example: using the tooltip property"
12 | <App>
13 | <CHStack height="100px" verticalAlignment="center" >
14 | <Button
15 | label="Hover the mouse over me!"
16 | tooltip="I'm hovered!"
17 | >
18 | </Button>
19 | </CHStack>
20 | </App>
21 | ```
22 |
23 | ### The `tooltipMarkdown` property [#the-tooltipmarkdown-property]
24 |
25 | The `tooltipMarkdown` property allows you to use the tooltip with markdown syntax.
26 |
27 | ```xmlui-pg display copy /tooltipMarkdown/ name="Example: using the tooltipMarkdown property"
28 | <App>
29 | <VStack height="80px" width="fit-content">
30 | <Card
31 | title="Tooltip with markdown"
32 | tooltipMarkdown="This *example* uses `toolTipMarkdown`"
33 | tooltipOptions="right"
34 | />
35 | </VStack>
36 | </App>
37 | ```
38 |
39 | ### The `tooltipOptions` property [#the-tooltipoptions-property]
40 |
41 | 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.
42 |
43 | For example, the following example positions the tooltip to the right, making it appear somewhat distant from the component.
44 |
45 | ```xmlui-pg display copy height="180px" /tooltipOptions/ name="Example: using the tooltipOptions property"
46 | <App>
47 | <CHStack height="100px" verticalAlignment="center" >
48 | <Button
49 | label="Hover the mouse over me!"
50 | tooltip="I'm hovered"
51 | tooltipOptions="right; sideOffset: 32"
52 | >
53 | </Button>
54 | </CHStack>
55 | </App>
56 | ```
57 |
58 | 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:
59 |
60 | ```xmlui-pg display copy height="180px" /tooltipOptions/ name="Example: tooltipOptions as an object"
61 | <App>
62 | <CHStack height="100px" verticalAlignment="center" >
63 | <Button
64 | label="Hover the mouse over me!"
65 | tooltip="Use an object"
66 | tooltipOptions="{{ showArrow: false, side: 'bottom', align: 'start' }}"
67 | >
68 | </Button>
69 | </CHStack>
70 | </App>
71 | ```
72 |
73 | 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:
74 |
75 | ```xmlui-pg display copy height="300px" /tooltipOptions/ name="Example: tooltipOptions as a string"
76 | <App>
77 | <VStack height="100px" horizontalAlignment="center" gap="3rem">
78 | <Card
79 | title="Tooltip to the left with 800ms delay"
80 | tooltip="I'm a Tooltip"
81 | tooltipOptions="left; delayDuration: 800; !showArrow" />
82 | <HStack>
83 | <Icon
84 | name="email"
85 | width="48px"
86 | height="48px"
87 | tooltipMarkdown="**Tooltip** to the bottom with no arrows, aligned left"
88 | tooltipOptions="bottom; !showArrow; start" />
89 | <Icon
90 | name="phone"
91 | width="48px"
92 | height="48px"
93 | tooltipMarkdown="*Tooltip* to the bottom with arrows, 28 pixels away"
94 | tooltipOptions="bottom; showArrow; sideOffset: 28" />
95 | </HStack>
96 | </VStack>
97 | </App>
98 | ```
99 |
100 | ### Using the Tooltip component [#using-the-tooltip-component]
101 |
102 | Instead of using the tooltip-related properties, you can wrap the component into a `Tooltip`:
103 |
104 | ```xmlui-pg display copy height="260px" name="Example: Using the Tooltip component"
105 | <App>
106 | <VStack height="100px" horizontalAlignment="center">
107 | <Tooltip side="bottom" markdown="This *example* uses a `Tooltip` component">
108 | <Stack>
109 | <Card title="Card 1: within a Tooltip" />
110 | <Card title="Card 2: within the same Tooltip" />
111 | </Stack>
112 | </Tooltip>
113 | </VStack>
114 | </App>
115 | ```
116 |
117 | ### Using a Tooltip template [#using-a-tooltip-template]
118 |
119 | You can specify tooltips that you could not otherwise do with the `text` or `markdown` properties.
120 |
121 | ```xmlui-pg display copy height="200px" name="Example: Using a tooltipTemplate" /tooltipTemplate/
122 | <App>
123 | <VStack height="100px" horizontalAlignment="center">
124 | <Tooltip side="bottom">
125 | <property name="tooltipTemplate">
126 | <HStack>
127 | <Stack width="24px" height="24px" backgroundColor="purple" />
128 | <H2>This is a tooltip</H2>
129 | </HStack>
130 | </property>
131 | <Card title="I have a templated Tooltip!" />
132 | </Tooltip>
133 | </VStack>
134 | </App>
135 | ```
136 |
137 | A `tooltipTemplate` may be able to use the `$tooltip` context variable.
138 |
139 | ```xmlui-pg display copy height="600px" name="Example: tooltipTemplate with $tooltip context variable"
140 | <App
141 | var.starData="{[
142 | { star_date: '2025-02-11T00:00:00Z', xmlui_stars: 0, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
143 | { star_date: '2025-07-18T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
144 | { star_date: '2025-07-19T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
145 | { star_date: '2025-07-20T00:00:00Z', xmlui_stars: 48, xmlui_test_server_stars: 5, xmlui_invoice_stars: 2, xmlui_mcp_stars: 1 },
146 | { star_date: '2025-07-21T00:00:00Z', xmlui_stars: 62, xmlui_test_server_stars: 8, xmlui_invoice_stars: 3, xmlui_mcp_stars: 2 },
147 | { star_date: '2025-07-22T00:00:00Z', xmlui_stars: 16, xmlui_test_server_stars: 3, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
148 | { star_date: '2025-07-23T00:00:00Z', xmlui_stars: 6, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
149 | { star_date: '2025-07-24T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
150 | { star_date: '2025-07-25T00:00:00Z', xmlui_stars: 10, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
151 | { star_date: '2025-07-26T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
152 | { star_date: '2025-07-27T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
153 | { star_date: '2025-07-28T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
154 | { star_date: '2025-07-29T00:00:00Z', xmlui_stars: 4, xmlui_test_server_stars: 2, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
155 | { star_date: '2025-07-30T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
156 | { star_date: '2025-07-31T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
157 | { star_date: '2025-08-01T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
158 | { star_date: '2025-08-05T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
159 | { star_date: '2025-08-07T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
160 | { star_date: '2025-08-08T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
161 | { star_date: '2025-08-12T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 },
162 | { star_date: '2025-08-14T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
163 | { star_date: '2025-08-15T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 1, xmlui_invoice_stars: 0, xmlui_mcp_stars: 0 },
164 | { star_date: '2025-08-18T00:00:00Z', xmlui_stars: 2, xmlui_test_server_stars: 0, xmlui_invoice_stars: 1, xmlui_mcp_stars: 1 },
165 | { star_date: '2025-08-19T00:00:00Z', xmlui_stars: 3, xmlui_test_server_stars: 1, xmlui_invoice_stars: 1, xmlui_mcp_stars: 0 },
166 | { star_date: '2025-08-20T00:00:00Z', xmlui_stars: 1, xmlui_test_server_stars: 0, xmlui_invoice_stars: 0, xmlui_mcp_stars: 1 }
167 | ]}"
168 | >
169 |
170 | <VStack padding="$space-4" gap="$space-4">
171 | <Text fontSize="$fontSize-xl" fontWeight="$fontWeight-semibold">
172 | XMLUI Stars Over Time
173 | </Text>
174 |
175 | <Card height="400px">
176 | <LineChart
177 | data="{starData}"
178 | yKeys="{['xmlui_stars', 'xmlui_test_server_stars', 'xmlui_invoice_stars', 'xmlui_mcp_stars']}"
179 | xKey="star_date"
180 | showLegend="true"
181 | tickFormatterX="{formatDateWithoutYear}">
182 | <property name="tooltipTemplate">
183 | <Theme
184 | border-cell-Table="none"
185 | padding-cell-Table="0">
186 | <VStack
187 | gap="0"
188 | width="16rem"
189 | borderRadius="$borderRadius"
190 | boxShadow="$boxShadow-md"
191 | backgroundColor="$color-surface-100">
192 | <Text>
193 | {formatDate($tooltip.label)}
194 | </Text>
195 | <Table
196 | lineHeight="$lineHeight-tight"
197 | data="{$tooltip.payload}"
198 | hideHeader="true"
199 | noBottomBorder="true">
200 | <Column width="3*">
201 | <HStack gap="$space-2" verticalAlignment="center">
202 | <Stack
203 | width="8px"
204 | height="8px"
205 | backgroundColor="{$item.color}" />
206 | <Text fontSize="$fontSize-smaller">
207 | {$item.label}
208 | </Text>
209 | </HStack>
210 | </Column>
211 | <Column>
212 | <Text fontSize="$fontSize-smaller">
213 | {$item.value}
214 | </Text>
215 | </Column>
216 | </Table>
217 | </VStack>
218 | </Theme>
219 | </property>
220 | </LineChart>
221 | </Card>
222 | </VStack>
223 | </App>
224 | ```
225 |
226 | ## Properties [#properties]
227 |
228 | ### `align` (default: "center") [#align-default-center]
229 |
230 | The preferred alignment against the trigger
231 |
232 | Available values: `start`, `center` **(default)**, `end`
233 |
234 | ### `alignOffset` (default: 0) [#alignoffset-default-0]
235 |
236 | An offset in pixels from the 'start' or 'end' alignment options
237 |
238 | ### `avoidCollisions` (default: true) [#avoidcollisions-default-true]
239 |
240 | When true, overrides the side and align preferences to prevent collisions with boundary edges
241 |
242 | ### `defaultOpen` (default: false) [#defaultopen-default-false]
243 |
244 | The open state of the tooltip when it is initially rendered
245 |
246 | ### `delayDuration` (default: 700) [#delayduration-default-700]
247 |
248 | The duration from when the mouse enters a tooltip trigger until the tooltip opens (in ms)
249 |
250 | ### `markdown` [#markdown]
251 |
252 | The markdown content to display in the tooltip
253 |
254 | ### `showArrow` (default: false) [#showarrow-default-false]
255 |
256 | Whether to show the arrow pointing to the trigger element
257 |
258 | ### `side` (default: "top") [#side-default-top]
259 |
260 | The preferred side of the trigger to render against when open
261 |
262 | Available values: `top` **(default)**, `right`, `bottom`, `left`
263 |
264 | ### `sideOffset` (default: 4) [#sideoffset-default-4]
265 |
266 | The distance in pixels from the trigger
267 |
268 | ### `skipDelayDuration` (default: 300) [#skipdelayduration-default-300]
269 |
270 | How much time a user has to enter another trigger without incurring a delay again (in ms)
271 |
272 | ### `text` [#text]
273 |
274 | The text content to display in the tooltip
275 |
276 | ### `tooltipTemplate` [#tooltiptemplate]
277 |
278 | The template for the tooltip content
279 |
280 | ## Events [#events]
281 |
282 | This component does not have any events.
283 |
284 | ## Exposed Methods [#exposed-methods]
285 |
286 | This component does not expose any methods.
287 |
288 | ## Styling [#styling]
289 |
290 | ### Theme Variables [#theme-variables]
291 |
292 | | Variable | Default Value (Light) | Default Value (Dark) |
293 | | --- | --- | --- |
294 | | [animation](../styles-and-themes/layout-props/#animation)-Tooltip | cubic-bezier(0.16, 1, 0.3, 1) | cubic-bezier(0.16, 1, 0.3, 1) |
295 | | [animationDuration](../styles-and-themes/layout-props/#animationDuration)-Tooltip | 400ms | 400ms |
296 | | [backgroundColor](../styles-and-themes/common-units/#color)-Tooltip | $color-surface-0 | $color-surface-200 |
297 | | [border](../styles-and-themes/common-units/#border)-Tooltip | none | none |
298 | | [borderBottom](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
299 | | [borderBottomColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
300 | | [borderBottomStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
301 | | [borderBottomWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
302 | | [borderColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
303 | | [borderEndEndRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
304 | | [borderEndStartRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
305 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
306 | | [borderHorizontalColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
307 | | [borderHorizontalStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
308 | | [borderHorizontalWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
309 | | [borderLeft](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
310 | | [color](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
311 | | [borderLeftStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
312 | | [borderLeftWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
313 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | 4px | 4px |
314 | | [borderRight](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
315 | | [color](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
316 | | [borderRightStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
317 | | [borderRightWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
318 | | [borderStartEndRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
319 | | [borderStartStartRadius](../styles-and-themes/common-units/#border-rounding)-Tooltip | *none* | *none* |
320 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
321 | | [borderTop](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
322 | | [borderTopColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
323 | | [borderTopStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
324 | | [borderTopWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
325 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Tooltip | *none* | *none* |
326 | | [borderVerticalColor](../styles-and-themes/common-units/#color)-Tooltip | *none* | *none* |
327 | | [borderVerticalStyle](../styles-and-themes/common-units/#border-style)-Tooltip | *none* | *none* |
328 | | [borderVerticalWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
329 | | [borderWidth](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
330 | | [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 |
331 | | [fill](../styles-and-themes/common-units/#color)-arrow-Tooltip | $color-surface-200 | $color-surface-200 |
332 | | [fontSize](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
333 | | [lineHeight](../styles-and-themes/common-units/#size)-Tooltip | 1 | 1 |
334 | | [padding](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
335 | | [paddingBottom](../styles-and-themes/common-units/#size)-Tooltip | 10px | 10px |
336 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
337 | | [paddingLeft](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
338 | | [paddingRight](../styles-and-themes/common-units/#size)-Tooltip | 15px | 15px |
339 | | [paddingTop](../styles-and-themes/common-units/#size)-Tooltip | 10px | 10px |
340 | | [paddingVertical](../styles-and-themes/common-units/#size)-Tooltip | *none* | *none* |
341 | | [stroke](../styles-and-themes/common-units/#color)-arrow-Tooltip | $color-surface-200 | $color-surface-200 |
342 | | [strokeWidth](../styles-and-themes/common-units/#size)-arrow-Tooltip | 0 | 0 |
343 | | [textColor](../styles-and-themes/common-units/#color)-Tooltip | $textcolor-primary | $textcolor-primary |
344 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Theme/Theme.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds, getStyles } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 |
4 | const PAGE_WIDTH = 1200;
5 | const PAGE_HEIGHT = 500;
6 | test.use({ viewport: { width: PAGE_WIDTH, height: PAGE_HEIGHT } });
7 |
8 | test("Themed NavPanel", async ({ page, initTestBed }) => {
9 | const EXPECTED_COLOR = "rgb(23, 35, 43)";
10 | await initTestBed(
11 | `
12 | <App layout="vertical">
13 | <Theme tone="dark">
14 | <NavPanel testId="nav-panel">
15 | <NavLink to="/something">Something</NavLink>
16 | </NavPanel>
17 | </Theme>
18 | </App>
19 | `,
20 | {
21 | themes: [
22 | {
23 | id: "test",
24 | extends: "light",
25 | tones: {
26 | dark: {
27 | themeVars: {
28 | "background-color": EXPECTED_COLOR,
29 | },
30 | },
31 | },
32 | },
33 | ],
34 | defaultTheme: "test",
35 | },
36 | );
37 | const { backgroundColor } = await getStyles(page.getByTestId("nav-panel"), "background-color");
38 | const boundingRect = await getBounds(page.getByTestId("nav-panel"));
39 |
40 | expect(boundingRect.top).toBe(0);
41 | expect(boundingRect.height).toBe(PAGE_HEIGHT);
42 | expect(boundingRect.bottom).toBe(PAGE_HEIGHT);
43 | expect(backgroundColor).toBe(EXPECTED_COLOR);
44 | });
45 |
46 | test("Themed AppHeader", async ({ page, initTestBed }) => {
47 | const EXPECTED_COLOR = "rgb(28, 43, 53)";
48 | await initTestBed(
49 | `
50 | <App layout="vertical" scrollWholePage="false">
51 | <Theme tone="dark">
52 | <AppHeader testId="app-header"/>
53 | </Theme>
54 | </App>
55 | `,
56 | {
57 | themes: [
58 | {
59 | id: "test",
60 | extends: "light",
61 | tones: {
62 | dark: {
63 | themeVars: {
64 | "background-color": EXPECTED_COLOR,
65 | },
66 | },
67 | },
68 | },
69 | ],
70 | defaultTheme: "test",
71 | },
72 | );
73 | const { backgroundColor } = await getStyles(page.getByTestId("app-header"), "background-color");
74 | const boundingRect = await getBounds(page.getByTestId("app-header"));
75 |
76 | expect(boundingRect.top).toBe(0);
77 | expect(boundingRect.width).toBe(PAGE_WIDTH);
78 | expect(backgroundColor).toBe(EXPECTED_COLOR);
79 | });
80 |
81 | test("Themed Footer", async ({ page, initTestBed }) => {
82 | const EXPECTED_COLOR = "rgb(28, 43, 53)";
83 | await initTestBed(
84 | `
85 | <App scrollWholePage="false">
86 | <Theme tone="dark">
87 | <Footer testId="app-footer"/>
88 | </Theme>
89 | </App>
90 | `,
91 | {
92 | themes: [
93 | {
94 | id: "test",
95 | extends: "light",
96 | tones: {
97 | dark: {
98 | themeVars: {
99 | "background-color": EXPECTED_COLOR,
100 | },
101 | },
102 | },
103 | },
104 | ],
105 | defaultTheme: "test",
106 | },
107 | );
108 |
109 | const { backgroundColor } = await getStyles(page.getByTestId("app-footer"), "background-color");
110 | const boundingRect = await getBounds(page.getByTestId("app-footer"));
111 |
112 | expect(boundingRect.left).toBe(0);
113 | expect(boundingRect.bottom).toEqualWithTolerance(PAGE_HEIGHT, 0.01);
114 | expect(boundingRect.width).toEqualWithTolerance(PAGE_WIDTH, 0.01);
115 | expect(backgroundColor).toBe(EXPECTED_COLOR);
116 | });
117 |
118 | test("Themed H1 regression", async ({ page, initTestBed }) => {
119 | await initTestBed(`
120 | <App>
121 | <Theme textColor-H1="rgb(255, 0, 0)" textColor-H2="rgb(0, 255, 0)">
122 | <H1 testId="red">Should be red</H1>
123 | <H2 testId="green">Should be green</H2>
124 | </Theme>
125 | </App>
126 | `);
127 |
128 | const { color: h1Color } = await getStyles(page.getByTestId("red"), "color");
129 | const { color: h2Color } = await getStyles(page.getByTestId("green"), "color");
130 |
131 | expect(h1Color).toBe("rgb(255, 0, 0)");
132 | expect(h2Color).toBe("rgb(0, 255, 0)");
133 | });
134 |
135 | // =============================================================================
136 | // APPLYIF PROPERTY TESTS
137 | // =============================================================================
138 |
139 | test.describe("applyIf Property", () => {
140 | test("applies theme when applyIf is true (default)", async ({ page, initTestBed }) => {
141 | const EXPECTED_COLOR = "rgb(255, 0, 0)";
142 | await initTestBed(`
143 | <App>
144 | <Theme backgroundColor-Button="${EXPECTED_COLOR}" applyIf="true">
145 | <Button testId="themed-button">Themed Button</Button>
146 | </Theme>
147 | </App>
148 | `);
149 |
150 | const { backgroundColor } = await getStyles(page.getByTestId("themed-button"), "background-color");
151 | expect(backgroundColor).toBe(EXPECTED_COLOR);
152 | });
153 |
154 | test("applies theme when applyIf is omitted (defaults to true)", async ({ page, initTestBed }) => {
155 | const EXPECTED_COLOR = "rgb(0, 255, 0)";
156 | await initTestBed(`
157 | <App>
158 | <Theme backgroundColor-Button="${EXPECTED_COLOR}">
159 | <Button testId="themed-button">Themed Button</Button>
160 | </Theme>
161 | </App>
162 | `);
163 |
164 | const { backgroundColor } = await getStyles(page.getByTestId("themed-button"), "background-color");
165 | expect(backgroundColor).toBe(EXPECTED_COLOR);
166 | });
167 |
168 | test("does not apply theme when applyIf is false", async ({ page, initTestBed }) => {
169 | const THEME_COLOR = "rgb(255, 0, 0)";
170 | await initTestBed(`
171 | <App>
172 | <Theme backgroundColor-Button="${THEME_COLOR}" applyIf="false">
173 | <Button testId="unthemed-button">Unthemed Button</Button>
174 | </Theme>
175 | </App>
176 | `);
177 |
178 | const { backgroundColor } = await getStyles(page.getByTestId("unthemed-button"), "background-color");
179 | // Should not have the theme color when applyIf is false
180 | expect(backgroundColor).not.toBe(THEME_COLOR);
181 | });
182 |
183 | test("renders children without theme wrapper when applyIf is false", async ({ page, initTestBed }) => {
184 | await initTestBed(`
185 | <App>
186 | <Theme tone="dark" applyIf="false">
187 | <Button testId="button">Button Text</Button>
188 | <H1 testId="header">Header Text</H1>
189 | </Theme>
190 | </App>
191 | `);
192 |
193 | // Children should still be rendered and visible
194 | await expect(page.getByTestId("button")).toBeVisible();
195 | await expect(page.getByTestId("header")).toBeVisible();
196 | await expect(page.getByTestId("button")).toHaveText("Button Text");
197 | await expect(page.getByTestId("header")).toHaveText("Header Text");
198 | });
199 |
200 | test("supports dynamic applyIf with binding expressions", async ({ page, initTestBed }) => {
201 | const { testStateDriver } = await initTestBed(`
202 | <App>
203 | <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState === true}">
204 | <Button testId="conditional-button" onClick="testState = testState === true ? false : true">Toggle Theme</Button>
205 | </Theme>
206 | </App>
207 | `);
208 |
209 | // Initially testState is null, expression evaluates to false
210 | const initialBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
211 | expect(initialBackground.backgroundColor).not.toBe("rgb(255, 0, 0)");
212 |
213 | // Click to make testState true, theme should be applied
214 | await page.getByTestId("conditional-button").click();
215 | await expect.poll(testStateDriver.testState).toBe(true);
216 |
217 | const appliedBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
218 | expect(appliedBackground.backgroundColor).toBe("rgb(255, 0, 0)");
219 |
220 | // Click again to make testState false, theme should not be applied
221 | await page.getByTestId("conditional-button").click();
222 | await expect.poll(testStateDriver.testState).toBe(false);
223 |
224 | const removedBackground = await getStyles(page.getByTestId("conditional-button"), "background-color");
225 | expect(removedBackground.backgroundColor).not.toBe("rgb(255, 0, 0)");
226 | });
227 |
228 | test("handles nested themes with different applyIf values", async ({ page, initTestBed }) => {
229 | const OUTER_COLOR = "rgb(255, 0, 0)";
230 | const INNER_COLOR = "rgb(0, 255, 0)";
231 |
232 | await initTestBed(`
233 | <App>
234 | <Theme backgroundColor-Button="${OUTER_COLOR}" applyIf="true">
235 | <Button testId="outer-themed">Outer Themed</Button>
236 | <Theme backgroundColor-Button="${INNER_COLOR}" applyIf="false">
237 | <Button testId="inner-unthemed">Inner Unthemed</Button>
238 | </Theme>
239 | </Theme>
240 | </App>
241 | `);
242 |
243 | // Outer button should have outer theme applied
244 | const { backgroundColor: outerBg } = await getStyles(page.getByTestId("outer-themed"), "background-color");
245 | expect(outerBg).toBe(OUTER_COLOR);
246 |
247 | // Inner button should inherit outer theme (inner theme not applied due to applyIf=false)
248 | const { backgroundColor: innerBg } = await getStyles(page.getByTestId("inner-unthemed"), "background-color");
249 | expect(innerBg).toBe(OUTER_COLOR); // Should inherit from outer theme
250 | });
251 |
252 | test("applies multiple theme variables when applyIf is true", async ({ page, initTestBed }) => {
253 | const BG_COLOR = "rgb(255, 0, 0)";
254 | const TEXT_COLOR = "rgb(0, 255, 0)";
255 |
256 | await initTestBed(`
257 | <App>
258 | <Theme
259 | backgroundColor-Button="${BG_COLOR}"
260 | textColor-Button="${TEXT_COLOR}"
261 | applyIf="true"
262 | >
263 | <Button testId="multi-themed">Multi Themed</Button>
264 | </Theme>
265 | </App>
266 | `);
267 |
268 | const { backgroundColor } = await getStyles(
269 | page.getByTestId("multi-themed"),
270 | "background-color"
271 | );
272 | const { color } = await getStyles(
273 | page.getByTestId("multi-themed"),
274 | "color"
275 | );
276 | expect(backgroundColor).toBe(BG_COLOR);
277 | expect(color).toBe(TEXT_COLOR);
278 | });
279 |
280 | test("does not apply any theme variables when applyIf is false", async ({ page, initTestBed }) => {
281 | const BG_COLOR = "rgb(255, 0, 0)";
282 | const TEXT_COLOR = "rgb(0, 255, 0)";
283 |
284 | await initTestBed(`
285 | <App>
286 | <Theme
287 | backgroundColor-Button="${BG_COLOR}"
288 | textColor-Button="${TEXT_COLOR}"
289 | applyIf="false"
290 | >
291 | <Button testId="no-theme">No Theme</Button>
292 | </Theme>
293 | </App>
294 | `);
295 |
296 | const { backgroundColor } = await getStyles(
297 | page.getByTestId("no-theme"),
298 | "background-color"
299 | );
300 | const { color } = await getStyles(
301 | page.getByTestId("no-theme"),
302 | "color"
303 | );
304 | expect(backgroundColor).not.toBe(BG_COLOR);
305 | expect(color).not.toBe(TEXT_COLOR);
306 | });
307 | });
308 |
309 | // =============================================================================
310 | // APPLYIF EDGE CASES
311 | // =============================================================================
312 |
313 | test.describe("applyIf Edge Cases", () => {
314 | test("handles null applyIf value gracefully", async ({ page, initTestBed }) => {
315 | const { testStateDriver } = await initTestBed(`
316 | <App>
317 | <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState === 'apply'}">
318 | <Button testId="null-apply" onClick="testState = testState === 'apply' ? null : 'apply'">Button</Button>
319 | </Theme>
320 | </App>
321 | `);
322 |
323 | // Initially testState is null, expression evaluates to false
324 | const initialBg = await getStyles(page.getByTestId("null-apply"), "background-color");
325 | expect(initialBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
326 |
327 | // Button should still be visible
328 | await expect(page.getByTestId("null-apply")).toBeVisible();
329 |
330 | // Click to set testState to 'apply', theme should be applied
331 | await page.getByTestId("null-apply").click();
332 | await expect.poll(testStateDriver.testState).toBe("apply");
333 |
334 | const appliedBg = await getStyles(page.getByTestId("null-apply"), "background-color");
335 | expect(appliedBg.backgroundColor).toBe("rgb(255, 0, 0)");
336 |
337 | // Click again to set testState to null, theme should not be applied
338 | await page.getByTestId("null-apply").click();
339 | await expect.poll(testStateDriver.testState).toBe(null);
340 |
341 | const removedBg = await getStyles(page.getByTestId("null-apply"), "background-color");
342 | expect(removedBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
343 | });
344 |
345 | test("handles undefined applyIf value (defaults to true)", async ({ page, initTestBed }) => {
346 | const { testStateDriver } = await initTestBed(`
347 | <App>
348 | <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState > 10 ? true : undefined}">
349 | <Button testId="undefined-apply" onClick="testState = testState == null ? 5 : testState + 10">Button</Button>
350 | </Theme>
351 | </App>
352 | `);
353 |
354 | // Initially testState is null, expression evaluates to undefined (should use default true)
355 | const initialBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
356 | expect(initialBg.backgroundColor).toBe("rgb(255, 0, 0)"); // undefined should default to true
357 |
358 | // Button should still be visible
359 | await expect(page.getByTestId("undefined-apply")).toBeVisible();
360 |
361 | // Click to set testState to 5, expression evaluates to undefined (should use default true)
362 | await page.getByTestId("undefined-apply").click();
363 | await expect.poll(testStateDriver.testState).toBe(5);
364 |
365 | const afterFirstClickBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
366 | expect(afterFirstClickBg.backgroundColor).toBe("rgb(255, 0, 0)"); // undefined should default to true
367 |
368 | // Click again to set testState to 15, expression evaluates to true (explicit true)
369 | await page.getByTestId("undefined-apply").click();
370 | await expect.poll(testStateDriver.testState).toBe(15);
371 |
372 | const afterSecondClickBg = await getStyles(page.getByTestId("undefined-apply"), "background-color");
373 | expect(afterSecondClickBg.backgroundColor).toBe("rgb(255, 0, 0)");
374 | });
375 |
376 | test("handles string 'false' as truthy value", async ({ page, initTestBed }) => {
377 | await initTestBed(`
378 | <App>
379 | <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="false">
380 | <Button testId="string-false">Button</Button>
381 | </Theme>
382 | </App>
383 | `);
384 |
385 | // String "false" should be treated as boolean false, so theme should not be applied
386 | const { backgroundColor } = await getStyles(page.getByTestId("string-false"), "background-color");
387 | expect(backgroundColor).not.toBe("rgb(255, 0, 0)");
388 | });
389 |
390 | test("handles numeric values correctly", async ({ page, initTestBed }) => {
391 | const THEME_COLOR = "rgb(255, 0, 0)";
392 |
393 | // Test with 0 (falsy)
394 | await initTestBed(`
395 | <App>
396 | <Theme backgroundColor-Button="${THEME_COLOR}" applyIf="{0}">
397 | <Button testId="zero-apply">Button Zero</Button>
398 | </Theme>
399 | </App>
400 | `);
401 |
402 | const { backgroundColor: zeroBg } = await getStyles(page.getByTestId("zero-apply"), "background-color");
403 | expect(zeroBg).not.toBe(THEME_COLOR);
404 | });
405 |
406 | test("works with complex conditional expressions", async ({ page, initTestBed }) => {
407 | const { testStateDriver } = await initTestBed(`
408 | <App>
409 | <Theme backgroundColor-Button="rgb(255, 0, 0)" applyIf="{testState > 5}">
410 | <Button testId="complex-condition" onClick="testState = testState == null ? 1 : testState + 3">
411 | Increment by 3
412 | </Button>
413 | </Theme>
414 | </App>
415 | `);
416 |
417 | // Initially testState is null, condition should be false
418 | const initialBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
419 | expect(initialBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
420 |
421 | // Click once: testState becomes 1 (1 > 5 is false)
422 | await page.getByTestId("complex-condition").click();
423 | await expect.poll(testStateDriver.testState).toBe(1);
424 |
425 | const firstClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
426 | expect(firstClickBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
427 |
428 | // Click again: testState becomes 4 (4 > 5 is false)
429 | await page.getByTestId("complex-condition").click();
430 | await expect.poll(testStateDriver.testState).toBe(4);
431 |
432 | const secondClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
433 | expect(secondClickBg.backgroundColor).not.toBe("rgb(255, 0, 0)");
434 |
435 | // Click again: testState becomes 7 (7 > 5 is true, theme should apply)
436 | await page.getByTestId("complex-condition").click();
437 | await expect.poll(testStateDriver.testState).toBe(7);
438 |
439 | const thirdClickBg = await getStyles(page.getByTestId("complex-condition"), "background-color");
440 | expect(thirdClickBg.backgroundColor).toBe("rgb(255, 0, 0)");
441 | });
442 |
443 | test("preserves children structure when applyIf is false", async ({ page, initTestBed }) => {
444 | await initTestBed(`
445 | <App>
446 | <Theme applyIf="false">
447 | <VStack testId="container">
448 | <Button testId="first-button">First</Button>
449 | <H1 testId="header">Header</H1>
450 | <Button testId="second-button">Second</Button>
451 | </VStack>
452 | </Theme>
453 | </App>
454 | `);
455 |
456 | // All children should be present and in correct order
457 | await expect(page.getByTestId("container")).toBeVisible();
458 | await expect(page.getByTestId("first-button")).toBeVisible();
459 | await expect(page.getByTestId("header")).toBeVisible();
460 | await expect(page.getByTestId("second-button")).toBeVisible();
461 |
462 | // Check text content is preserved
463 | await expect(page.getByTestId("first-button")).toHaveText("First");
464 | await expect(page.getByTestId("header")).toHaveText("Header");
465 | await expect(page.getByTestId("second-button")).toHaveText("Second");
466 | });
467 | });
468 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Items/Items.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { expect, test } from "../../testing/fixtures";
2 |
3 | // =============================================================================
4 | // BASIC FUNCTIONALITY TESTS
5 | // =============================================================================
6 |
7 | test.describe("Basic Functionality", () => {
8 | test("renders with basic data array", async ({ initTestBed, page }) => {
9 | await initTestBed(`
10 | <Items data="{[
11 | { name: 'Item 1' },
12 | { name: 'Item 2' },
13 | { name: 'Item 3' }
14 | ]}">
15 | <Text testId="item-{$itemIndex}">{$item.name}</Text>
16 | </Items>
17 | `);
18 |
19 | await expect(page.getByTestId("item-0")).toContainText("Item 1");
20 | await expect(page.getByTestId("item-1")).toContainText("Item 2");
21 | await expect(page.getByTestId("item-2")).toContainText("Item 3");
22 | });
23 |
24 | test("renders with inline itemTemplate property", async ({ initTestBed, page }) => {
25 | await initTestBed(`
26 | <Items data="{[
27 | { value: 'First' },
28 | { value: 'Second' }
29 | ]}">
30 | <property name="itemTemplate">
31 | <Text testId="template-item-{$itemIndex}">{$item.value}</Text>
32 | </property>
33 | </Items>
34 | `);
35 |
36 | await expect(page.getByTestId("template-item-0")).toContainText("First");
37 | await expect(page.getByTestId("template-item-1")).toContainText("Second");
38 | });
39 |
40 | test("renders nothing with empty data array", async ({ initTestBed, page }) => {
41 | await initTestBed(`
42 | <VStack testId="container">
43 | <Text>Container Content</Text>
44 | <Items data="{[]}">
45 | <Text>{$item.name}</Text>
46 | </Items>
47 | </VStack>
48 | `);
49 |
50 | const container = page.getByTestId("container");
51 | await expect(container).toBeVisible();
52 |
53 | // Should contain the text we added to make container visible
54 | await expect(container).toContainText("Container Content");
55 |
56 | // Container should have exactly one child (our text element, not the empty Items)
57 | const textElements = container.locator("div").filter({ hasText: "Container Content" });
58 | await expect(textElements).toHaveCount(1);
59 | });
60 |
61 | test("renders nothing with null data", async ({ initTestBed, page }) => {
62 | await initTestBed(`
63 | <VStack testId="container">
64 | <Text>Container Content</Text>
65 | <Items data="{null}">
66 | <Text>{$item.name}</Text>
67 | </Items>
68 | </VStack>
69 | `);
70 |
71 | const container = page.getByTestId("container");
72 | await expect(container).toBeVisible();
73 |
74 | // Should contain the text we added to make container visible
75 | await expect(container).toContainText("Container Content");
76 |
77 | // Container should have exactly one child (our text element, not the null Items)
78 | const textElements = container.locator("div").filter({ hasText: "Container Content" });
79 | await expect(textElements).toHaveCount(1);
80 | });
81 |
82 | test("renders nothing with undefined data", async ({ initTestBed, page }) => {
83 | await initTestBed(`
84 | <VStack testId="container">
85 | <Text>Container Content</Text>
86 | <Items data="{undefined}">
87 | <Text>{$item.name}</Text>
88 | </Items>
89 | </VStack>
90 | `);
91 |
92 | const container = page.getByTestId("container");
93 | await expect(container).toBeVisible();
94 |
95 | // Should contain the text we added to make container visible
96 | await expect(container).toContainText("Container Content");
97 |
98 | // Container should have exactly one child (our text element, not the undefined Items)
99 | const textElements = container.locator("div").filter({ hasText: "Container Content" });
100 | await expect(textElements).toHaveCount(1);
101 | });
102 |
103 | // =============================================================================
104 | // CONTEXT VARIABLES TESTS
105 | // =============================================================================
106 |
107 | test.describe("Context Variables", () => {
108 | test("$item provides current data item", async ({ initTestBed, page }) => {
109 | await initTestBed(`
110 | <Items data="{[
111 | { id: 1, title: 'First Item' },
112 | { id: 2, title: 'Second Item' }
113 | ]}">
114 | <Text testId="item-{$item.id}">{$item.title}</Text>
115 | </Items>
116 | `);
117 |
118 | await expect(page.getByTestId("item-1")).toContainText("First Item");
119 | await expect(page.getByTestId("item-2")).toContainText("Second Item");
120 | });
121 |
122 | test("$itemIndex provides zero-based index", async ({ initTestBed, page }) => {
123 | await initTestBed(`
124 | <Items data="{['A', 'B', 'C']}">
125 | <Text testId="index-{$itemIndex}">Index: {$itemIndex}, Value: {$item}</Text>
126 | </Items>
127 | `);
128 |
129 | await expect(page.getByTestId("index-0")).toContainText("Index: 0, Value: A");
130 | await expect(page.getByTestId("index-1")).toContainText("Index: 1, Value: B");
131 | await expect(page.getByTestId("index-2")).toContainText("Index: 2, Value: C");
132 | });
133 |
134 | test("$isFirst indicates first item", async ({ initTestBed, page }) => {
135 | await initTestBed(`
136 | <Items data="{['Alpha', 'Beta', 'Gamma']}">
137 | <Text testId="item-{$itemIndex}">{$isFirst ? 'FIRST: ' : ''}{$item}</Text>
138 | </Items>
139 | `);
140 |
141 | await expect(page.getByTestId("item-0")).toContainText("FIRST: Alpha");
142 | await expect(page.getByTestId("item-1")).toContainText("Beta");
143 | await expect(page.getByTestId("item-2")).toContainText("Gamma");
144 | });
145 |
146 | test("$isLast indicates last item", async ({ initTestBed, page }) => {
147 | await initTestBed(`
148 | <Items data="{['Alpha', 'Beta', 'Gamma']}">
149 | <Text testId="item-{$itemIndex}">{$item}{$isLast ? ' :LAST' : ''}</Text>
150 | </Items>
151 | `);
152 |
153 | await expect(page.getByTestId("item-0")).toContainText("Alpha");
154 | await expect(page.getByTestId("item-1")).toContainText("Beta");
155 | await expect(page.getByTestId("item-2")).toContainText("Gamma :LAST");
156 | });
157 |
158 | test("$isFirst and $isLast work with single item", async ({ initTestBed, page }) => {
159 | await initTestBed(`
160 | <Items data="{['OnlyItem']}">
161 | <Text testId="only-item">
162 | {$isFirst ? 'FIRST ' : ''}{$item}{$isLast ? ' LAST' : ''}
163 | </Text>
164 | </Items>
165 | `);
166 |
167 | await expect(page.getByTestId("only-item")).toContainText("FIRST OnlyItem LAST");
168 | });
169 | });
170 |
171 | // =============================================================================
172 | // REVERSE PROPERTY TESTS
173 | // =============================================================================
174 |
175 | test.describe("Reverse Property", () => {
176 | test("default behavior renders items in original order", async ({ initTestBed, page }) => {
177 | await initTestBed(`
178 | <Items data="{['First', 'Second', 'Third']}">
179 | <Text testId="item-{$itemIndex}">{$item}</Text>
180 | </Items>
181 | `);
182 |
183 | // Let's first see what the default behavior is
184 | await expect(page.getByTestId("item-0")).toBeVisible();
185 | await expect(page.getByTestId("item-1")).toBeVisible();
186 | await expect(page.getByTestId("item-2")).toBeVisible();
187 | });
188 |
189 | test("reverse=false renders items in original order", async ({ initTestBed, page }) => {
190 | await initTestBed(`
191 | <Items reverse="{false}" data="{['First', 'Second', 'Third']}">
192 | <Text testId="item-{$itemIndex}">{$item}</Text>
193 | </Items>
194 | `);
195 |
196 | await expect(page.getByTestId("item-0")).toContainText("First");
197 | await expect(page.getByTestId("item-1")).toContainText("Second");
198 | await expect(page.getByTestId("item-2")).toContainText("Third");
199 | });
200 |
201 | test("reverse=true renders items in reversed order", async ({ initTestBed, page }) => {
202 | await initTestBed(`
203 | <Items reverse="{true}" data="{['First', 'Second', 'Third']}">
204 | <Text testId="item-{$itemIndex}">{$item}</Text>
205 | </Items>
206 | `);
207 |
208 | await expect(page.getByTestId("item-0")).toContainText("Third");
209 | await expect(page.getByTestId("item-1")).toContainText("Second");
210 | await expect(page.getByTestId("item-2")).toContainText("First");
211 | });
212 |
213 | test("reverse=true maintains correct context variables", async ({ initTestBed, page }) => {
214 | await initTestBed(`
215 | <Items reverse="{true}" data="{['A', 'B', 'C']}">
216 | <Text testId="item-{$itemIndex}">
217 | {$item} - Index:{$itemIndex} - First:{$isFirst ? 'yes' : 'no'} - Last:{$isLast ? 'yes' : 'no'}
218 | </Text>
219 | </Items>
220 | `);
221 |
222 | // With reverse=true, order is C, B, A but indices should be 0, 1, 2
223 | await expect(page.getByTestId("item-0")).toContainText("C - Index:0 - First:yes - Last:no");
224 | await expect(page.getByTestId("item-1")).toContainText("B - Index:1 - First:no - Last:no");
225 | await expect(page.getByTestId("item-2")).toContainText("A - Index:2 - First:no - Last:yes");
226 | });
227 | });
228 |
229 | // =============================================================================
230 | // ALTERNATIVE DATA SOURCES TESTS
231 | // =============================================================================
232 |
233 | test.describe("Data Sources", () => {
234 | test("items property works as alternative to data property", async ({ initTestBed, page }) => {
235 | await initTestBed(`
236 | <Items items="{[
237 | { name: 'Via Items Prop' },
238 | { name: 'Second Item' }
239 | ]}">
240 | <Text testId="item-{$itemIndex}">{$item.name}</Text>
241 | </Items>
242 | `);
243 |
244 | await expect(page.getByTestId("item-0")).toContainText("Via Items Prop");
245 | await expect(page.getByTestId("item-1")).toContainText("Second Item");
246 | });
247 |
248 | test("object converts to array via Object.values", async ({ initTestBed, page }) => {
249 | await initTestBed(`
250 | <Items data="{{
251 | key1: 'First Value',
252 | key2: 'Second Value',
253 | key3: 'Third Value'
254 | }}">
255 | <Text testId="item-{$itemIndex}">{$item}</Text>
256 | </Items>
257 | `);
258 |
259 | // Object.values order may vary, so we check that all values are present
260 | await expect(page.getByTestId("item-0")).toBeVisible();
261 | await expect(page.getByTestId("item-1")).toBeVisible();
262 | await expect(page.getByTestId("item-2")).toBeVisible();
263 |
264 | // Check that values from the object are rendered
265 | const items = page.locator('[data-testid^="item-"]');
266 | await expect(items).toHaveCount(3);
267 | });
268 | });
269 |
270 | // =============================================================================
271 | // DATA TYPE EDGE CASES TESTS
272 | // =============================================================================
273 |
274 | test.describe("Data Type Edge Cases", () => {
275 | test("handles special characters in data", async ({ initTestBed, page }) => {
276 | await initTestBed(`
277 | <Items data="{[
278 | 'Unicode: 👨👩👧👦',
279 | 'Chinese: 你好世界',
280 | 'Special chars'
281 | ]}">
282 | <Text testId="item-{$itemIndex}">{$item}</Text>
283 | </Items>
284 | `);
285 |
286 | await expect(page.getByTestId("item-0")).toContainText("Unicode: 👨👩👧👦");
287 | await expect(page.getByTestId("item-1")).toContainText("Chinese: 你好世界");
288 | await expect(page.getByTestId("item-2")).toContainText("Special chars");
289 | });
290 |
291 | test("handles numeric data items", async ({ initTestBed, page }) => {
292 | await initTestBed(`
293 | <Items data="{[0, 1, 42, -5, 3.14, NaN, Infinity]}">
294 | <Text testId="number-{$itemIndex}">{$item}</Text>
295 | </Items>
296 | `);
297 |
298 | await expect(page.getByTestId("number-0")).toContainText("0");
299 | await expect(page.getByTestId("number-1")).toContainText("1");
300 | await expect(page.getByTestId("number-2")).toContainText("42");
301 | await expect(page.getByTestId("number-3")).toContainText("-5");
302 | await expect(page.getByTestId("number-4")).toContainText("3.14");
303 | await expect(page.getByTestId("number-5")).toContainText("NaN");
304 | await expect(page.getByTestId("number-6")).toContainText("Infinity");
305 | });
306 |
307 | test("handles boolean data items", async ({ initTestBed, page }) => {
308 | await initTestBed(`
309 | <Items data="{[true, false]}">
310 | <Text testId="bool-{$itemIndex}">{$item}</Text>
311 | </Items>
312 | `);
313 |
314 | await expect(page.getByTestId("bool-0")).toContainText("true");
315 | await expect(page.getByTestId("bool-1")).toContainText("false");
316 | });
317 |
318 | test("handles mixed data types", async ({ initTestBed, page }) => {
319 | await initTestBed(`
320 | <Items data="{[
321 | 'string',
322 | 42,
323 | true,
324 | { name: 'object' }
325 | ]}">
326 | <Text testId="mixed-{$itemIndex}">
327 | {typeof $item === 'object' && $item !== null ? $item.name || 'object' : $item}
328 | </Text>
329 | </Items>
330 | `);
331 |
332 | await expect(page.getByTestId("mixed-0")).toContainText("string");
333 | await expect(page.getByTestId("mixed-1")).toContainText("42");
334 | await expect(page.getByTestId("mixed-2")).toContainText("true");
335 | await expect(page.getByTestId("mixed-3")).toContainText("object");
336 | });
337 | });
338 | });
339 |
340 | // =============================================================================
341 | // OTHER EDGE CASE TESTS
342 | // =============================================================================
343 |
344 | test.describe("Other Edge Cases", () => {
345 | test("handles no template children gracefully", async ({ initTestBed, page }) => {
346 | await initTestBed(`
347 | <VStack testId="container">
348 | <Text>Before Items</Text>
349 | <Items data="{['item1', 'item2']}">
350 | </Items>
351 | <Text>After Items</Text>
352 | </VStack>
353 | `);
354 |
355 | const container = page.getByTestId("container");
356 | await expect(container).toBeVisible();
357 |
358 | // Should still render the surrounding text elements
359 | await expect(container).toContainText("Before Items");
360 | await expect(container).toContainText("After Items");
361 |
362 | // Items with no template should not render anything
363 | const beforeText = page.getByText("Before Items");
364 | const afterText = page.getByText("After Items");
365 | await expect(beforeText).toBeVisible();
366 | await expect(afterText).toBeVisible();
367 | });
368 |
369 | test("component renders without wrapper element", async ({ initTestBed, page }) => {
370 | await initTestBed(`
371 | <VStack testId="parent">
372 | <Text>Before Items</Text>
373 | <Items data="{['Test Item']}">
374 | <Text testId="item-content">{$item}</Text>
375 | </Items>
376 | <Text>After Items</Text>
377 | </VStack>
378 | `);
379 |
380 | // Items should not add its own wrapper - the item content should be a direct child
381 | const parent = page.getByTestId("parent");
382 | await expect(parent).toContainText("Before Items");
383 | await expect(parent).toContainText("Test Item");
384 | await expect(parent).toContainText("After Items");
385 |
386 | // The item should be rendered directly
387 | await expect(page.getByTestId("item-content")).toContainText("Test Item");
388 | });
389 |
390 | test("handles large arrays gracefully", async ({ initTestBed, page }) => {
391 | // Test with smaller array that can be handled inline
392 | await initTestBed(`
393 | <Items data="{[
394 | { id: 0, name: 'Item 0' },
395 | { id: 1, name: 'Item 1' },
396 | { id: 2, name: 'Item 2' },
397 | { id: 50, name: 'Item 50' },
398 | { id: 99, name: 'Item 99' }
399 | ]}">
400 | <Text testId="item-{$item.id}">#{$item.id}: {$item.name}</Text>
401 | </Items>
402 | `);
403 |
404 | // Check that all items are rendered
405 | await expect(page.getByTestId("item-0")).toContainText("#0: Item 0");
406 | await expect(page.getByTestId("item-1")).toContainText("#1: Item 1");
407 | await expect(page.getByTestId("item-2")).toContainText("#2: Item 2");
408 | await expect(page.getByTestId("item-50")).toContainText("#50: Item 50");
409 | await expect(page.getByTestId("item-99")).toContainText("#99: Item 99");
410 | });
411 |
412 | test("handles deeply nested data structures", async ({ initTestBed, page }) => {
413 | await initTestBed(`
414 | <Items data="{[
415 | {
416 | user: { profile: { name: 'John', details: { age: 30 } } },
417 | settings: { theme: 'dark' }
418 | },
419 | {
420 | user: { profile: { name: 'Jane', details: { age: 25 } } },
421 | settings: { theme: 'light' }
422 | }
423 | ]}">
424 | <Text testId="user-{$itemIndex}">
425 | {$item.user.profile.name} ({$item.user.profile.details.age}) - Theme: {$item.settings.theme}
426 | </Text>
427 | </Items>
428 | `);
429 |
430 | await expect(page.getByTestId("user-0")).toContainText("John (30) - Theme: dark");
431 | await expect(page.getByTestId("user-1")).toContainText("Jane (25) - Theme: light");
432 | });
433 |
434 | test("handles non-array data gracefully", async ({ initTestBed, page }) => {
435 | await initTestBed(`
436 | <VStack testId="container">
437 | <Text>Container Content</Text>
438 | <Items data="not-an-array">
439 | <Text>{$item}</Text>
440 | </Items>
441 | </VStack>
442 | `);
443 |
444 | const container = page.getByTestId("container");
445 | await expect(container).toBeVisible();
446 |
447 | // Should contain the text we added to make container visible
448 | await expect(container).toContainText("Container Content");
449 |
450 | // Non-array data should result in no items rendered, but container should still be visible
451 | const textElements = container.locator("div").filter({ hasText: "Container Content" });
452 | await expect(textElements).toHaveCount(1);
453 | });
454 | });
455 |
```
--------------------------------------------------------------------------------
/xmlui/tests/parsers/scripting/process-switch.test.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { createEvalContext, parseStatements } from "./test-helpers";
2 | import { describe, expect, it, assert } from "vitest";
3 | import { processStatementQueueAsync } from "../../../src/components-core/script-runner/process-statement-async";
4 |
5 | describe("Process switch statements", () => {
6 | it("no case", async () => {
7 | // --- Arrange
8 | const source = `
9 | let x = 0;
10 | switch (x) {
11 | }
12 | `;
13 | const evalContext = createEvalContext({});
14 | const statements = parseStatements(source);
15 |
16 | // --- Act
17 | await processStatementQueueAsync(statements, evalContext);
18 |
19 | // --- Assert
20 | const thread = evalContext.mainThread!;
21 | expect(thread.blocks!.length).equal(1);
22 | expect(thread.blocks![0].vars.x).equal(0);
23 | });
24 |
25 | it("no matching case #1", async () => {
26 | // --- Arrange
27 | const source = `
28 | let x = 0;
29 | let y = 0;
30 | switch (x) {
31 | case 3:
32 | y++;
33 | }
34 | `;
35 | const evalContext = createEvalContext({});
36 | const statements = parseStatements(source);
37 |
38 | // --- Act
39 | await processStatementQueueAsync(statements, evalContext);
40 |
41 | // --- Assert
42 | const thread = evalContext.mainThread!;
43 | expect(thread.blocks!.length).equal(1);
44 | expect(thread.blocks![0].vars.y).equal(0);
45 | });
46 |
47 | it("no matching case #2", async () => {
48 | // --- Arrange
49 | const source = `
50 | let x = 0;
51 | let y = 0;
52 | switch (x) {
53 | case 2:
54 | y++;
55 | break;
56 | case 3:
57 | y++;
58 | break;
59 | }
60 | `;
61 | const evalContext = createEvalContext({});
62 | const statements = parseStatements(source);
63 |
64 | // --- Act
65 | await processStatementQueueAsync(statements, evalContext);
66 |
67 | // --- Assert
68 | const thread = evalContext.mainThread!;
69 | expect(thread.blocks!.length).equal(1);
70 | expect(thread.blocks![0].vars.y).equal(0);
71 | });
72 |
73 | it("no matching case #3", async () => {
74 | // --- Arrange
75 | const source = `
76 | let x = 0;
77 | let y = 0;
78 | switch (x) {
79 | case 1:
80 | y++;
81 | case 2:
82 | y++;
83 | break;
84 | case 3:
85 | y++;
86 | break;
87 | }
88 | `;
89 | const evalContext = createEvalContext({});
90 | const statements = parseStatements(source);
91 |
92 | // --- Act
93 | await processStatementQueueAsync(statements, evalContext);
94 |
95 | // --- Assert
96 | const thread = evalContext.mainThread!;
97 | expect(thread.blocks!.length).equal(1);
98 | expect(thread.blocks![0].vars.y).equal(0);
99 | });
100 |
101 | it("matching case #1", async () => {
102 | // --- Arrange
103 | const source = `
104 | let x = 0;
105 | let y = 0;
106 | switch (x) {
107 | case 0:
108 | y++;
109 | break;
110 | case 1:
111 | y++;
112 | break;
113 | case 2:
114 | y++;
115 | break;
116 | case 3:
117 | y++;
118 | break;
119 | }
120 | `;
121 | const evalContext = createEvalContext({});
122 | const statements = parseStatements(source);
123 |
124 | // --- Act
125 | await processStatementQueueAsync(statements, evalContext);
126 |
127 | // --- Assert
128 | const thread = evalContext.mainThread!;
129 | expect(thread.blocks!.length).equal(1);
130 | expect(thread.blocks![0].vars.y).equal(1);
131 | });
132 |
133 | it("matching case #2", async () => {
134 | // --- Arrange
135 | const source = `
136 | let x = 0;
137 | let y = 0;
138 | switch (x) {
139 | default:
140 | y++;
141 | break;
142 | case 1:
143 | y++;
144 | break;
145 | case 2:
146 | y++;
147 | break;
148 | case 3:
149 | y++;
150 | break;
151 | }
152 | `;
153 | const evalContext = createEvalContext({});
154 | const statements = parseStatements(source);
155 |
156 | // --- Act
157 | await processStatementQueueAsync(statements, evalContext);
158 |
159 | // --- Assert
160 | const thread = evalContext.mainThread!;
161 | expect(thread.blocks!.length).equal(1);
162 | expect(thread.blocks![0].vars.y).equal(1);
163 | });
164 |
165 | it("matching case #3", async () => {
166 | // --- Arrange
167 | const source = `
168 | let x = 0;
169 | let y = 0;
170 | switch (x) {
171 | case 1:
172 | y++;
173 | break;
174 | default:
175 | y++;
176 | break;
177 | case 2:
178 | y++;
179 | break;
180 | case 3:
181 | y++;
182 | break;
183 | }
184 | `;
185 | const evalContext = createEvalContext({});
186 | const statements = parseStatements(source);
187 |
188 | // --- Act
189 | await processStatementQueueAsync(statements, evalContext);
190 |
191 | // --- Assert
192 | const thread = evalContext.mainThread!;
193 | expect(thread.blocks!.length).equal(1);
194 | expect(thread.blocks![0].vars.y).equal(1);
195 | });
196 |
197 | it("matching case #4", async () => {
198 | // --- Arrange
199 | const source = `
200 | let x = 0;
201 | let y = 0;
202 | switch (x) {
203 | case 1:
204 | y++;
205 | break;
206 | case 2:
207 | y++;
208 | break;
209 | default:
210 | y++;
211 | break;
212 | case 3:
213 | y++;
214 | break;
215 | }
216 | `;
217 | const evalContext = createEvalContext({});
218 | const statements = parseStatements(source);
219 |
220 | // --- Act
221 | await processStatementQueueAsync(statements, evalContext);
222 |
223 | // --- Assert
224 | const thread = evalContext.mainThread!;
225 | expect(thread.blocks!.length).equal(1);
226 | expect(thread.blocks![0].vars.y).equal(1);
227 | });
228 |
229 | it("matching case #5", async () => {
230 | // --- Arrange
231 | const source = `
232 | let x = 0;
233 | let y = 0;
234 | switch (x) {
235 | case 1:
236 | y++;
237 | break;
238 | case 2:
239 | y++;
240 | break;
241 | case 3:
242 | y++;
243 | break;
244 | default:
245 | y++;
246 | break;
247 | }
248 | `;
249 | const evalContext = createEvalContext({});
250 | const statements = parseStatements(source);
251 |
252 | // --- Act
253 | await processStatementQueueAsync(statements, evalContext);
254 |
255 | // --- Assert
256 | const thread = evalContext.mainThread!;
257 | expect(thread.blocks!.length).equal(1);
258 | expect(thread.blocks![0].vars.y).equal(1);
259 | });
260 |
261 | it("matching case, fall-through #1", async () => {
262 | // --- Arrange
263 | const source = `
264 | let x = 0;
265 | let y = 0;
266 | switch (x) {
267 | case 0:
268 | y++;
269 | case 1:
270 | y++;
271 | break;
272 | case 2:
273 | y++;
274 | break;
275 | case 3:
276 | y++;
277 | break;
278 | }
279 | `;
280 | const evalContext = createEvalContext({});
281 | const statements = parseStatements(source);
282 |
283 | // --- Act
284 | await processStatementQueueAsync(statements, evalContext);
285 |
286 | // --- Assert
287 | const thread = evalContext.mainThread!;
288 | expect(thread.blocks!.length).equal(1);
289 | expect(thread.blocks![0].vars.y).equal(2);
290 | });
291 |
292 | it("matching case, fall-through #2", async () => {
293 | // --- Arrange
294 | const source = `
295 | let x = 0;
296 | let y = 0;
297 | switch (x) {
298 | case 0:
299 | y++;
300 | case 1:
301 | y++;
302 | case 2:
303 | y++;
304 | break;
305 | case 3:
306 | y++;
307 | break;
308 | }
309 | `;
310 | const evalContext = createEvalContext({});
311 | const statements = parseStatements(source);
312 |
313 | // --- Act
314 | await processStatementQueueAsync(statements, evalContext);
315 |
316 | // --- Assert
317 | const thread = evalContext.mainThread!;
318 | expect(thread.blocks!.length).equal(1);
319 | expect(thread.blocks![0].vars.y).equal(3);
320 | });
321 |
322 | it("matching case, fall-through #3", async () => {
323 | // --- Arrange
324 | const source = `
325 | let x = 0;
326 | let y = 0;
327 | switch (x) {
328 | case 0:
329 | y++;
330 | case 1:
331 | y++;
332 | case 2:
333 | y++;
334 | case 3:
335 | y++;
336 | break;
337 | }
338 | `;
339 | const evalContext = createEvalContext({});
340 | const statements = parseStatements(source);
341 |
342 | // --- Act
343 | await processStatementQueueAsync(statements, evalContext);
344 |
345 | // --- Assert
346 | const thread = evalContext.mainThread!;
347 | expect(thread.blocks!.length).equal(1);
348 | expect(thread.blocks![0].vars.y).equal(4);
349 | });
350 |
351 | it("matching case, fall-through #4", async () => {
352 | // --- Arrange
353 | const source = `
354 | let x = 0;
355 | let y = 0;
356 | switch (x) {
357 | case 0:
358 | y++;
359 | case 1:
360 | y++;
361 | case 2:
362 | y++;
363 | case 3:
364 | y++;
365 | }
366 | `;
367 | const evalContext = createEvalContext({});
368 | const statements = parseStatements(source);
369 |
370 | // --- Act
371 | await processStatementQueueAsync(statements, evalContext);
372 |
373 | // --- Assert
374 | const thread = evalContext.mainThread!;
375 | expect(thread.blocks!.length).equal(1);
376 | expect(thread.blocks![0].vars.y).equal(4);
377 | });
378 |
379 | it("switch in loop #1", async () => {
380 | // --- Arrange
381 | const source = `
382 | let x = 0;
383 | let y = 0;
384 | while (x < 4) {
385 | switch (x) {
386 | case 0:
387 | y++;
388 | case 1:
389 | y++;
390 | case 2:
391 | y++;
392 | case 3:
393 | y++;
394 | }
395 | x++;
396 | }
397 | `;
398 | const evalContext = createEvalContext({});
399 | const statements = parseStatements(source);
400 |
401 | // --- Act
402 | await processStatementQueueAsync(statements, evalContext);
403 |
404 | // --- Assert
405 | const thread = evalContext.mainThread!;
406 | expect(thread.blocks!.length).equal(1);
407 | expect(thread.blocks![0].vars.y).equal(10);
408 | });
409 |
410 | it("switch in loop #2", async () => {
411 | // --- Arrange
412 | const source = `
413 | let x = 0;
414 | let y = 0;
415 | while (x < 4) {
416 | switch (x) {
417 | case 0:
418 | y++;
419 | case 1:
420 | y++;
421 | case 2:
422 | y++;
423 | case 3:
424 | y++;
425 | }
426 | x++;
427 | break;
428 | }
429 | `;
430 | const evalContext = createEvalContext({});
431 | const statements = parseStatements(source);
432 |
433 | // --- Act
434 | await processStatementQueueAsync(statements, evalContext);
435 |
436 | // --- Assert
437 | const thread = evalContext.mainThread!;
438 | expect(thread.blocks!.length).equal(1);
439 | expect(thread.blocks![0].vars.y).equal(4);
440 | });
441 |
442 | it("switch in loop #3", async () => {
443 | // --- Arrange
444 | const source = `
445 | let x = 0;
446 | let y = 0;
447 | while (x < 4) {
448 | switch (x) {
449 | case 0:
450 | y++;
451 | break;
452 | case 1:
453 | y++;
454 | break;
455 | case 2:
456 | y++;
457 | break;
458 | case 3:
459 | y++;
460 | break;
461 | }
462 | x++;
463 | }
464 | `;
465 | const evalContext = createEvalContext({});
466 | const statements = parseStatements(source);
467 |
468 | // --- Act
469 | await processStatementQueueAsync(statements, evalContext);
470 |
471 | // --- Assert
472 | const thread = evalContext.mainThread!;
473 | expect(thread.blocks!.length).equal(1);
474 | expect(thread.blocks![0].vars.y).equal(4);
475 | });
476 |
477 | it("switch in loop #4", async () => {
478 | // --- Arrange
479 | const source = `
480 | let x = 0;
481 | let y = 0;
482 | while (x < 4) {
483 | switch (x) {
484 | case 0:
485 | y++;
486 | break;
487 | case 1:
488 | y++;
489 | break;
490 | case 2:
491 | y++;
492 | case 3:
493 | y++;
494 | }
495 | x++;
496 | }
497 | `;
498 | const evalContext = createEvalContext({});
499 | const statements = parseStatements(source);
500 |
501 | // --- Act
502 | await processStatementQueueAsync(statements, evalContext);
503 |
504 | // --- Assert
505 | const thread = evalContext.mainThread!;
506 | expect(thread.blocks!.length).equal(1);
507 | expect(thread.blocks![0].vars.y).equal(5);
508 | });
509 |
510 | it("switch in loop #5 (continue)", async () => {
511 | // --- Arrange
512 | const source = `
513 | let x = 0;
514 | let y = 0;
515 | while (x < 4) {
516 | switch (x) {
517 | case 0:
518 | y++;
519 | break;
520 | case 1:
521 | y++;
522 | break;
523 | case 2:
524 | y++;
525 | x += 3;
526 | continue;
527 | case 3:
528 | y++;
529 | }
530 | x++;
531 | }
532 | `;
533 | const evalContext = createEvalContext({});
534 | const statements = parseStatements(source);
535 |
536 | // --- Act
537 | await processStatementQueueAsync(statements, evalContext);
538 |
539 | // --- Assert
540 | const thread = evalContext.mainThread!;
541 | expect(thread.blocks!.length).equal(1);
542 | expect(thread.blocks![0].vars.y).equal(3);
543 | });
544 |
545 | it("switch in loop #6 (return)", async () => {
546 | // --- Arrange
547 | const source = `
548 | let x = 0;
549 | let y = 0;
550 | while (x < 4) {
551 | switch (x) {
552 | case 0:
553 | y++;
554 | break;
555 | case 1:
556 | y++;
557 | break;
558 | case 2:
559 | y++;
560 | x += 3;
561 | return;
562 | case 3:
563 | y++;
564 | }
565 | x++;
566 | }
567 | `;
568 | const evalContext = createEvalContext({});
569 | const statements = parseStatements(source);
570 |
571 | // --- Act
572 | await processStatementQueueAsync(statements, evalContext);
573 |
574 | // --- Assert
575 | const thread = evalContext.mainThread!;
576 | expect(thread.blocks![0].vars.y).equal(3);
577 | });
578 |
579 | it("switch has its own scope", async () => {
580 | // --- Arrange
581 | const source = `
582 | let x = 0;
583 | let y = 0;
584 | let z = 0;
585 | switch (x) {
586 | case 0:
587 | let y = 3;
588 | z = y + 1;
589 | break;
590 | case 1:
591 | y++;
592 | break;
593 | }
594 | `;
595 | const evalContext = createEvalContext({});
596 | const statements = parseStatements(source);
597 |
598 | // --- Act
599 | await processStatementQueueAsync(statements, evalContext);
600 |
601 | // --- Assert
602 | const thread = evalContext.mainThread!;
603 | expect(thread.blocks![0].vars.y).equal(0);
604 | expect(thread.blocks![0].vars.z).equal(4);
605 | });
606 |
607 | it("switch fails with multiple let", async () => {
608 | // --- Arrange
609 | const source = `
610 | let x = 0;
611 | let y = 0;
612 | switch (x) {
613 | case 0:
614 | let z = 3;
615 | case 1:
616 | let z = 4;
617 | y++;
618 | break;
619 | }
620 | `;
621 | const evalContext = createEvalContext({});
622 | const statements = parseStatements(source);
623 |
624 | // --- Act/Assert
625 | try {
626 | await processStatementQueueAsync(statements, evalContext);
627 | } catch (err: any) {
628 | expect(err.toString().includes("already declared")).equal(true);
629 | return;
630 | }
631 | assert.fail("Exception expected");
632 | });
633 |
634 | it("switch fails with multiple const/let", async () => {
635 | // --- Arrange
636 | const source = `
637 | let x = 0;
638 | let y = 0;
639 | switch (x) {
640 | case 0:
641 | let z = 3;
642 | case 1:
643 | const z = 4;
644 | y++;
645 | break;
646 | }
647 | `;
648 | const evalContext = createEvalContext({});
649 | const statements = parseStatements(source);
650 |
651 | // --- Act/Assert
652 | try {
653 | await processStatementQueueAsync(statements, evalContext);
654 | } catch (err: any) {
655 | expect(err.toString().includes("already declared")).equal(true);
656 | return;
657 | }
658 | assert.fail("Exception expected");
659 | });
660 |
661 | it("switch fails with multiple const", async () => {
662 | // --- Arrange
663 | const source = `
664 | let x = 0;
665 | let y = 0;
666 | switch (x) {
667 | case 0:
668 | const z = 3;
669 | case 1:
670 | const z = 4;
671 | y++;
672 | break;
673 | }
674 | `;
675 | const evalContext = createEvalContext({});
676 | const statements = parseStatements(source);
677 |
678 | // --- Act/Assert
679 | try {
680 | await processStatementQueueAsync(statements, evalContext);
681 | } catch (err: any) {
682 | expect(err.toString().includes("already declared")).equal(true);
683 | return;
684 | }
685 | assert.fail("Exception expected");
686 | });
687 | });
688 |
```