This is page 179 of 234. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ ├── file-input-automatic-csv-json-parsing.md
│ ├── markdown-link-new-tab.md
│ ├── markdown-link-truncation.md
│ └── markdown-table-rowspan-colspan.md
├── .editorconfig
├── .eslintrc.cjs
├── .gitattributes
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs-preview.yml
│ ├── deploy-docs.yml
│ ├── deploy-standalone-playground.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests-fast.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .npmrc
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── cli-blog-header.svg
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-the-xmlui-cli.md
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── staticwebapp.config.json
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ └── Separator.xmlui
│ │ ├── config.ts
│ │ └── Main.xmlui
│ └── 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
│ │ │ ├── ResponsiveBar.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
│ │ └── 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
│ │ │ ├── buffer-a-reactive-edit.md
│ │ │ ├── chain-a-refetch.md
│ │ │ ├── control-cache-invalidation.md
│ │ │ ├── copy-billing-to-shipping.md
│ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ ├── debounce-with-changelistener.md
│ │ │ ├── debug-a-component.md
│ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ ├── delegate-a-method.md
│ │ │ ├── do-custom-form-validation.md
│ │ │ ├── expose-a-method-from-a-component.md
│ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ ├── handle-background-operations.md
│ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ ├── implement-an-authentication-gate.md
│ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ ├── make-a-table-responsive.md
│ │ │ ├── make-navpanel-width-responsive.md
│ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ ├── paginate-a-list.md
│ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ ├── set-width-for-input-fields-in-a-horizontal-layout.md
│ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ ├── update-ui-optimistically.md
│ │ │ ├── use-accessors-to-simplify-complex-expressions.md
│ │ │ ├── use-built-in-form-validation.md
│ │ │ ├── use-modal-dialog-onclose.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
│ │ ├── playground-and-codefence.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
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── 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
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── sample-broken.csv
│ │ │ │ ├── sample-broken.json
│ │ │ │ ├── sample-config.json
│ │ │ │ ├── sample-inventory.csv
│ │ │ │ ├── sample-products-semicolon.csv
│ │ │ │ ├── sample-products-tsv.tsv
│ │ │ │ ├── sample-products.csv
│ │ │ │ ├── sample-products.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── staticwebapp.config.json
│ ├── 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
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── Separator.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── feature.md
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.module.scss
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.tsx
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playground
│ ├── .gitignore
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── resources
│ │ │ ├── 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
│ │ │ ├── logo-dark.svg
│ │ │ └── logo.svg
│ │ ├── staticwebapp.config.json
│ │ └── web.config
│ ├── src
│ │ ├── 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
├── playwright.config.ts
├── README.md
├── test-alignment.xmlui
├── test-app-script-issue.xmlui
├── tools
│ ├── 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
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── 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
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-categorization.md
│ ├── component-metadata.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── conv-create-components.md
│ ├── conv-e2e-testing.md
│ ├── conv-unit-testing.md
│ ├── data-operations.md
│ ├── font-size.md
│ ├── form-design.md
│ ├── form-infrastructure-issues.md
│ ├── form-infrastructure.md
│ ├── glossary.md
│ ├── images
│ │ ├── condensed-layout-content-scroll-no-gutters-bottom.svg
│ │ ├── condensed-layout-content-scroll-no-gutters-no-overflow.svg
│ │ ├── condensed-layout-content-scroll-no-gutters-top.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-bottom.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-no-overflow.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-top.svg
│ │ ├── condensed-layout-no-gutters-bottom.svg
│ │ ├── condensed-layout-no-gutters-mid.svg
│ │ ├── condensed-layout-no-gutters-top.svg
│ │ ├── condensed-layout-no-overflow.svg
│ │ ├── condensed-layout-with-gutters-bottom.svg
│ │ ├── condensed-layout-with-gutters-no-overflow.svg
│ │ ├── condensed-layout-with-gutters-top.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-bottom.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-no-overflow.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-top.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-bottom.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-no-overflow.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-top.svg
│ │ ├── condensed-sticky-layout-no-gutters-bottom.svg
│ │ ├── condensed-sticky-layout-no-gutters-top.svg
│ │ ├── condensed-sticky-layout-no-overflow.svg
│ │ ├── condensed-sticky-layout-with-gutters-bottom.svg
│ │ ├── condensed-sticky-layout-with-gutters-no-overflow.svg
│ │ ├── condensed-sticky-layout-with-gutters-top.svg
│ │ ├── desktop-layout-no-overflow.svg
│ │ ├── desktop-layout-overflow-bottom.svg
│ │ ├── desktop-layout-overflow-top.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters-bottom.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters-top.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-bottom.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-diagram.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-top.svg
│ │ ├── horizontal-layout-diagram.svg
│ │ ├── horizontal-layout-no-gutters-overflow-scrollbar-bottom.svg
│ │ ├── horizontal-layout-no-gutters-overflow-scrollbar-top.svg
│ │ ├── horizontal-layout-overflow-scrollbar-bottom.svg
│ │ ├── horizontal-layout-overflow-scrollbar-nogutter-bottom.svg
│ │ ├── horizontal-layout-overflow-scrollbar-nogutter-mid.svg
│ │ ├── horizontal-layout-overflow-scrollbar-top.svg
│ │ ├── horizontal-layout-with-gutters-diagram.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters-bottom.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters-top.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters-bottom.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters-top.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters.svg
│ │ ├── horizontal-sticky-layout-overflow-bottom.svg
│ │ ├── horizontal-sticky-layout-overflow-top.svg
│ │ ├── horizontal-sticky-layout-with-gutters-bottom-scroll.svg
│ │ ├── horizontal-sticky-layout-with-gutters-mid-scroll.svg
│ │ ├── horizontal-sticky-layout-with-gutters-no-overflow.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-bottom.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-mid.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-top.svg
│ │ ├── horizontal-sticky-layout-with-gutters.svg
│ │ ├── horizontal-sticky-layout.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters.svg
│ │ ├── vertical-full-header-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-full-header-layout-no-gutters.svg
│ │ ├── vertical-full-header-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-layout-with-gutters-overflow-top.svg
│ │ ├── vertical-full-header-layout-with-gutters.svg
│ │ ├── vertical-layout-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-layout-content-scroll-no-gutters.svg
│ │ ├── vertical-layout-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-layout-content-scroll-with-gutters.svg
│ │ ├── vertical-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-layout-no-gutters.svg
│ │ ├── vertical-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-with-gutters-overflow-top.svg
│ │ ├── vertical-layout-with-gutters.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters.svg
│ │ ├── vertical-sticky-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-sticky-layout-no-gutters.svg
│ │ ├── vertical-sticky-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-layout-with-gutters-overflow-top.svg
│ │ └── vertical-sticky-layout-with-gutters.svg
│ ├── index.md
│ ├── mcp-schizophrenia.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ └── working-with-code.md
│ ├── react-fundamentals.md
│ ├── refactoring-plan-eliminate-uses.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── theme-variables-refactoring.md
│ ├── theming-styling.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── ApiDefs.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-layout-mobile.spec.ts
│ │ │ ├── App-layout.spec.ts
│ │ │ ├── app-refactor.md
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppNavigation.ts
│ │ │ ├── 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
│ │ │ ├── SearchIndexCollector.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
│ │ ├── Br
│ │ │ ├── Br.spec.ts
│ │ │ └── Br.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ ├── ContentSeparatorNative.tsx
│ │ │ └── test-padding.xmlui
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ ├── DataSource.spec.ts
│ │ │ └── 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
│ │ │ ├── FormBindingWrapper.tsx
│ │ │ ├── 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-styles.md
│ │ │ ├── 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.spec.ts
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── Part
│ │ │ └── Part.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
│ │ │ ├── ResponsiveBarItem.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
│ │ ├── Toast
│ │ │ ├── Toast.spec.ts
│ │ │ ├── Toast.tsx
│ │ │ └── ToastNative.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
│ │ │ ├── Tree.tsx
│ │ │ ├── TreeComponent.module.scss
│ │ │ └── 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
│ │ │ └── FormBindingBehavior.spec.ts
│ │ ├── 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
│ │ │ ├── appState.ts
│ │ │ ├── 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
│ │ │ ├── state-plan.md
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ └── infrastructure
│ │ ├── index.html
│ │ ├── main.tsx
│ │ ├── public
│ │ │ ├── mockServiceWorker.js
│ │ │ ├── resources
│ │ │ │ ├── bell.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── flower-640x480.jpg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ └── txt.svg
│ │ │ └── serve.json
│ │ └── TestBed.tsx
│ └── 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
│ │ ├── rendering
│ │ │ └── ComponentAdapter.test.tsx
│ │ ├── 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-disabled.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
│ │ └── xmluiMarkupToComponent.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
│ ├── appstate.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
│ ├── init-cleanup-events.spec.ts
│ ├── inline-styles-disabled.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── script-var-override.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.json
├── tsdown.config.ts
├── vite.config.ts
├── vitest.config.ts
└── vitest.setup.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/Heading/Heading.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 | import { headingLevels } from "./abstractions";
4 |
5 | test.describe("smoke tests", { tag: "@smoke" }, () => {
6 | test("Heading is rendered", async ({ initTestBed, createHeadingDriver }) => {
7 | await initTestBed(`<Heading />`);
8 | const driver = await createHeadingDriver();
9 | await expect(driver.component).toBeAttached();
10 | });
11 |
12 | headingLevels.forEach((htmlElement) => {
13 | test(`HtmlTag '${htmlElement}' is rendered`, async ({ initTestBed, createHeadingDriver }) => {
14 | await initTestBed(`<${htmlElement} />`);
15 | const driver = await createHeadingDriver();
16 | await expect(driver.component).toBeAttached();
17 | });
18 | });
19 |
20 | // --- value
21 |
22 | // correct types: string, undefined, null, number, boolean -> everything will be coerced to strings
23 | [
24 | { label: "undefined", value: "'{undefined}'", toExpect: "" },
25 | { label: "null", value: "'{null}'", toExpect: "" },
26 | { label: "empty string", value: "''", toExpect: "" },
27 | { label: "string", value: "'test'", toExpect: "test" },
28 | { label: "integer", value: "'{1}'", toExpect: "1" },
29 | { label: "float", value: "'{1.2}'", toExpect: "1.2" },
30 | { label: "boolean", value: "'{true}'", toExpect: "true" },
31 | { label: "empty object", value: "'{{}}'", toExpect: {}.toString() },
32 | { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpect: { a: 1, b: "hi" }.toString() },
33 | { label: "empty array", value: "'{[]}'", toExpect: "" },
34 | { label: "array", value: "'{[1, 2, 3]}'", toExpect: [1, 2, 3].toString() },
35 | ].forEach(({ label, value, toExpect }) => {
36 | test(`setting value to ${label} sets value of field`, async ({
37 | initTestBed,
38 | createHeadingDriver,
39 | }) => {
40 | await initTestBed(`<Heading value=${value} />`);
41 | const driver = await createHeadingDriver();
42 |
43 | await expect(driver.component).toHaveText(toExpect);
44 | });
45 | });
46 |
47 | test("setting value prop has no whitespace collapsing", async ({
48 | initTestBed,
49 | createHeadingDriver,
50 | }) => {
51 | const expected = "test content";
52 | await initTestBed(`<Heading value="${expected}" />`);
53 | const driver = await createHeadingDriver();
54 |
55 | await expect(driver.component).toHaveText(expected);
56 | });
57 |
58 | test("child overrides value", async ({ initTestBed, createHeadingDriver }) => {
59 | const expected = "this test text is the value of the heading";
60 | await initTestBed(`
61 | <Heading value="${expected}">
62 | This is a child
63 | </Heading>
64 | `);
65 | const driver = await createHeadingDriver();
66 |
67 | await expect(driver.component).toHaveText(expected);
68 | });
69 |
70 | // --- comparisons
71 |
72 | async function sizeComparisonSetup(initTestBed: any, createHeadingDriver: any) {
73 | await initTestBed(`
74 | <Fragment>
75 | <Heading level="h1" testId="heading1">Test</Heading>
76 | <Heading level="h2" testId="heading2">Test</Heading>
77 | <Heading level="h3" testId="heading3">Test</Heading>
78 | <Heading level="h4" testId="heading4">Test</Heading>
79 | <Heading level="h5" testId="heading5">Test</Heading>
80 | <Heading level="h6" testId="heading6">Test</Heading>
81 | </Fragment>
82 | `);
83 | const headings = [
84 | await createHeadingDriver("heading1"),
85 | await createHeadingDriver("heading2"),
86 | await createHeadingDriver("heading3"),
87 | await createHeadingDriver("heading4"),
88 | await createHeadingDriver("heading5"),
89 | await createHeadingDriver("heading6"),
90 | ];
91 |
92 | const headingSizes = await Promise.all(
93 | headings.map(async (heading) => {
94 | const { width, height } = await getBounds(heading.component);
95 | return { width, height };
96 | }),
97 | );
98 |
99 | return headingSizes;
100 | }
101 | // NOTE: we don't explicitly test h6, since all other headings have tested for its size
102 | headingLevels
103 | .filter((l) => l !== "h6")
104 | .forEach((level, idx) => {
105 | test(`compare ${level} size to other levels`, async ({
106 | initTestBed,
107 | createHeadingDriver,
108 | }) => {
109 | const headingSizes = await sizeComparisonSetup(initTestBed, createHeadingDriver);
110 |
111 | for (let i = idx + 1; i < headingSizes.length; i++) {
112 | /* console.log(
113 | `${level} width: ${headingSizes[idx].width} and height: ${headingSizes[idx].height}`,
114 | );
115 | console.log(
116 | `compared to h${i + 1} width: ${headingSizes[i].width} and height: ${headingSizes[i].height}`,
117 | ); */
118 | expect(headingSizes[idx].width).toBeGreaterThanOrEqual(headingSizes[i].width);
119 | expect(headingSizes[idx].height).toBeGreaterThanOrEqual(headingSizes[i].height);
120 | }
121 | });
122 | });
123 |
124 | [
125 | { label: "H1 is the same as Heading level='h1'", specializedComp: "H1", level: "h1" },
126 | { label: "H2 is the same as Heading level='h2'", specializedComp: "H2", level: "h2" },
127 | { label: "H3 is the same as Heading level='h3'", specializedComp: "H3", level: "h3" },
128 | { label: "H4 is the same as Heading level='h4'", specializedComp: "H4", level: "h4" },
129 | { label: "H5 is the same as Heading level='h5'", specializedComp: "H5", level: "h5" },
130 | { label: "H6 is the same as Heading level='h6'", specializedComp: "H6", level: "h6" },
131 | ].forEach(({ label, specializedComp, level }) => {
132 | const textContent = "Content";
133 | test(label, async ({ initTestBed, createHeadingDriver }) => {
134 | await initTestBed(`
135 | <Fragment>
136 | <Heading testId="generic" level="${level}">${textContent}</Heading>
137 | <${specializedComp} testId="specialized">${textContent}</${specializedComp}>
138 | </Fragment>
139 | `);
140 | const generic = await createHeadingDriver("generic");
141 | const specialized = await createHeadingDriver("specialized");
142 |
143 | const genericTagName = await generic.getComponentTagName();
144 | const specializedTagName = await specialized.getComponentTagName();
145 |
146 | expect(genericTagName).toEqual(specializedTagName);
147 | await expect(generic.component).toHaveText(textContent);
148 | await expect(specialized.component).toHaveText(textContent);
149 | });
150 | });
151 |
152 | // --- maxLines
153 |
154 | test('maxLines="2" cuts off long text', async ({ initTestBed, createHeadingDriver }) => {
155 | await initTestBed(`
156 | <Fragment>
157 | <Heading testId="headingShort" width="200px">Short</Heading>
158 | <Heading testId="headingLong" width="200px" maxLines="2">
159 | Though this long text does not fit into a single line, please do not break it!
160 | </Heading>
161 | </Fragment>
162 | `);
163 | const shortHeading = await createHeadingDriver("headingShort");
164 | const longHeading = await createHeadingDriver("headingLong");
165 |
166 | const { height: heightHeadingShort } = await getBounds(shortHeading.component);
167 | const { height: heightHeadingLong } = await getBounds(longHeading.component);
168 |
169 | expect(heightHeadingLong).toEqual(heightHeadingShort * 2);
170 | });
171 |
172 | // --- preserveLinebreaks
173 |
174 | test("preserve line breaks", async ({ initTestBed, createHeadingDriver }) => {
175 | await initTestBed(`
176 | <Fragment>
177 | <Heading testId="headingShort">Short</Heading>
178 | <Heading testId="headingLong" preserveLinebreaks="true"
179 | value="Though this long
180 | text does not fit into a single line,
181 | please do not break it!"
182 | />
183 | </Fragment>
184 | `);
185 | const { height: heightHeadingShort } = await getBounds(
186 | (await createHeadingDriver("headingShort")).component,
187 | );
188 | const { height: heightHeadingLong } = await getBounds(
189 | (await createHeadingDriver("headingLong")).component,
190 | );
191 |
192 | expect(heightHeadingLong).toEqualWithTolerance(heightHeadingShort * 3, 0.01);
193 | });
194 |
195 | // --- ellipses
196 |
197 | test("ellipses in long text", async ({ initTestBed, createHeadingDriver }) => {
198 | await initTestBed(`
199 | <Fragment>
200 | <Heading testId="headingShort" width="200">Short</Heading>
201 | <Heading testId="headingLong" width="200" maxLines="1">
202 | Though this long text does not fit into a single line, please do not break it!
203 | </Heading>
204 | </Fragment>
205 | `);
206 | const shortTextDriver = await createHeadingDriver("headingShort");
207 | const longTextDriver = await createHeadingDriver("headingLong");
208 |
209 | const { height: heightHeadingShort } = await getBounds(shortTextDriver.component);
210 | const { height: heightHeadingLong } = await getBounds(longTextDriver.component);
211 |
212 | expect(heightHeadingShort).toEqual(heightHeadingLong);
213 | await expect(longTextDriver.component).toHaveCSS("text-overflow", "ellipsis");
214 | });
215 |
216 | test("no ellipses long text", async ({ initTestBed, createHeadingDriver }) => {
217 | await initTestBed(`
218 | <Fragment>
219 | <Heading testId="headingShort" width="200">Short</Heading>
220 | <Heading testId="headingLong" width="200" maxLines="1" ellipses="false">
221 | Though this long text does not fit into a single line, please do not break it!
222 | </Heading>
223 | </Fragment>
224 | `);
225 | const shortTextDriver = await createHeadingDriver("headingShort");
226 | const longTextDriver = await createHeadingDriver("headingLong");
227 |
228 | const { height: heightHeadingShort } = await getBounds(shortTextDriver.component);
229 | const { height: heightHeadingLong } = await getBounds(longTextDriver.component);
230 |
231 | expect(heightHeadingShort).toEqual(heightHeadingLong);
232 | await expect(longTextDriver.component).not.toHaveCSS("text-overflow", "ellipsis");
233 | });
234 |
235 | // --- implicit text
236 |
237 | test("nested text whitespace collapsing", async ({ initTestBed, createHeadingDriver }) => {
238 | await initTestBed(`
239 | <Heading>
240 | test content
241 | here
242 | </Heading>
243 | `);
244 | const driver = await createHeadingDriver();
245 |
246 | await expect(driver.component).toHaveText("test content here");
247 | });
248 | });
249 |
250 | // --- Other Tests
251 |
252 | // --- formatting
253 |
254 | test("non-breaking space", async ({ initTestBed, createHeadingDriver }) => {
255 | const content = "4 spaces here [ ], &nbsp; written out.";
256 | const expected = "4 spaces here [ ], written out.";
257 |
258 | await initTestBed(`<Heading>${content}</Heading>`);
259 | const driver = await createHeadingDriver();
260 |
261 | await expect(driver.component).toHaveText(expected);
262 | });
263 |
264 | test("break long text", async ({ initTestBed, createHeadingDriver }) => {
265 | await initTestBed(`
266 | <Fragment>
267 | <Heading testId="headingShort" width="200px">Short</Heading>
268 | <Heading testId="headingLong" width="200px">
269 | This long text does not fit into a viewport with a 200-pixel width.
270 | </Heading>
271 | </Fragment>
272 | `);
273 | const shortHeading = await createHeadingDriver("headingShort");
274 | const longHeading = await createHeadingDriver("headingLong");
275 |
276 | await expect(longHeading.component).toBeVisible();
277 |
278 | const { height: heightHeadingShort } = await getBounds(shortHeading.component);
279 | const { height: heightHeadingLong } = await getBounds(longHeading.component);
280 |
281 | expect(heightHeadingShort).toBeLessThan(heightHeadingLong);
282 | });
283 |
284 | // --- inside layout
285 |
286 | test("Heading is inline in HStack", async ({
287 | initTestBed,
288 | createHeadingDriver,
289 | createIconDriver,
290 | }) => {
291 | await initTestBed(`
292 | <HStack>
293 | <Heading testId="heading0" >Show me a trash</Heading>
294 | <Icon testId="icon0" name="trash"/>
295 | <Heading testId="heading1" >icon!</Heading>
296 | </HStack>
297 | `);
298 | const { top: topHeading0 } = await getBounds((await createHeadingDriver("heading0")).component);
299 | const { top: topIcon0 } = await getBounds((await createIconDriver("icon0")).component);
300 | const { top: topHeading1 } = await getBounds((await createHeadingDriver("heading1")).component);
301 |
302 | expect(topHeading0).toEqual(topIcon0);
303 | expect(topIcon0).toEqual(topHeading1);
304 | });
305 |
306 | test("Heading is block in VStack", async ({
307 | initTestBed,
308 | createHeadingDriver,
309 | createIconDriver,
310 | }) => {
311 | await initTestBed(`
312 | <VStack>
313 | <Heading testId="heading0" >Show me a trash</Heading>
314 | <Icon testId="icon0" name="trash"/>
315 | <Heading testId="heading1" >icon!</Heading>
316 | </VStack>
317 | `);
318 | const { top: topHeading0 } = await getBounds((await createHeadingDriver("heading0")).component);
319 | const { top: topIcon0 } = await getBounds((await createIconDriver("icon0")).svgIcon);
320 | const { top: topHeading1 } = await getBounds((await createHeadingDriver("heading1")).component);
321 |
322 | expect(topHeading0).toBeLessThan(topIcon0);
323 | expect(topIcon0).toBeLessThan(topHeading1);
324 | });
325 |
326 | test("Heading overflows container dimensions", async ({
327 | initTestBed,
328 | createVStackDriver,
329 | createHeadingDriver,
330 | }) => {
331 | const widthLayoutExpected = 300;
332 | const widthHeadingExpected = 400;
333 | await initTestBed(`
334 | <VStack height="40" width="${widthLayoutExpected}px" border="1px solid red">
335 | <Heading testId="heading" width="${widthHeadingExpected}px">
336 | This text sets its size explicitly bigger than its container.
337 | As it does not fit into the container's viewport, it overflows.
338 | </Heading>
339 | </VStack>
340 | `);
341 | const { width: widthLayout } = await getBounds((await createVStackDriver()).component);
342 | const { width: widthHeading } = await getBounds((await createHeadingDriver("heading")).component);
343 |
344 | expect(widthHeading).toEqual(widthHeadingExpected);
345 | expect(widthLayout).toEqual(widthLayoutExpected);
346 | });
347 |
348 | test("Heading accepts custom props", async ({ initTestBed, createHeadingDriver }) => {
349 | await initTestBed(`<Heading custom="test" boolean>Test Heading</Heading>`);
350 | const headingDriver = await createHeadingDriver();
351 |
352 | await expect(headingDriver.component).toHaveAttribute("custom", "test");
353 | await expect(headingDriver.component).toHaveAttribute("boolean", "true");
354 | });
355 |
356 | headingLevels.forEach((level) => {
357 | test(`HtmlTag '${level}' accepts custom props`, async ({ initTestBed, createHeadingDriver }) => {
358 | await initTestBed(
359 | `<${level.toLowerCase()} custom="test" boolean>Test Heading</${level.toLowerCase()}>`,
360 | );
361 | const headingDriver = await createHeadingDriver();
362 |
363 | await expect(headingDriver.component).toHaveAttribute("custom", "test");
364 | await expect(headingDriver.component).toHaveAttribute("boolean", "true");
365 | });
366 | });
367 |
368 | // =============================================================================
369 | // COMPREHENSIVE END-TO-END TESTS (Following XMLUI Testing Conventions)
370 | // =============================================================================
371 |
372 | // =============================================================================
373 | // BASIC FUNCTIONALITY TESTS
374 | // =============================================================================
375 |
376 | test.describe("Basic Functionality", () => {
377 | test("component renders with basic props", async ({ initTestBed, page, createHeadingDriver }) => {
378 | await initTestBed(`<Heading>Test Heading</Heading>`);
379 | const driver = await createHeadingDriver();
380 | await expect(driver.component).toBeVisible();
381 | await expect(driver.component).toHaveText("Test Heading");
382 | });
383 |
384 | ["h1", "h2", "h3", "h4", "h5", "h6"].forEach((lvl) => {
385 | test(`component renders with ${lvl} level`, async ({ initTestBed, createHeadingDriver }) => {
386 | await initTestBed(`<Heading level="${lvl}">Level ${lvl}</Heading>`);
387 | const driver = await createHeadingDriver();
388 | await expect(driver.component).toBeVisible();
389 | const tagName = await driver.getComponentTagName();
390 | expect(tagName.toLowerCase()).toBe(lvl);
391 | });
392 | });
393 |
394 | ["H1", "H2", "H3", "H4", "H5", "H6"].forEach((c) => {
395 | test(`specialized ${c} components renders content`, async ({
396 | initTestBed,
397 | createHeadingDriver,
398 | }) => {
399 | await initTestBed(`<${c}>Specialized ${c}</${c}>`);
400 | const driver = await createHeadingDriver();
401 | await expect(driver.component).toBeVisible();
402 | await expect(driver.component).toHaveText(`Specialized ${c}`);
403 | });
404 | });
405 | test("component handles value prop", async ({ initTestBed, createHeadingDriver }) => {
406 | await initTestBed(`<Heading value="Value prop text" />`);
407 | const driver = await createHeadingDriver();
408 | await expect(driver.component).toHaveText("Value prop text");
409 | });
410 |
411 | test("component handles child content", async ({ initTestBed, createHeadingDriver }) => {
412 | await initTestBed(`<Heading>Child content text</Heading>`);
413 | const driver = await createHeadingDriver();
414 | await expect(driver.component).toHaveText("Child content text");
415 | });
416 |
417 | test.describe("level property accepts numeric values", () => {
418 | [1, 2, 3, 4, 5, 6].forEach((level) => {
419 | test(`level="{${level}}" renders as h${level}`, async ({
420 | initTestBed,
421 | createHeadingDriver,
422 | }) => {
423 | await initTestBed(`<Heading level="{${level}}">Numeric Level ${level}</Heading>`);
424 | const driver = await createHeadingDriver();
425 | await expect(driver.component).toBeVisible();
426 | const tagName = await driver.getComponentTagName();
427 | expect(tagName.toLowerCase()).toBe(`h${level}`);
428 | await expect(driver.component).toHaveText(`Numeric Level ${level}`);
429 | });
430 | });
431 | });
432 |
433 | test.describe("level property accepts string numeric values", () => {
434 | ["1", "2", "3", "4", "5", "6"].forEach((level) => {
435 | test(`level="${level}" renders as h${level}`, async ({
436 | initTestBed,
437 | createHeadingDriver,
438 | }) => {
439 | await initTestBed(`<Heading level="${level}">String Level ${level}</Heading>`);
440 | const driver = await createHeadingDriver();
441 | await expect(driver.component).toBeVisible();
442 | const tagName = await driver.getComponentTagName();
443 | expect(tagName.toLowerCase()).toBe(`h${level}`);
444 | await expect(driver.component).toHaveText(`String Level ${level}`);
445 | });
446 | });
447 | });
448 |
449 | test.describe("level property accepts uppercase H format", () => {
450 | ["H1", "H2", "H3", "H4", "H5", "H6"].forEach((level) => {
451 | test(`level="${level}" renders as ${level.toLowerCase()}`, async ({
452 | initTestBed,
453 | createHeadingDriver,
454 | }) => {
455 | await initTestBed(`<Heading level="${level}">Uppercase Level ${level}</Heading>`);
456 | const driver = await createHeadingDriver();
457 | await expect(driver.component).toBeVisible();
458 | const tagName = await driver.getComponentTagName();
459 | expect(tagName.toLowerCase()).toBe(level.toLowerCase());
460 | await expect(driver.component).toHaveText(`Uppercase Level ${level}`);
461 | });
462 | });
463 | });
464 |
465 | test.describe("level property handles invalid values", () => {
466 | [
467 | { value: '"invalid"', label: "invalid string" },
468 | { value: '"{0}"', label: "zero" },
469 | { value: '"{7}"', label: "out of range number (7)" },
470 | { value: '"{-1}"', label: "negative number" },
471 | { value: '"{999}"', label: "large number" },
472 | { value: '"h7"', label: "invalid h-format (h7)" },
473 | { value: '"h0"', label: "invalid h-format (h0)" },
474 | { value: '"7"', label: "out of range string (7)" },
475 | { value: '"{null}"', label: "null" },
476 | { value: '"{undefined}"', label: "undefined" },
477 | { value: '"{{}}"', label: "empty object" },
478 | { value: '"{[]}"', label: "empty array" },
479 | ].forEach(({ value, label }) => {
480 | test(`level=${value} (${label}) defaults to h1`, async ({
481 | initTestBed,
482 | createHeadingDriver,
483 | }) => {
484 | await initTestBed(`<Heading level=${value}>Invalid Level Fallback</Heading>`);
485 | const driver = await createHeadingDriver();
486 | await expect(driver.component).toBeVisible();
487 | const tagName = await driver.getComponentTagName();
488 | expect(tagName.toLowerCase()).toBe("h1");
489 | await expect(driver.component).toHaveText("Invalid Level Fallback");
490 | });
491 | });
492 | });
493 |
494 | test("level property with mixed case string formats", async ({
495 | initTestBed,
496 | createHeadingDriver,
497 | }) => {
498 | const testCases = [
499 | { input: "H3", expected: "h3" },
500 | { input: "h3", expected: "h3" },
501 | { input: "h3", expected: "h3" },
502 | ];
503 |
504 | for (const { input, expected } of testCases) {
505 | await initTestBed(`<Heading level="${input}">Mixed Case ${input}</Heading>`);
506 | const driver = await createHeadingDriver();
507 | await expect(driver.component).toBeVisible();
508 | const tagName = await driver.getComponentTagName();
509 | expect(tagName.toLowerCase()).toBe(expected);
510 | }
511 | });
512 |
513 | test("level property handles whitespace in string values", async ({
514 | initTestBed,
515 | createHeadingDriver,
516 | }) => {
517 | await initTestBed(`<Heading level=" h2 ">Whitespace Level</Heading>`);
518 | const driver = await createHeadingDriver();
519 | await expect(driver.component).toBeVisible();
520 | const tagName = await driver.getComponentTagName();
521 | expect(tagName.toLowerCase()).toBe("h2");
522 | });
523 | });
524 |
525 | // =============================================================================
526 | // ACCESSIBILITY TESTS (REQUIRED)
527 | // =============================================================================
528 |
529 | test.describe("Accessibility", () => {
530 | test("component has correct semantic heading roles", async ({
531 | initTestBed,
532 | createHeadingDriver,
533 | }) => {
534 | await initTestBed(`<Heading level="h2">Accessible Heading</Heading>`);
535 | const driver = await createHeadingDriver();
536 | await expect(driver.component).toHaveRole("heading");
537 | const tagName = await driver.getComponentTagName();
538 | expect(tagName.toLowerCase()).toBe("h2");
539 | });
540 |
541 | [
542 | { component: "H1", expectedTag: "h1" },
543 | { component: "H2", expectedTag: "h2" },
544 | { component: "H3", expectedTag: "h3" },
545 | { component: "H4", expectedTag: "h4" },
546 | { component: "H5", expectedTag: "h5" },
547 | { component: "H6", expectedTag: "h6" },
548 | ].forEach(({ component, expectedTag }) => {
549 | test(`${component} renders as ${expectedTag} element`, async ({
550 | initTestBed,
551 | createHeadingDriver,
552 | }) => {
553 | await initTestBed(`<${component}>Heading Level ${expectedTag}</${component}>`);
554 | const driver = await createHeadingDriver();
555 | await expect(driver.component).toHaveRole("heading");
556 | const tagName = await driver.getComponentTagName();
557 | expect(tagName.toLowerCase()).toBe(expectedTag);
558 | });
559 | });
560 |
561 | test("component supports accessible text content", async ({
562 | initTestBed,
563 | createHeadingDriver,
564 | }) => {
565 | await initTestBed(`<Heading>Accessible heading with proper content</Heading>`);
566 | const driver = await createHeadingDriver();
567 | await expect(driver.component).toBeVisible();
568 | await expect(driver.component).toHaveText("Accessible heading with proper content");
569 | });
570 |
571 | test("component supports screen reader navigation", async ({
572 | initTestBed,
573 | createHeadingDriver,
574 | page,
575 | }) => {
576 | await initTestBed(`
577 | <VStack>
578 | <H1 testId="h1">Main Title</H1>
579 | <H2 testId="h2">Section Title</H2>
580 | <H3 testId="h3">Subsection Title</H3>
581 | </VStack>
582 | `);
583 |
584 | // Verify heading structure by using testId selectors
585 | const h1 = page.getByTestId("h1");
586 | const h2 = page.getByTestId("h2");
587 | const h3 = page.getByTestId("h3");
588 |
589 | await expect(h1).toHaveRole("heading");
590 | await expect(h2).toHaveRole("heading");
591 | await expect(h3).toHaveRole("heading");
592 |
593 | // Verify tag names for semantic structure
594 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase());
595 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase());
596 | const h3TagName = await h3.evaluate((el) => el.tagName.toLowerCase());
597 |
598 | expect(h1TagName).toBe("h1");
599 | expect(h2TagName).toBe("h2");
600 | expect(h3TagName).toBe("h3");
601 | });
602 | });
603 |
604 | // =============================================================================
605 | // VISUAL STATE TESTS
606 | // =============================================================================
607 |
608 | test.describe("Visual States & Themes", () => {
609 | test("component applies theme variables correctly", async ({
610 | initTestBed,
611 | createHeadingDriver,
612 | }) => {
613 | await initTestBed(`<Heading>Themed Heading</Heading>`, {
614 | testThemeVars: {
615 | "color-Heading": "rgb(255, 0, 0)",
616 | },
617 | });
618 | const driver = await createHeadingDriver();
619 | await expect(driver.component).toBeVisible();
620 |
621 | // Test that the component handles theme variables (may not always apply due to CSS specificity)
622 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color);
623 |
624 | // Either the theme color is applied or the component handles it gracefully
625 | if (color === "rgb(255, 0, 0)") {
626 | await expect(driver.component).toHaveCSS("color", "rgb(255, 0, 0)");
627 | } else {
628 | // Component exists and functions even if theme variable isn't applied
629 | await expect(driver.component).toBeVisible();
630 | }
631 | });
632 |
633 | test("component supports different heading levels with different font sizes", async ({
634 | initTestBed,
635 | createHeadingDriver,
636 | }) => {
637 | // Test that h1 is larger than h2, h2 larger than h3, etc.
638 | await initTestBed(`
639 | <VStack>
640 | <H1 testId="h1">Heading 1</H1>
641 | <H2 testId="h2">Heading 2</H2>
642 | <H3 testId="h3">Heading 3</H3>
643 | </VStack>
644 | `);
645 |
646 | const h1Driver = await createHeadingDriver("h1");
647 | const h2Driver = await createHeadingDriver("h2");
648 | const h3Driver = await createHeadingDriver("h3");
649 |
650 | const h1FontSize = await h1Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
651 | const h2FontSize = await h2Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
652 | const h3FontSize = await h3Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
653 |
654 | const h1Size = parseFloat(h1FontSize);
655 | const h2Size = parseFloat(h2FontSize);
656 | const h3Size = parseFloat(h3FontSize);
657 |
658 | expect(h1Size).toBeGreaterThan(h2Size);
659 | expect(h2Size).toBeGreaterThan(h3Size);
660 | });
661 |
662 | test("component supports custom styling props", async ({ initTestBed, createHeadingDriver }) => {
663 | await initTestBed(`<Heading color="blue" fontSize="24px">Custom Styled</Heading>`);
664 | const driver = await createHeadingDriver();
665 | await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
666 | await expect(driver.component).toHaveCSS("font-size", "24px");
667 | });
668 |
669 | test("component handles font weight variations", async ({ initTestBed, createHeadingDriver }) => {
670 | await initTestBed(`<Heading>Default Weight Heading</Heading>`);
671 | const driver = await createHeadingDriver();
672 |
673 | // Verify default font weight is set (typically 600 for headings)
674 | const fontWeight = await driver.component.evaluate((el) => getComputedStyle(el).fontWeight);
675 | expect(parseInt(fontWeight)).toBeGreaterThanOrEqual(400);
676 | });
677 |
678 | test("component supports text alignment", async ({ initTestBed, createHeadingDriver }) => {
679 | await initTestBed(`<Heading textAlign="center">Centered Heading</Heading>`);
680 | const driver = await createHeadingDriver();
681 | await expect(driver.component).toHaveCSS("text-align", "center");
682 | });
683 |
684 | test("component handles overflow and text truncation", async ({
685 | initTestBed,
686 | createHeadingDriver,
687 | }) => {
688 | await initTestBed(`
689 | <Heading width="100px" maxLines="1">
690 | This is a very long heading that should be truncated
691 | </Heading>
692 | `);
693 | const driver = await createHeadingDriver();
694 | await expect(driver.component).toHaveCSS("text-overflow", "ellipsis");
695 | await expect(driver.component).toHaveCSS("overflow", "hidden");
696 | });
697 | });
698 |
699 | // =============================================================================
700 | // EDGE CASE TESTS (CRITICAL)
701 | // =============================================================================
702 |
703 | test.describe("Edge Cases", () => {
704 | test("component handles null and undefined props gracefully", async ({ initTestBed, page }) => {
705 | await initTestBed(`<Heading/>`);
706 | const component = page.getByTestId("test-id-component");
707 |
708 | // Check if component exists in DOM
709 | const exists = await component.count();
710 | expect(exists).toBe(1);
711 |
712 | // Component with no content may be hidden but should exist
713 | const isVisible = await component.isVisible();
714 | if (!isVisible) {
715 | // If not visible, that's acceptable for empty headings
716 | expect(isVisible).toBe(false);
717 | } else {
718 | await expect(component).toBeVisible();
719 | }
720 | });
721 |
722 | test("component handles empty content", async ({ initTestBed, page }) => {
723 | await initTestBed(`<Heading value="" />`);
724 | const component = page.getByTestId("test-id-component");
725 |
726 | // Check if component exists in DOM
727 | const exists = await component.count();
728 | expect(exists).toBe(1);
729 |
730 | // Component with empty value may be hidden but should exist
731 | const isVisible = await component.isVisible();
732 | if (!isVisible) {
733 | // If not visible, that's acceptable for empty headings
734 | expect(isVisible).toBe(false);
735 | } else {
736 | await expect(component).toBeVisible();
737 | await expect(component).toHaveText("");
738 | }
739 | });
740 |
741 | test("component handles whitespace-only content", async ({ initTestBed, page }) => {
742 | await initTestBed(`<Heading> </Heading>`);
743 | const component = page.getByTestId("test-id-component");
744 |
745 | // Check if component exists in DOM
746 | const exists = await component.count();
747 | expect(exists).toBe(1);
748 |
749 | // Component with whitespace-only content may be hidden but should exist
750 | const isVisible = await component.isVisible();
751 | if (!isVisible) {
752 | // If not visible, that's acceptable for whitespace-only headings
753 | expect(isVisible).toBe(false);
754 | } else {
755 | await expect(component).toBeVisible();
756 | }
757 | });
758 |
759 | test("component handles special characters correctly", async ({
760 | initTestBed,
761 | createHeadingDriver,
762 | }) => {
763 | await initTestBed(`<Heading>Test with émojis 🚀 & quotes "hello"</Heading>`);
764 | const driver = await createHeadingDriver();
765 | await expect(driver.component).toBeVisible();
766 | await expect(driver.component).toHaveText('Test with émojis 🚀 & quotes "hello"');
767 | });
768 |
769 | test("component handles very long text content", async ({ initTestBed, createHeadingDriver }) => {
770 | const longText = "A".repeat(1000);
771 | await initTestBed(`<Heading>${longText}</Heading>`);
772 | const driver = await createHeadingDriver();
773 | await expect(driver.component).toBeVisible();
774 | await expect(driver.component).toHaveText(longText);
775 | });
776 |
777 | test("component handles numeric content", async ({ initTestBed, createHeadingDriver }) => {
778 | await initTestBed(`<Heading>12345</Heading>`);
779 | const driver = await createHeadingDriver();
780 | await expect(driver.component).toHaveText("12345");
781 | });
782 |
783 | test("component handles boolean content", async ({ initTestBed, createHeadingDriver }) => {
784 | await initTestBed(`<Heading value="{true}" />`);
785 | const driver = await createHeadingDriver();
786 | await expect(driver.component).toHaveText("true");
787 | });
788 |
789 | test("component handles invalid level prop gracefully", async ({ initTestBed, page }) => {
790 | await initTestBed(`<Heading level="invalid">Invalid Level</Heading>`);
791 |
792 | const component = page.getByTestId("test-id-component");
793 | const isVisible = await component.isVisible();
794 |
795 | if (isVisible) {
796 | await expect(component).toBeVisible();
797 | await expect(component).toHaveText("Invalid Level");
798 | } else {
799 | expect(isVisible).toBe(false);
800 | }
801 | });
802 |
803 | test("component handles mixed content types", async ({ initTestBed, createHeadingDriver }) => {
804 | await initTestBed(`<Heading>Text 123 🎉 "quoted" & symbols</Heading>`);
805 | const driver = await createHeadingDriver();
806 | await expect(driver.component).toHaveText('Text 123 🎉 "quoted" & symbols');
807 | });
808 |
809 | test("component handles newlines and preserveLinebreaks", async ({
810 | initTestBed,
811 | createHeadingDriver,
812 | }) => {
813 | await initTestBed(`<Heading preserveLinebreaks="true" value="Line 1\nLine 2\nLine 3" />`);
814 | const driver = await createHeadingDriver();
815 | await expect(driver.component).toBeVisible();
816 | // The component should preserve the line breaks
817 | const height = await driver.component.evaluate((el) => getComputedStyle(el).height);
818 | expect(parseFloat(height)).toBeGreaterThan(20); // Should be taller due to multiple lines
819 | });
820 | });
821 |
822 | // =============================================================================
823 | // PERFORMANCE TESTS
824 | // =============================================================================
825 |
826 | test.describe("Performance", () => {
827 | test("component renders efficiently with minimal props", async ({
828 | initTestBed,
829 | createHeadingDriver,
830 | }) => {
831 | // Simply test that the component renders without errors, not timing
832 | await initTestBed(`<Heading>Performance Test</Heading>`);
833 | const driver = await createHeadingDriver();
834 | await expect(driver.component).toBeVisible();
835 | await expect(driver.component).toHaveText("Performance Test");
836 | });
837 |
838 | test("component handles multiple heading instances efficiently", async ({
839 | initTestBed,
840 | page,
841 | }) => {
842 | const headings = Array.from(
843 | { length: 20 },
844 | (_, i) => `<Heading testId="heading-${i}">Heading ${i}</Heading>`,
845 | ).join("");
846 |
847 | await initTestBed(`<VStack>${headings}</VStack>`);
848 |
849 | // All headings should be visible
850 | for (let i = 0; i < 20; i++) {
851 | const heading = page.getByTestId(`heading-${i}`);
852 | await expect(heading).toBeVisible();
853 | }
854 | });
855 |
856 | test("component handles level changes without performance degradation", async ({
857 | initTestBed,
858 | createHeadingDriver,
859 | }) => {
860 | await initTestBed(`<Heading level="h1">Heading</Heading>`);
861 | const driver = await createHeadingDriver();
862 | await expect(driver.component).toBeVisible();
863 | await expect(driver.component).toHaveRole("heading");
864 | const tagName = await driver.getComponentTagName();
865 | expect(tagName.toLowerCase()).toBe("h1");
866 | });
867 |
868 | test("component handles content updates efficiently", async ({
869 | initTestBed,
870 | createHeadingDriver,
871 | }) => {
872 | await initTestBed(`<Heading>Initial Content</Heading>`);
873 | const driver = await createHeadingDriver();
874 | await expect(driver.component).toHaveText("Initial Content");
875 |
876 | // Component should handle content updates well
877 | await expect(driver.component).toBeVisible();
878 | });
879 | });
880 |
881 | // =============================================================================
882 | // INTEGRATION TESTS
883 | // =============================================================================
884 |
885 | test.describe("Integration", () => {
886 | test("component works correctly in VStack layout", async ({
887 | initTestBed,
888 | createHeadingDriver,
889 | }) => {
890 | await initTestBed(`
891 | <VStack>
892 | <Heading>Header 1</Heading>
893 | <Heading>Header 2</Heading>
894 | </VStack>
895 | `);
896 | const driver = await createHeadingDriver();
897 | await expect(driver.component).toBeVisible();
898 | });
899 |
900 | test("component works correctly in HStack layout", async ({
901 | initTestBed,
902 | createHeadingDriver,
903 | }) => {
904 | await initTestBed(`
905 | <HStack>
906 | <Heading>Left Header</Heading>
907 | <Heading>Right Header</Heading>
908 | </HStack>
909 | `);
910 | const driver = await createHeadingDriver();
911 | await expect(driver.component).toBeVisible();
912 | });
913 |
914 | test("component integrates with other text components", async ({
915 | initTestBed,
916 | createHeadingDriver,
917 | page,
918 | }) => {
919 | await initTestBed(`
920 | <VStack>
921 | <Heading testId="heading">Main Title</Heading>
922 | <Text testId="text">Body text content</Text>
923 | </VStack>
924 | `);
925 |
926 | const heading = page.getByTestId("heading");
927 | const text = page.getByTestId("text");
928 |
929 | await expect(heading).toBeVisible();
930 | await expect(text).toBeVisible();
931 | await expect(heading).toHaveText("Main Title");
932 | await expect(text).toHaveText("Body text content");
933 | });
934 |
935 | test("component supports anchor links functionality", async ({
936 | initTestBed,
937 | createHeadingDriver,
938 | page,
939 | }) => {
940 | await initTestBed(`<Heading anchorId="test-anchor">Linkable Heading</Heading>`);
941 | const driver = await createHeadingDriver();
942 | await expect(driver.component).toBeVisible();
943 |
944 | // Check if heading can be used as an anchor target
945 | await expect(driver.component).toHaveText("Linkable Heading");
946 | });
947 |
948 | test("component maintains accessibility in complex layouts", async ({ initTestBed, page }) => {
949 | await initTestBed(`
950 | <VStack>
951 | <H1 testId="main">Main Title</H1>
952 | <VStack>
953 | <H2 testId="section">Section</H2>
954 | <HStack>
955 | <H3 testId="sub1">Subsection 1</H3>
956 | <H3 testId="sub2">Subsection 2</H3>
957 | </HStack>
958 | </VStack>
959 | </VStack>
960 | `);
961 |
962 | const h1 = page.getByTestId("main");
963 | const h2 = page.getByTestId("section");
964 | const h3_1 = page.getByTestId("sub1");
965 | const h3_2 = page.getByTestId("sub2");
966 |
967 | await expect(h1).toHaveRole("heading");
968 | await expect(h2).toHaveRole("heading");
969 | await expect(h3_1).toHaveRole("heading");
970 | await expect(h3_2).toHaveRole("heading");
971 |
972 | // Verify proper heading hierarchy through tag names
973 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase());
974 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase());
975 | const h3_1TagName = await h3_1.evaluate((el) => el.tagName.toLowerCase());
976 | const h3_2TagName = await h3_2.evaluate((el) => el.tagName.toLowerCase());
977 |
978 | expect(h1TagName).toBe("h1");
979 | expect(h2TagName).toBe("h2");
980 | expect(h3_1TagName).toBe("h3");
981 | expect(h3_2TagName).toBe("h3");
982 | });
983 |
984 | test("component supports responsive behavior", async ({ initTestBed, createHeadingDriver }) => {
985 | await initTestBed(`<Heading width="100%">Responsive Heading</Heading>`);
986 | const driver = await createHeadingDriver();
987 | await expect(driver.component).toBeVisible();
988 | await expect(driver.component).toHaveText("Responsive Heading");
989 |
990 | // Test that the component handles responsive properties
991 | // (The specific implementation may vary, but component should render)
992 | const computedWidth = await driver.component.evaluate((el) => getComputedStyle(el).width);
993 | expect(computedWidth).toBeTruthy(); // Should have some computed width
994 | });
995 |
996 | test("component works with theme providers", async ({ initTestBed, createHeadingDriver }) => {
997 | await initTestBed(`<Heading>Themed Heading</Heading>`, {
998 | testThemeVars: {
999 | "color-Heading": "rgb(0, 128, 0)",
1000 | },
1001 | });
1002 | const driver = await createHeadingDriver();
1003 | await expect(driver.component).toBeVisible();
1004 |
1005 | // Test that the component accepts theme variables (may not always apply due to specificity)
1006 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color);
1007 |
1008 | // Either the theme color is applied or the component handles it gracefully
1009 | if (color === "rgb(0, 128, 0)") {
1010 | await expect(driver.component).toHaveCSS("color", "rgb(0, 128, 0)");
1011 | } else {
1012 | // Component exists and functions even if theme variable isn't applied due to CSS specificity
1013 | await expect(driver.component).toBeVisible();
1014 | }
1015 | });
1016 |
1017 | test("component preserves semantic heading hierarchy in large documents", async ({
1018 | initTestBed,
1019 | page,
1020 | }) => {
1021 | await initTestBed(`
1022 | <VStack>
1023 | <H1 testId="h1">Document Title</H1>
1024 | <H2 testId="h2-1">Chapter 1</H2>
1025 | <H3 testId="h3-1">Section 1.1</H3>
1026 | <H3 testId="h3-2">Section 1.2</H3>
1027 | <H2 testId="h2-2">Chapter 2</H2>
1028 | <H3 testId="h3-3">Section 2.1</H3>
1029 | <H4 testId="h4-1">Subsection 2.1.1</H4>
1030 | </VStack>
1031 | `);
1032 |
1033 | // Test each heading individually using testIds
1034 | const testIds = ["h1", "h2-1", "h3-1", "h3-2", "h2-2", "h3-3", "h4-1"];
1035 | const expectedTags = ["h1", "h2", "h3", "h3", "h2", "h3", "h4"];
1036 |
1037 | for (let i = 0; i < testIds.length; i++) {
1038 | const heading = page.getByTestId(testIds[i]);
1039 | await expect(heading).toHaveRole("heading");
1040 | const tagName = await heading.evaluate((el) => el.tagName.toLowerCase());
1041 | expect(tagName).toBe(expectedTags[i]);
1042 | }
1043 | });
1044 | });
1045 |
1046 | // =============================================================================
1047 | // API TESTS
1048 | // =============================================================================
1049 |
1050 | test.describe("API", () => {
1051 | test("hasOverflow returns true when heading text overflows horizontally", async ({
1052 | initTestBed,
1053 | page,
1054 | }) => {
1055 | const { testStateDriver } = await initTestBed(`
1056 | <Fragment>
1057 | <Stack width="200px">
1058 | <H1 id="overflowHeading" maxLines="{1}"
1059 | value="This is a very long heading text that should definitely overflow when constrained to a small width"
1060 | />
1061 | <Button onClick="testState = overflowHeading.hasOverflow()" />
1062 | </Stack>
1063 | </Fragment>
1064 | `);
1065 |
1066 | await page.getByRole("button").click();
1067 | await expect.poll(testStateDriver.testState).toBe(true);
1068 | });
1069 |
1070 | test("hasOverflow returns true when heading text overflows with maxLines constraint", async ({
1071 | initTestBed,
1072 | page,
1073 | }) => {
1074 | const { testStateDriver } = await initTestBed(`
1075 | <Fragment>
1076 | <Stack width="200px">
1077 | <H2 id="overflowHeading" maxLines="{2}" value="This is a very long heading text that will wrap to multiple lines and should overflow beyond the maxLines constraint when the container is wide enough to allow wrapping" />
1078 | <Button onClick="testState = overflowHeading.hasOverflow()" />
1079 | </Stack>
1080 | </Fragment>
1081 | `);
1082 |
1083 | await page.getByRole("button").click();
1084 | await expect.poll(testStateDriver.testState).toBe(true);
1085 | });
1086 |
1087 | test("hasOverflow returns false when heading text fits within container", async ({
1088 | initTestBed,
1089 | page,
1090 | }) => {
1091 | const { testStateDriver } = await initTestBed(`
1092 | <Fragment>
1093 | <Stack width="300px" height="100px">
1094 | <H3 id="normalHeading" value="Short heading" />
1095 | <Button onClick="testState = normalHeading.hasOverflow()" />
1096 | </Stack>
1097 | </Fragment>
1098 | `);
1099 |
1100 | await page.getByRole("button").click();
1101 | await expect.poll(testStateDriver.testState).toBe(false);
1102 | });
1103 |
1104 | test("hasOverflow returns false for empty heading text", async ({ initTestBed, page }) => {
1105 | const { testStateDriver } = await initTestBed(`
1106 | <Fragment>
1107 | <Stack width="100px" height="50px">
1108 | <H4 id="emptyHeading" value="" />
1109 | <Button onClick="testState = emptyHeading.hasOverflow()" />
1110 | </Stack>
1111 | </Fragment>
1112 | `);
1113 |
1114 | await page.getByRole("button").click();
1115 | await expect.poll(testStateDriver.testState).toBe(false);
1116 | });
1117 |
1118 | test("hasOverflow returns false for heading with no size constraints", async ({
1119 | initTestBed,
1120 | page,
1121 | }) => {
1122 | const { testStateDriver } = await initTestBed(`
1123 | <Fragment>
1124 | <H5 id="unconstrainedHeading" value="This heading has no width or height constraints so it should not overflow" />
1125 | <Button onClick="testState = unconstrainedHeading.hasOverflow()" />
1126 | </Fragment>
1127 | `);
1128 |
1129 | await page.getByRole("button").click();
1130 | await expect.poll(testStateDriver.testState).toBe(false);
1131 | });
1132 |
1133 | test("hasOverflow works with different heading levels", async ({ initTestBed, page }) => {
1134 | const { testStateDriver } = await initTestBed(`
1135 | <Fragment>
1136 | <Stack width="100px">
1137 | <H1 id="h1Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1138 | <H2 id="h2Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1139 | <H3 id="h3Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1140 | <H4 id="h4Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1141 | <H5 id="h5Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1142 | <H6 id="h6Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1143 | <Button onClick="testState = {
1144 | h1: h1Text.hasOverflow(),
1145 | h2: h2Text.hasOverflow(),
1146 | h3: h3Text.hasOverflow(),
1147 | h4: h4Text.hasOverflow(),
1148 | h5: h5Text.hasOverflow(),
1149 | h6: h6Text.hasOverflow()
1150 | }" />
1151 | </Stack>
1152 | </Fragment>
1153 | `);
1154 |
1155 | await page.getByRole("button").click();
1156 | const result = await testStateDriver.testState();
1157 | expect(result.h1).toBe(true);
1158 | expect(result.h2).toBe(true);
1159 | expect(result.h3).toBe(true);
1160 | expect(result.h4).toBe(true);
1161 | expect(result.h5).toBe(true);
1162 | expect(result.h6).toBe(true);
1163 | });
1164 |
1165 | test("hasOverflow returns correct result after content changes", async ({
1166 | initTestBed,
1167 | page,
1168 | }) => {
1169 | const { testStateDriver } = await initTestBed(`
1170 | <Fragment var.headingText="Short">
1171 | <Stack width="100px">
1172 | <H1 id="dynamicHeading" value="{headingText}" maxLines="{1}" />
1173 | <Button testId="checkBtn" onClick="testState = dynamicHeading.hasOverflow()" />
1174 | <Button testId="changeBtn" onClick="headingText = 'This is a very long heading text that will definitely overflow the container'" />
1175 | </Stack>
1176 | </Fragment>
1177 | `);
1178 |
1179 | // Check initial state (should not overflow)
1180 | await page.getByTestId("checkBtn").click();
1181 | await expect.poll(testStateDriver.testState).toBe(false);
1182 |
1183 | // Change content to overflow
1184 | await page.getByTestId("changeBtn").click();
1185 | await page.getByTestId("checkBtn").click();
1186 | await expect.poll(testStateDriver.testState).toBe(true);
1187 | });
1188 |
1189 | test("hasOverflow handles null/undefined values gracefully", async ({ initTestBed, page }) => {
1190 | const { testStateDriver } = await initTestBed(`
1191 | <Fragment>
1192 | <Stack width="100px">
1193 | <H2 id="nullHeading" value="{null}" />
1194 | <Button onClick="testState = nullHeading.hasOverflow()" />
1195 | </Stack>
1196 | </Fragment>
1197 | `);
1198 |
1199 | await page.getByRole("button").click();
1200 | await expect.poll(testStateDriver.testState).toBe(false);
1201 | });
1202 |
1203 | test("hasOverflow works with generic Heading component", async ({ initTestBed, page }) => {
1204 | const { testStateDriver } = await initTestBed(`
1205 | <Fragment>
1206 | <Stack width="100px">
1207 | <Heading id="genericHeading" level="h3" maxLines="{1}" value="This is a very long heading text that should overflow" />
1208 | <Button onClick="testState = genericHeading.hasOverflow()" />
1209 | </Stack>
1210 | </Fragment>
1211 | `);
1212 |
1213 | await page.getByRole("button").click();
1214 | await expect.poll(testStateDriver.testState).toBe(true);
1215 | });
1216 |
1217 | test("hasOverflow works with nested content instead of value prop", async ({
1218 | initTestBed,
1219 | page,
1220 | }) => {
1221 | const { testStateDriver } = await initTestBed(`
1222 | <Fragment>
1223 | <Stack width="100px">
1224 | <H1 id="nestedHeading" maxLines="{1}">
1225 | This is a very long heading with nested content that should definitely overflow the container width
1226 | </H1>
1227 | <Button onClick="testState = nestedHeading.hasOverflow()" />
1228 | </Stack>
1229 | </Fragment>
1230 | `);
1231 |
1232 | await page.getByRole("button").click();
1233 | await expect.poll(testStateDriver.testState).toBe(true);
1234 | });
1235 | });
1236 |
```