#
tokens: 41688/50000 1/1629 files (page 126/140)
lines: off (toggle) GitHub
raw markdown copy
This is page 126 of 140. Use http://codebase.md/xmlui-org/xmlui/mockApiDef.js?page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   └── cool-queens-look.md
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   └── lorem-ipsum.png
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   └── welcome-to-the-xmlui-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── netlify.toml
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── 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
│   │   │   ├── Debug.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   ├── Main.xmlui.xs
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── HelloMd.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── 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
│   │   │   │   ├── 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
│   ├── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   ├── tsconfig.json
│   │   └── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── hooks
│   │   │   │   ├── usePlayground.ts
│   │   │   │   └── useToast.ts
│   │   │   ├── index.tsx
│   │   │   ├── playground
│   │   │   │   ├── Box.module.scss
│   │   │   │   ├── Box.tsx
│   │   │   │   ├── CodeSelector.tsx
│   │   │   │   ├── ConfirmationDialog.module.scss
│   │   │   │   ├── ConfirmationDialog.tsx
│   │   │   │   ├── Editor.tsx
│   │   │   │   ├── Header.module.scss
│   │   │   │   ├── Header.tsx
│   │   │   │   ├── Playground.tsx
│   │   │   │   ├── PlaygroundContent.module.scss
│   │   │   │   ├── PlaygroundContent.tsx
│   │   │   │   ├── PlaygroundNative.module.scss
│   │   │   │   ├── PlaygroundNative.tsx
│   │   │   │   ├── Preview.module.scss
│   │   │   │   ├── Preview.tsx
│   │   │   │   ├── Select.module.scss
│   │   │   │   ├── StandalonePlayground.tsx
│   │   │   │   ├── StandalonePlaygroundNative.module.scss
│   │   │   │   ├── StandalonePlaygroundNative.tsx
│   │   │   │   ├── ThemeSwitcher.module.scss
│   │   │   │   ├── ThemeSwitcher.tsx
│   │   │   │   ├── ToneSwitcher.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── providers
│   │   │   │   ├── Toast.module.scss
│   │   │   │   └── ToastProvider.tsx
│   │   │   ├── state
│   │   │   │   └── store.ts
│   │   │   ├── themes
│   │   │   │   └── theme.ts
│   │   │   └── utils
│   │   │       └── helpers.ts
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── Spreadsheet.tsx
│   │   │   └── SpreadsheetNative.tsx
│   │   └── tsconfig.json
│   └── 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.tsx
│       │   │   └── HeroSectionNative.tsx
│       │   ├── index.tsx
│       │   ├── ScrollToTop
│       │   │   ├── ScrollToTop.module.scss
│       │   │   ├── ScrollToTop.tsx
│       │   │   └── ScrollToTopNative.tsx
│       │   └── vite-env.d.ts
│       └── tsconfig.json
├── 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.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
    │   ├── containers.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
    │   ├── state-management.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── playwright.config.ts
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── get-langserver-metadata.mjs
    │   ├── inline-links.mjs
    │   └── README-e2e-summary.md
    ├── src
    │   ├── abstractions
    │   │   ├── _conventions.md
    │   │   ├── ActionDefs.ts
    │   │   ├── AppContextDefs.ts
    │   │   ├── ComponentDefs.ts
    │   │   ├── ContainerDefs.ts
    │   │   ├── ExtensionDefs.ts
    │   │   ├── FunctionDefs.ts
    │   │   ├── RendererDefs.ts
    │   │   ├── scripting
    │   │   │   ├── BlockScope.ts
    │   │   │   ├── Compilation.ts
    │   │   │   ├── LogicalThread.ts
    │   │   │   ├── LoopScope.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── ScriptParserError.ts
    │   │   │   ├── Token.ts
    │   │   │   ├── TryScope.ts
    │   │   │   └── TryScopeExp.ts
    │   │   └── ThemingDefs.ts
    │   ├── components
    │   │   ├── _conventions.md
    │   │   ├── abstractions.ts
    │   │   ├── Accordion
    │   │   │   ├── Accordion.md
    │   │   │   ├── Accordion.module.scss
    │   │   │   ├── Accordion.spec.ts
    │   │   │   ├── Accordion.tsx
    │   │   │   ├── AccordionContext.tsx
    │   │   │   ├── AccordionItem.tsx
    │   │   │   ├── AccordionItemNative.tsx
    │   │   │   └── AccordionNative.tsx
    │   │   ├── Animation
    │   │   │   └── AnimationNative.tsx
    │   │   ├── APICall
    │   │   │   ├── APICall.md
    │   │   │   ├── APICall.spec.ts
    │   │   │   ├── APICall.tsx
    │   │   │   └── APICallNative.tsx
    │   │   ├── App
    │   │   │   ├── App.md
    │   │   │   ├── App.module.scss
    │   │   │   ├── App.spec.ts
    │   │   │   ├── App.tsx
    │   │   │   ├── AppLayoutContext.ts
    │   │   │   ├── AppNative.tsx
    │   │   │   ├── AppStateContext.ts
    │   │   │   ├── doc-resources
    │   │   │   │   ├── condensed-sticky.xmlui
    │   │   │   │   ├── condensed.xmlui
    │   │   │   │   ├── horizontal-sticky.xmlui
    │   │   │   │   ├── horizontal.xmlui
    │   │   │   │   ├── vertical-full-header.xmlui
    │   │   │   │   ├── vertical-sticky.xmlui
    │   │   │   │   └── vertical.xmlui
    │   │   │   ├── IndexerContext.ts
    │   │   │   ├── LinkInfoContext.ts
    │   │   │   ├── SearchContext.tsx
    │   │   │   ├── Sheet.module.scss
    │   │   │   └── Sheet.tsx
    │   │   ├── AppHeader
    │   │   │   ├── AppHeader.md
    │   │   │   ├── AppHeader.module.scss
    │   │   │   ├── AppHeader.spec.ts
    │   │   │   ├── AppHeader.tsx
    │   │   │   └── AppHeaderNative.tsx
    │   │   ├── AppState
    │   │   │   ├── AppState.md
    │   │   │   ├── AppState.spec.ts
    │   │   │   ├── AppState.tsx
    │   │   │   └── AppStateNative.tsx
    │   │   ├── AutoComplete
    │   │   │   ├── AutoComplete.md
    │   │   │   ├── AutoComplete.module.scss
    │   │   │   ├── AutoComplete.spec.ts
    │   │   │   ├── AutoComplete.tsx
    │   │   │   ├── AutoCompleteContext.tsx
    │   │   │   └── AutoCompleteNative.tsx
    │   │   ├── Avatar
    │   │   │   ├── Avatar.md
    │   │   │   ├── Avatar.module.scss
    │   │   │   ├── Avatar.spec.ts
    │   │   │   ├── Avatar.tsx
    │   │   │   └── AvatarNative.tsx
    │   │   ├── Backdrop
    │   │   │   ├── Backdrop.md
    │   │   │   ├── Backdrop.module.scss
    │   │   │   ├── Backdrop.spec.ts
    │   │   │   ├── Backdrop.tsx
    │   │   │   └── BackdropNative.tsx
    │   │   ├── Badge
    │   │   │   ├── Badge.md
    │   │   │   ├── Badge.module.scss
    │   │   │   ├── Badge.spec.ts
    │   │   │   ├── Badge.tsx
    │   │   │   └── BadgeNative.tsx
    │   │   ├── Bookmark
    │   │   │   ├── Bookmark.md
    │   │   │   ├── Bookmark.module.scss
    │   │   │   ├── Bookmark.spec.ts
    │   │   │   ├── Bookmark.tsx
    │   │   │   └── BookmarkNative.tsx
    │   │   ├── Breakout
    │   │   │   ├── Breakout.module.scss
    │   │   │   ├── Breakout.spec.ts
    │   │   │   ├── Breakout.tsx
    │   │   │   └── BreakoutNative.tsx
    │   │   ├── Button
    │   │   │   ├── Button-style.spec.ts
    │   │   │   ├── Button.md
    │   │   │   ├── Button.module.scss
    │   │   │   ├── Button.spec.ts
    │   │   │   ├── Button.tsx
    │   │   │   └── ButtonNative.tsx
    │   │   ├── Card
    │   │   │   ├── Card.md
    │   │   │   ├── Card.module.scss
    │   │   │   ├── Card.spec.ts
    │   │   │   ├── Card.tsx
    │   │   │   └── CardNative.tsx
    │   │   ├── Carousel
    │   │   │   ├── Carousel.md
    │   │   │   ├── Carousel.module.scss
    │   │   │   ├── Carousel.spec.ts
    │   │   │   ├── Carousel.tsx
    │   │   │   ├── CarouselContext.tsx
    │   │   │   ├── CarouselItem.tsx
    │   │   │   ├── CarouselItemNative.tsx
    │   │   │   └── CarouselNative.tsx
    │   │   ├── ChangeListener
    │   │   │   ├── ChangeListener.md
    │   │   │   ├── ChangeListener.spec.ts
    │   │   │   ├── ChangeListener.tsx
    │   │   │   └── ChangeListenerNative.tsx
    │   │   ├── chart-color-schemes.ts
    │   │   ├── Charts
    │   │   │   ├── AreaChart
    │   │   │   │   ├── AreaChart.md
    │   │   │   │   ├── AreaChart.spec.ts
    │   │   │   │   ├── AreaChart.tsx
    │   │   │   │   └── AreaChartNative.tsx
    │   │   │   ├── BarChart
    │   │   │   │   ├── BarChart.md
    │   │   │   │   ├── BarChart.module.scss
    │   │   │   │   ├── BarChart.spec.ts
    │   │   │   │   ├── BarChart.tsx
    │   │   │   │   └── BarChartNative.tsx
    │   │   │   ├── DonutChart
    │   │   │   │   ├── DonutChart.spec.ts
    │   │   │   │   └── DonutChart.tsx
    │   │   │   ├── LabelList
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   ├── LabelListNative.module.scss
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── DataSource
    │   │   │   ├── DataSource.md
    │   │   │   └── DataSource.tsx
    │   │   ├── DateInput
    │   │   │   ├── DateInput.md
    │   │   │   ├── DateInput.module.scss
    │   │   │   ├── DateInput.spec.ts
    │   │   │   ├── DateInput.tsx
    │   │   │   └── DateInputNative.tsx
    │   │   ├── DatePicker
    │   │   │   ├── DatePicker.md
    │   │   │   ├── DatePicker.module.scss
    │   │   │   ├── DatePicker.spec.ts
    │   │   │   ├── DatePicker.tsx
    │   │   │   └── DatePickerNative.tsx
    │   │   ├── DropdownMenu
    │   │   │   ├── DropdownMenu.md
    │   │   │   ├── DropdownMenu.module.scss
    │   │   │   ├── DropdownMenu.spec.ts
    │   │   │   ├── DropdownMenu.tsx
    │   │   │   ├── DropdownMenuNative.tsx
    │   │   │   ├── MenuItem.md
    │   │   │   └── SubMenuItem.md
    │   │   ├── EmojiSelector
    │   │   │   ├── EmojiSelector.md
    │   │   │   ├── EmojiSelector.spec.ts
    │   │   │   ├── EmojiSelector.tsx
    │   │   │   └── EmojiSelectorNative.tsx
    │   │   ├── ExpandableItem
    │   │   │   ├── ExpandableItem.module.scss
    │   │   │   ├── ExpandableItem.spec.ts
    │   │   │   ├── ExpandableItem.tsx
    │   │   │   └── ExpandableItemNative.tsx
    │   │   ├── FileInput
    │   │   │   ├── FileInput.md
    │   │   │   ├── FileInput.module.scss
    │   │   │   ├── FileInput.spec.ts
    │   │   │   ├── FileInput.tsx
    │   │   │   └── FileInputNative.tsx
    │   │   ├── FileUploadDropZone
    │   │   │   ├── FileUploadDropZone.md
    │   │   │   ├── FileUploadDropZone.module.scss
    │   │   │   ├── FileUploadDropZone.spec.ts
    │   │   │   ├── FileUploadDropZone.tsx
    │   │   │   └── FileUploadDropZoneNative.tsx
    │   │   ├── FlowLayout
    │   │   │   ├── FlowLayout.md
    │   │   │   ├── FlowLayout.module.scss
    │   │   │   ├── FlowLayout.spec.ts
    │   │   │   ├── FlowLayout.spec.ts-snapshots
    │   │   │   │   └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
    │   │   │   ├── FlowLayout.tsx
    │   │   │   └── FlowLayoutNative.tsx
    │   │   ├── Footer
    │   │   │   ├── Footer.md
    │   │   │   ├── Footer.module.scss
    │   │   │   ├── Footer.spec.ts
    │   │   │   ├── Footer.tsx
    │   │   │   └── FooterNative.tsx
    │   │   ├── Form
    │   │   │   ├── Form.md
    │   │   │   ├── Form.module.scss
    │   │   │   ├── Form.spec.ts
    │   │   │   ├── Form.tsx
    │   │   │   ├── formActions.ts
    │   │   │   ├── FormContext.ts
    │   │   │   └── FormNative.tsx
    │   │   ├── FormItem
    │   │   │   ├── FormItem.md
    │   │   │   ├── FormItem.module.scss
    │   │   │   ├── FormItem.spec.ts
    │   │   │   ├── FormItem.tsx
    │   │   │   ├── FormItemNative.tsx
    │   │   │   ├── HelperText.module.scss
    │   │   │   ├── HelperText.tsx
    │   │   │   ├── ItemWithLabel.tsx
    │   │   │   └── Validations.ts
    │   │   ├── FormSection
    │   │   │   ├── FormSection.md
    │   │   │   ├── FormSection.ts
    │   │   │   └── FormSection.xmlui
    │   │   ├── Fragment
    │   │   │   ├── Fragment.spec.ts
    │   │   │   └── Fragment.tsx
    │   │   ├── Heading
    │   │   │   ├── abstractions.ts
    │   │   │   ├── H1.md
    │   │   │   ├── H1.spec.ts
    │   │   │   ├── H2.md
    │   │   │   ├── H2.spec.ts
    │   │   │   ├── H3.md
    │   │   │   ├── H3.spec.ts
    │   │   │   ├── H4.md
    │   │   │   ├── H4.spec.ts
    │   │   │   ├── H5.md
    │   │   │   ├── H5.spec.ts
    │   │   │   ├── H6.md
    │   │   │   ├── H6.spec.ts
    │   │   │   ├── Heading.md
    │   │   │   ├── Heading.module.scss
    │   │   │   ├── Heading.spec.ts
    │   │   │   ├── Heading.tsx
    │   │   │   └── HeadingNative.tsx
    │   │   ├── HoverCard
    │   │   │   ├── HoverCard.tsx
    │   │   │   └── HovercardNative.tsx
    │   │   ├── HtmlTags
    │   │   │   ├── HtmlTags.module.scss
    │   │   │   ├── HtmlTags.spec.ts
    │   │   │   └── HtmlTags.tsx
    │   │   ├── Icon
    │   │   │   ├── AdmonitionDanger.tsx
    │   │   │   ├── AdmonitionInfo.tsx
    │   │   │   ├── AdmonitionNote.tsx
    │   │   │   ├── AdmonitionTip.tsx
    │   │   │   ├── AdmonitionWarning.tsx
    │   │   │   ├── ApiIcon.tsx
    │   │   │   ├── ArrowDropDown.module.scss
    │   │   │   ├── ArrowDropDown.tsx
    │   │   │   ├── ArrowDropUp.module.scss
    │   │   │   ├── ArrowDropUp.tsx
    │   │   │   ├── ArrowLeft.module.scss
    │   │   │   ├── ArrowLeft.tsx
    │   │   │   ├── ArrowRight.module.scss
    │   │   │   ├── ArrowRight.tsx
    │   │   │   ├── Attach.tsx
    │   │   │   ├── Binding.module.scss
    │   │   │   ├── Binding.tsx
    │   │   │   ├── BoardIcon.tsx
    │   │   │   ├── BoxIcon.tsx
    │   │   │   ├── CheckIcon.tsx
    │   │   │   ├── ChevronDownIcon.tsx
    │   │   │   ├── ChevronLeft.tsx
    │   │   │   ├── ChevronRight.tsx
    │   │   │   ├── ChevronUpIcon.tsx
    │   │   │   ├── CodeFileIcon.tsx
    │   │   │   ├── CodeSandbox.tsx
    │   │   │   ├── CompactListIcon.tsx
    │   │   │   ├── ContentCopyIcon.tsx
    │   │   │   ├── DarkToLightIcon.tsx
    │   │   │   ├── DatabaseIcon.module.scss
    │   │   │   ├── DatabaseIcon.tsx
    │   │   │   ├── DocFileIcon.tsx
    │   │   │   ├── DocIcon.tsx
    │   │   │   ├── DotMenuHorizontalIcon.tsx
    │   │   │   ├── DotMenuIcon.tsx
    │   │   │   ├── EmailIcon.tsx
    │   │   │   ├── EmptyFolderIcon.tsx
    │   │   │   ├── ErrorIcon.tsx
    │   │   │   ├── ExpressionIcon.tsx
    │   │   │   ├── FillPlusCricleIcon.tsx
    │   │   │   ├── FilterIcon.tsx
    │   │   │   ├── FolderIcon.tsx
    │   │   │   ├── GlobeIcon.tsx
    │   │   │   ├── HomeIcon.tsx
    │   │   │   ├── HyperLinkIcon.tsx
    │   │   │   ├── Icon.md
    │   │   │   ├── Icon.module.scss
    │   │   │   ├── Icon.spec.ts
    │   │   │   ├── Icon.tsx
    │   │   │   ├── IconNative.tsx
    │   │   │   ├── ImageFileIcon.tsx
    │   │   │   ├── Inspect.tsx
    │   │   │   ├── LightToDark.tsx
    │   │   │   ├── LinkIcon.tsx
    │   │   │   ├── ListIcon.tsx
    │   │   │   ├── LooseListIcon.tsx
    │   │   │   ├── MoonIcon.tsx
    │   │   │   ├── MoreOptionsIcon.tsx
    │   │   │   ├── NoSortIcon.tsx
    │   │   │   ├── PDFIcon.tsx
    │   │   │   ├── PenIcon.tsx
    │   │   │   ├── PhoneIcon.tsx
    │   │   │   ├── PhotoIcon.tsx
    │   │   │   ├── PlusIcon.tsx
    │   │   │   ├── SearchIcon.tsx
    │   │   │   ├── ShareIcon.tsx
    │   │   │   ├── SortAscendingIcon.tsx
    │   │   │   ├── SortDescendingIcon.tsx
    │   │   │   ├── StarsIcon.tsx
    │   │   │   ├── SunIcon.tsx
    │   │   │   ├── svg
    │   │   │   │   ├── admonition_danger.svg
    │   │   │   │   ├── admonition_info.svg
    │   │   │   │   ├── admonition_note.svg
    │   │   │   │   ├── admonition_tip.svg
    │   │   │   │   ├── admonition_warning.svg
    │   │   │   │   ├── api.svg
    │   │   │   │   ├── arrow-dropdown.svg
    │   │   │   │   ├── arrow-left.svg
    │   │   │   │   ├── arrow-right.svg
    │   │   │   │   ├── arrow-up.svg
    │   │   │   │   ├── attach.svg
    │   │   │   │   ├── binding.svg
    │   │   │   │   ├── box.svg
    │   │   │   │   ├── bulb.svg
    │   │   │   │   ├── code-file.svg
    │   │   │   │   ├── code-sandbox.svg
    │   │   │   │   ├── dark_to_light.svg
    │   │   │   │   ├── database.svg
    │   │   │   │   ├── doc.svg
    │   │   │   │   ├── empty-folder.svg
    │   │   │   │   ├── expression.svg
    │   │   │   │   ├── eye-closed.svg
    │   │   │   │   ├── eye-dark.svg
    │   │   │   │   ├── eye.svg
    │   │   │   │   ├── file-text.svg
    │   │   │   │   ├── filter.svg
    │   │   │   │   ├── folder.svg
    │   │   │   │   ├── img.svg
    │   │   │   │   ├── inspect.svg
    │   │   │   │   ├── light_to_dark.svg
    │   │   │   │   ├── moon.svg
    │   │   │   │   ├── pdf.svg
    │   │   │   │   ├── photo.svg
    │   │   │   │   ├── share.svg
    │   │   │   │   ├── stars.svg
    │   │   │   │   ├── sun.svg
    │   │   │   │   ├── trending-down.svg
    │   │   │   │   ├── trending-level.svg
    │   │   │   │   ├── trending-up.svg
    │   │   │   │   ├── txt.svg
    │   │   │   │   ├── unknown-file.svg
    │   │   │   │   ├── unlink.svg
    │   │   │   │   └── xls.svg
    │   │   │   ├── TableDeleteColumnIcon.tsx
    │   │   │   ├── TableDeleteRowIcon.tsx
    │   │   │   ├── TableInsertColumnIcon.tsx
    │   │   │   ├── TableInsertRowIcon.tsx
    │   │   │   ├── TrashIcon.tsx
    │   │   │   ├── TrendingDownIcon.tsx
    │   │   │   ├── TrendingLevelIcon.tsx
    │   │   │   ├── TrendingUpIcon.tsx
    │   │   │   ├── TxtIcon.tsx
    │   │   │   ├── UnknownFileIcon.tsx
    │   │   │   ├── UnlinkIcon.tsx
    │   │   │   ├── UserIcon.tsx
    │   │   │   ├── WarningIcon.tsx
    │   │   │   └── XlsIcon.tsx
    │   │   ├── IconProvider.tsx
    │   │   ├── IconRegistryContext.tsx
    │   │   ├── IFrame
    │   │   │   ├── IFrame.md
    │   │   │   ├── IFrame.module.scss
    │   │   │   ├── IFrame.spec.ts
    │   │   │   ├── IFrame.tsx
    │   │   │   └── IFrameNative.tsx
    │   │   ├── Image
    │   │   │   ├── Image.md
    │   │   │   ├── Image.module.scss
    │   │   │   ├── Image.spec.ts
    │   │   │   ├── Image.tsx
    │   │   │   └── ImageNative.tsx
    │   │   ├── Input
    │   │   │   ├── index.ts
    │   │   │   ├── InputAdornment.module.scss
    │   │   │   ├── InputAdornment.tsx
    │   │   │   ├── InputDivider.module.scss
    │   │   │   ├── InputDivider.tsx
    │   │   │   ├── InputLabel.module.scss
    │   │   │   ├── InputLabel.tsx
    │   │   │   ├── PartialInput.module.scss
    │   │   │   └── PartialInput.tsx
    │   │   ├── InspectButton
    │   │   │   ├── InspectButton.module.scss
    │   │   │   └── InspectButton.tsx
    │   │   ├── Items
    │   │   │   ├── Items.md
    │   │   │   ├── Items.spec.ts
    │   │   │   ├── Items.tsx
    │   │   │   └── ItemsNative.tsx
    │   │   ├── Link
    │   │   │   ├── Link.md
    │   │   │   ├── Link.module.scss
    │   │   │   ├── Link.spec.ts
    │   │   │   ├── Link.tsx
    │   │   │   └── LinkNative.tsx
    │   │   ├── List
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── List.md
    │   │   │   ├── List.module.scss
    │   │   │   ├── List.spec.ts
    │   │   │   ├── List.tsx
    │   │   │   └── ListNative.tsx
    │   │   ├── Logo
    │   │   │   ├── doc-resources
    │   │   │   │   └── xmlui-logo.svg
    │   │   │   ├── Logo.md
    │   │   │   ├── Logo.tsx
    │   │   │   └── LogoNative.tsx
    │   │   ├── Markdown
    │   │   │   ├── CodeText.module.scss
    │   │   │   ├── CodeText.tsx
    │   │   │   ├── Markdown.md
    │   │   │   ├── Markdown.module.scss
    │   │   │   ├── Markdown.spec.ts
    │   │   │   ├── Markdown.tsx
    │   │   │   ├── MarkdownNative.tsx
    │   │   │   ├── parse-binding-expr.ts
    │   │   │   └── utils.ts
    │   │   ├── metadata-helpers.ts
    │   │   ├── ModalDialog
    │   │   │   ├── ConfirmationModalContextProvider.tsx
    │   │   │   ├── Dialog.module.scss
    │   │   │   ├── Dialog.tsx
    │   │   │   ├── ModalDialog.md
    │   │   │   ├── ModalDialog.module.scss
    │   │   │   ├── ModalDialog.spec.ts
    │   │   │   ├── ModalDialog.tsx
    │   │   │   ├── ModalDialogNative.tsx
    │   │   │   └── ModalVisibilityContext.tsx
    │   │   ├── NavGroup
    │   │   │   ├── NavGroup.md
    │   │   │   ├── NavGroup.module.scss
    │   │   │   ├── NavGroup.spec.ts
    │   │   │   ├── NavGroup.tsx
    │   │   │   ├── NavGroupContext.ts
    │   │   │   └── NavGroupNative.tsx
    │   │   ├── NavLink
    │   │   │   ├── NavLink.md
    │   │   │   ├── NavLink.module.scss
    │   │   │   ├── NavLink.spec.ts
    │   │   │   ├── NavLink.tsx
    │   │   │   └── NavLinkNative.tsx
    │   │   ├── NavPanel
    │   │   │   ├── NavPanel.md
    │   │   │   ├── NavPanel.module.scss
    │   │   │   ├── NavPanel.spec.ts
    │   │   │   ├── NavPanel.tsx
    │   │   │   └── NavPanelNative.tsx
    │   │   ├── NestedApp
    │   │   │   ├── AppWithCodeView.module.scss
    │   │   │   ├── AppWithCodeView.tsx
    │   │   │   ├── AppWithCodeViewNative.tsx
    │   │   │   ├── defaultProps.tsx
    │   │   │   ├── logo.svg
    │   │   │   ├── NestedApp.module.scss
    │   │   │   ├── NestedApp.tsx
    │   │   │   ├── NestedAppNative.tsx
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── utils.ts
    │   │   ├── NoResult
    │   │   │   ├── NoResult.md
    │   │   │   ├── NoResult.module.scss
    │   │   │   ├── NoResult.spec.ts
    │   │   │   ├── NoResult.tsx
    │   │   │   └── NoResultNative.tsx
    │   │   ├── NumberBox
    │   │   │   ├── numberbox-abstractions.ts
    │   │   │   ├── NumberBox.md
    │   │   │   ├── NumberBox.module.scss
    │   │   │   ├── NumberBox.spec.ts
    │   │   │   ├── NumberBox.tsx
    │   │   │   └── NumberBoxNative.tsx
    │   │   ├── Option
    │   │   │   ├── Option.md
    │   │   │   ├── Option.spec.ts
    │   │   │   ├── Option.tsx
    │   │   │   ├── OptionNative.tsx
    │   │   │   └── OptionTypeProvider.tsx
    │   │   ├── PageMetaTitle
    │   │   │   ├── PageMetaTilteNative.tsx
    │   │   │   ├── PageMetaTitle.md
    │   │   │   ├── PageMetaTitle.spec.ts
    │   │   │   └── PageMetaTitle.tsx
    │   │   ├── Pages
    │   │   │   ├── Page.md
    │   │   │   ├── Pages.md
    │   │   │   ├── Pages.module.scss
    │   │   │   ├── Pages.tsx
    │   │   │   └── PagesNative.tsx
    │   │   ├── Pagination
    │   │   │   ├── Pagination.md
    │   │   │   ├── Pagination.module.scss
    │   │   │   ├── Pagination.spec.ts
    │   │   │   ├── Pagination.tsx
    │   │   │   └── PaginationNative.tsx
    │   │   ├── PositionedContainer
    │   │   │   ├── PositionedContainer.module.scss
    │   │   │   ├── PositionedContainer.tsx
    │   │   │   └── PositionedContainerNative.tsx
    │   │   ├── ProfileMenu
    │   │   │   ├── ProfileMenu.module.scss
    │   │   │   └── ProfileMenu.tsx
    │   │   ├── ProgressBar
    │   │   │   ├── ProgressBar.md
    │   │   │   ├── ProgressBar.module.scss
    │   │   │   ├── ProgressBar.spec.ts
    │   │   │   ├── ProgressBar.tsx
    │   │   │   └── ProgressBarNative.tsx
    │   │   ├── Queue
    │   │   │   ├── Queue.md
    │   │   │   ├── Queue.spec.ts
    │   │   │   ├── Queue.tsx
    │   │   │   ├── queueActions.ts
    │   │   │   └── QueueNative.tsx
    │   │   ├── RadioGroup
    │   │   │   ├── RadioGroup.md
    │   │   │   ├── RadioGroup.module.scss
    │   │   │   ├── RadioGroup.spec.ts
    │   │   │   ├── RadioGroup.tsx
    │   │   │   ├── RadioGroupNative.tsx
    │   │   │   ├── RadioItem.tsx
    │   │   │   └── RadioItemNative.tsx
    │   │   ├── RealTimeAdapter
    │   │   │   ├── RealTimeAdapter.tsx
    │   │   │   └── RealTimeAdapterNative.tsx
    │   │   ├── Redirect
    │   │   │   ├── Redirect.md
    │   │   │   ├── Redirect.spec.ts
    │   │   │   └── Redirect.tsx
    │   │   ├── ResponsiveBar
    │   │   │   ├── README.md
    │   │   │   ├── ResponsiveBar.md
    │   │   │   ├── ResponsiveBar.module.scss
    │   │   │   ├── ResponsiveBar.spec.ts
    │   │   │   ├── ResponsiveBar.tsx
    │   │   │   └── ResponsiveBarNative.tsx
    │   │   ├── Select
    │   │   │   ├── HiddenOption.tsx
    │   │   │   ├── MultiSelectOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   ├── SelectNative.tsx
    │   │   │   ├── SelectOption.tsx
    │   │   │   └── SimpleSelect.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
    │   │   │   ├── 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.mjs
    │   ├── 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
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── infrastructure
    │   │   │   ├── index.html
    │   │   │   ├── main.tsx
    │   │   │   ├── public
    │   │   │   │   ├── mockServiceWorker.js
    │   │   │   │   ├── resources
    │   │   │   │   │   ├── bell.svg
    │   │   │   │   │   ├── box.svg
    │   │   │   │   │   ├── doc.svg
    │   │   │   │   │   ├── eye.svg
    │   │   │   │   │   ├── flower-640x480.jpg
    │   │   │   │   │   ├── sun.svg
    │   │   │   │   │   ├── test-image-100x100.jpg
    │   │   │   │   │   └── txt.svg
    │   │   │   │   └── serve.json
    │   │   │   └── TestBed.tsx
    │   │   └── themed-app-test-helpers.ts
    │   └── vite-env.d.ts
    ├── tests
    │   ├── components
    │   │   ├── CodeBlock
    │   │   │   └── hightlight-code.test.ts
    │   │   ├── playground-pattern.test.ts
    │   │   └── Tree
    │   │       └── Tree-states.test.ts
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   └── treeAbstractions.test.ts
    │   │   ├── container
    │   │   │   └── buildProxy.test.ts
    │   │   ├── interception
    │   │   │   ├── orderBy.test.ts
    │   │   │   ├── ReadOnlyCollection.test.ts
    │   │   │   └── request-param-converter.test.ts
    │   │   ├── scripts-runner
    │   │   │   ├── AttributeValueParser.test.ts
    │   │   │   ├── eval-tree-arrow-async.test.ts
    │   │   │   ├── eval-tree-arrow.test.ts
    │   │   │   ├── eval-tree-func-decl-async.test.ts
    │   │   │   ├── eval-tree-func-decl.test.ts
    │   │   │   ├── eval-tree-pre-post.test.ts
    │   │   │   ├── eval-tree-regression.test.ts
    │   │   │   ├── eval-tree.test.ts
    │   │   │   ├── function-proxy.test.ts
    │   │   │   ├── parser-regression.test.ts
    │   │   │   ├── process-event.test.ts
    │   │   │   ├── process-function.test.ts
    │   │   │   ├── process-implicit-context.test.ts
    │   │   │   ├── process-statement-asgn.test.ts
    │   │   │   ├── process-statement-destruct.test.ts
    │   │   │   ├── process-statement-regs.test.ts
    │   │   │   ├── process-statement-sync.test.ts
    │   │   │   ├── process-statement.test.ts
    │   │   │   ├── process-switch-sync.test.ts
    │   │   │   ├── process-switch.test.ts
    │   │   │   ├── process-try-sync.test.ts
    │   │   │   ├── process-try.test.ts
    │   │   │   └── test-helpers.ts
    │   │   ├── test-metadata-handler.ts
    │   │   ├── theming
    │   │   │   ├── border-segments.test.ts
    │   │   │   ├── component-layout.resolver.test.ts
    │   │   │   ├── layout-property-parser.test.ts
    │   │   │   ├── layout-resolver.test.ts
    │   │   │   ├── layout-resolver2.test.ts
    │   │   │   ├── layout-vp-override.test.ts
    │   │   │   └── padding-segments.test.ts
    │   │   └── utils
    │   │       ├── date-utils.test.ts
    │   │       ├── format-human-elapsed-time.test.ts
    │   │       └── LruCache.test.ts
    │   ├── language-server
    │   │   ├── completion.test.ts
    │   │   ├── format.test.ts
    │   │   ├── hover.test.ts
    │   │   └── mockData.ts
    │   └── parsers
    │       ├── common
    │       │   └── input-stream.test.ts
    │       ├── markdown
    │       │   └── parse-binding-expression.test.ts
    │       ├── parameter-parser.test.ts
    │       ├── paremeter-parser.test.ts
    │       ├── scripting
    │       │   ├── eval-tree-arrow.test.ts
    │       │   ├── eval-tree-pre-post.test.ts
    │       │   ├── eval-tree.test.ts
    │       │   ├── function-proxy.test.ts
    │       │   ├── lexer-literals.test.ts
    │       │   ├── lexer-misc.test.ts
    │       │   ├── module-parse.test.ts
    │       │   ├── parser-arrow.test.ts
    │       │   ├── parser-assignments.test.ts
    │       │   ├── parser-binary.test.ts
    │       │   ├── parser-destructuring.test.ts
    │       │   ├── parser-errors.test.ts
    │       │   ├── parser-expressions.test.ts
    │       │   ├── parser-function.test.ts
    │       │   ├── parser-literals.test.ts
    │       │   ├── parser-primary.test.ts
    │       │   ├── parser-regex.test.ts
    │       │   ├── parser-statements.test.ts
    │       │   ├── parser-unary.test.ts
    │       │   ├── process-event.test.ts
    │       │   ├── process-implicit-context.test.ts
    │       │   ├── process-statement-asgn.test.ts
    │       │   ├── process-statement-destruct.test.ts
    │       │   ├── process-statement-regs.test.ts
    │       │   ├── process-statement-sync.test.ts
    │       │   ├── process-statement.test.ts
    │       │   ├── process-switch-sync.test.ts
    │       │   ├── process-switch.test.ts
    │       │   ├── process-try-sync.test.ts
    │       │   ├── process-try.test.ts
    │       │   ├── simplify-expression.test.ts
    │       │   ├── statement-hooks.test.ts
    │       │   └── test-helpers.ts
    │       ├── style-parser
    │       │   ├── generateHvarChain.test.ts
    │       │   ├── parseHVar.test.ts
    │       │   ├── parser.test.ts
    │       │   └── tokens.test.ts
    │       └── xmlui
    │           ├── lint.test.ts
    │           ├── parser.test.ts
    │           ├── scanner.test.ts
    │           ├── transform.attr.test.ts
    │           ├── transform.circular.test.ts
    │           ├── transform.element.test.ts
    │           ├── transform.errors.test.ts
    │           ├── transform.escape.test.ts
    │           ├── transform.regression.test.ts
    │           ├── transform.script.test.ts
    │           ├── transform.test.ts
    │           └── xmlui.ts
    ├── tests-e2e
    │   ├── api-bound-component-regression.spec.ts
    │   ├── api-call-as-extracted-component.spec.ts
    │   ├── assign-to-object-or-array-regression.spec.ts
    │   ├── binding-regression.spec.ts
    │   ├── children-as-template-context-vars.spec.ts
    │   ├── compound-component.spec.ts
    │   ├── context-vars-regression.spec.ts
    │   ├── data-bindings.spec.ts
    │   ├── datasource-and-api-usage-in-var.spec.ts
    │   ├── datasource-direct-binding.spec.ts
    │   ├── datasource-onLoaded-regression.spec.ts
    │   ├── modify-array-item-regression.spec.ts
    │   ├── namespaces.spec.ts
    │   ├── push-to-array-regression.spec.ts
    │   ├── screen-breakpoints.spec.ts
    │   ├── scripting.spec.ts
    │   ├── state-scope-in-pages.spec.ts
    │   └── state-var-scopes.spec.ts
    ├── tsconfig.bin.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

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

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

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

