#
tokens: 44097/50000 3/1630 files (page 85/186)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 85 of 186. 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
│   └── cyan-tools-design.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
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── FancyButton.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── control-cache-invalidation.md
│   │   │   │   ├── debounce-user-input-for-api-calls.md
│   │   │   │   ├── debounce-with-changelistener.md
│   │   │   │   ├── debug-a-component.md
│   │   │   │   ├── delay-a-datasource-until-another-datasource-is-ready.md
│   │   │   │   ├── delegate-a-method.md
│   │   │   │   ├── do-custom-form-validation.md
│   │   │   │   ├── expose-a-method-from-a-component.md
│   │   │   │   ├── filter-and-transform-data-from-an-api.md
│   │   │   │   ├── group-items-in-list-by-a-property.md
│   │   │   │   ├── handle-background-operations.md
│   │   │   │   ├── hide-an-element-until-its-datasource-is-ready.md
│   │   │   │   ├── make-a-set-of-equal-width-cards.md
│   │   │   │   ├── make-a-table-responsive.md
│   │   │   │   ├── make-navpanel-width-responsive.md
│   │   │   │   ├── modify-a-value-reported-in-a-column.md
│   │   │   │   ├── paginate-a-list.md
│   │   │   │   ├── pass-data-to-a-modal-dialog.md
│   │   │   │   ├── react-to-button-click-not-keystrokes.md
│   │   │   │   ├── set-the-initial-value-of-a-select-from-fetched-data.md
│   │   │   │   ├── share-a-modaldialog-across-components.md
│   │   │   │   ├── sync-selections-between-table-and-list-views.md
│   │   │   │   ├── update-ui-optimistically.md
│   │   │   │   ├── use-built-in-form-validation.md
│   │   │   │   └── use-the-same-modaldialog-to-add-or-edit.md
│   │   │   ├── howto.md
│   │   │   ├── intro.md
│   │   │   ├── layout.md
│   │   │   ├── markup.md
│   │   │   ├── mcp.md
│   │   │   ├── modal-dialogs.md
│   │   │   ├── news-and-reviews.md
│   │   │   ├── reactive-intro.md
│   │   │   ├── refactoring.md
│   │   │   ├── routing-and-links.md
│   │   │   ├── samples
│   │   │   │   ├── color-palette.xmlui
│   │   │   │   ├── color-values.xmlui
│   │   │   │   ├── shadow-sizes.xmlui
│   │   │   │   ├── spacing-sizes.xmlui
│   │   │   │   ├── swatch.xmlui
│   │   │   │   ├── theme-gallery-brief.xmlui
│   │   │   │   └── theme-gallery.xmlui
│   │   │   ├── scoping.md
│   │   │   ├── scripting.md
│   │   │   ├── styles-and-themes
│   │   │   │   ├── common-units.md
│   │   │   │   ├── layout-props.md
│   │   │   │   ├── theme-variable-defaults.md
│   │   │   │   ├── theme-variables.md
│   │   │   │   └── themes.md
│   │   │   ├── template-properties.md
│   │   │   ├── test.md
│   │   │   ├── tutorial-01.md
│   │   │   ├── tutorial-02.md
│   │   │   ├── tutorial-03.md
│   │   │   ├── tutorial-04.md
│   │   │   ├── tutorial-05.md
│   │   │   ├── tutorial-06.md
│   │   │   ├── tutorial-07.md
│   │   │   ├── tutorial-08.md
│   │   │   ├── tutorial-09.md
│   │   │   ├── tutorial-10.md
│   │   │   ├── tutorial-11.md
│   │   │   ├── tutorial-12.md
│   │   │   ├── universal-properties.md
│   │   │   ├── user-defined-components.md
│   │   │   ├── vscode.md
│   │   │   ├── working-with-markdown.md
│   │   │   ├── working-with-text.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-charts
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── BarChart.md
│   │   │   │   ├── DonutChart.md
│   │   │   │   ├── LabelList.md
│   │   │   │   ├── Legend.md
│   │   │   │   ├── LineChart.md
│   │   │   │   └── PieChart.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   └── xmlui-spreadsheet
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       └── Spreadsheet.md
│   │   ├── resources
│   │   │   ├── devdocs
│   │   │   │   ├── debug-proxy-object-2.png
│   │   │   │   ├── debug-proxy-object.png
│   │   │   │   ├── table_editor_01.png
│   │   │   │   ├── table_editor_02.png
│   │   │   │   ├── table_editor_03.png
│   │   │   │   ├── table_editor_04.png
│   │   │   │   ├── table_editor_05.png
│   │   │   │   ├── table_editor_06.png
│   │   │   │   ├── table_editor_07.png
│   │   │   │   ├── table_editor_08.png
│   │   │   │   ├── table_editor_09.png
│   │   │   │   ├── table_editor_10.png
│   │   │   │   ├── table_editor_11.png
│   │   │   │   ├── table-editor-01.png
│   │   │   │   ├── table-editor-02.png
│   │   │   │   ├── table-editor-03.png
│   │   │   │   ├── table-editor-04.png
│   │   │   │   ├── table-editor-06.png
│   │   │   │   ├── table-editor-07.png
│   │   │   │   ├── table-editor-08.png
│   │   │   │   ├── table-editor-09.png
│   │   │   │   └── xmlui-rendering-of-tiptap-markdown.png
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   ├── clients.json
│   │   │   │   ├── daily-revenue.json
│   │   │   │   ├── dashboard-stats.json
│   │   │   │   ├── demo.xmlui
│   │   │   │   ├── demo.xmlui.xs
│   │   │   │   ├── downloads
│   │   │   │   │   └── downloads.json
│   │   │   │   ├── for-download
│   │   │   │   │   ├── index-with-api.html
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── mockApi.js
│   │   │   │   │   ├── start-darwin.sh
│   │   │   │   │   ├── start-linux.sh
│   │   │   │   │   ├── start.bat
│   │   │   │   │   └── xmlui
│   │   │   │   │       └── xmlui-standalone.umd.js
│   │   │   │   ├── getting-started
│   │   │   │   │   ├── cl-tutorial-final.zip
│   │   │   │   │   ├── cl-tutorial.zip
│   │   │   │   │   ├── cl-tutorial2.zip
│   │   │   │   │   ├── cl-tutorial3.zip
│   │   │   │   │   ├── cl-tutorial4.zip
│   │   │   │   │   ├── cl-tutorial5.zip
│   │   │   │   │   ├── cl-tutorial6.zip
│   │   │   │   │   ├── getting-started.zip
│   │   │   │   │   ├── hello-xmlui.zip
│   │   │   │   │   ├── xmlui-empty.zip
│   │   │   │   │   └── xmlui-starter.zip
│   │   │   │   ├── howto
│   │   │   │   │   └── component-icons
│   │   │   │   │       └── up-arrow.svg
│   │   │   │   ├── invoices.json
│   │   │   │   ├── monthly-status.json
│   │   │   │   ├── news-and-reviews.json
│   │   │   │   ├── products.json
│   │   │   │   ├── releases.json
│   │   │   │   ├── tutorials
│   │   │   │   │   ├── datasource
│   │   │   │   │   │   └── api.ts
│   │   │   │   │   └── p2do
│   │   │   │   │       ├── api.ts
│   │   │   │   │       └── todo-logo.svg
│   │   │   │   └── xmlui.json
│   │   │   ├── github.svg
│   │   │   ├── images
│   │   │   │   ├── apiaction-tutorial
│   │   │   │   │   ├── add-success.png
│   │   │   │   │   ├── apiaction-param.png
│   │   │   │   │   ├── change-completed.png
│   │   │   │   │   ├── change-in-progress.png
│   │   │   │   │   ├── confirm-delete.png
│   │   │   │   │   ├── data-error.png
│   │   │   │   │   ├── data-progress.png
│   │   │   │   │   ├── data-success.png
│   │   │   │   │   ├── display-1.png
│   │   │   │   │   ├── item-deleted.png
│   │   │   │   │   ├── item-updated.png
│   │   │   │   │   ├── missing-api-key.png
│   │   │   │   │   ├── new-item-added.png
│   │   │   │   │   └── test-message.png
│   │   │   │   ├── chat-api
│   │   │   │   │   └── domain-model.svg
│   │   │   │   ├── components
│   │   │   │   │   ├── image
│   │   │   │   │   │   └── breakfast.jpg
│   │   │   │   │   ├── markdown
│   │   │   │   │   │   └── colors.png
│   │   │   │   │   └── modal
│   │   │   │   │       ├── deep_link_dialog_1.jpg
│   │   │   │   │       └── deep_link_dialog_2.jpg
│   │   │   │   ├── create-apps
│   │   │   │   │   ├── collapsed-vertical.png
│   │   │   │   │   ├── using-forms-warning-dialog.png
│   │   │   │   │   └── using-forms.png
│   │   │   │   ├── datasource-tutorial
│   │   │   │   │   ├── data-with-header.png
│   │   │   │   │   ├── filtered-data.png
│   │   │   │   │   ├── filtered-items.png
│   │   │   │   │   ├── initial-page-items.png
│   │   │   │   │   ├── list-items.png
│   │   │   │   │   ├── next-page-items.png
│   │   │   │   │   ├── no-data.png
│   │   │   │   │   ├── pagination-1.jpg
│   │   │   │   │   ├── pagination-1.png
│   │   │   │   │   ├── polling-1.png
│   │   │   │   │   ├── refetch-data.png
│   │   │   │   │   ├── slow-loading.png
│   │   │   │   │   ├── test-message.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── unconventional-data.png
│   │   │   │   │   └── unfiltered-items.png
│   │   │   │   ├── flower.jpg
│   │   │   │   ├── get-started
│   │   │   │   │   ├── add-new-contact.png
│   │   │   │   │   ├── app-modified.png
│   │   │   │   │   ├── app-start.png
│   │   │   │   │   ├── app-with-boxes.png
│   │   │   │   │   ├── app-with-toast.png
│   │   │   │   │   ├── boilerplate-structure.png
│   │   │   │   │   ├── cl-initial.png
│   │   │   │   │   ├── cl-start.png
│   │   │   │   │   ├── contact-counts.png
│   │   │   │   │   ├── contact-dialog-title.png
│   │   │   │   │   ├── contact-dialog.png
│   │   │   │   │   ├── contact-menus.png
│   │   │   │   │   ├── contact-predicates.png
│   │   │   │   │   ├── context-menu.png
│   │   │   │   │   ├── dashboard-numbers.png
│   │   │   │   │   ├── default-contact-list.png
│   │   │   │   │   ├── delete-contact.png
│   │   │   │   │   ├── delete-task.png
│   │   │   │   │   ├── detailed-template.png
│   │   │   │   │   ├── edit-contact-details.png
│   │   │   │   │   ├── edited-contact-saved.png
│   │   │   │   │   ├── empty-sections.png
│   │   │   │   │   ├── filter-completed.png
│   │   │   │   │   ├── fullwidth-desktop.png
│   │   │   │   │   ├── fullwidth-mobile.png
│   │   │   │   │   ├── initial-table.png
│   │   │   │   │   ├── items-and-badges.png
│   │   │   │   │   ├── loading-message.png
│   │   │   │   │   ├── new-contact-button.png
│   │   │   │   │   ├── new-contact-saved.png
│   │   │   │   │   ├── no-empty-sections.png
│   │   │   │   │   ├── personal-todo-initial.png
│   │   │   │   │   ├── piechart.png
│   │   │   │   │   ├── review-today.png
│   │   │   │   │   ├── rudimentary-dashboard.png
│   │   │   │   │   ├── section-collapsed.png
│   │   │   │   │   ├── sectioned-items.png
│   │   │   │   │   ├── sections-ordered.png
│   │   │   │   │   ├── spacex-list-with-links.png
│   │   │   │   │   ├── spacex-list.png
│   │   │   │   │   ├── start-personal-todo-1.png
│   │   │   │   │   ├── submit-new-contact.png
│   │   │   │   │   ├── submit-new-task.png
│   │   │   │   │   ├── syntax-highlighting.png
│   │   │   │   │   ├── table-with-badge.png
│   │   │   │   │   ├── template-with-card.png
│   │   │   │   │   ├── test-emulated-api.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── todo-logo.png
│   │   │   │   │   └── xmlui-tools.png
│   │   │   │   ├── HelloApp.png
│   │   │   │   ├── HelloApp2.png
│   │   │   │   ├── logos
│   │   │   │   │   ├── xmlui1.svg
│   │   │   │   │   ├── xmlui2.svg
│   │   │   │   │   ├── xmlui3.svg
│   │   │   │   │   ├── xmlui4.svg
│   │   │   │   │   ├── xmlui5.svg
│   │   │   │   │   ├── xmlui6.svg
│   │   │   │   │   └── xmlui7.svg
│   │   │   │   ├── pdf
│   │   │   │   │   └── dummy-pdf.jpg
│   │   │   │   ├── rendering-engine
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   ├── Component.svg
│   │   │   │   │   ├── CompoundComponent.svg
│   │   │   │   │   ├── RootComponent.svg
│   │   │   │   │   └── tree-with-containers.svg
│   │   │   │   ├── reviewers-guide
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   └── incbutton-in-action.png
│   │   │   │   ├── tools
│   │   │   │   │   └── boilerplate-structure.png
│   │   │   │   ├── try.svg
│   │   │   │   ├── tutorial
│   │   │   │   │   ├── app-chat-history.png
│   │   │   │   │   ├── app-content-placeholder.png
│   │   │   │   │   ├── app-header-and-content.png
│   │   │   │   │   ├── app-links-channel-selected.png
│   │   │   │   │   ├── app-links-click.png
│   │   │   │   │   ├── app-navigation.png
│   │   │   │   │   ├── finished-ex01.png
│   │   │   │   │   ├── finished-ex02.png
│   │   │   │   │   ├── hello.png
│   │   │   │   │   ├── splash-screen-advanced.png
│   │   │   │   │   ├── splash-screen-after-click.png
│   │   │   │   │   ├── splash-screen-centered.png
│   │   │   │   │   ├── splash-screen-events.png
│   │   │   │   │   ├── splash-screen-expression.png
│   │   │   │   │   ├── splash-screen-reuse-after.png
│   │   │   │   │   ├── splash-screen-reuse-before.png
│   │   │   │   │   └── splash-screen.png
│   │   │   │   └── tutorial-01.png
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   ├── Boxes.xmlui
│   │   │   ├── Breadcrumb.xmlui
│   │   │   ├── ChangeLog.xmlui
│   │   │   ├── ColorPalette.xmlui
│   │   │   ├── DocumentLinks.xmlui
│   │   │   ├── DocumentPage.xmlui
│   │   │   ├── DocumentPageNoTOC.xmlui
│   │   │   ├── Icons.xmlui
│   │   │   ├── IncButton.xmlui
│   │   │   ├── IncButton2.xmlui
│   │   │   ├── NameValue.xmlui
│   │   │   ├── PageNotFound.xmlui
│   │   │   ├── PaletteItem.xmlui
│   │   │   ├── Palettes.xmlui
│   │   │   ├── SectionHeader.xmlui
│   │   │   ├── TBD.xmlui
│   │   │   ├── Test.xmlui
│   │   │   ├── ThemesIntro.xmlui
│   │   │   ├── ThousandThemes.xmlui
│   │   │   ├── TubeStops.xmlui
│   │   │   ├── TubeStops.xmlui.xs
│   │   │   └── TwoColumnCode.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│   ├── tsconfig.json
│   ├── xmlui-animations
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── Animation.tsx
│   │       ├── AnimationNative.tsx
│   │       ├── FadeAnimation.tsx
│   │       ├── FadeInAnimation.tsx
│   │       ├── FadeOutAnimation.tsx
│   │       ├── index.tsx
│   │       ├── ScaleAnimation.tsx
│   │       └── SlideInAnimation.tsx
│   ├── xmlui-devtools
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── devtools
│   │   │   │   ├── DevTools.tsx
│   │   │   │   ├── DevToolsNative.module.scss
│   │   │   │   ├── DevToolsNative.tsx
│   │   │   │   ├── ModalDialog.module.scss
│   │   │   │   ├── ModalDialog.tsx
│   │   │   │   ├── ModalVisibilityContext.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── editor
│   │   │   │   └── Editor.tsx
│   │   │   └── index.tsx
│   │   └── vite.config-overrides.ts
│   ├── xmlui-hello-world
│   │   ├── .gitignore
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── HelloWorld.module.scss
│   │       ├── HelloWorld.tsx
│   │       ├── HelloWorldNative.tsx
│   │       └── index.tsx
│   ├── xmlui-os-frames
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── IPhoneFrame.module.scss
│   │       ├── IPhoneFrame.tsx
│   │       ├── MacOSAppFrame.module.scss
│   │       ├── MacOSAppFrame.tsx
│   │       ├── WindowsAppFrame.module.scss
│   │       └── WindowsAppFrame.tsx
│   ├── xmlui-pdf
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   ├── components
│   │   │   │   └── Pdf.xmlui
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── LazyPdfNative.tsx
│   │       ├── Pdf.module.scss
│   │       └── Pdf.tsx
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── hooks
│   │       │   ├── usePlayground.ts
│   │       │   └── useToast.ts
│   │       ├── index.tsx
│   │       ├── playground
│   │       │   ├── Box.module.scss
│   │       │   ├── Box.tsx
│   │       │   ├── CodeSelector.module.scss
│   │       │   ├── CodeSelector.tsx
│   │       │   ├── ConfirmationDialog.module.scss
│   │       │   ├── ConfirmationDialog.tsx
│   │       │   ├── Editor.tsx
│   │       │   ├── Header.module.scss
│   │       │   ├── Header.tsx
│   │       │   ├── Playground.tsx
│   │       │   ├── PlaygroundContent.module.scss
│   │       │   ├── PlaygroundContent.tsx
│   │       │   ├── PlaygroundNative.module.scss
│   │       │   ├── PlaygroundNative.tsx
│   │       │   ├── Preview.tsx
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.tsx
│   │       │   └── utils.ts
│   │       ├── providers
│   │       │   ├── Toast.module.scss
│   │       │   └── ToastProvider.tsx
│   │       ├── state
│   │       │   └── store.ts
│   │       ├── themes
│   │       │   └── theme.ts
│   │       └── utils
│   │           └── helpers.ts
│   ├── xmlui-search
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Search.module.scss
│   │       └── Search.tsx
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Spreadsheet.tsx
│   │       └── SpreadsheetNative.tsx
│   └── xmlui-website-blocks
│       ├── .gitignore
│       ├── CHANGELOG.md
│       ├── demo
│       │   ├── components
│       │   │   ├── HeroBackgroundBreakoutPage.xmlui
│       │   │   ├── HeroBackgroundsPage.xmlui
│       │   │   ├── HeroContentsPage.xmlui
│       │   │   ├── HeroTextAlignPage.xmlui
│       │   │   ├── HeroTextPage.xmlui
│       │   │   └── HeroTonesPage.xmlui
│       │   ├── Main.xmlui
│       │   └── themes
│       │       └── default.ts
│       ├── index.html
│       ├── index.ts
│       ├── meta
│       │   └── componentsMetadata.ts
│       ├── package.json
│       ├── public
│       │   └── resources
│       │       ├── building.jpg
│       │       └── xmlui-logo.svg
│       └── src
│           ├── Carousel
│           │   ├── Carousel.module.scss
│           │   ├── Carousel.tsx
│           │   ├── CarouselContext.tsx
│           │   └── CarouselNative.tsx
│           ├── FancyButton
│           │   ├── FancyButton.module.scss
│           │   ├── FancyButton.tsx
│           │   └── FancyButton.xmlui
│           ├── Hello
│           │   ├── Hello.tsx
│           │   ├── Hello.xmlui
│           │   └── Hello.xmlui.xs
│           ├── HeroSection
│           │   ├── HeroSection.module.scss
│           │   ├── HeroSection.spec.ts
│           │   ├── HeroSection.tsx
│           │   └── HeroSectionNative.tsx
│           ├── index.tsx
│           ├── ScrollToTop
│           │   ├── ScrollToTop.module.scss
│           │   ├── ScrollToTop.tsx
│           │   └── ScrollToTopNative.tsx
│           └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│   ├── codefence
│   │   └── xmlui-code-fence-docs.md
│   ├── create-app
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── create-app.ts
│   │   ├── helpers
│   │   │   ├── copy.ts
│   │   │   ├── get-pkg-manager.ts
│   │   │   ├── git.ts
│   │   │   ├── install.ts
│   │   │   ├── is-folder-empty.ts
│   │   │   ├── is-writeable.ts
│   │   │   ├── make-dir.ts
│   │   │   └── validate-pkg.ts
│   │   ├── index.ts
│   │   ├── package.json
│   │   ├── templates
│   │   │   ├── default
│   │   │   │   └── ts
│   │   │   │       ├── gitignore
│   │   │   │       ├── index.html
│   │   │   │       ├── index.ts
│   │   │   │       ├── public
│   │   │   │       │   ├── mockServiceWorker.js
│   │   │   │       │   ├── resources
│   │   │   │       │   │   ├── favicon.ico
│   │   │   │       │   │   └── xmlui-logo.svg
│   │   │   │       │   └── serve.json
│   │   │   │       └── src
│   │   │   │           ├── components
│   │   │   │           │   ├── ApiAware.xmlui
│   │   │   │           │   ├── Home.xmlui
│   │   │   │           │   ├── IncButton.xmlui
│   │   │   │           │   └── PagePanel.xmlui
│   │   │   │           ├── config.ts
│   │   │   │           └── Main.xmlui
│   │   │   ├── index.ts
│   │   │   └── types.ts
│   │   └── tsconfig.json
│   ├── create-xmlui-hello-world
│   │   ├── index.js
│   │   └── package.json
│   └── vscode
│       ├── .gitignore
│       ├── .vscode
│       │   ├── launch.json
│       │   └── tasks.json
│       ├── .vscodeignore
│       ├── build.sh
│       ├── CHANGELOG.md
│       ├── esbuild.js
│       ├── eslint.config.mjs
│       ├── formatter-docs.md
│       ├── generate-test-sample.sh
│       ├── LICENSE.md
│       ├── package-lock.json
│       ├── package.json
│       ├── README.md
│       ├── resources
│       │   ├── xmlui-logo.png
│       │   └── xmlui-markup-syntax-highlighting.png
│       ├── src
│       │   ├── extension.ts
│       │   └── server.ts
│       ├── syntaxes
│       │   └── xmlui.tmLanguage.json
│       ├── test-samples
│       │   └── sample.xmlui
│       ├── tsconfig.json
│       └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
    ├── .gitignore
    ├── bin
    │   ├── bootstrap.cjs
    │   ├── bootstrap.js
    │   ├── build-lib.ts
    │   ├── build.ts
    │   ├── index.ts
    │   ├── preview.ts
    │   ├── start.ts
    │   ├── vite-xmlui-plugin.ts
    │   └── viteConfig.ts
    ├── CHANGELOG.md
    ├── conventions
    │   ├── component-qa-checklist.md
    │   ├── copilot-conventions.md
    │   ├── create-xmlui-components.md
    │   ├── mermaid.md
    │   ├── testing-conventions.md
    │   └── xmlui-in-a-nutshell.md
    ├── dev-docs
    │   ├── accessibility.md
    │   ├── build-system.md
    │   ├── build-xmlui.md
    │   ├── component-behaviors.md
    │   ├── component-metadata.md
    │   ├── components-with-options.md
    │   ├── containers.md
    │   ├── data-operations.md
    │   ├── glossary.md
    │   ├── index.md
    │   ├── next
    │   │   ├── component-dev-guide.md
    │   │   ├── configuration-management-enhancement-summary.md
    │   │   ├── documentation-scripts-refactoring-complete-summary.md
    │   │   ├── documentation-scripts-refactoring-plan.md
    │   │   ├── duplicate-pattern-extraction-summary.md
    │   │   ├── error-handling-standardization-summary.md
    │   │   ├── generating-component-reference.md
    │   │   ├── index.md
    │   │   ├── logging-consistency-implementation-summary.md
    │   │   ├── project-build.md
    │   │   ├── project-structure.md
    │   │   ├── theme-context.md
    │   │   ├── tiptap-design-considerations.md
    │   │   ├── working-with-code.md
    │   │   ├── xmlui-runtime-architecture
    │   │   └── xmlui-wcag-accessibility-report.md
    │   ├── react-fundamentals.md
    │   ├── release-method.md
    │   ├── standalone-app.md
    │   ├── theme-variables-refactoring.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── extract-component-metadata.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── generate-metadata-markdown.js
    │   ├── get-langserver-metadata.js
    │   ├── inline-links.mjs
    │   └── README-e2e-summary.md
    ├── src
    │   ├── abstractions
    │   │   ├── _conventions.md
    │   │   ├── ActionDefs.ts
    │   │   ├── AppContextDefs.ts
    │   │   ├── ComponentDefs.ts
    │   │   ├── ContainerDefs.ts
    │   │   ├── ExtensionDefs.ts
    │   │   ├── FunctionDefs.ts
    │   │   ├── RendererDefs.ts
    │   │   ├── scripting
    │   │   │   ├── BlockScope.ts
    │   │   │   ├── Compilation.ts
    │   │   │   ├── LogicalThread.ts
    │   │   │   ├── LoopScope.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── ScriptParserError.ts
    │   │   │   ├── Token.ts
    │   │   │   ├── TryScope.ts
    │   │   │   └── TryScopeExp.ts
    │   │   └── ThemingDefs.ts
    │   ├── components
    │   │   ├── _conventions.md
    │   │   ├── abstractions.ts
    │   │   ├── Accordion
    │   │   │   ├── Accordion.md
    │   │   │   ├── Accordion.module.scss
    │   │   │   ├── Accordion.spec.ts
    │   │   │   ├── Accordion.tsx
    │   │   │   ├── AccordionContext.tsx
    │   │   │   ├── AccordionItem.tsx
    │   │   │   ├── AccordionItemNative.tsx
    │   │   │   └── AccordionNative.tsx
    │   │   ├── Animation
    │   │   │   └── AnimationNative.tsx
    │   │   ├── APICall
    │   │   │   ├── APICall.md
    │   │   │   ├── APICall.spec.ts
    │   │   │   ├── APICall.tsx
    │   │   │   └── APICallNative.tsx
    │   │   ├── App
    │   │   │   ├── App.md
    │   │   │   ├── App.module.scss
    │   │   │   ├── App.spec.ts
    │   │   │   ├── App.tsx
    │   │   │   ├── AppLayoutContext.ts
    │   │   │   ├── AppNative.tsx
    │   │   │   ├── AppStateContext.ts
    │   │   │   ├── doc-resources
    │   │   │   │   ├── condensed-sticky.xmlui
    │   │   │   │   ├── condensed.xmlui
    │   │   │   │   ├── horizontal-sticky.xmlui
    │   │   │   │   ├── horizontal.xmlui
    │   │   │   │   ├── vertical-full-header.xmlui
    │   │   │   │   ├── vertical-sticky.xmlui
    │   │   │   │   └── vertical.xmlui
    │   │   │   ├── IndexerContext.ts
    │   │   │   ├── LinkInfoContext.ts
    │   │   │   ├── SearchContext.tsx
    │   │   │   ├── Sheet.module.scss
    │   │   │   └── Sheet.tsx
    │   │   ├── AppHeader
    │   │   │   ├── AppHeader.md
    │   │   │   ├── AppHeader.module.scss
    │   │   │   ├── AppHeader.spec.ts
    │   │   │   ├── AppHeader.tsx
    │   │   │   └── AppHeaderNative.tsx
    │   │   ├── AppState
    │   │   │   ├── AppState.md
    │   │   │   ├── AppState.spec.ts
    │   │   │   ├── AppState.tsx
    │   │   │   └── AppStateNative.tsx
    │   │   ├── AutoComplete
    │   │   │   ├── AutoComplete.md
    │   │   │   ├── AutoComplete.module.scss
    │   │   │   ├── AutoComplete.spec.ts
    │   │   │   ├── AutoComplete.tsx
    │   │   │   ├── AutoCompleteContext.tsx
    │   │   │   └── AutoCompleteNative.tsx
    │   │   ├── Avatar
    │   │   │   ├── Avatar.md
    │   │   │   ├── Avatar.module.scss
    │   │   │   ├── Avatar.spec.ts
    │   │   │   ├── Avatar.tsx
    │   │   │   └── AvatarNative.tsx
    │   │   ├── Backdrop
    │   │   │   ├── Backdrop.md
    │   │   │   ├── Backdrop.module.scss
    │   │   │   ├── Backdrop.spec.ts
    │   │   │   ├── Backdrop.tsx
    │   │   │   └── BackdropNative.tsx
    │   │   ├── Badge
    │   │   │   ├── Badge.md
    │   │   │   ├── Badge.module.scss
    │   │   │   ├── Badge.spec.ts
    │   │   │   ├── Badge.tsx
    │   │   │   └── BadgeNative.tsx
    │   │   ├── Bookmark
    │   │   │   ├── Bookmark.md
    │   │   │   ├── Bookmark.module.scss
    │   │   │   ├── Bookmark.spec.ts
    │   │   │   ├── Bookmark.tsx
    │   │   │   └── BookmarkNative.tsx
    │   │   ├── Breakout
    │   │   │   ├── Breakout.module.scss
    │   │   │   ├── Breakout.spec.ts
    │   │   │   ├── Breakout.tsx
    │   │   │   └── BreakoutNative.tsx
    │   │   ├── Button
    │   │   │   ├── Button-style.spec.ts
    │   │   │   ├── Button.md
    │   │   │   ├── Button.module.scss
    │   │   │   ├── Button.spec.ts
    │   │   │   ├── Button.tsx
    │   │   │   └── ButtonNative.tsx
    │   │   ├── Card
    │   │   │   ├── Card.md
    │   │   │   ├── Card.module.scss
    │   │   │   ├── Card.spec.ts
    │   │   │   ├── Card.tsx
    │   │   │   └── CardNative.tsx
    │   │   ├── Carousel
    │   │   │   ├── Carousel.md
    │   │   │   ├── Carousel.module.scss
    │   │   │   ├── Carousel.spec.ts
    │   │   │   ├── Carousel.tsx
    │   │   │   ├── CarouselContext.tsx
    │   │   │   ├── CarouselItem.tsx
    │   │   │   ├── CarouselItemNative.tsx
    │   │   │   └── CarouselNative.tsx
    │   │   ├── ChangeListener
    │   │   │   ├── ChangeListener.md
    │   │   │   ├── ChangeListener.spec.ts
    │   │   │   ├── ChangeListener.tsx
    │   │   │   └── ChangeListenerNative.tsx
    │   │   ├── chart-color-schemes.ts
    │   │   ├── Charts
    │   │   │   ├── AreaChart
    │   │   │   │   ├── AreaChart.md
    │   │   │   │   ├── AreaChart.spec.ts
    │   │   │   │   ├── AreaChart.tsx
    │   │   │   │   └── AreaChartNative.tsx
    │   │   │   ├── BarChart
    │   │   │   │   ├── BarChart.md
    │   │   │   │   ├── BarChart.module.scss
    │   │   │   │   ├── BarChart.spec.ts
    │   │   │   │   ├── BarChart.tsx
    │   │   │   │   └── BarChartNative.tsx
    │   │   │   ├── DonutChart
    │   │   │   │   ├── DonutChart.spec.ts
    │   │   │   │   └── DonutChart.tsx
    │   │   │   ├── LabelList
    │   │   │   │   ├── LabelList.module.scss
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── 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