test.describe("Basic Functionality", () => {
  test("component renders", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text />`);
    const driver = await createTextDriver();

    await expect(driver.component).toBeAttached();
    await expect(driver.component).toBeEmpty();
  });

  test("component renders with value prop", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text value="test content" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText("test content");
  });

  test("component renders with text content", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text>test content</Text>`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText("test content");
  });

  test("text content overrides value prop", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "this test text is the value of the heading";
    await initTestBed(`
      <Text value="${EXPECTED}">
        This is a child
      </Text>
    `);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText(EXPECTED);
  });

  Object.entries(TextVariantElement).forEach(([variant, htmlElement]) => {
    test(`variant=${variant} renders correct HTML element: ${htmlElement}`, async ({
      initTestBed,
      createTextDriver,
    }) => {
      await initTestBed(`<Text variant="${variant}" />`);
      const driver = await createTextDriver();

      const tagName = await driver.getComponentTagName();
      expect(tagName).toEqual(htmlElement);
    });
  });

  Array.from(new Set(Object.values(TextVariantElement)))
    .filter((variant) => !["h6", "span"].includes(variant))
    .forEach((htmlElement) => {
      test(`HtmlTag component '${htmlElement}' renders correctly`, async ({
        initTestBed,
        createTextDriver,
      }) => {
        await initTestBed(`<${htmlElement} />`);
        const driver = await createTextDriver();

        await expect(driver.component).toBeAttached();
      });
    });

  [
    { label: "undefined", value: "'{undefined}'", toExpected: "" },
    { label: "undefined with string", value: "'abc{undefined}def'", toExpected: "abcdef" },
    { label: "null", value: "'{null}'", toExpected: "" },
    { label: "null with string", value: "'abc{null}def'", toExpected: "abcdef" },
    { label: "empty string", value: "''", toExpected: "" },
    { label: "string", value: "'test'", toExpected: "test" },
    { label: "integer", value: "'{1}'", toExpected: "1" },
    { label: "float", value: "'{1.2}'", toExpected: "1.2" },
    { label: "boolean", value: "'{true}'", toExpected: "true" },
    { label: "empty object", value: "'{{}}'", toExpected: {}.toString() },
    { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpected: { a: 1, b: "hi" }.toString() },
    { label: "empty array", value: "'{[]}'", toExpected: "" },
    { label: "array", value: "'{[1, 2, 3]}'", toExpected: [1, 2, 3].toString() },
  ].forEach(({ label, value, toExpected }) => {
    test(`handles ${label} value prop correctly`, async ({ initTestBed, createTextDriver }) => {
      await initTestBed(`<Text value=${value} />`);
      const driver = await createTextDriver();

      await expect(driver.component).toHaveText(toExpected);
    });
  });

  test("removes leading whitespace", async ({ page, initTestBed }) => {
    await initTestBed(`<Text testId="text">   {123}</Text>`);
    await expect(page.getByTestId("text")).toHaveText("123");
  });

  test("removes trailing whitespace", async ({ page, initTestBed }) => {
    await initTestBed(`<Text testId="text">{123}  </Text>`);
    await expect(page.getByTestId("text")).toHaveText("123");
  });

  test("preserves whitespace when using value prop", async ({ initTestBed, createTextDriver }) => {
    const expected = "test        content";
    await initTestBed(`<Text value="${expected}" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText(expected);
  });

  test("supports preserveLinebreaks prop", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
    <VStack>
      <Text testId="textShort">Short</Text>
      <Text testId="textLong" preserveLinebreaks="true"
        value="Though this long
text does not fit into a single line,
please do not break it!"
      />
    </VStack>
    `);
    const { height: heightTextShort } = await getBounds(await createTextDriver("textShort"));
    const { height: heightTextLong } = await getBounds(await createTextDriver("textLong"));

    expect(heightTextLong).toEqualWithTolerance(heightTextShort * 3, 0.01);
  });
});

// =============================================================================
// API TESTS
// =============================================================================

test.describe("API", () => {
  test("hasOverflow returns true when text overflows horizontally", async ({
    initTestBed,
    page,
  }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="200px">
          <Text id="overflowText" maxLines="{1}" 
            value="This is a very long text that should definitely overflow when constrained to a small width" 
          />
          <Button onClick="testState = overflowText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow returns true when text overflows with maxLines constraint", async ({
    initTestBed,
    page,
  }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="200px">
          <Text id="overflowText" maxLines="{2}" value="This is a very long text that will wrap to multiple lines and should overflow beyond the maxLines constraint when the container is wide enough to allow wrapping" />
          <Button onClick="testState = overflowText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow returns false when text fits within container", async ({
    initTestBed,
    page,
  }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="300px" height="100px">
          <Text id="normalText" value="Short text" />
          <Button onClick="testState = normalText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(false);
  });

  test("hasOverflow returns false for empty text", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px" height="50px">
          <Text id="emptyText" value="" />
          <Button onClick="testState = emptyText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(false);
  });

  test("hasOverflow returns false for text with no size constraints", async ({
    initTestBed,
    page,
  }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Text id="unconstrainedText" value="This text has no width or height constraints so it should not overflow" />
        <Button onClick="testState = unconstrainedText.hasOverflow()" />
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(false);
  });

  test("hasOverflow works with different overflow modes", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px">
          <Text id="ellipsisText" overflowMode="ellipsis" maxLines="{1}" value="This is a very long text that should overflow" />
          <Button onClick="testState = { ellipsis: ellipsisText.hasOverflow() }" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    const result = await testStateDriver.testState();
    expect(result.ellipsis).toBe(true);
  });

  test("hasOverflow works with scroll overflow mode", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px">
          <Text id="scrollText" overflowMode="scroll" value="This is a very long text that should create horizontal scroll" />
          <Button onClick="testState = scrollText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow returns correct result after content changes", async ({
    initTestBed,
    page,
  }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment var.text="short">
        <Stack width="100px">
          <Text id="dynamicText" value="{text}" maxLines="{1}" />
          <Button testId="checkBtn" onClick="testState = dynamicText.hasOverflow()" />
          <Button testId="changeBtn" onClick="text = 'This is a very long text that will definitely overflow the container'" />
        </Stack>
      </Fragment>
    `);

    // Check initial state (should not overflow)
    await page.getByTestId("checkBtn").click();
    await expect.poll(testStateDriver.testState).toBe(false);

    // Change content to overflow
    await page.getByTestId("changeBtn").click();
    await page.getByTestId("checkBtn").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow handles null/undefined values gracefully", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px">
          <Text id="nullText" value="{null}" />
          <Button onClick="testState = nullText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(false);
  });

  test("hasOverflow works with unicode characters", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px">
          <Text id="unicodeText" maxLines="{1}" value="👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦" />
          <Button onClick="testState = unicodeText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow works with Chinese characters", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="100px">
          <Text id="chineseText" maxLines="{1}" value="这是一个非常长的中文文本,应该会在小容器中溢出显示区域超出边界限制" />
          <Button onClick="testState = chineseText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    await page.getByRole("button").click();
    await expect.poll(testStateDriver.testState).toBe(true);
  });

  test("hasOverflow API can be called multiple times", async ({ initTestBed, page }) => {
    const { testStateDriver } = await initTestBed(`
      <Fragment>
        <Stack width="200px">
          <Text id="multiCallText" value="Test content" />
          <Button onClick="testState = testState == null ? 1 : testState + 1; multiCallText.hasOverflow()" />
        </Stack>
      </Fragment>
    `);

    // Call API multiple times
    await page.getByRole("button").click();
    await page.getByRole("button").click();
    await page.getByRole("button").click();

    // Should have been called 3 times without errors
    await expect.poll(testStateDriver.testState).toBe(3);
  });
});

// =============================================================================
// ACCESSIBILITY TESTS
// =============================================================================

test.describe("Accessibility", () => {
  test("non-breaking space entities are rendered correctly", async ({
    initTestBed,
    createTextDriver,
  }) => {
    const content = "4 spaces here [&nbsp;&nbsp;&nbsp;&nbsp;], &amp;nbsp; written out.";
    const expected = "4 spaces here [    ], &nbsp; written out.";

    await initTestBed(`<Text>${content}</Text>`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText(expected);
  });

  test("supports proper semantic HTML variants", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text variant="strong">Important text</Text>`);
    const driver = await createTextDriver();

    const tagName = await driver.getComponentTagName();
    expect(tagName).toEqual("strong");
    await expect(driver.component).toHaveText("Important text");
  });

  test("maintains text content readability", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text>This is readable text content</Text>`);
    const driver = await createTextDriver();

    await expect(driver.component).toBeVisible();
    await expect(driver.component).toHaveText("This is readable text content");
  });
});

// =============================================================================
// VISUAL STATES TESTS
// =============================================================================

test.describe("Visual States", () => {
  test("handles text overflow with ellipses", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <Fragment>
        <Text testId="textShort" width="200">Short</Text>
        <Text testId="textLong" width="200" maxLines="1">
          Though this long text does not fit into a single line, please do not break it!
        </Text>
      </Fragment>
    `);
    const shortTextDriver = await createTextDriver("textShort");
    const longTextDriver = await createTextDriver("textLong");

    const { height: heightTextShort } = await getBounds(shortTextDriver);
    const { height: heightTextLong } = await getBounds(longTextDriver);

    expect(heightTextShort).toEqual(heightTextLong);
    await expect(longTextDriver.component).toHaveCSS("text-overflow", "ellipsis");
  });

  test("disables ellipses when specified", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <Fragment>
        <Text testId="textShort" width="200">Short</Text>
        <Text testId="textLong" width="200" maxLines="1" ellipses="false">
          Though this long text does not fit into a single line, please do not break it!
        </Text>
      </Fragment>
    `);
    const shortTextDriver = await createTextDriver("textShort");
    const longTextDriver = await createTextDriver("textLong");

    const { height: heightTextShort } = await getBounds(shortTextDriver);
    const { height: heightTextLong } = await getBounds(longTextDriver);

    expect(heightTextShort).toEqual(heightTextLong);
    await expect(longTextDriver.component).not.toHaveCSS("text-overflow", "ellipsis");
  });

  test("constrains text to maxLines", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <VStack>
        <Text testId="textShort" width="200px">Short</Text>
        <Text testId="textLong" width="200px" maxLines="2">
          Though this long text does not fit into a single line, please do not break it!
        </Text>
      </VStack>
    `);
    const shortText = await createTextDriver("textShort");
    const longText = await createTextDriver("textLong");

    const { height: heightTextShort } = await getBounds(shortText);
    const { height: heightTextLong } = await getBounds(longText);

    expect(heightTextLong).toEqual(heightTextShort * 2);
  });

  test("breaks long text when constrained by width", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <VStack>
        <Text testId="textShort" width="200px">Short</Text>
        <Text testId="textLong" width="200px">
          This long text does not fit into a viewport with a 200-pixel width.
        </Text>
      </VStack>
    `);
    const shortText = await createTextDriver("textShort");
    const longText = await createTextDriver("textLong");

    await expect(longText.component).toBeVisible();

    const { height: heightTextShort } = await getBounds(shortText);
    const { height: heightTextLong } = await getBounds(longText);

    expect(heightTextShort).toBeLessThan(heightTextLong);
  });

  test("text overflows container when explicitly sized larger", async ({
    initTestBed,
    createVStackDriver,
    createTextDriver,
  }) => {
    const widthLayoutExpected = 300;
    const widthTextExpected = 400;
    await initTestBed(`
      <VStack height="40px" width="${widthLayoutExpected}px" border="1px solid red">
        <Text testId="text" width="${widthTextExpected}px">
          This text sets its size explicitly bigger than its container.
          As it does not fit into the container's viewport, it overflows.
        </Text>
      </VStack>
    `);
    const { width: widthLayout } = await getBounds(await createVStackDriver());
    const { width: widthText } = await getBounds(await createTextDriver("text"));

    expect(widthText).toEqual(widthTextExpected);
    expect(widthLayout).toEqual(widthLayoutExpected);
  });

  test("collapses nested text whitespace correctly", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <Text>
      test      content
          here
      </Text>
    `);
    const driver = await createTextDriver();
    await expect(driver.component).toHaveText("test content here");
  });
});