--------------------------------------------------------------------------------
/xmlui/tests/components/CodeBlock/hightlight-code.test.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { describe, expect, it } from "vitest";
  2 | import {
  3 |   encodeToBase64,
  4 |   decodeFromBase64,
  5 |   transformCodeLines,
  6 |   extractMetaFromChildren,
  7 |   CodeHighlighterMetaKeys,
  8 | } from "../../../src/components/CodeBlock/highlight-code";
  9 | 
 10 | describe("highlight-code", () => {
 11 |   it("encodeToBase64", () => {
 12 |     expect(encodeToBase64("test")).toBe("dGVzdA==");
 13 |   });
 14 | 
 15 |   it("decodeFromBase64", () => {
 16 |     expect(decodeFromBase64("dGVzdA==")).toBe("test");
 17 |   });
 18 | 
 19 |   it("transformCodeLines: empty", () => {
 20 |     const result = transformCodeLines("");
 21 |     expect(result).toBe("");
 22 |   });
 23 | 
 24 |   it("transformCodeLines: preserve whitespaces if no content", () => {
 25 |     const result = transformCodeLines("   ");
 26 |     expect(result).toBe("   ");
 27 |   });
 28 | 
 29 |   it("transformCodeLines: preserve newlines if no content", () => {
 30 |     const result = transformCodeLines("\n\n\n");
 31 |     expect(result).toBe("\n\n\n");
 32 |   });
 33 | 
 34 |   it("transformCodeLines: remove leading whitespaces", () => {
 35 |     const result = transformCodeLines("\n\n\ntest");
 36 |     expect(result).toBe("test");
 37 |   });
 38 | 
 39 |   it("transformCodeLines: remove trailing whitespaces", () => {
 40 |     const result = transformCodeLines("test\n\n\n");
 41 |     expect(result).toBe("test");
 42 |   });
 43 | 
 44 |   it("transformCodeLines: return single word", () => {
 45 |     const result = transformCodeLines("test");
 46 |     expect(result).toBe("test");
 47 |   });
 48 | 
 49 |   it("transformCodeLines: return multi-lines", () => {
 50 |     const code = "test1\n" + "test2";
 51 |     const result = transformCodeLines(code);
 52 |     expect(result).toBe(code);
 53 |   });
 54 | 
 55 |   it("transformCodeLines: return multi-lines with empty line", () => {
 56 |     const code = "test1\n" + "\n" + "test2";
 57 |     const result = transformCodeLines(code);
 58 |     expect(result).toBe(code);
 59 |   });
 60 | 
 61 |   it("transformCodeLines: single line code", () => {
 62 |     const code = "```\n" + "test\n" + "```";
 63 |     const result = transformCodeLines(code);
 64 |     expect(result).toBe(code);
 65 |   });
 66 | 
 67 |   it("transformCodeLines: multi-line code", () => {
 68 |     const code = "```\n" + "test1\n" + "test2\n" + "```";
 69 |     const result = transformCodeLines(code);
 70 |     expect(result).toBe(code);
 71 |   });
 72 | 
 73 |   it("transformCodeLines: remove backslash from escaped codefence", () => {
 74 |     const code = "\\```\n" + "test\n" + "```";
 75 |     const expectation = "```\n" + "test\n" + "```";
 76 |     const result = transformCodeLines(code);
 77 |     expect(result).toBe(expectation);
 78 |   });
 79 | 
 80 |   it("transformCodeLines: preserve double backslash", () => {
 81 |     const code = "\\\\```\n" + "test\n" + "```";
 82 |     const result = transformCodeLines(code);
 83 |     expect(result).toBe(code);
 84 |   });
 85 | 
 86 |   it("meta: empty", () => {
 87 |     const result = extractMetaFromChildren({}, "");
 88 |     expect(result).toStrictEqual({
 89 |       copy: false,
 90 |       filename: undefined,
 91 |       highlightRows: [],
 92 |       highlightSubstrings: [],
 93 |       highlightSubstringsEmphasized: [],
 94 |       language: undefined,
 95 |     });
 96 |   });
 97 | 
 98 |   it("meta: disregard unrecognized keys", () => {
 99 |     const meta = {
100 |       langage: "js",
101 |     };
102 |     const result = extractMetaFromChildren(meta, "");
103 |     expect(result).toStrictEqual({
104 |       copy: false,
105 |       filename: undefined,
106 |       highlightRows: [],
107 |       highlightSubstrings: [],
108 |       highlightSubstringsEmphasized: [],
109 |       language: undefined,
110 |     });
111 |   });
112 | 
113 |   it("meta: language", () => {
114 |     const meta = {
115 |       [CodeHighlighterMetaKeys.language.data]: "js",
116 |     };
117 |     const result = extractMetaFromChildren(meta, "");
118 |     expect(result[CodeHighlighterMetaKeys.language.prop]).toBe("js");
119 |   });
120 | 
121 |   it("meta: copy", () => {
122 |     const meta = {
123 |       [CodeHighlighterMetaKeys.copy.data]: "true",
124 |     };
125 |     const result = extractMetaFromChildren(meta, "");
126 |     expect(result[CodeHighlighterMetaKeys.copy.prop]).toBe(true);
127 |   });
128 | 
129 |   it("meta: filename", () => {
130 |     const meta = {
131 |       [CodeHighlighterMetaKeys.filename.data]: "file",
132 |     };
133 |     const result = extractMetaFromChildren(meta, "");
134 |     expect(result[CodeHighlighterMetaKeys.filename.prop]).toBe("file");
135 |   });
136 | 
137 |   it("highlightRows empty", () => {
138 |     const meta = {
139 |       [CodeHighlighterMetaKeys.highlightRows.data]: "",
140 |     };
141 |     const result = extractMetaFromChildren(meta, "");
142 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
143 |   });
144 | 
145 |   it("highlightRows bad input", () => {
146 |     const meta = {
147 |       [CodeHighlighterMetaKeys.highlightRows.data]: "test",
148 |     };
149 |     const result = extractMetaFromChildren(meta, "");
150 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
151 |   });
152 | 
153 |   it("highlightRows bad input #2", () => {
154 |     const meta = {
155 |       [CodeHighlighterMetaKeys.highlightRows.data]: "{1}",
156 |     };
157 |     const result = extractMetaFromChildren(meta, "");
158 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
159 |   });
160 | 
161 |   it("highlightRows single", () => {
162 |     const meta = {
163 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1",
164 |     };
165 |     const result = extractMetaFromChildren(meta, "");
166 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
167 |       {
168 |         start: 0,
169 |         end: 0,
170 |         properties: { class: "codeBlockHighlightRow" },
171 |       },
172 |     ]);
173 |   });
174 | 
175 |   it("highlightRows < lower bound disregarded", () => {
176 |     const meta = {
177 |       [CodeHighlighterMetaKeys.highlightRows.data]: "0",
178 |     };
179 |     const result = extractMetaFromChildren(meta, "");
180 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
181 |   });
182 | 
183 |   it("highlightRows > upper bound disregarded", () => {
184 |     const meta = {
185 |       [CodeHighlighterMetaKeys.highlightRows.data]: "2",
186 |     };
187 |     const result = extractMetaFromChildren(meta, "test");
188 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
189 |   });
190 | 
191 |   it("highlightRows first line", () => {
192 |     const code = "test\ntest";
193 |     const meta = {
194 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1",
195 |     };
196 |     const result = extractMetaFromChildren(meta, code);
197 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
198 |       {
199 |         start: 0,
200 |         end: 4,
201 |         properties: { class: "codeBlockHighlightRow" },
202 |       },
203 |     ]);
204 |   });
205 | 
206 |   it("highlightRows last line", () => {
207 |     const code = "test\ntest";
208 |     const meta = {
209 |       [CodeHighlighterMetaKeys.highlightRows.data]: "2",
210 |     };
211 |     const result = extractMetaFromChildren(meta, code);
212 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
213 |       {
214 |         start: 5,
215 |         end: 9,
216 |         properties: { class: "codeBlockHighlightRow" },
217 |       },
218 |     ]);
219 |   });
220 | 
221 |   it("highlightRows two single lines", () => {
222 |     const code = "test\ntest";
223 |     const meta = {
224 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1, 2",
225 |     };
226 |     const result = extractMetaFromChildren(meta, code);
227 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
228 |       {
229 |         start: 0,
230 |         end: 4,
231 |         properties: { class: "codeBlockHighlightRow" },
232 |       },
233 |       {
234 |         start: 5,
235 |         end: 9,
236 |         properties: { class: "codeBlockHighlightRow" },
237 |       },
238 |     ]);
239 |   });
240 | 
241 |   it("highlightRows two single lines, disregard out of bounds", () => {
242 |     const code = "test";
243 |     const meta = {
244 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1, 2",
245 |     };
246 |     const result = extractMetaFromChildren(meta, code);
247 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
248 |       {
249 |         start: 0,
250 |         end: 4,
251 |         properties: { class: "codeBlockHighlightRow" },
252 |       },
253 |     ]);
254 |   });
255 | 
256 |   it("highlightRows two single lines, disregard out of bounds", () => {
257 |     const code = "test";
258 |     const meta = {
259 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1, 2",
260 |     };
261 |     const result = extractMetaFromChildren(meta, code);
262 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
263 |       {
264 |         start: 0,
265 |         end: 4,
266 |         properties: { class: "codeBlockHighlightRow" },
267 |       },
268 |     ]);
269 |   });
270 | 
271 |   it("highlightRows invalid input with single line", () => {
272 |     const code = "test";
273 |     const meta = {
274 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1, a",
275 |     };
276 |     const result = extractMetaFromChildren(meta, code);
277 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
278 |       {
279 |         start: 0,
280 |         end: 4,
281 |         properties: { class: "codeBlockHighlightRow" },
282 |       },
283 |     ]);
284 |   });
285 | 
286 |   it("highlightRows multiline", () => {
287 |     const code = "test\ntest";
288 |     const meta = {
289 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-2",
290 |     };
291 |     const result = extractMetaFromChildren(meta, code);
292 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
293 |       {
294 |         start: 0,
295 |         end: 9,
296 |         properties: { class: "codeBlockHighlightRow" },
297 |       },
298 |     ]);
299 |   });
300 | 
301 |   it("highlightRows disregard multiline out of bounds", () => {
302 |     const code = "test";
303 |     const meta = {
304 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-2",
305 |     };
306 |     const result = extractMetaFromChildren(meta, code);
307 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
308 |   });
309 | 
310 |   it("highlightRows disregard malformed upper bound multiline", () => {
311 |     const code = "test\ntest";
312 |     const meta = {
313 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-a",
314 |     };
315 |     const result = extractMetaFromChildren(meta, code);
316 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
317 |   });
318 | 
319 |   it("highlightRows disregard malformed lower bound multiline", () => {
320 |     const code = "test\ntest";
321 |     const meta = {
322 |       [CodeHighlighterMetaKeys.highlightRows.data]: "a-2",
323 |     };
324 |     const result = extractMetaFromChildren(meta, code);
325 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
326 |   });
327 | 
328 |   it("highlightRows disregard empty upper bound multiline", () => {
329 |     const code = "test\ntest";
330 |     const meta = {
331 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-",
332 |     };
333 |     const result = extractMetaFromChildren(meta, code);
334 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
335 |   });
336 | 
337 |   it("highlightRows disregard empty lower bound multiline", () => {
338 |     const code = "test\ntest";
339 |     const meta = {
340 |       [CodeHighlighterMetaKeys.highlightRows.data]: "-2",
341 |     };
342 |     const result = extractMetaFromChildren(meta, code);
343 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
344 |   });
345 | 
346 |   it("highlightRows disregard empty lower & upper bounds multiline", () => {
347 |     const code = "test\ntest";
348 |     const meta = {
349 |       [CodeHighlighterMetaKeys.highlightRows.data]: "-",
350 |     };
351 |     const result = extractMetaFromChildren(meta, code);
352 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
353 |   });
354 | 
355 |   it("highlightRows disregard double dash multiline", () => {
356 |     const code = "test\ntest";
357 |     const meta = {
358 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-2-3",
359 |     };
360 |     const result = extractMetaFromChildren(meta, code);
361 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
362 |   });
363 | 
364 |   it("highlightRows disregard long dash multiline", () => {
365 |     const code = "test\ntest";
366 |     const meta = {
367 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1--2",
368 |     };
369 |     const result = extractMetaFromChildren(meta, code);
370 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([]);
371 |   });
372 | 
373 |   it("highlightRows single & multiline", () => {
374 |     const code = "test\ntest\ntest";
375 |     const meta = {
376 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1, 2-3",
377 |     };
378 |     const result = extractMetaFromChildren(meta, code);
379 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
380 |       {
381 |         start: 0,
382 |         end: 4,
383 |         properties: { class: "codeBlockHighlightRow" },
384 |       },
385 |       {
386 |         start: 5,
387 |         end: 14,
388 |         properties: { class: "codeBlockHighlightRow" },
389 |       },
390 |     ]);
391 |   });
392 | 
393 |   it("highlightRows multiline & single", () => {
394 |     const code = "test\ntest\ntest";
395 |     const meta = {
396 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-2, 3",
397 |     };
398 |     const result = extractMetaFromChildren(meta, code);
399 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
400 |       {
401 |         start: 0,
402 |         end: 9,
403 |         properties: { class: "codeBlockHighlightRow" },
404 |       },
405 |       {
406 |         start: 10,
407 |         end: 14,
408 |         properties: { class: "codeBlockHighlightRow" },
409 |       },
410 |     ]);
411 |   });
412 | 
413 |   it("highlightRows overlapping multilines", () => {
414 |     const code = "test\ntest\ntest";
415 |     const meta = {
416 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-2, 2-3",
417 |     };
418 |     const result = extractMetaFromChildren(meta, code);
419 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
420 |       {
421 |         start: 0,
422 |         end: 9,
423 |         properties: { class: "codeBlockHighlightRow" },
424 |       },
425 |       {
426 |         start: 5,
427 |         end: 14,
428 |         properties: { class: "codeBlockHighlightRow" },
429 |       },
430 |     ]);
431 |   });
432 | 
433 |   it("highlightRows overlapping multilines #2", () => {
434 |     const code = "test\ntest\ntest";
435 |     const meta = {
436 |       [CodeHighlighterMetaKeys.highlightRows.data]: "1-3, 2-3",
437 |     };
438 |     const result = extractMetaFromChildren(meta, code);
439 |     expect(result[CodeHighlighterMetaKeys.highlightRows.prop]).toStrictEqual([
440 |       {
441 |         start: 0,
442 |         end: 14,
443 |         properties: { class: "codeBlockHighlightRow" },
444 |       },
445 |       {
446 |         start: 5,
447 |         end: 14,
448 |         properties: { class: "codeBlockHighlightRow" },
449 |       },
450 |     ]);
451 |   });
452 | 
453 |   it("highlightSubstrings empty", () => {
454 |     const code = "test\ntest";
455 |     const meta = {
456 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64(""),
457 |     };
458 |     const result = extractMetaFromChildren(meta, code);
459 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([]);
460 |   });
461 | 
462 |   it("highlightSubstrings is number", () => {
463 |     const code = "test3";
464 |     const meta = {
465 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64(3),
466 |     };
467 |     const result = extractMetaFromChildren(meta, code);
468 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
469 |       {
470 |         start: 4,
471 |         end: 5,
472 |         properties: { class: "codeBlockHighlightString" },
473 |       },
474 |     ]);
475 |   });
476 | 
477 |   it("highlightSubstrings is boolean", () => {
478 |     const code = "test true test";
479 |     const meta = {
480 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64(true),
481 |     };
482 |     const result = extractMetaFromChildren(meta, code);
483 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
484 |       {
485 |         start: 5,
486 |         end: 9,
487 |         properties: { class: "codeBlockHighlightString" },
488 |       },
489 |     ]);
490 |   });
491 | 
492 |   it("highlightSubstrings is object", () => {
493 |     const code = 'test {"a":1} test';
494 |     const meta = {
495 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64({ a: 1 }),
496 |     };
497 |     const result = extractMetaFromChildren(meta, code);
498 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
499 |       {
500 |         start: 5,
501 |         end: 12,
502 |         properties: { class: "codeBlockHighlightString" },
503 |       },
504 |     ]);
505 |   });
506 | 
507 |   it("highlightSubstrings single character", () => {
508 |     const code = "test";
509 |     const meta = {
510 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64("t"),
511 |     };
512 |     const result = extractMetaFromChildren(meta, code);
513 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
514 |       {
515 |         start: 0,
516 |         end: 1,
517 |         properties: { class: "codeBlockHighlightString" },
518 |       },
519 |       {
520 |         start: 3,
521 |         end: 4,
522 |         properties: { class: "codeBlockHighlightString" },
523 |       },
524 |     ]);
525 |   });
526 | 
527 |   it("highlightSubstrings disregard not in code", () => {
528 |     const code = "test";
529 |     const meta = {
530 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64("a"),
531 |     };
532 |     const result = extractMetaFromChildren(meta, code);
533 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([]);
534 |   });
535 | 
536 |   it("highlightSubstrings disregard partially in code", () => {
537 |     const code = "test";
538 |     const meta = {
539 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64("esa"),
540 |     };
541 |     const result = extractMetaFromChildren(meta, code);
542 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([]);
543 |   });
544 | 
545 |   it("highlightSubstrings disregard unencoded", () => {
546 |     const code = "test";
547 |     const meta = {
548 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: "test",
549 |     };
550 |     const result = extractMetaFromChildren(meta, code);
551 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([]);
552 |   });
553 | 
554 |   it("highlightSubstrings multiple characters", () => {
555 |     const code = "test\ntest";
556 |     const meta = {
557 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]: encodeToBase64("tes"),
558 |     };
559 |     const result = extractMetaFromChildren(meta, code);
560 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
561 |       {
562 |         start: 0,
563 |         end: 3,
564 |         properties: { class: "codeBlockHighlightString" },
565 |       },
566 |       {
567 |         start: 5,
568 |         end: 8,
569 |         properties: { class: "codeBlockHighlightString" },
570 |       },
571 |     ]);
572 |   });
573 | 
574 |   it("highlightSubstrings multiple strings", () => {
575 |     const code = "<property name='inputTemplate'>";
576 |     const meta = {
577 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]:
578 |         `${encodeToBase64("prop")} ${encodeToBase64("inputTemplate")}`,
579 |     };
580 |     const result = extractMetaFromChildren(meta, code);
581 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
582 |       {
583 |         start: 1,
584 |         end: 5,
585 |         properties: { class: "codeBlockHighlightString" },
586 |       },
587 |       {
588 |         start: 16,
589 |         end: 29,
590 |         properties: { class: "codeBlockHighlightString" },
591 |       },
592 |     ]);
593 |   });
594 | 
595 |   it("highlightSubstrings multiple overlapping strings", () => {
596 |     const code = "<property name='inputTemplate'>";
597 |     const meta = {
598 |       [CodeHighlighterMetaKeys.highlightSubstrings.data]:
599 |         `${encodeToBase64("prop")} ${encodeToBase64("property")}`,
600 |     };
601 |     const result = extractMetaFromChildren(meta, code);
602 |     expect(result[CodeHighlighterMetaKeys.highlightSubstrings.prop]).toStrictEqual([
603 |       {
604 |         start: 1,
605 |         end: 5,
606 |         properties: { class: "codeBlockHighlightString" },
607 |       },
608 |       {
609 |         start: 1,
610 |         end: 9,
611 |         properties: { class: "codeBlockHighlightString" },
612 |       },
613 |     ]);
614 |   });
615 | 
616 |   it("highlightSubstringsEmphasized adds different style", () => {
617 |     const code = "<property name='inputTemplate'>";
618 |     const meta = {
619 |       [CodeHighlighterMetaKeys.highlightSubstringsEmphasized.data]: encodeToBase64("property"),
620 |     };
621 |     const result = extractMetaFromChildren(meta, code);
622 |     expect(result[CodeHighlighterMetaKeys.highlightSubstringsEmphasized.prop]).toStrictEqual([
623 |       {
624 |         start: 1,
625 |         end: 9,
626 |         properties: { class: "codeBlockHighlightStringEmphasis" },
627 |       }
628 |     ]);
629 |   });
630 | });
631 | 
```

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

```typescript
  1 | import { expect, test } from "../../testing/fixtures";
  2 | import { format } from "date-fns";
  3 | 
  4 | // =============================================================================
  5 | // BASIC FUNCTIONALITY TESTS
  6 | // =============================================================================
  7 | 
  8 | test("component renders", async ({ page, initTestBed }) => {
  9 |   await initTestBed(`<DatePicker testId="datePicker" />`);
 10 |   await expect(page.getByTestId("datePicker")).toBeVisible();
 11 | });
 12 | 
 13 | test("component renders inline", async ({ page, initTestBed }) => {
 14 |   await initTestBed(`<DatePicker inline testId="datePicker" />`);
 15 |   await expect(page.getByTestId("datePicker")).toBeVisible();
 16 | });
 17 | 
 18 | test("component handles correct date format", async ({ page, initTestBed }) => {
 19 |   await initTestBed(
 20 |     `<DatePicker testId="datePicker" dateFormat="MM/dd/yyyy" initialValue="05/25/2024" />`,
 21 |   );
 22 |   await expect(page.getByTestId("datePicker")).toHaveText("05/25/2024");
 23 | });
 24 | 
 25 | test("component displays initialValue correctly (single)", async ({ page, initTestBed }) => {
 26 |   await initTestBed(`
 27 |     <DatePicker
 28 |       initialValue="05/25/2024"
 29 |       dateFormat="MM/dd/yyyy"
 30 |       testId="datePicker"
 31 |       mode="single"
 32 |     />`);
 33 |   await expect(page.getByText("05/25/2024")).toBeVisible();
 34 | });
 35 | 
 36 | test("component displays initialValue correctly (range)", async ({ page, initTestBed }) => {
 37 |   await initTestBed(`
 38 |     <DatePicker
 39 |       initialValue="{{ from: '05/25/2024', to: '05/26/2024' }}"
 40 |       dateFormat="MM/dd/yyyy"
 41 |       mode="range"
 42 |       testId="datePicker"
 43 |     />`);
 44 |   await expect(page.getByText("05/25/2024 - 05/26/2024")).toBeVisible();
 45 | });
 46 | 
 47 | test("component opens calendar when clicked", async ({ page, initTestBed }) => {
 48 |   await initTestBed(`<DatePicker testId="datePicker" />`);
 49 |   await page.getByTestId("datePicker").click();
 50 |   await expect(page.getByRole("menu")).toBeVisible();
 51 | });
 52 | 
 53 | test("component formats input to provided date format", async ({ page, initTestBed }) => {
 54 |   await initTestBed(
 55 |     `<DatePicker testId="datePicker" dateFormat="dd-MM-yyyy" initialValue="05/25/2024" />`,
 56 |   );
 57 |   await expect(page.getByTestId("datePicker")).toHaveText("25-05-2024");
 58 | });
 59 | 
 60 | test("component allows date selection in single mode", async ({ page, initTestBed }) => {
 61 |   await initTestBed(`
 62 |     <DatePicker testId="datePicker" mode="single" dateFormat="MM/dd/yyyy" initialValue="05/25/2024" />
 63 |   `);
 64 |   await page.getByTestId("datePicker").click();
 65 |   await expect(page.getByRole("menu")).toBeVisible();
 66 |   await page.getByRole("grid", { name: "May" }).getByLabel("26").click();
 67 |   await expect(page.getByTestId("datePicker")).toHaveText("05/26/2024");
 68 | });
 69 | 
 70 | test("date changes when selecting a new date in single mode", async ({ page, initTestBed }) => {
 71 |   await initTestBed(`
 72 |     <DatePicker testId="datePicker" mode="single" dateFormat="MM/dd/yyyy" initialValue="05/25/2024" />
 73 |   `);
 74 |   const datePicker = page.getByTestId("datePicker");
 75 |   await datePicker.click();
 76 |   await page.getByRole("grid", { name: "May" }).getByLabel("26").click();
 77 |   await expect(page.getByTestId("datePicker")).toHaveText("05/26/2024");
 78 |   await datePicker.click();
 79 |   await page.getByRole("grid", { name: "May" }).getByLabel("27").click();
 80 |   await expect(page.getByTestId("datePicker")).toHaveText("05/27/2024");
 81 | });
 82 | 
 83 | test("component allows date range selection", async ({ page, initTestBed }) => {
 84 |   await initTestBed(
 85 |     `<DatePicker testId="datePicker" mode="range" dateFormat="MM/dd/yyyy" initialValue="{{ from: '05/25/2024', to: '05/26/2024' }}" />`,
 86 |   );
 87 |   await page.getByTestId("datePicker").click();
 88 |   await expect(page.getByRole("menu")).toBeVisible();
 89 | 
 90 |   await page.getByRole("grid", { name: "May" }).getByLabel("26").click();
 91 |   await page.getByRole("grid", { name: "May" }).getByLabel("27").click();
 92 |   await expect(page.getByTestId("datePicker")).toHaveText("05/26/2024 - 05/27/2024");
 93 | });
 94 | 
 95 | // =============================================================================
 96 | // ACCESSIBILITY TESTS
 97 | // =============================================================================
 98 | 
 99 | test("component has correct accessibility attributes", async ({ page, initTestBed }) => {
100 |   await initTestBed(`<DatePicker testId="datePicker" />`);
101 |   await expect(page.getByTestId("datePicker")).toHaveAttribute("aria-haspopup", "true");
102 |   await expect(page.getByTestId("datePicker")).toHaveAttribute("aria-expanded", "false");
103 | });
104 | 
105 | test("component is focusable via label", async ({ page, initTestBed }) => {
106 |   await initTestBed(`<DatePicker testId="datePicker" label="Birth Date" />`);
107 |   await page.getByText("Birth Date").click();
108 |   // --- clicking the label to focus the input opens up the dialog
109 |   await expect(
110 |     page.getByRole("menu").getByRole("button", { name: "Go to the Previous Month" }),
111 |   ).toBeFocused();
112 | });
113 | 
114 | test("component respects autoFocus property", async ({ page, initTestBed }) => {
115 |   await initTestBed(`<DatePicker testId="datePicker" autoFocus="true" />`);
116 |   await expect(page.getByTestId("datePicker")).toBeFocused();
117 | });
118 | 
119 | test("component is keyboard navigable: open/close calendar menu", async ({ page, initTestBed }) => {
120 |   await initTestBed(`<DatePicker testId="datePicker" />`);
121 | 
122 |   // Focus the button
123 |   await page.getByTestId("datePicker").focus();
124 |   await expect(page.getByTestId("datePicker")).toBeFocused();
125 | 
126 |   // Press Enter to open calendar
127 |   await page.keyboard.press("Enter");
128 |   await expect(page.getByRole("menu")).toBeVisible();
129 | 
130 |   // Press Escape to close
131 |   await page.keyboard.press("Escape");
132 |   await expect(page.getByRole("menu")).not.toBeVisible();
133 | });
134 | 
135 | test("component is keyboard navigable: navigate controls inside calendar menu", async ({
136 |   page,
137 |   initTestBed,
138 | }) => {
139 |   await initTestBed(
140 |     `<DatePicker testId="datePicker" initialValue="05/25/2024" dateFormat="MM/dd/yyyy" />`,
141 |   );
142 | 
143 |   // Focus the button
144 |   await page.getByTestId("datePicker").click();
145 |   await expect(page.getByRole("menu")).toBeVisible();
146 |   await expect(
147 |     page.getByRole("menu").getByRole("button", { name: "Go to the Previous Month" }),
148 |   ).toBeFocused();
149 |   // Tab to the calendar grid
150 |   await page.keyboard.press("Tab");
151 |   await expect(
152 |     page.getByRole("menu").getByRole("button", { name: "Go to the Next Month" }),
153 |   ).toBeFocused();
154 | 
155 |   await page.keyboard.press("Tab");
156 |   await expect(page.getByRole("menu").getByLabel("Choose the Month")).toBeFocused();
157 | 
158 |   await page.keyboard.press("Tab");
159 |   await expect(page.getByRole("menu").getByLabel("Choose the Year")).toBeFocused();
160 | 
161 |   await page.keyboard.press("Tab");
162 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("25")).toBeFocused();
163 | });
164 | 
165 | test("component is keyboard navigable: navigate days inside calendar menu", async ({
166 |   page,
167 |   initTestBed,
168 | }) => {
169 |   await initTestBed(
170 |     `<DatePicker testId="datePicker" initialValue="05/15/2024" dateFormat="MM/dd/yyyy" />`,
171 |   );
172 | 
173 |   await page.getByTestId("datePicker").click();
174 |   await expect(page.getByRole("menu")).toBeVisible();
175 | 
176 |   // The back navigation button is focused first
177 | 
178 |   // Tab to next nav button
179 |   await page.keyboard.press("Tab");
180 |   // Tab to month select
181 |   await page.keyboard.press("Tab");
182 |   // Tab to year select
183 |   await page.keyboard.press("Tab");
184 |   // Tab to the calendar grid
185 |   await page.keyboard.press("Tab");
186 | 
187 |   await page.keyboard.press("ArrowLeft");
188 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("May 14th")).toBeFocused();
189 |   await page.keyboard.press("ArrowUp");
190 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("May 7th")).toBeFocused();
191 |   await page.keyboard.press("ArrowRight");
192 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("May 8th")).toBeFocused();
193 |   await page.keyboard.press("ArrowDown");
194 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("May 15th")).toBeFocused();
195 | });
196 | 
197 | test("component is keyboard navigable: enter new date", async ({ page, initTestBed }) => {
198 |   await initTestBed(
199 |     `<DatePicker testId="datePicker" initialValue="05/15/2024" dateFormat="MM/dd/yyyy"/>`,
200 |   );
201 | 
202 |   await page.getByTestId("datePicker").click();
203 |   await expect(page.getByRole("menu")).toBeVisible();
204 | 
205 |   // The back navigation button is focused first
206 | 
207 |   // Tab to next nav button
208 |   await page.keyboard.press("Tab");
209 |   // Tab to month select
210 |   await page.keyboard.press("Tab");
211 |   // Tab to year select
212 |   await page.keyboard.press("Tab");
213 |   // Tab to the calendar grid
214 |   await page.keyboard.press("Tab");
215 | 
216 |   await page.keyboard.press("ArrowLeft");
217 |   await expect(page.getByRole("grid", { name: "May" }).getByLabel("May 14th")).toBeFocused();
218 |   await page.keyboard.press("Enter");
219 |   await expect(page.getByTestId("datePicker")).toHaveText("05/14/2024");
220 |   await expect(page.getByRole("menu")).not.toBeVisible();
221 | });
222 | 
223 | test("component fires proper focus event on gotFocus", async ({ page, initTestBed }) => {
224 |   const { testStateDriver } = await initTestBed(`
225 |     <DatePicker testId="datePicker" onGotFocus="testState = 'focused'" />
226 |   `);
227 |   await page.getByTestId("datePicker").focus();
228 |   await expect.poll(testStateDriver.testState).toBe("focused");
229 | });
230 | 
231 | test("component fires proper focus event on label focus", async ({ page, initTestBed }) => {
232 |   const { testStateDriver } = await initTestBed(`
233 |     <DatePicker testId="datePicker" onGotFocus="testState = 'focused'" label="test" />
234 |   `);
235 |   await page.getByText("test").click();
236 |   await expect.poll(testStateDriver.testState).toBe("focused");
237 | });
238 | 
239 | test("component fires proper blur event on lostFocus", async ({ page, initTestBed }) => {
240 |   const { testStateDriver } = await initTestBed(`
241 |     <DatePicker testId="datePicker" onLostFocus="testState = 'blurred'" />
242 |   `);
243 |   await page.getByTestId("datePicker").focus();
244 |   await page.getByTestId("datePicker").blur();
245 |   await expect.poll(testStateDriver.testState).toBe("blurred");
246 | });
247 | 
248 | // =============================================================================
249 | // VISUAL STATE TESTS
250 | // =============================================================================
251 | 
252 | test("component shows error validation states", async ({ page, initTestBed }) => {
253 |   // Error state
254 |   await initTestBed(`<DatePicker testId="datePicker" validationStatus="error" />`, {
255 |     testThemeVars: {
256 |       "borderColor-DatePicker--error": "rgb(220, 38, 38)",
257 |       "backgroundColor-DatePicker--error": "rgb(254, 202, 202)",
258 |       "textColor-DatePicker--error": "rgb(127, 29, 29)",
259 |     },
260 |   });
261 |   await expect(page.getByTestId("datePicker")).toHaveCSS("border-color", "rgb(220, 38, 38)");
262 |   await expect(page.getByTestId("datePicker")).toHaveCSS("background-color", "rgb(254, 202, 202)");
263 |   await expect(page.getByTestId("datePicker")).toHaveCSS("color", "rgb(127, 29, 29)");
264 | });
265 | 
266 | test("component shows warning validation states", async ({ page, initTestBed }) => {
267 |   // Warning state
268 |   await initTestBed(`<DatePicker testId="datePicker" validationStatus="warning" />`, {
269 |     testThemeVars: {
270 |       "borderColor-DatePicker--warning": "rgb(255, 165, 0)",
271 |       "backgroundColor-DatePicker--warning": "rgb(255, 235, 156)",
272 |       "textColor-DatePicker--warning": "rgb(127, 29, 29)",
273 |     },
274 |   });
275 |   await expect(page.getByTestId("datePicker")).toHaveCSS("border-color", "rgb(255, 165, 0)");
276 |   await expect(page.getByTestId("datePicker")).toHaveCSS("background-color", "rgb(255, 235, 156)");
277 |   await expect(page.getByTestId("datePicker")).toHaveCSS("color", "rgb(127, 29, 29)");
278 | });
279 | 
280 | test("component shows valid validation states", async ({ page, initTestBed }) => {
281 |   // Valid state
282 |   await initTestBed(`<DatePicker testId="datePicker" validationStatus="valid" />`, {
283 |     testThemeVars: {
284 |       "borderColor-DatePicker--success": "rgb(0, 128, 0)",
285 |       "backgroundColor-DatePicker--success": "rgb(220, 255, 220)",
286 |       "textColor-DatePicker--success": "rgb(0, 100, 0)",
287 |     },
288 |   });
289 |   await expect(page.getByTestId("datePicker")).toHaveCSS("border-color", "rgb(0, 128, 0)");
290 |   await expect(page.getByTestId("datePicker")).toHaveCSS("background-color", "rgb(220, 255, 220)");
291 |   await expect(page.getByTestId("datePicker")).toHaveCSS("color", "rgb(0, 100, 0)");
292 | });
293 | 
294 | test("component displays placeholder text", async ({ page, initTestBed }) => {
295 |   await initTestBed(`<DatePicker testId="datePicker" placeholder="Select a date" />`);
296 |   await expect(page.getByTestId("datePicker")).toContainText("Select a date");
297 | });
298 | 
299 | test("component shows week numbers when enabled", async ({ page, initTestBed }) => {
300 |   await initTestBed(`<DatePicker testId="datePicker" showWeekNumber="true" />`);
301 |   await page.getByTestId("datePicker").click();
302 |   await expect(page.locator("[role='rowheader']").first()).toBeVisible();
303 | });
304 | 
305 | test("component renders with adornments", async ({ page, initTestBed }) => {
306 |   const startText = "From";
307 |   const endText = "Select";
308 |   await initTestBed(
309 |     `
310 |     <DatePicker
311 |       testId="datePicker"
312 |       startText="${startText}"
313 |       endText="${endText}"
314 |       startIcon="test"
315 |       endIcon="test"
316 |     />
317 |   `,
318 |     {
319 |       resources: {
320 |         "icon.test": "resources/bell.svg",
321 |       },
322 |     },
323 |   );
324 |   await expect(page.getByText(startText)).toBeVisible();
325 |   await expect(page.getByText(endText)).toBeVisible();
326 |   await expect(page.getByTestId("datePicker").locator("svg")).toHaveCount(2);
327 | });
328 | 
329 | // =============================================================================
330 | // EDGE CASE TESTS
331 | // =============================================================================
332 | 
333 | test("component handles disabled state correctly", async ({ page, initTestBed }) => {
334 |   await initTestBed(`<DatePicker testId="datePicker" enabled="false" />`);
335 |   await expect(page.getByTestId("datePicker")).toBeDisabled();
336 | });
337 | 
338 | test("disabled component does not react to user interactions", async ({ page, initTestBed }) => {
339 |   await initTestBed(`<DatePicker testId="datePicker" enabled="false" />`);
340 |   await page.getByTestId("datePicker").click({ force: true });
341 |   await expect(page.getByRole("menu")).not.toBeVisible();
342 | });
343 | 
344 | test("component handles readOnly mode correctly", async ({ page, initTestBed }) => {
345 |   const initialDate = "05/25/2024";
346 |   await initTestBed(
347 |     `<DatePicker testId="datePicker" readOnly="true" initialValue="${initialDate}" dateFormat="MM/dd/yyyy" />`,
348 |   );
349 |   await page.getByTestId("datePicker").click();
350 |   await page.getByRole("grid", { name: "May" }).getByLabel("26").click();
351 | 
352 |   // The date should not change
353 |   await expect(page.getByTestId("datePicker")).toHaveText(initialDate);
354 | });
355 | 
356 | test(
357 |   "component handles startDate restrictions",
358 |   async ({ page, initTestBed }) => {
359 |     await initTestBed(
360 |       `<DatePicker
361 |         testId="datePicker"
362 |         mode="range"
363 |         startDate="05/01/2024"
364 |         dateFormat="MM/dd/yyyy"
365 |         initialValue="{{ from: '05/26/2024', to: '05/27/2024' }}"
366 |       />`,
367 |     );
368 |     await page.getByTestId("datePicker").click();
369 |     await expect(page.getByRole('button', { name: 'Go to the Previous Month' })).toBeDisabled();
370 |   },
371 | );
372 | 
373 | test(
374 |   "component handles endDate restrictions",
375 |   async ({ page, initTestBed }) => {
376 |     await initTestBed(
377 |       `<DatePicker
378 |         testId="datePicker"
379 |         mode="range"
380 |         endDate="06/01/2024"
381 |         initialValue="{{ from: '05/26/2024', to: '05/27/2024' }}"
382 |         dateFormat="MM/dd/yyyy"
383 |       />`,
384 |     );
385 |     await page.getByTestId("datePicker").click();
386 |     await expect(page.getByRole('button', { name: 'Go to the Next Month' })).toBeDisabled();
387 |   },
388 | );
389 | 
390 | test("component handles disabledDates correctly", async ({ page, initTestBed }) => {
391 |   const testDay = 15;
392 |   const today = new Date();
393 |   const testDayFormatted = format(
394 |     new Date(today.getFullYear(), today.getMonth(), testDay),
395 |     "MM/dd/yyyy",
396 |   );
397 |   const testMonthName = format(today, "LLLL");
398 | 
399 |   await initTestBed(`<DatePicker testId="datePicker" disabledDates="{['${testDayFormatted}']}" />`, {});
400 |   await page.getByTestId("datePicker").click();
401 | 
402 |   const testDayCell = page.getByRole("grid", { name: testMonthName }).getByLabel(testDay.toString());
403 |   await expect(testDayCell).toBeDisabled();
404 | });
405 | 
406 | // =============================================================================
407 | // INTEGRATION TESTS
408 | // =============================================================================
409 | 
410 | test("component value API works", async ({ page, initTestBed }) => {
411 |   await initTestBed(`
412 |     <Fragment>
413 |       <DatePicker id="datePicker" initialValue="05/25/2024" dateFormat="MM/dd/yyyy" />
414 |       <Text testId="text">{datePicker.value}</Text>
415 |     </Fragment>
416 |   `);
417 |   await expect(page.getByTestId("text")).toHaveText("05/25/2024");
418 | });
419 | 
420 | test("component setValue API works", async ({ page, initTestBed }) => {
421 |   await initTestBed(`
422 |     <Fragment>
423 |       <DatePicker id="datePicker" initialValue="05/25/2024" dateFormat="MM/dd/yyyy" />
424 |       <Button testId="btn" onClick="datePicker.setValue('06/01/2024')" />
425 |     </Fragment>
426 |   `);
427 |   await page.getByTestId("btn").click();
428 |   await expect(page.getByTestId("datePicker")).toHaveText("06/01/2024");
429 | });
430 | 
431 | test("component focus API works", async ({ page, initTestBed }) => {
432 |   await initTestBed(`
433 |     <Fragment>
434 |       <DatePicker id="datePicker" initialValue="05/25/2024" dateFormat="MM/dd/yyyy" />
435 |       <Button testId="focusBtn" onClick="datePicker.focus()" />
436 |     </Fragment>
437 |   `);
438 |   await page.getByTestId("focusBtn").click();
439 |   await expect(page.getByTestId("datePicker")).toBeFocused();
440 | });
441 | 
442 | test("component works correctly within a form", async ({ page, initTestBed }) => {
443 |   const { testStateDriver } = await initTestBed(`
444 |     <Form onSubmit="(data) => testState = data.testField" data="{{ testField: '05/25/2024' }}">
445 |       <FormItem type="datePicker" label="Choose Date" bindTo="testField" />
446 |     </Form>
447 |   `);
448 |   const formElement = page.locator("form");
449 |   const dateInput = formElement.getByLabel("Choose Date");
450 |   await expect(dateInput).toBeVisible();
451 |   await expect(dateInput).toHaveText("05/25/2024");
452 | 
453 |   // Submit the form
454 |   await page.locator("[type=submit]").click();
455 | 
456 |   // Check that the form was submitted
457 |   await expect.poll(testStateDriver.testState).toEqual("05/25/2024");
458 | });
459 | 
460 | // =============================================================================
461 | // VISUAL STATE TESTS
462 | // =============================================================================
463 | 
464 | test("input has correct width in px", async ({ page, initTestBed }) => {
465 |   await initTestBed(`<DatePicker width="200px" testId="test"/>`, {});
466 | 
467 |   const input = page.getByTestId("test");
468 |   const { width } = await input.boundingBox();
469 |   expect(width).toBe(200);
470 | });
471 | 
472 | test("input with label has correct width in px", async ({ page, initTestBed }) => {
473 |   await initTestBed(`<DatePicker width="200px" label="test" testId="test"/>`, {});
474 | 
475 |   const input = page.getByTestId("test");
476 |   const { width } = await input.boundingBox();
477 |   expect(width).toBe(200);
478 | });
479 | 
480 | test("input has correct width in %", async ({ page, initTestBed }) => {
481 |   await page.setViewportSize({ width: 400, height: 300 });
482 |   await initTestBed(`<DatePicker width="50%" testId="test"/>`, {});
483 | 
484 |   const input = page.getByTestId("test");
485 |   const { width } = await input.boundingBox();
486 |   expect(width).toBe(200);
487 | });
488 | 
489 | test("input with label has correct width in %", async ({ page, initTestBed }) => {
490 |   await page.setViewportSize({ width: 400, height: 300 });
491 |   await initTestBed(`<DatePicker width="50%" label="test" testId="test"/>`, {});
492 | 
493 |   const input = page.getByTestId("test");
494 |   const { width } = await input.boundingBox();
495 |   expect(width).toBe(200);
496 | });
497 | 
```

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

```typescript
  1 | import { getBounds } from "../../testing/component-test-helpers";
  2 | import { expect, test } from "../../testing/fixtures";
  3 | 
  4 | // Use low delay duration for faster tests as suggested
  5 | const LOW_DELAY = 10;
  6 | 
  7 | // =============================================================================
  8 | // BASIC FUNCTIONALITY TESTS
  9 | // =============================================================================
 10 | 
 11 | test.describe("Basic Functionality", () => {
 12 |   test("renders component", async ({ page, initTestBed }) => {
 13 |     await initTestBed(`
 14 |       <Tooltip delayDuration="${LOW_DELAY}" text="I'm a tooltip!">
 15 |         <Button label="Hover me!" testId="tooltip-button" />
 16 |       </Tooltip>
 17 |     `);
 18 |     const button = page.getByTestId("tooltip-button");
 19 |     await expect(button).toBeVisible();
 20 |     // Hover over the button to trigger tooltip
 21 |     await button.hover();
 22 |     // Wait for tooltip to appear with low delay
 23 |     await expect(page.locator("[data-tooltip-container]")).toBeVisible();
 24 |   });
 25 | 
 26 |   // Note: This test is mainly to verify that the tooltip has the correct role for accessibility but
 27 |   // is placed here since we use getByRole for the content.
 28 |   // Fetching by data attribute is for the dimension tests below.
 29 |   test("has correct 'role' attribute", async ({ page, initTestBed }) => {
 30 |     await initTestBed(`
 31 |       <Tooltip text="Tooltip" defaultOpen="true" delayDuration="${LOW_DELAY}">
 32 |         <Button label="Button with default open tooltip" />
 33 |       </Tooltip>
 34 |     `);
 35 |     const tooltip = page.getByRole("tooltip");
 36 |     await expect(tooltip).toBeVisible();
 37 |     await expect(tooltip).toContainText("Tooltip");
 38 |   });
 39 | 
 40 |   test("renders with tooltip property", async ({ page, initTestBed }) => {
 41 |     await initTestBed(`
 42 |       <Tooltip delayDuration="${LOW_DELAY}" text="I'm a tooltip!">
 43 |         <Button label="Hover me!" testId="tooltip-button" />
 44 |       </Tooltip>
 45 |     `);
 46 | 
 47 |     const button = page.getByTestId("tooltip-button");
 48 |     await expect(button).toBeVisible();
 49 | 
 50 |     // Hover over the button to trigger tooltip
 51 |     await button.hover();
 52 | 
 53 |     // Wait for tooltip to appear with low delay
 54 |     await expect(page.getByRole("tooltip")).toHaveText("I'm a tooltip!");
 55 | 
 56 |     // Note: We skip testing tooltip hiding as it's dependent on implementation details
 57 |     // and the main functionality test is that it appears correctly on hover
 58 |   });
 59 | 
 60 |   test("renders with markdown content", async ({ page, initTestBed }) => {
 61 |     await initTestBed(`
 62 |       <Tooltip delayDuration="${LOW_DELAY}" markdown="This *example* uses \`tooltipMarkdown\`">
 63 |         <Card title="Tooltip with markdown" testId="markdown-card" />
 64 |       </Tooltip>
 65 |     `);
 66 | 
 67 |     const card = page.getByTestId("markdown-card");
 68 |     await expect(card).toBeVisible();
 69 | 
 70 |     // Hover to show tooltip
 71 |     await card.hover();
 72 | 
 73 |     // Check that markdown is rendered (looking for emphasis and code elements)
 74 |     const tooltip = page.getByRole("tooltip");
 75 |     await expect(tooltip).toBeVisible();
 76 |     await expect(tooltip.locator("em")).toContainText("example");
 77 |     await expect(tooltip.locator("code")).toContainText("tooltipMarkdown");
 78 |   });
 79 | 
 80 |   test("renders with 'side' property set to right", async ({ page, initTestBed }) => {
 81 |     await initTestBed(`
 82 |       <CVStack height="200px" horizontalAlignment="center" verticalAlignment="center">
 83 |         <Tooltip delayDuration="${LOW_DELAY}" text="I'm positioned right" side="right">
 84 |           <Button label="Hover me!" testId="right-tooltip-button" />
 85 |         </Tooltip>
 86 |       </CVStack>
 87 |     `);
 88 | 
 89 |     const button = page.getByTestId("right-tooltip-button");
 90 |     await button.hover();
 91 | 
 92 |     const tooltip = page.getByText("I'm positioned right");
 93 |     await expect(tooltip).toBeVisible();
 94 | 
 95 |     // Verify tooltip is positioned to the right of the button
 96 |     const buttonBox = await getBounds(button);
 97 |     const tooltipBox = await getBounds(tooltip);
 98 | 
 99 |     expect(tooltipBox.left).toBeGreaterThan(buttonBox.right);
100 |   });
101 | 
102 |   test("renders with 'side' property set to left", async ({ page, initTestBed }) => {
103 |     await initTestBed(`
104 |       <CVStack height="200px" horizontalAlignment="center" verticalAlignment="center">
105 |         <Tooltip delayDuration="${LOW_DELAY}" text="I'm positioned left" side="left">
106 |           <Button label="Hover me!" testId="left-tooltip-button" />
107 |         </Tooltip>
108 |       </CVStack>
109 |     `);
110 | 
111 |     const button = page.getByTestId("left-tooltip-button");
112 |     await button.hover();
113 | 
114 |     const tooltip = page.getByText("I'm positioned left");
115 |     await expect(tooltip).toBeVisible();
116 | 
117 |     // Verify tooltip is positioned to the right of the button
118 |     const buttonBox = await getBounds(button);
119 |     const tooltipBox = await getBounds(tooltip);
120 | 
121 |     expect(tooltipBox.right).toBeLessThan(buttonBox.left);
122 |   });
123 | 
124 |   test("renders with 'side' property set to top", async ({ page, initTestBed }) => {
125 |     await initTestBed(`
126 |       <CVStack height="200px" horizontalAlignment="center" verticalAlignment="center">
127 |         <Tooltip delayDuration="${LOW_DELAY}" text="I'm positioned top" side="top">
128 |           <Button label="Hover me!" testId="top-tooltip-button" />
129 |         </Tooltip>
130 |       </CVStack>
131 |     `);
132 | 
133 |     const button = page.getByTestId("top-tooltip-button");
134 |     await button.hover();
135 | 
136 |     const tooltip = page.getByText("I'm positioned top");
137 |     await expect(tooltip).toBeVisible();
138 | 
139 |     // Verify tooltip is positioned above the button
140 |     const buttonBox = await getBounds(button);
141 |     const tooltipBox = await getBounds(tooltip);
142 | 
143 |     expect(tooltipBox.bottom).toBeLessThan(buttonBox.top);
144 |   });
145 | 
146 |   test("renders with 'side' property set to bottom", async ({ page, initTestBed }) => {
147 |     await initTestBed(`
148 |       <CVStack height="200px" horizontalAlignment="center" verticalAlignment="center">
149 |         <Tooltip delayDuration="${LOW_DELAY}" text="I'm positioned bottom" side="bottom">
150 |           <Button label="Hover me!" testId="bottom-tooltip-button" />
151 |         </Tooltip>
152 |       </CVStack>
153 |     `);
154 | 
155 |     const button = page.getByTestId("bottom-tooltip-button");
156 |     await button.hover();
157 | 
158 |     const tooltip = page.getByText("I'm positioned bottom");
159 |     await expect(tooltip).toBeVisible();
160 | 
161 |     // Verify tooltip is positioned below the button
162 |     const buttonBox = await getBounds(button);
163 |     const tooltipBox = await getBounds(tooltip);
164 | 
165 |     expect(tooltipBox.top).toBeGreaterThan(buttonBox.bottom);
166 |   });
167 | 
168 |   test(`renders with 'sideOffset' property when side is top`, async ({ page, initTestBed }) => {
169 |     await initTestBed(`
170 |       <CVStack height="200px" horizontalAlignment="center" verticalAlignment="center">
171 |         <Tooltip side="top" text="Tooltip" sideOffset="28" delayDuration="${LOW_DELAY}">
172 |           <Icon name="email" testId="tooltip-icon" />
173 |         </Tooltip>
174 |       </CVStack>
175 |     `);
176 |     const icon = page.getByTestId("tooltip-icon");
177 |     await icon.hover();
178 | 
179 |     const tooltip = page.locator("[data-tooltip-container]");
180 | 
181 |     // Verify tooltip is positioned above the icon with the correct offset
182 |     const iconBox = await getBounds(icon);
183 |     const tooltipBox = await getBounds(tooltip);
184 | 
185 |     expect(iconBox.top - tooltipBox.bottom).toEqualWithTolerance(28, 4);
186 |   });
187 | 
188 |   test(`renders with 'sideOffset' property when side is bottom`, async ({ page, initTestBed }) => {
189 |     await initTestBed(`
190 |       <Stack height="200px" horizontalAlignment="center" verticalAlignment="center">
191 |         <Tooltip side="bottom" text="Tooltip" sideOffset="28" delayDuration="${LOW_DELAY}">
192 |           <Icon name="email" testId="tooltip-icon" />
193 |         </Tooltip>
194 |       </Stack>
195 |     `);
196 |     const icon = page.getByTestId("tooltip-icon");
197 |     await icon.hover();
198 | 
199 |     const tooltip = page.locator("[data-tooltip-container]");
200 | 
201 |     // Verify tooltip is positioned below the icon with the correct offset
202 |     const iconBox = await getBounds(icon);
203 |     const tooltipBox = await getBounds(tooltip);
204 | 
205 |     expect(tooltipBox.top - iconBox.bottom).toBeGreaterThanOrEqual(28);
206 |   });
207 | 
208 |   test(`renders with 'sideOffset' property when side is left`, async ({ page, initTestBed }) => {
209 |     await initTestBed(`
210 |       <Stack height="200px" horizontalAlignment="center" verticalAlignment="center">
211 |         <Tooltip side="left" text="Tooltip" sideOffset="28" delayDuration="${LOW_DELAY}">
212 |           <Icon name="email" testId="tooltip-icon-left" />
213 |         </Tooltip>
214 |       </Stack>
215 |     `);
216 |     const icon = page.getByTestId("tooltip-icon-left");
217 |     await icon.hover();
218 | 
219 |     const tooltip = page.getByRole("tooltip");
220 | 
221 |     // Verify tooltip is positioned to the left of the icon with the correct offset
222 |     const iconBox = await getBounds(icon);
223 |     const tooltipBox = await getBounds(tooltip);
224 | 
225 |     expect(iconBox.left - tooltipBox.right).toBeGreaterThanOrEqual(28);
226 |   });
227 | 
228 |   test(`renders with 'sideOffset' property when side is right`, async ({ page, initTestBed }) => {
229 |     await initTestBed(`
230 |       <Stack height="200px" horizontalAlignment="center" verticalAlignment="center">
231 |         <Tooltip side="right" text="Tooltip" sideOffset="28" delayDuration="${LOW_DELAY}">
232 |           <Icon name="email" testId="tooltip-icon-right" />
233 |         </Tooltip>
234 |       </Stack>
235 |     `);
236 |     const icon = page.getByTestId("tooltip-icon-right");
237 |     await icon.hover();
238 | 
239 |     const tooltip = page.getByRole("tooltip");
240 | 
241 |     // Verify tooltip is positioned to the right of the icon with the correct offset
242 |     const iconBox = await getBounds(icon);
243 |     const tooltipBox = await getBounds(tooltip);
244 | 
245 |     expect(tooltipBox.left - iconBox.right).toBeGreaterThanOrEqual(28);
246 |   });
247 | 
248 |   test("Tooltip is shown for all wrapped children", async ({ page, initTestBed }) => {
249 |     await initTestBed(`
250 |       <Tooltip side="bottom" markdown="This *example* uses a \`Tooltip\` component" delayDuration="${LOW_DELAY}">
251 |         <VStack horizontalAlignment="center">
252 |           <Card title="Card 1: within a Tooltip" testId="tooltip-card-1" />
253 |           <Card title="Card 2: within the same Tooltip" testId="tooltip-card-2" />
254 |         </VStack>
255 |       </Tooltip>
256 |     `);
257 | 
258 |     const card1 = page.getByTestId("tooltip-card-1");
259 |     const card2 = page.getByTestId("tooltip-card-2");
260 | 
261 |     await expect(card1).toBeVisible();
262 |     await expect(card2).toBeVisible();
263 | 
264 |     // Hover over first card
265 |     await card1.hover();
266 | 
267 |     const tooltip = page.getByRole("tooltip");
268 |     await expect(tooltip.locator("em")).toContainText("example");
269 |     await expect(tooltip.locator("code")).toContainText("Tooltip");
270 | 
271 |     // Move to second card - tooltip should still be visible
272 |     await card2.hover();
273 |     await expect(tooltip).toBeVisible();
274 |   });
275 | 
276 |   test("renders with 'tooltipTemplate' property", async ({ page, initTestBed }) => {
277 |     await initTestBed(`
278 |       <VStack height="100px" horizontalAlignment="center">
279 |         <Tooltip side="bottom" delayDuration="${LOW_DELAY}">
280 |           <property name="tooltipTemplate">
281 |             <HStack>
282 |               <Stack width="24px" height="24px" backgroundColor="purple" testId="purple-square" />
283 |               <H2>This is a tooltip</H2>
284 |             </HStack>
285 |           </property>
286 |           <Card title="I have a templated Tooltip!" testId="template-card" />
287 |         </Tooltip>
288 |       </VStack>
289 |     `);
290 | 
291 |     const card = page.getByTestId("template-card");
292 |     await card.hover();
293 | 
294 |     // Check that custom template elements are present
295 |     const tooltip = page.locator('[role="tooltip"]');
296 |     await expect(tooltip).toBeVisible();
297 |     await expect(tooltip.getByTestId("purple-square")).toBeVisible();
298 |     await expect(tooltip.getByRole("heading", { level: 2 })).toContainText("This is a tooltip");
299 |   });
300 | 
301 |   test("renders with start 'align' property value", async ({ page, initTestBed }) => {
302 |     await initTestBed(`
303 |       <HStack horizontalAlignment="center">
304 |         <Tooltip delayDuration="${LOW_DELAY}" text="Start aligned" side="bottom" align="start">
305 |           <Button label="Start aligned Start aligned" testId="start-button" />
306 |         </Tooltip>
307 |       </HStack>
308 |     `);
309 |     const startButton = page.getByTestId("start-button");
310 |     await startButton.hover();
311 | 
312 |     const tooltipBox = await getBounds(page.locator("div[data-tooltip-container]"));
313 |     const buttonBox = await getBounds(startButton);
314 | 
315 |     expect(tooltipBox.left + tooltipBox.width / 2).toBeLessThan(
316 |       buttonBox.left + buttonBox.width / 2,
317 |     );
318 |   });
319 | 
320 |   test("renders with center 'align' property value", async ({ page, initTestBed }) => {
321 |     await initTestBed(`
322 |       <HStack horizontalAlignment="center">
323 |         <Tooltip delayDuration="${LOW_DELAY}" text="Center aligned" side="bottom" align="center">
324 |           <Button label="Center aligned Center aligned" testId="center-button" />
325 |         </Tooltip>
326 |       </HStack>
327 |     `);
328 |     const centerButton = page.getByTestId("center-button");
329 |     await centerButton.hover();
330 | 
331 |     const tooltipBox = await getBounds(page.locator("div[data-tooltip-container]"));
332 |     const buttonBox = await getBounds(centerButton);
333 | 
334 |     expect(tooltipBox.left + tooltipBox.width / 2).toEqualWithTolerance(
335 |       buttonBox.left + buttonBox.width / 2,
336 |       10,
337 |     );
338 |   });
339 | 
340 |   test("renders with end 'align' property value", async ({ page, initTestBed }) => {
341 |     await initTestBed(`
342 |       <HStack horizontalAlignment="center">
343 |         <Tooltip delayDuration="${LOW_DELAY}" text="End aligned" side="bottom" align="end">
344 |           <Button label="End aligned End aligned" testId="end-button" />
345 |         </Tooltip>
346 |       </HStack>
347 |     `);
348 |     const endButton = page.getByTestId("end-button");
349 |     await endButton.hover();
350 | 
351 |     const tooltipBox = await getBounds(page.locator("div[data-tooltip-container]"));
352 |     const buttonBox = await getBounds(endButton);
353 | 
354 |     expect(tooltipBox.left + tooltipBox.width / 2).toBeGreaterThan(
355 |       buttonBox.left + buttonBox.width / 2,
356 |     );
357 |   });
358 | 
359 |   test("renders with 'defaultOpen' property", async ({ page, initTestBed }) => {
360 |     await initTestBed(`
361 |       <Tooltip text="Always visible tooltip" defaultOpen="true" delayDuration="${LOW_DELAY}">
362 |         <Button label="Button with default open tooltip" testId="default-open-button" />
363 |       </Tooltip>
364 |     `);
365 |     await expect(page.locator("div[data-tooltip-container]")).toBeVisible();
366 |     await expect(page.getByTestId("default-open-button")).toBeVisible();
367 |   });
368 | });
369 | 
370 | // =============================================================================
371 | // ACCESSIBILITY TESTS
372 | // =============================================================================
373 | 
374 | test.describe("Accessibility", () => {
375 |   test("tooltip content is accessible via screen reader", async ({ page, initTestBed }) => {
376 |     await initTestBed(`
377 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
378 |         <Button label="Button with default open tooltip" />
379 |       </Tooltip>
380 |     `);
381 |     // Check that tooltip has proper accessibility attributes
382 |     const tooltip = page.getByRole("tooltip");
383 |     await expect(tooltip).toBeVisible();
384 | 
385 |     // Verify tooltip content is properly exposed
386 |     await expect(tooltip).toHaveText("This tooltip is accessible");
387 |   });
388 | });
389 | 
390 | // =============================================================================
391 | // THEME VARIABLE TESTS
392 | // =============================================================================
393 | 
394 | test.describe("Theme Variables", () => {
395 |   test("applies 'backgroundColor-Tooltip' theme variable", async ({ page, initTestBed }) => {
396 |     await initTestBed(
397 |       `
398 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
399 |         <Button label="Button with default open tooltip" />
400 |       </Tooltip>
401 |     `,
402 |       {
403 |         testThemeVars: { "backgroundColor-Tooltip": "rgb(255, 0, 0)" },
404 |       },
405 |     );
406 |     await expect(page.locator("div[data-tooltip-container]")).toHaveCSS(
407 |       "background-color",
408 |       "rgb(255, 0, 0)",
409 |     );
410 |   });
411 | 
412 |   test("applies 'textColor-Tooltip' theme variable", async ({ page, initTestBed }) => {
413 |     await initTestBed(
414 |       `
415 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
416 |         <Button label="Button with default open tooltip" />
417 |       </Tooltip>
418 |     `,
419 |       {
420 |         testThemeVars: { "textColor-Tooltip": "rgb(0, 255, 0)" },
421 |       },
422 |     );
423 |     await expect(page.locator("div[data-tooltip-container]")).toHaveCSS("color", "rgb(0, 255, 0)");
424 |   });
425 | 
426 |   test("applies 'borderRadius-Tooltip' theme variable", async ({ page, initTestBed }) => {
427 |     await initTestBed(
428 |       `
429 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
430 |         <Button label="Button with default open tooltip" />
431 |       </Tooltip>
432 |     `,
433 |       {
434 |         testThemeVars: { "borderRadius-Tooltip": "12px" },
435 |       },
436 |     );
437 |     await expect(page.locator("div[data-tooltip-container]")).toHaveCSS("border-radius", "12px");
438 |   });
439 | 
440 |   test("applies 'fontSize-Tooltip' theme variable", async ({ page, initTestBed }) => {
441 |     await initTestBed(
442 |       `
443 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
444 |         <Button label="Button with default open tooltip" />
445 |       </Tooltip>
446 |     `,
447 |       {
448 |         testThemeVars: { "fontSize-Tooltip": "20px" },
449 |       },
450 |     );
451 |     const tooltip = page.getByRole("tooltip");
452 |     await expect(tooltip).toBeVisible();
453 |     await expect(tooltip).toHaveCSS("font-size", "20px");
454 |   });
455 | 
456 |   test("applies 'paddingLeft-Tooltip' and 'paddingRight-Tooltip' theme variables", async ({
457 |     page,
458 |     initTestBed,
459 |   }) => {
460 |     await initTestBed(
461 |       `
462 |       <Tooltip text="This tooltip is accessible" defaultOpen="true" delayDuration="${LOW_DELAY}">
463 |         <Button label="Button with default open tooltip" />
464 |       </Tooltip>
465 |     `,
466 |       {
467 |         testThemeVars: {
468 |           "paddingLeft-Tooltip": "20px",
469 |           "paddingRight-Tooltip": "25px",
470 |         },
471 |       },
472 |     );
473 |     await expect(page.locator("div[data-tooltip-container]")).toHaveCSS("padding-left", "20px");
474 |     await expect(page.locator("div[data-tooltip-container]")).toHaveCSS("padding-right", "25px");
475 |   });
476 | });
477 | 
478 | // =============================================================================
479 | // OTHER EDGE CASE TESTS
480 | // =============================================================================
481 | 
482 | test.describe("Other Edge Cases", () => {
483 |   test("handles empty tooltip text", async ({ page, initTestBed }) => {
484 |     await initTestBed(`
485 |       <Tooltip text="" defaultOpen="true" delayDuration="${LOW_DELAY}">
486 |         <Button label="Button with empty tooltip" />
487 |       </Tooltip>
488 |     `);
489 | 
490 |     // There should be no visible tooltip with meaningful content
491 |     const tooltips = page.getByRole("tooltip");
492 |     const count = await tooltips.count();
493 |     if (count > 0) {
494 |       // If tooltip exists, it should be empty or not visible
495 |       const tooltip = tooltips.first();
496 |       const text = await tooltip.textContent();
497 |       expect(text?.trim()).toBe("");
498 |     }
499 |   });
500 | 
501 |   test("handles tooltip without any content properties", async ({ page, initTestBed }) => {
502 |     await initTestBed(`
503 |       <Tooltip>
504 |         <Button label="Button in tooltip without content" testId="no-content-button" />
505 |       </Tooltip>
506 |     `);
507 | 
508 |     const button = page.getByTestId("no-content-button");
509 |     await expect(button).toBeVisible();
510 | 
511 |     // Hover should not show tooltip since there's no content
512 |     await button.hover();
513 | 
514 |     // Should not find any tooltip with content
515 |     const tooltips = page.getByRole("tooltip");
516 |     const count = await tooltips.count();
517 |     expect(count).toBe(0);
518 |   });
519 | });
520 | 
```
Page 85/186FirstPrevNextLast