// =============================================================================
// OVERFLOW MODE TESTS
// =============================================================================

test.describe("Overflow Mode", () => {
  test('overflowMode="none" allows wrapping with no overflow indicator', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" overflowMode="none">
        This is a very long text that should wrap naturally and show no ellipsis.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("white-space", "nowrap");
    await expect(driver.component).toHaveCSS("text-overflow", "clip");
    await expect(driver.component).toHaveCSS("overflow", "hidden");
  });

  test('overflowMode="none" ignores maxLines and clips text cleanly', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" overflowMode="none" maxLines="2">
        This is a long-long-long text that should be simply cut at the end without any ellipsis or other overflow indicator.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("white-space", "nowrap");
    await expect(driver.component).toHaveCSS("text-overflow", "clip");
    await expect(driver.component).toHaveCSS("overflow", "hidden");
    // Should NOT use webkit-line-clamp for "none" behavior - it ignores maxLines
    await expect(driver.component).toHaveCSS("-webkit-line-clamp", "none");
    // Should not apply maxLines styles since none mode ignores maxLines
    const maxHeight = await driver.component.evaluate((el) => getComputedStyle(el).maxHeight);
    expect(maxHeight).toBe("none"); // Should be "none" since maxLines is ignored

    // Verify the element is visible and has content
    await expect(driver.component).toBeVisible();
    await expect(driver.component).toContainText("This is a long-long-long text");
  });

  test('overflowMode="ellipsis" shows ellipsis when text overflows (default)', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" overflowMode="ellipsis" maxLines="1">
        This is a very long text that should show ellipsis when it overflows.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("text-overflow", "ellipsis");
    await expect(driver.component).toHaveCSS("overflow", "hidden");
  });

  test('overflowMode="scroll" enables horizontal scrolling', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" overflowMode="scroll">
        This is a very long text that should enable horizontal scrolling when it overflows the container width.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("white-space", "nowrap");
    await expect(driver.component).toHaveCSS("overflow-x", "auto");
    await expect(driver.component).toHaveCSS("overflow-y", "hidden");
  });

  test('overflowMode="flow" allows multi-line wrapping with vertical scrolling', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" height="60px" overflowMode="flow">
        This is a very long text that should wrap to multiple lines and show a vertical scrollbar when the content exceeds the container height.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("white-space", "normal");
    await expect(driver.component).toHaveCSS("overflow-x", "hidden");
    await expect(driver.component).toHaveCSS("overflow-y", "auto");
  });

  test('overflowMode="flow" ignores maxLines property', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px" overflowMode="flow" maxLines="3">
        This is a very long text that should wrap to multiple lines and completely ignore the maxLines property when using flow mode.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("white-space", "normal");
    await expect(driver.component).toHaveCSS("overflow-y", "auto");
    // Check that line-clamp is NOT applied when flow mode ignores maxLines
    await expect(driver.component).toHaveCSS("-webkit-line-clamp", "none");
    await expect(driver.component).not.toHaveCSS("display", "-webkit-box");
  });

  test("overflowMode works with maxLines", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <VStack>
        <Text testId="ellipsisText" width="200px" overflowMode="ellipsis" maxLines="2">
          This is a very long text that should be limited to 2 lines with line-clamp and show ellipsis.
        </Text>
      </VStack>
    `);
    const ellipsisDriver = await createTextDriver("ellipsisText");

    // Ellipsis should respect maxLines with line-clamp
    await expect(ellipsisDriver.component).toHaveCSS("-webkit-line-clamp", "2");

    // Should show ellipsis behavior
    await expect(ellipsisDriver.component).toHaveCSS("text-overflow", "ellipsis");
  });

  test("overflowMode='scroll' ignores maxLines", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`
      <VStack>
        <Text testId="scrollWithMaxLines" width="150px" overflowMode="scroll" maxLines="2">
          This is a very long text that should scroll horizontally and completely ignore the maxLines property.
        </Text>
        <Text testId="scrollWithoutMaxLines" width="150px" overflowMode="scroll">
          This is a very long text that should scroll horizontally without any maxLines property.
        </Text>
      </VStack>
    `);
    const scrollWithMaxLinesDriver = await createTextDriver("scrollWithMaxLines");
    const scrollWithoutMaxLinesDriver = await createTextDriver("scrollWithoutMaxLines");

    // Both should have the same behavior - no line-clamp applied
    await expect(scrollWithMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
    await expect(scrollWithoutMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");

    // Both should have scroll behavior
    await expect(scrollWithMaxLinesDriver.component).toHaveCSS("overflow-x", "auto");
    await expect(scrollWithoutMaxLinesDriver.component).toHaveCSS("overflow-x", "auto");
    await expect(scrollWithMaxLinesDriver.component).toHaveCSS("white-space", "nowrap");
    await expect(scrollWithoutMaxLinesDriver.component).toHaveCSS("white-space", "nowrap");

    // Neither should use text-overflow ellipsis
    await expect(scrollWithMaxLinesDriver.component).toHaveCSS("text-overflow", "clip");
    await expect(scrollWithoutMaxLinesDriver.component).toHaveCSS("text-overflow", "clip");
  });

  test("overflowMode='flow' ignores maxLines for unrestricted wrapping", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <Text testId="flowWithMaxLines" width="150px" overflowMode="flow" maxLines="2">
          This is a very long text that should wrap to multiple lines and completely ignore the maxLines property when using flow mode.
        </Text>
        <Text testId="flowWithoutMaxLines" width="150px" overflowMode="flow">
          This is a very long text that should wrap to multiple lines without any line limit when using flow mode.
        </Text>
      </VStack>
    `);
    const flowWithMaxLinesDriver = await createTextDriver("flowWithMaxLines");
    const flowWithoutMaxLinesDriver = await createTextDriver("flowWithoutMaxLines");

    // Both should behave identically - flow mode ignores maxLines
    await expect(flowWithMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
    await expect(flowWithoutMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");

    // Both should have flow behavior
    await expect(flowWithMaxLinesDriver.component).toHaveCSS("overflow-y", "auto");
    await expect(flowWithoutMaxLinesDriver.component).toHaveCSS("overflow-y", "auto");
    await expect(flowWithMaxLinesDriver.component).toHaveCSS("overflow-x", "hidden");
    await expect(flowWithoutMaxLinesDriver.component).toHaveCSS("overflow-x", "hidden");
    await expect(flowWithMaxLinesDriver.component).toHaveCSS("white-space", "normal");
    await expect(flowWithoutMaxLinesDriver.component).toHaveCSS("white-space", "normal");

    // Neither should use webkit-box display
    await expect(flowWithMaxLinesDriver.component).not.toHaveCSS("display", "-webkit-box");
    await expect(flowWithoutMaxLinesDriver.component).not.toHaveCSS("display", "-webkit-box");
  });

  test("overflowMode respects ellipses property for ellipsis behavior", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <Text testId="withEllipses" width="200px" overflowMode="ellipsis" ellipses="true" maxLines="1">
          This text should show ellipses.
        </Text>
        <Text testId="withoutEllipses" width="200px" overflowMode="ellipsis" ellipses="false" maxLines="1">
          This text should not show ellipses.
        </Text>
      </VStack>
    `);
    const withEllipsesDriver = await createTextDriver("withEllipses");
    const withoutEllipsesDriver = await createTextDriver("withoutEllipses");

    await expect(withEllipsesDriver.component).toHaveCSS("text-overflow", "ellipsis");
    await expect(withoutEllipsesDriver.component).toHaveCSS("text-overflow", "clip");
  });

  test('overflowMode="ellipsis" works with multi-line text (maxLines > 1)', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <Text testId="singleLine" width="150px" overflowMode="ellipsis" maxLines="1">
          This is a very long text that should be truncated to a single line with ellipsis.
        </Text>
        <Text testId="multiLine" width="150px" overflowMode="ellipsis" maxLines="2">
          This is a very long text that should wrap to exactly two lines and then be truncated with ellipsis if there's more content that doesn't fit.
        </Text>
      </VStack>
    `);
    const singleLineDriver = await createTextDriver("singleLine");
    const multiLineDriver = await createTextDriver("multiLine");

    // Both should have ellipsis behavior
    await expect(singleLineDriver.component).toHaveCSS("text-overflow", "ellipsis");
    await expect(multiLineDriver.component).toHaveCSS("text-overflow", "ellipsis");

    // Single line should use nowrap
    await expect(singleLineDriver.component).toHaveCSS("white-space", "nowrap");

    // Multi-line should have line-clamp applied
    await expect(multiLineDriver.component).toHaveCSS("-webkit-line-clamp", "2");

    // Verify heights: multi-line should be approximately 2x single line height
    const { height: heightSingle } = await getBounds(singleLineDriver);
    const { height: heightMulti } = await getBounds(multiLineDriver);

    // Multi-line should be taller than single line
    expect(heightMulti).toBeGreaterThan(heightSingle);
    // And should be roughly 2x the height (allowing for some tolerance)
    expect(heightMulti).toBeGreaterThan(heightSingle * 1.5);
    expect(heightMulti).toBeLessThan(heightSingle * 2.5);
  });
});

// =============================================================================
// BREAK MODE TESTS
// =============================================================================

test.describe("Break Mode", () => {
  test('breakMode="normal" uses standard word boundaries', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="150px" breakMode="normal">
        This is a verylongwordthatshouldbreakatwordboundaries normally.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("word-break", "normal");
    await expect(driver.component).toHaveCSS("overflow-wrap", "normal");
  });

  test('breakMode="word" breaks long words to prevent overflow', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="150px" breakMode="word">
        This is a verylongwordthatexceedsthecontainerwidthandshouldbreak.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("overflow-wrap", "break-word");
  });

  test('breakMode="anywhere" breaks at any character', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="100px" breakMode="anywhere">
        Verylongwordwithnobreaks
      </Text>
    `);
    const driver = await createTextDriver("text");

    // Should have word-break: break-all or overflow-wrap: anywhere
    const wordBreak = await driver.component.evaluate((el) => getComputedStyle(el).wordBreak);
    const overflowWrap = await driver.component.evaluate((el) => getComputedStyle(el).overflowWrap);

    expect(wordBreak === "break-all" || overflowWrap === "anywhere").toBe(true);
  });

  test('breakMode="keep" prevents breaking within words', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="100px" breakMode="keep">
        This text should keep words intact
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("word-break", "keep-all");
  });

  test('breakMode="hyphenate" uses automatic hyphenation', async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="150px" breakMode="hyphenate" lang="en">
        This is a supercalifragilisticexpialidocious word that should be hyphenated.
      </Text>
    `);
    const driver = await createTextDriver("text");

    await expect(driver.component).toHaveCSS("hyphens", "auto");
    await expect(driver.component).toHaveCSS("overflow-wrap", "break-word");
  });

  test("breakMode works with different overflow modes", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <Text testId="ellipsisWord" width="150px" overflowMode="ellipsis" breakMode="word" maxLines="1">
          This superlongwordwithoutbreaks should be handled properly.
        </Text>
        <Text testId="scrollAnywhere" width="150px" overflowMode="scroll" breakMode="anywhere">
          This verylongwordwithoutanybreaks should break anywhere and scroll.
        </Text>
      </VStack>
    `);
    const ellipsisDriver = await createTextDriver("ellipsisWord");
    const scrollDriver = await createTextDriver("scrollAnywhere");

    // Check overflow mode styles
    await expect(ellipsisDriver.component).toHaveCSS("text-overflow", "ellipsis");
    await expect(scrollDriver.component).toHaveCSS("overflow-x", "auto");

    // Check break mode styles
    await expect(ellipsisDriver.component).toHaveCSS("overflow-wrap", "break-word");

    const scrollWordBreak = await scrollDriver.component.evaluate(
      (el) => getComputedStyle(el).wordBreak,
    );
    const scrollOverflowWrap = await scrollDriver.component.evaluate(
      (el) => getComputedStyle(el).overflowWrap,
    );
    expect(scrollWordBreak === "break-all" || scrollOverflowWrap === "anywhere").toBe(true);
  });

  test("default breakMode allows theme variables to work", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <Text testId="text" width="200px">
        This text should use the default browser behavior and allow theme variables to override.
      </Text>
    `);
    const driver = await createTextDriver("text");

    // Should not have any break mode classes when no breakMode is specified
    const className = await driver.component.getAttribute("class");
    expect(className).not.toContain("breakWord");
    expect(className).not.toContain("breakAnywhere");
    expect(className).not.toContain("breakKeep");
    expect(className).not.toContain("breakHyphenate");
  });
});

// =============================================================================
// EDGE CASES TESTS
// =============================================================================

test.describe("Edge Cases", () => {
  [
    { label: "empty object", value: "'{{}}'", toExpected: {}.toString() },
    { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpected: { a: 1, b: "hi" }.toString() },
    { label: "empty array", value: "'{[]}'", toExpected: "" },
    { label: "array", value: "'{[1, 2, 3]}'", toExpected: [1, 2, 3].toString() },
  ].forEach(({ label, value, toExpected }) => {
    test(`handles ${label} value prop gracefully`, async ({ initTestBed, createTextDriver }) => {
      await initTestBed(`<Text value=${value} />`);
      const driver = await createTextDriver();

      await expect(driver.component).toHaveText(toExpected);
    });
  });

  test("handles extremely long text content", async ({ initTestBed, createTextDriver }) => {
    const longText = "Very long text content ".repeat(1000);
    await initTestBed(`<Text value="${longText}" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toBeVisible();
    await expect(driver.component).toContainText("Very long text content");
  });

  test("handles special characters and symbols", async ({ initTestBed, createTextDriver }) => {
    const specialText = "Special chars: !@#$%^&*()[]|\\:;'<>?,./ αβγδε 中文 🚀✨";
    await initTestBed(`<Text value="${specialText}" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText(specialText);
  });

  test("handles mixed content types", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text>Mixed content: {123} {"string"} {true}</Text>`);
    const driver = await createTextDriver();

    await expect(driver.component).toBeVisible();
    await expect(driver.component).toContainText("Mixed content:");
  });

  test("nested Texts", async ({ initTestBed, page }) => {
    await initTestBed(`<Text>abc<Text>def</Text>ghi</Text>`);

    // Check if the page displays the combined text "abcdefghi"
    await expect(page.locator("body")).toContainText("abcdefghi");
  });
});

// =============================================================================
// PERFORMANCE TESTS
// =============================================================================

test.describe("Performance", () => {
  test("renders multiple text components efficiently", async ({
    initTestBed,
    createTextDriver,
  }) => {
    const textElements = Array.from(
      { length: 100 },
      (_, i) => `<Text testId="text-${i}">Text content ${i}</Text>`,
    ).join("");

    await initTestBed(`<VStack>${textElements}</VStack>`);

    // Test a few random elements to ensure they render correctly
    const driver1 = await createTextDriver("text-0");
    const driver50 = await createTextDriver("text-49");
    const driver100 = await createTextDriver("text-99");

    await expect(driver1.component).toHaveText("Text content 0");
    await expect(driver50.component).toHaveText("Text content 49");
    await expect(driver100.component).toHaveText("Text content 99");
  });

  test("handles rapid text content changes", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text value="Initial content" />`);
    const driver = await createTextDriver();

    const textValues = ["Content 1", "Content 2", "Content 3", "Content 4", "Content 5"];

    for (const value of textValues) {
      await initTestBed(`<Text value="${value}" />`);
      await expect(driver.component).toHaveText(value);
    }
  });

  test("maintains performance with complex theme variables", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed('<Text value="Performance test" />', {
      testThemeVars: {
        "textColor-Text": "rgb(255, 0, 0)",
        "fontSize-Text": "16px",
        "fontWeight-Text": "bold",
        "lineHeight-Text": "1.5",
        "textShadow-Text": "1px 1px 2px rgba(0,0,0,0.5)",
      },
    });
    const driver = await createTextDriver();

    await expect(driver.component).toBeVisible();
    await expect(driver.component).toHaveText("Performance test");
  });
});

// =============================================================================
// INTEGRATION TESTS
// =============================================================================

test.describe("Integration", () => {
  test("renders implicit text in other components", async ({ initTestBed, createStackDriver }) => {
    const expected = "test content";
    await initTestBed(`<Stack>${expected}</Stack>`);
    const driver = await createStackDriver();

    await expect(driver.component).toHaveText(expected);
  });

  test("maintains inline behavior in HStack layout", async ({
    initTestBed,
    createTextDriver,
    createIconDriver,
  }) => {
    await initTestBed(`
      <HStack>
        <Text testId="text0" >Show me a trash</Text>
        <Icon testId="icon0"  name="trash"/>
        <Text testId="text1" >icon!</Text>
      </HStack>
    `);
    const { top: topText0 } = await getBounds(await createTextDriver("text0"));
    const { top: topIcon0 } = await getBounds(await createIconDriver("icon0"));
    const { top: topText1 } = await getBounds(await createTextDriver("text1"));

    expect(topText0).toEqual(topIcon0);
    expect(topIcon0).toEqual(topText1);
  });

  test("maintains block behavior in VStack layout", async ({
    initTestBed,
    createTextDriver,
    createIconDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <Text testId="text0" >Show me a trash</Text>
        <Icon testId="icon0"  name="trash"/>
        <Text testId="text1" >icon!</Text>
      </VStack>
    `);
    const { top: topText0 } = await getBounds(await createTextDriver("text0"));
    const { top: topIcon0 } = await getBounds((await createIconDriver("icon0")).svgIcon);
    const { top: topText1 } = await getBounds(await createTextDriver("text1"));

    expect(topText0).toBeLessThan(topIcon0);
    expect(topIcon0).toBeLessThan(topText1);
  });

  test("integrates with complex component hierarchies", async ({
    initTestBed,
    createTextDriver,
  }) => {
    await initTestBed(`
      <VStack>
        <HStack>
          <Text testId="header">Header Text</Text>
        </HStack>
        <Text testId="content">Main content text with longer description</Text>
        <HStack>
          <Text testId="footer1">Footer</Text>
          <Text testId="footer2">Text</Text>
        </HStack>
      </VStack>
    `);

    const headerDriver = await createTextDriver("header");
    const contentDriver = await createTextDriver("content");
    const footer1Driver = await createTextDriver("footer1");
    const footer2Driver = await createTextDriver("footer2");

    await expect(headerDriver.component).toHaveText("Header Text");
    await expect(contentDriver.component).toHaveText("Main content text with longer description");
    await expect(footer1Driver.component).toHaveText("Footer");
    await expect(footer2Driver.component).toHaveText("Text");
  });

  test("works correctly with dynamic content", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text value="{123 + 456}" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toHaveText("579");
  });
});

// =============================================================================
// THEME VARIABLE TESTS
// =============================================================================

test.describe("Theme Variables", () => {
  test("textColor theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "rgb(255, 0, 0)";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textColor-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("color", EXPECTED);
  });

  test("fontFamily theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "sans-serif";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "fontFamily-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("font-family", EXPECTED);
  });

  test("fontSize theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "48px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "fontSize-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("font-size", EXPECTED);
  });

  test("fontStyle theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "italic";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "fontStyle-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("font-style", EXPECTED);
  });

  test("fontWeight theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "900";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "fontWeight-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("font-weight", EXPECTED);
  });

  test("fontStretch theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "125%";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "fontStretch-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("font-stretch", EXPECTED);
  });

  test("textDecorationLine theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "underline";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textDecorationLine-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("text-decoration-line", EXPECTED);
  });

  test("textDecorationColor theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "rgb(255, 0, 0)";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textDecorationColor-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("text-decoration-color", EXPECTED);
  });

  test("textDecorationStyle theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "dotted";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textDecorationStyle-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("text-decoration-style", EXPECTED);
  });

  test("textDecorationThickness theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "12px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textDecorationThickness-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("text-decoration-thickness", EXPECTED);
  });

  test("textUnderlineOffset theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "12px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textUnderlineOffset-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("text-underline-offset", EXPECTED);
  });

  test("lineHeight theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "24px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "lineHeight-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("line-height", EXPECTED);
  });

  test("backgroundColor theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "rgb(255, 0, 0)";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "backgroundColor-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;

    await expect(component).toHaveCSS("background-color", EXPECTED);
  });

  test("textTransform theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "uppercase";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textTransform-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("text-transform", EXPECTED);
  });

  test("letterSpacing theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "12px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "letterSpacing-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("letter-spacing", EXPECTED);
  });

  test("wordSpacing theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "12px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "wordSpacing-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("word-spacing", EXPECTED);
  });

  test("textShadow theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "rgba(0, 0, 0, 0.5) 2px 2px 2px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textShadow-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("text-shadow", EXPECTED);
  });

  test("textIndent theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "12px";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textIndent-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("text-indent", EXPECTED);
  });

  test("textAlign theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "center";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textAlign-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("text-align", EXPECTED);
  });

  test("textAlignLast theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "center";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "textAlignLast-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("text-align-last", EXPECTED);
  });

  test("wordBreak theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "normal";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "wordBreak-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("word-break", EXPECTED);
  });

  test("direction theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "rtl";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "direction-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("direction", EXPECTED);
  });

  test("writingMode theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "vertical-rl";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "writingMode-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("writing-mode", EXPECTED);
  });

  test("lineBreak theme variable", async ({ initTestBed, createTextDriver }) => {
    const EXPECTED = "normal";
    await initTestBed('<Text value="Hello, World" />', {
      testThemeVars: {
        "lineBreak-Text": EXPECTED,
      },
    });
    const component = (await createTextDriver()).component;
    await expect(component).toHaveCSS("line-break", EXPECTED);
  });
});

// =============================================================================
// CUSTOM VARIANT TESTS
// =============================================================================

test.describe("Custom Variants", () => {
  test("custom variant textColor theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "rgb(255, 0, 0)";
    await initTestBed(`
      <App>
        <Theme textColor-Text-customRed="${EXPECTED}">
          <Text variant="customRed" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("color", EXPECTED);
  });

  test("custom variant fontFamily theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "monospace";
    await initTestBed(`
      <App>
        <Theme fontFamily-Text-customMono="${EXPECTED}">
          <Text variant="customMono" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("font-family", EXPECTED);
  });

  test("custom variant fontSize theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "24px";
    await initTestBed(`
      <App>
        <Theme fontSize-Text-customLarge="${EXPECTED}">
          <Text variant="customLarge" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("font-size", EXPECTED);
  });

  test("custom variant fontStyle theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "italic";
    await initTestBed(`
      <App>
        <Theme fontStyle-Text-customItalic="${EXPECTED}">
          <Text variant="customItalic" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("font-style", EXPECTED);
  });

  test("custom variant fontWeight theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "700";
    await initTestBed(`
      <App>
        <Theme fontWeight-Text-customBold="bold">
          <Text variant="customBold" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("font-weight", EXPECTED);
  });

  test("custom variant fontStretch theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "125%";
    await initTestBed(`
      <App>
        <Theme fontStretch-Text-customExpanded="expanded">
          <Text variant="customExpanded" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("font-stretch", EXPECTED);
  });

  test("custom variant textDecorationLine theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "underline";
    await initTestBed(`
      <App>
        <Theme textDecorationLine-Text-customUnderline="${EXPECTED}">
          <Text variant="customUnderline" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-decoration-line", EXPECTED);
  });

  test("custom variant textDecorationColor theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "rgb(255, 0, 0)";
    await initTestBed(`
      <App>
        <Theme 
          textDecorationLine-Text-customDeco="underline"
          textDecorationColor-Text-customDeco="${EXPECTED}"
        >
          <Text variant="customDeco" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-decoration-color", EXPECTED);
  });

  test("custom variant textDecorationStyle theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "wavy";
    await initTestBed(`
      <App>
        <Theme 
          textDecorationLine-Text-customWavy="underline"
          textDecorationStyle-Text-customWavy="${EXPECTED}"
        >
          <Text variant="customWavy" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-decoration-style", EXPECTED);
  });

  test("custom variant textDecorationThickness theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "3px";
    await initTestBed(`
      <App>
        <Theme 
          textDecorationLine-Text-customThick="underline"
          textDecorationThickness-Text-customThick="${EXPECTED}"
        >
          <Text variant="customThick" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-decoration-thickness", EXPECTED);
  });

  test("custom variant textUnderlineOffset theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "5px";
    await initTestBed(`
      <App>
        <Theme 
          textDecorationLine-Text-customOffset="underline"
          textUnderlineOffset-Text-customOffset="${EXPECTED}"
        >
          <Text variant="customOffset" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-underline-offset", EXPECTED);
  });

  test("custom variant lineHeight theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "32px";
    await initTestBed(`
      <App>
        <Theme lineHeight-Text-customLineHeight="${EXPECTED}">
          <Text variant="customLineHeight" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("line-height", EXPECTED);
  });

  test("custom variant backgroundColor theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "rgb(255, 255, 0)";
    await initTestBed(`
      <App>
        <Theme backgroundColor-Text-customBg="${EXPECTED}">
          <Text variant="customBg" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("background-color", EXPECTED);
  });

  test("custom variant textTransform theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "uppercase";
    await initTestBed(`
      <App>
        <Theme textTransform-Text-customUpper="${EXPECTED}">
          <Text variant="customUpper" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-transform", EXPECTED);
  });

  test("custom variant letterSpacing theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "5px";
    await initTestBed(`
      <App>
        <Theme letterSpacing-Text-customSpaced="${EXPECTED}">
          <Text variant="customSpaced" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("letter-spacing", EXPECTED);
  });

  test("custom variant wordSpacing theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "10px";
    await initTestBed(`
      <App>
        <Theme wordSpacing-Text-customWordSpace="${EXPECTED}">
          <Text variant="customWordSpace" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("word-spacing", EXPECTED);
  });

  test("custom variant textShadow theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "rgb(255, 0, 0) 2px 2px 4px";
    await initTestBed(`
      <App>
        <Theme textShadow-Text-customShadow="${EXPECTED}">
          <Text variant="customShadow" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-shadow", EXPECTED);
  });

  test("custom variant textIndent theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "20px";
    await initTestBed(`
      <App>
        <Theme textIndent-Text-customIndent="${EXPECTED}">
          <Text variant="customIndent" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-indent", EXPECTED);
  });

  test("custom variant textAlign theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "center";
    await initTestBed(`
      <App>
        <Theme textAlign-Text-customCenter="${EXPECTED}">
          <Text variant="customCenter" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-align", EXPECTED);
  });

  test("custom variant textAlignLast theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "right";
    await initTestBed(`
      <App>
        <Theme textAlignLast-Text-customAlignLast="${EXPECTED}">
          <Text variant="customAlignLast" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("text-align-last", EXPECTED);
  });

  test("custom variant wordBreak theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "break-all";
    await initTestBed(`
      <App>
        <Theme wordBreak-Text-customBreak="${EXPECTED}">
          <Text variant="customBreak" breakMode="'{undefined}'" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("word-break", EXPECTED);
  });

  test("custom variant wordWrap theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "break-word";
    await initTestBed(`
      <App>
        <Theme wordWrap-Text-customWrap="${EXPECTED}">
          <Text variant="customWrap" breakMode="'{undefined}'" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("word-wrap", EXPECTED);
  });

  test("custom variant direction theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "rtl";
    await initTestBed(`
      <App>
        <Theme direction-Text-customRtl="${EXPECTED}">
          <Text variant="customRtl" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("direction", EXPECTED);
  });

  test("custom variant writingMode theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "vertical-rl";
    await initTestBed(`
      <App>
        <Theme writingMode-Text-customVertical="${EXPECTED}">
          <Text variant="customVertical" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("writing-mode", EXPECTED);
  });

  test("custom variant lineBreak theme variable", async ({ initTestBed, page }) => {
    const EXPECTED = "strict";
    await initTestBed(`
      <App>
        <Theme lineBreak-Text-customLineBreak="${EXPECTED}">
          <Text variant="customLineBreak" testId="text">Hello Custom!</Text>
        </Theme>
      </App>
    `);

    await expect(page.getByTestId("text")).toHaveCSS("line-break", EXPECTED);
  });

  test("custom variant with multiple theme variables", async ({ initTestBed, page }) => {
    await initTestBed(`
      <App>
        <Theme 
          textColor-Text-pinkElephant="rgb(255, 192, 203)" 
          fontWeight-Text-pinkElephant="bold"
          textColor-Text-greenDog="rgb(0, 128, 0)" 
          fontStyle-Text-greenDog="italic"
        >
          <Text variant="pinkElephant" testId="pink">
            Hello Pink Elephant!
          </Text>
          <Text variant="greenDog" testId="green">
            Hello Green Dog!
          </Text>
        </Theme>
      </App>
    `);

    const pinkText = page.getByTestId("pink");
    const greenText = page.getByTestId("green");

    await expect(pinkText).toHaveCSS("color", "rgb(255, 192, 203)");
    await expect(pinkText).toHaveCSS("font-weight", "700");
    await expect(greenText).toHaveCSS("color", "rgb(0, 128, 0)");
    await expect(greenText).toHaveCSS("font-style", "italic");
  });
});

// =============================================================================
// SMOKE TESTS (kept for compatibility)
// =============================================================================

test.describe("smoke tests", { tag: "@smoke" }, () => {
  test("basic smoke test", async ({ initTestBed, createTextDriver }) => {
    await initTestBed(`<Text value="Smoke test" />`);
    const driver = await createTextDriver();

    await expect(driver.component).toBeVisible();
    await expect(driver.component).toHaveText("Smoke test");
  });
});

```
Page 126/140FirstPrevNextLast