This is page 137 of 175. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── cold-items-taste.md │ ├── config.json │ ├── empty-spiders-dress.md │ ├── shy-windows-allow.md │ ├── sour-coins-read.md │ ├── tame-zebras-invite.md │ ├── twenty-jeans-watch.md │ └── warm-spies-melt.md ├── .eslintrc.cjs ├── .github │ ├── build-checklist.png │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows │ ├── deploy-docs-optimized.yml │ ├── deploy-docs.yml │ ├── prepare-versions.yml │ ├── release-packages.yml │ ├── run-all-tests.yml │ └── run-smoke-tests.yml ├── .gitignore ├── .prettierrc.js ├── .vscode │ ├── launch.json │ └── settings.json ├── blog │ ├── .gitignore │ ├── .gitkeep │ ├── CHANGELOG.md │ ├── extensions.ts │ ├── index.html │ ├── index.ts │ ├── package.json │ ├── public │ │ ├── blog │ │ │ ├── images │ │ │ │ ├── blog-page-component.png │ │ │ │ ├── blog-scrabble.png │ │ │ │ ├── integrated-blog-search.png │ │ │ │ └── lorem-ipsum.png │ │ │ ├── lorem-ipsum.md │ │ │ ├── newest-post.md │ │ │ ├── older-post.md │ │ │ └── welcome-to-the-xmlui-blog.md │ │ ├── mockServiceWorker.js │ │ ├── resources │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ └── for-download │ │ │ │ └── xmlui │ │ │ │ └── xmlui-standalone.umd.js │ │ │ ├── github.svg │ │ │ ├── llms.txt │ │ │ ├── logo-dark.svg │ │ │ ├── logo.svg │ │ │ ├── pg-popout.svg │ │ │ └── xmlui-logo.svg │ │ ├── serve.json │ │ └── web.config │ ├── scripts │ │ ├── download-latest-xmlui.js │ │ ├── generate-rss.js │ │ ├── get-releases.js │ │ └── utils.js │ ├── src │ │ ├── components │ │ │ ├── BlogOverview.xmlui │ │ │ ├── BlogPage.xmlui │ │ │ └── PageNotFound.xmlui │ │ ├── config.ts │ │ ├── Main.xmlui │ │ └── themes │ │ ├── docs-theme.ts │ │ ├── earthtone.ts │ │ ├── xmlui-gray-on-default.ts │ │ ├── xmlui-green-on-default.ts │ │ └── xmlui-orange-on-default.ts │ └── tsconfig.json ├── CONTRIBUTING.md ├── docs │ ├── .gitignore │ ├── CHANGELOG.md │ ├── ComponentRefLinks.txt │ ├── content │ │ ├── _meta.json │ │ ├── components │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── APICall.md │ │ │ ├── App.md │ │ │ ├── AppHeader.md │ │ │ ├── AppState.md │ │ │ ├── AutoComplete.md │ │ │ ├── Avatar.md │ │ │ ├── Backdrop.md │ │ │ ├── Badge.md │ │ │ ├── BarChart.md │ │ │ ├── Bookmark.md │ │ │ ├── Breakout.md │ │ │ ├── Button.md │ │ │ ├── Card.md │ │ │ ├── Carousel.md │ │ │ ├── ChangeListener.md │ │ │ ├── Checkbox.md │ │ │ ├── CHStack.md │ │ │ ├── ColorPicker.md │ │ │ ├── Column.md │ │ │ ├── ContentSeparator.md │ │ │ ├── CVStack.md │ │ │ ├── DataSource.md │ │ │ ├── DateInput.md │ │ │ ├── DatePicker.md │ │ │ ├── DonutChart.md │ │ │ ├── DropdownMenu.md │ │ │ ├── EmojiSelector.md │ │ │ ├── ExpandableItem.md │ │ │ ├── FileInput.md │ │ │ ├── FileUploadDropZone.md │ │ │ ├── FlowLayout.md │ │ │ ├── Footer.md │ │ │ ├── Form.md │ │ │ ├── FormItem.md │ │ │ ├── FormSection.md │ │ │ ├── Fragment.md │ │ │ ├── H1.md │ │ │ ├── H2.md │ │ │ ├── H3.md │ │ │ ├── H4.md │ │ │ ├── H5.md │ │ │ ├── H6.md │ │ │ ├── Heading.md │ │ │ ├── HSplitter.md │ │ │ ├── HStack.md │ │ │ ├── Icon.md │ │ │ ├── IFrame.md │ │ │ ├── Image.md │ │ │ ├── Items.md │ │ │ ├── LabelList.md │ │ │ ├── Legend.md │ │ │ ├── LineChart.md │ │ │ ├── Link.md │ │ │ ├── List.md │ │ │ ├── Logo.md │ │ │ ├── Markdown.md │ │ │ ├── MenuItem.md │ │ │ ├── MenuSeparator.md │ │ │ ├── ModalDialog.md │ │ │ ├── NavGroup.md │ │ │ ├── NavLink.md │ │ │ ├── NavPanel.md │ │ │ ├── NoResult.md │ │ │ ├── NumberBox.md │ │ │ ├── Option.md │ │ │ ├── Page.md │ │ │ ├── PageMetaTitle.md │ │ │ ├── Pages.md │ │ │ ├── Pagination.md │ │ │ ├── PasswordInput.md │ │ │ ├── PieChart.md │ │ │ ├── ProgressBar.md │ │ │ ├── Queue.md │ │ │ ├── RadioGroup.md │ │ │ ├── RealTimeAdapter.md │ │ │ ├── Redirect.md │ │ │ ├── Select.md │ │ │ ├── Slider.md │ │ │ ├── Slot.md │ │ │ ├── SpaceFiller.md │ │ │ ├── Spinner.md │ │ │ ├── Splitter.md │ │ │ ├── Stack.md │ │ │ ├── StickyBox.md │ │ │ ├── SubMenuItem.md │ │ │ ├── Switch.md │ │ │ ├── TabItem.md │ │ │ ├── Table.md │ │ │ ├── TableOfContents.md │ │ │ ├── Tabs.md │ │ │ ├── Text.md │ │ │ ├── TextArea.md │ │ │ ├── TextBox.md │ │ │ ├── Theme.md │ │ │ ├── TimeInput.md │ │ │ ├── Timer.md │ │ │ ├── ToneChangerButton.md │ │ │ ├── ToneSwitch.md │ │ │ ├── Tooltip.md │ │ │ ├── Tree.md │ │ │ ├── VSplitter.md │ │ │ ├── VStack.md │ │ │ ├── xmlui-animations │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── Animation.md │ │ │ │ ├── FadeAnimation.md │ │ │ │ ├── FadeInAnimation.md │ │ │ │ ├── FadeOutAnimation.md │ │ │ │ ├── ScaleAnimation.md │ │ │ │ └── SlideInAnimation.md │ │ │ ├── xmlui-pdf │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Pdf.md │ │ │ ├── xmlui-spreadsheet │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Spreadsheet.md │ │ │ └── xmlui-website-blocks │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── Carousel.md │ │ │ ├── HelloMd.md │ │ │ ├── HeroSection.md │ │ │ └── ScrollToTop.md │ │ └── extensions │ │ ├── _meta.json │ │ ├── xmlui-animations │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── Animation.md │ │ │ ├── FadeAnimation.md │ │ │ ├── FadeInAnimation.md │ │ │ ├── FadeOutAnimation.md │ │ │ ├── ScaleAnimation.md │ │ │ └── SlideInAnimation.md │ │ └── xmlui-website-blocks │ │ ├── _meta.json │ │ ├── _overview.md │ │ ├── Carousel.md │ │ ├── HelloMd.md │ │ ├── HeroSection.md │ │ └── ScrollToTop.md │ ├── extensions.ts │ ├── index.html │ ├── index.ts │ ├── package.json │ ├── public │ │ ├── feed.rss │ │ ├── mockServiceWorker.js │ │ ├── pages │ │ │ ├── _meta.json │ │ │ ├── app-structure.md │ │ │ ├── build-editor-component.md │ │ │ ├── build-hello-world-component.md │ │ │ ├── components-intro.md │ │ │ ├── context-variables.md │ │ │ ├── forms.md │ │ │ ├── globals.md │ │ │ ├── glossary.md │ │ │ ├── helper-tags.md │ │ │ ├── hosted-deployment.md │ │ │ ├── howto │ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md │ │ │ │ ├── chain-a-refetch.md │ │ │ │ ├── debug-a-component.md │ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md │ │ │ │ ├── delegate-a-method.md │ │ │ │ ├── do-custom-form-validation.md │ │ │ │ ├── expose-a-method-from-a-component.md │ │ │ │ ├── filter-and-transform-data-from-an-api.md │ │ │ │ ├── group-items-in-list-by-a-property.md │ │ │ │ ├── handle-background-operations.md │ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md │ │ │ │ ├── make-a-set-of-equal-width-cards.md │ │ │ │ ├── make-a-table-responsive.md │ │ │ │ ├── modify-a-value-reported-in-a-column.md │ │ │ │ ├── paginate-a-list.md │ │ │ │ ├── pass-data-to-a-modal-dialog.md │ │ │ │ ├── react-to-button-click-not-keystrokes.md │ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md │ │ │ │ ├── share-a-modaldialog-across-components.md │ │ │ │ ├── sync-selections-between-table-and-list-views.md │ │ │ │ ├── update-ui-optimistically.md │ │ │ │ ├── use-built-in-form-validation.md │ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md │ │ │ ├── howto.md │ │ │ ├── intro.md │ │ │ ├── layout.md │ │ │ ├── markup.md │ │ │ ├── mcp.md │ │ │ ├── modal-dialogs.md │ │ │ ├── news-and-reviews.md │ │ │ ├── reactive-intro.md │ │ │ ├── refactoring.md │ │ │ ├── routing-and-links.md │ │ │ ├── samples │ │ │ │ ├── color-palette.xmlui │ │ │ │ ├── color-values.xmlui │ │ │ │ ├── shadow-sizes.xmlui │ │ │ │ ├── spacing-sizes.xmlui │ │ │ │ ├── swatch.xmlui │ │ │ │ ├── theme-gallery-brief.xmlui │ │ │ │ └── theme-gallery.xmlui │ │ │ ├── scoping.md │ │ │ ├── scripting.md │ │ │ ├── styles-and-themes │ │ │ │ ├── common-units.md │ │ │ │ ├── layout-props.md │ │ │ │ ├── theme-variable-defaults.md │ │ │ │ ├── theme-variables.md │ │ │ │ └── themes.md │ │ │ ├── template-properties.md │ │ │ ├── test.md │ │ │ ├── tutorial-01.md │ │ │ ├── tutorial-02.md │ │ │ ├── tutorial-03.md │ │ │ ├── tutorial-04.md │ │ │ ├── tutorial-05.md │ │ │ ├── tutorial-06.md │ │ │ ├── tutorial-07.md │ │ │ ├── tutorial-08.md │ │ │ ├── tutorial-09.md │ │ │ ├── tutorial-10.md │ │ │ ├── tutorial-11.md │ │ │ ├── tutorial-12.md │ │ │ ├── universal-properties.md │ │ │ ├── user-defined-components.md │ │ │ ├── vscode.md │ │ │ ├── working-with-markdown.md │ │ │ ├── working-with-text.md │ │ │ ├── xmlui-animations │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── Animation.md │ │ │ │ ├── FadeAnimation.md │ │ │ │ ├── FadeInAnimation.md │ │ │ │ ├── FadeOutAnimation.md │ │ │ │ ├── ScaleAnimation.md │ │ │ │ └── SlideInAnimation.md │ │ │ ├── xmlui-charts │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── BarChart.md │ │ │ │ ├── DonutChart.md │ │ │ │ ├── LabelList.md │ │ │ │ ├── Legend.md │ │ │ │ ├── LineChart.md │ │ │ │ └── PieChart.md │ │ │ ├── xmlui-pdf │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Pdf.md │ │ │ └── xmlui-spreadsheet │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ └── Spreadsheet.md │ │ ├── resources │ │ │ ├── devdocs │ │ │ │ ├── debug-proxy-object-2.png │ │ │ │ ├── debug-proxy-object.png │ │ │ │ ├── table_editor_01.png │ │ │ │ ├── table_editor_02.png │ │ │ │ ├── table_editor_03.png │ │ │ │ ├── table_editor_04.png │ │ │ │ ├── table_editor_05.png │ │ │ │ ├── table_editor_06.png │ │ │ │ ├── table_editor_07.png │ │ │ │ ├── table_editor_08.png │ │ │ │ ├── table_editor_09.png │ │ │ │ ├── table_editor_10.png │ │ │ │ ├── table_editor_11.png │ │ │ │ ├── table-editor-01.png │ │ │ │ ├── table-editor-02.png │ │ │ │ ├── table-editor-03.png │ │ │ │ ├── table-editor-04.png │ │ │ │ ├── table-editor-06.png │ │ │ │ ├── table-editor-07.png │ │ │ │ ├── table-editor-08.png │ │ │ │ ├── table-editor-09.png │ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ ├── clients.json │ │ │ │ ├── daily-revenue.json │ │ │ │ ├── dashboard-stats.json │ │ │ │ ├── demo.xmlui │ │ │ │ ├── demo.xmlui.xs │ │ │ │ ├── downloads │ │ │ │ │ └── downloads.json │ │ │ │ ├── for-download │ │ │ │ │ ├── index-with-api.html │ │ │ │ │ ├── index.html │ │ │ │ │ ├── mockApi.js │ │ │ │ │ ├── start-darwin.sh │ │ │ │ │ ├── start-linux.sh │ │ │ │ │ ├── start.bat │ │ │ │ │ └── xmlui │ │ │ │ │ └── xmlui-standalone.umd.js │ │ │ │ ├── getting-started │ │ │ │ │ ├── cl-tutorial-final.zip │ │ │ │ │ ├── cl-tutorial.zip │ │ │ │ │ ├── cl-tutorial2.zip │ │ │ │ │ ├── cl-tutorial3.zip │ │ │ │ │ ├── cl-tutorial4.zip │ │ │ │ │ ├── cl-tutorial5.zip │ │ │ │ │ ├── cl-tutorial6.zip │ │ │ │ │ ├── getting-started.zip │ │ │ │ │ ├── hello-xmlui.zip │ │ │ │ │ ├── xmlui-empty.zip │ │ │ │ │ └── xmlui-starter.zip │ │ │ │ ├── howto │ │ │ │ │ └── component-icons │ │ │ │ │ └── up-arrow.svg │ │ │ │ ├── invoices.json │ │ │ │ ├── monthly-status.json │ │ │ │ ├── news-and-reviews.json │ │ │ │ ├── products.json │ │ │ │ ├── releases.json │ │ │ │ ├── tutorials │ │ │ │ │ ├── datasource │ │ │ │ │ │ └── api.ts │ │ │ │ │ └── p2do │ │ │ │ │ ├── api.ts │ │ │ │ │ └── todo-logo.svg │ │ │ │ └── xmlui.json │ │ │ ├── github.svg │ │ │ ├── images │ │ │ │ ├── apiaction-tutorial │ │ │ │ │ ├── add-success.png │ │ │ │ │ ├── apiaction-param.png │ │ │ │ │ ├── change-completed.png │ │ │ │ │ ├── change-in-progress.png │ │ │ │ │ ├── confirm-delete.png │ │ │ │ │ ├── data-error.png │ │ │ │ │ ├── data-progress.png │ │ │ │ │ ├── data-success.png │ │ │ │ │ ├── display-1.png │ │ │ │ │ ├── item-deleted.png │ │ │ │ │ ├── item-updated.png │ │ │ │ │ ├── missing-api-key.png │ │ │ │ │ ├── new-item-added.png │ │ │ │ │ └── test-message.png │ │ │ │ ├── chat-api │ │ │ │ │ └── domain-model.svg │ │ │ │ ├── components │ │ │ │ │ ├── image │ │ │ │ │ │ └── breakfast.jpg │ │ │ │ │ ├── markdown │ │ │ │ │ │ └── colors.png │ │ │ │ │ └── modal │ │ │ │ │ ├── deep_link_dialog_1.jpg │ │ │ │ │ └── deep_link_dialog_2.jpg │ │ │ │ ├── create-apps │ │ │ │ │ ├── collapsed-vertical.png │ │ │ │ │ ├── using-forms-warning-dialog.png │ │ │ │ │ └── using-forms.png │ │ │ │ ├── datasource-tutorial │ │ │ │ │ ├── data-with-header.png │ │ │ │ │ ├── filtered-data.png │ │ │ │ │ ├── filtered-items.png │ │ │ │ │ ├── initial-page-items.png │ │ │ │ │ ├── list-items.png │ │ │ │ │ ├── next-page-items.png │ │ │ │ │ ├── no-data.png │ │ │ │ │ ├── pagination-1.jpg │ │ │ │ │ ├── pagination-1.png │ │ │ │ │ ├── polling-1.png │ │ │ │ │ ├── refetch-data.png │ │ │ │ │ ├── slow-loading.png │ │ │ │ │ ├── test-message.png │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── unconventional-data.png │ │ │ │ │ └── unfiltered-items.png │ │ │ │ ├── flower.jpg │ │ │ │ ├── get-started │ │ │ │ │ ├── add-new-contact.png │ │ │ │ │ ├── app-modified.png │ │ │ │ │ ├── app-start.png │ │ │ │ │ ├── app-with-boxes.png │ │ │ │ │ ├── app-with-toast.png │ │ │ │ │ ├── boilerplate-structure.png │ │ │ │ │ ├── cl-initial.png │ │ │ │ │ ├── cl-start.png │ │ │ │ │ ├── contact-counts.png │ │ │ │ │ ├── contact-dialog-title.png │ │ │ │ │ ├── contact-dialog.png │ │ │ │ │ ├── contact-menus.png │ │ │ │ │ ├── contact-predicates.png │ │ │ │ │ ├── context-menu.png │ │ │ │ │ ├── dashboard-numbers.png │ │ │ │ │ ├── default-contact-list.png │ │ │ │ │ ├── delete-contact.png │ │ │ │ │ ├── delete-task.png │ │ │ │ │ ├── detailed-template.png │ │ │ │ │ ├── edit-contact-details.png │ │ │ │ │ ├── edited-contact-saved.png │ │ │ │ │ ├── empty-sections.png │ │ │ │ │ ├── filter-completed.png │ │ │ │ │ ├── fullwidth-desktop.png │ │ │ │ │ ├── fullwidth-mobile.png │ │ │ │ │ ├── initial-table.png │ │ │ │ │ ├── items-and-badges.png │ │ │ │ │ ├── loading-message.png │ │ │ │ │ ├── new-contact-button.png │ │ │ │ │ ├── new-contact-saved.png │ │ │ │ │ ├── no-empty-sections.png │ │ │ │ │ ├── personal-todo-initial.png │ │ │ │ │ ├── piechart.png │ │ │ │ │ ├── review-today.png │ │ │ │ │ ├── rudimentary-dashboard.png │ │ │ │ │ ├── section-collapsed.png │ │ │ │ │ ├── sectioned-items.png │ │ │ │ │ ├── sections-ordered.png │ │ │ │ │ ├── spacex-list-with-links.png │ │ │ │ │ ├── spacex-list.png │ │ │ │ │ ├── start-personal-todo-1.png │ │ │ │ │ ├── submit-new-contact.png │ │ │ │ │ ├── submit-new-task.png │ │ │ │ │ ├── syntax-highlighting.png │ │ │ │ │ ├── table-with-badge.png │ │ │ │ │ ├── template-with-card.png │ │ │ │ │ ├── test-emulated-api.png │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── todo-logo.png │ │ │ │ │ └── xmlui-tools.png │ │ │ │ ├── HelloApp.png │ │ │ │ ├── HelloApp2.png │ │ │ │ ├── logos │ │ │ │ │ ├── xmlui1.svg │ │ │ │ │ ├── xmlui2.svg │ │ │ │ │ ├── xmlui3.svg │ │ │ │ │ ├── xmlui4.svg │ │ │ │ │ ├── xmlui5.svg │ │ │ │ │ ├── xmlui6.svg │ │ │ │ │ └── xmlui7.svg │ │ │ │ ├── pdf │ │ │ │ │ └── dummy-pdf.jpg │ │ │ │ ├── rendering-engine │ │ │ │ │ ├── AppEngine-flow.svg │ │ │ │ │ ├── Component.svg │ │ │ │ │ ├── CompoundComponent.svg │ │ │ │ │ ├── RootComponent.svg │ │ │ │ │ └── tree-with-containers.svg │ │ │ │ ├── reviewers-guide │ │ │ │ │ ├── AppEngine-flow.svg │ │ │ │ │ └── incbutton-in-action.png │ │ │ │ ├── tools │ │ │ │ │ └── boilerplate-structure.png │ │ │ │ ├── try.svg │ │ │ │ ├── tutorial │ │ │ │ │ ├── app-chat-history.png │ │ │ │ │ ├── app-content-placeholder.png │ │ │ │ │ ├── app-header-and-content.png │ │ │ │ │ ├── app-links-channel-selected.png │ │ │ │ │ ├── app-links-click.png │ │ │ │ │ ├── app-navigation.png │ │ │ │ │ ├── finished-ex01.png │ │ │ │ │ ├── finished-ex02.png │ │ │ │ │ ├── hello.png │ │ │ │ │ ├── splash-screen-advanced.png │ │ │ │ │ ├── splash-screen-after-click.png │ │ │ │ │ ├── splash-screen-centered.png │ │ │ │ │ ├── splash-screen-events.png │ │ │ │ │ ├── splash-screen-expression.png │ │ │ │ │ ├── splash-screen-reuse-after.png │ │ │ │ │ ├── splash-screen-reuse-before.png │ │ │ │ │ └── splash-screen.png │ │ │ │ └── tutorial-01.png │ │ │ ├── llms.txt │ │ │ ├── logo-dark.svg │ │ │ ├── logo.svg │ │ │ ├── pg-popout.svg │ │ │ └── xmlui-logo.svg │ │ ├── serve.json │ │ └── web.config │ ├── scripts │ │ ├── download-latest-xmlui.js │ │ ├── generate-rss.js │ │ ├── get-releases.js │ │ └── utils.js │ ├── src │ │ ├── components │ │ │ ├── BlogOverview.xmlui │ │ │ ├── BlogPage.xmlui │ │ │ ├── Boxes.xmlui │ │ │ ├── Breadcrumb.xmlui │ │ │ ├── ChangeLog.xmlui │ │ │ ├── ColorPalette.xmlui │ │ │ ├── DocumentLinks.xmlui │ │ │ ├── DocumentPage.xmlui │ │ │ ├── DocumentPageNoTOC.xmlui │ │ │ ├── Icons.xmlui │ │ │ ├── IncButton.xmlui │ │ │ ├── IncButton2.xmlui │ │ │ ├── NameValue.xmlui │ │ │ ├── PageNotFound.xmlui │ │ │ ├── PaletteItem.xmlui │ │ │ ├── Palettes.xmlui │ │ │ ├── SectionHeader.xmlui │ │ │ ├── TBD.xmlui │ │ │ ├── Test.xmlui │ │ │ ├── ThemesIntro.xmlui │ │ │ ├── ThousandThemes.xmlui │ │ │ ├── TubeStops.xmlui │ │ │ ├── TubeStops.xmlui.xs │ │ │ └── TwoColumnCode.xmlui │ │ ├── config.ts │ │ ├── Main.xmlui │ │ └── themes │ │ ├── docs-theme.ts │ │ ├── earthtone.ts │ │ ├── xmlui-gray-on-default.ts │ │ ├── xmlui-green-on-default.ts │ │ └── xmlui-orange-on-default.ts │ └── tsconfig.json ├── LICENSE ├── package-lock.json ├── package.json ├── packages │ ├── xmlui-animations │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── Animation.tsx │ │ │ ├── AnimationNative.tsx │ │ │ ├── FadeAnimation.tsx │ │ │ ├── FadeInAnimation.tsx │ │ │ ├── FadeOutAnimation.tsx │ │ │ ├── index.tsx │ │ │ ├── ScaleAnimation.tsx │ │ │ └── SlideInAnimation.tsx │ │ └── tsconfig.json │ ├── xmlui-devtools │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── devtools │ │ │ │ ├── DevTools.tsx │ │ │ │ ├── DevToolsNative.module.scss │ │ │ │ ├── DevToolsNative.tsx │ │ │ │ ├── ModalDialog.module.scss │ │ │ │ ├── ModalDialog.tsx │ │ │ │ ├── ModalVisibilityContext.tsx │ │ │ │ ├── Tooltip.module.scss │ │ │ │ ├── Tooltip.tsx │ │ │ │ └── utils.ts │ │ │ ├── editor │ │ │ │ └── Editor.tsx │ │ │ └── index.tsx │ │ ├── tsconfig.json │ │ └── vite.config-overrides.ts │ ├── xmlui-hello-world │ │ ├── .gitignore │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── HelloWorld.module.scss │ │ │ ├── HelloWorld.tsx │ │ │ ├── HelloWorldNative.tsx │ │ │ └── index.tsx │ │ └── tsconfig.json │ ├── xmlui-os-frames │ │ ├── .gitignore │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── IPhoneFrame.module.scss │ │ │ ├── IPhoneFrame.tsx │ │ │ ├── MacOSAppFrame.module.scss │ │ │ ├── MacOSAppFrame.tsx │ │ │ ├── WindowsAppFrame.module.scss │ │ │ └── WindowsAppFrame.tsx │ │ └── tsconfig.json │ ├── xmlui-pdf │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ ├── components │ │ │ │ └── Pdf.xmlui │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── LazyPdfNative.tsx │ │ │ ├── Pdf.module.scss │ │ │ └── Pdf.tsx │ │ └── tsconfig.json │ ├── xmlui-playground │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── hooks │ │ │ │ ├── usePlayground.ts │ │ │ │ └── useToast.ts │ │ │ ├── index.tsx │ │ │ ├── playground │ │ │ │ ├── Box.module.scss │ │ │ │ ├── Box.tsx │ │ │ │ ├── CodeSelector.tsx │ │ │ │ ├── ConfirmationDialog.module.scss │ │ │ │ ├── ConfirmationDialog.tsx │ │ │ │ ├── Editor.tsx │ │ │ │ ├── Header.module.scss │ │ │ │ ├── Header.tsx │ │ │ │ ├── Playground.tsx │ │ │ │ ├── PlaygroundContent.module.scss │ │ │ │ ├── PlaygroundContent.tsx │ │ │ │ ├── PlaygroundNative.module.scss │ │ │ │ ├── PlaygroundNative.tsx │ │ │ │ ├── Preview.module.scss │ │ │ │ ├── Preview.tsx │ │ │ │ ├── Select.module.scss │ │ │ │ ├── StandalonePlayground.tsx │ │ │ │ ├── StandalonePlaygroundNative.module.scss │ │ │ │ ├── StandalonePlaygroundNative.tsx │ │ │ │ ├── ThemeSwitcher.module.scss │ │ │ │ ├── ThemeSwitcher.tsx │ │ │ │ ├── ToneSwitcher.tsx │ │ │ │ ├── Tooltip.module.scss │ │ │ │ ├── Tooltip.tsx │ │ │ │ └── utils.ts │ │ │ ├── providers │ │ │ │ ├── Toast.module.scss │ │ │ │ └── ToastProvider.tsx │ │ │ ├── state │ │ │ │ └── store.ts │ │ │ ├── themes │ │ │ │ └── theme.ts │ │ │ └── utils │ │ │ └── helpers.ts │ │ └── tsconfig.json │ ├── xmlui-search │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── Search.module.scss │ │ │ └── Search.tsx │ │ └── tsconfig.json │ ├── xmlui-spreadsheet │ │ ├── .gitignore │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── Spreadsheet.tsx │ │ │ └── SpreadsheetNative.tsx │ │ └── tsconfig.json │ └── xmlui-website-blocks │ ├── .gitignore │ ├── CHANGELOG.md │ ├── demo │ │ ├── components │ │ │ ├── HeroBackgroundBreakoutPage.xmlui │ │ │ ├── HeroBackgroundsPage.xmlui │ │ │ ├── HeroContentsPage.xmlui │ │ │ ├── HeroTextAlignPage.xmlui │ │ │ ├── HeroTextPage.xmlui │ │ │ └── HeroTonesPage.xmlui │ │ ├── Main.xmlui │ │ └── themes │ │ └── default.ts │ ├── index.html │ ├── index.ts │ ├── meta │ │ └── componentsMetadata.ts │ ├── package.json │ ├── public │ │ └── resources │ │ ├── building.jpg │ │ └── xmlui-logo.svg │ ├── src │ │ ├── Carousel │ │ │ ├── Carousel.module.scss │ │ │ ├── Carousel.tsx │ │ │ ├── CarouselContext.tsx │ │ │ └── CarouselNative.tsx │ │ ├── FancyButton │ │ │ ├── FancyButton.module.scss │ │ │ ├── FancyButton.tsx │ │ │ └── FancyButton.xmlui │ │ ├── Hello │ │ │ ├── Hello.tsx │ │ │ ├── Hello.xmlui │ │ │ └── Hello.xmlui.xs │ │ ├── HeroSection │ │ │ ├── HeroSection.module.scss │ │ │ ├── HeroSection.tsx │ │ │ └── HeroSectionNative.tsx │ │ ├── index.tsx │ │ ├── ScrollToTop │ │ │ ├── ScrollToTop.module.scss │ │ │ ├── ScrollToTop.tsx │ │ │ └── ScrollToTopNative.tsx │ │ └── vite-env.d.ts │ └── tsconfig.json ├── README.md ├── tools │ ├── codefence │ │ └── xmlui-code-fence-docs.md │ ├── create-app │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── create-app.ts │ │ ├── helpers │ │ │ ├── copy.ts │ │ │ ├── get-pkg-manager.ts │ │ │ ├── git.ts │ │ │ ├── install.ts │ │ │ ├── is-folder-empty.ts │ │ │ ├── is-writeable.ts │ │ │ ├── make-dir.ts │ │ │ └── validate-pkg.ts │ │ ├── index.ts │ │ ├── package.json │ │ ├── templates │ │ │ ├── default │ │ │ │ └── ts │ │ │ │ ├── gitignore │ │ │ │ ├── index.html │ │ │ │ ├── index.ts │ │ │ │ ├── public │ │ │ │ │ ├── mockServiceWorker.js │ │ │ │ │ ├── resources │ │ │ │ │ │ ├── favicon.ico │ │ │ │ │ │ └── xmlui-logo.svg │ │ │ │ │ └── serve.json │ │ │ │ └── src │ │ │ │ ├── components │ │ │ │ │ ├── ApiAware.xmlui │ │ │ │ │ ├── Home.xmlui │ │ │ │ │ ├── IncButton.xmlui │ │ │ │ │ └── PagePanel.xmlui │ │ │ │ ├── config.ts │ │ │ │ └── Main.xmlui │ │ │ ├── index.ts │ │ │ └── types.ts │ │ └── tsconfig.json │ ├── create-xmlui-hello-world │ │ ├── index.js │ │ └── package.json │ └── vscode │ ├── .gitignore │ ├── .vscode │ │ ├── launch.json │ │ └── tasks.json │ ├── .vscodeignore │ ├── build.sh │ ├── CHANGELOG.md │ ├── esbuild.js │ ├── eslint.config.mjs │ ├── formatter-docs.md │ ├── generate-test-sample.sh │ ├── LICENSE.md │ ├── package-lock.json │ ├── package.json │ ├── README.md │ ├── resources │ │ ├── xmlui-logo.png │ │ └── xmlui-markup-syntax-highlighting.png │ ├── src │ │ ├── extension.ts │ │ └── server.ts │ ├── syntaxes │ │ └── xmlui.tmLanguage.json │ ├── test-samples │ │ └── sample.xmlui │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── turbo.json └── xmlui ├── .gitignore ├── bin │ ├── bootstrap.js │ ├── build-lib.ts │ ├── build.ts │ ├── index.ts │ ├── preview.ts │ ├── start.ts │ ├── vite-xmlui-plugin.ts │ └── viteConfig.ts ├── CHANGELOG.md ├── conventions │ ├── component-qa-checklist.md │ ├── copilot-conventions.md │ ├── create-xmlui-components.md │ └── testing-conventions.md ├── dev-docs │ ├── accessibility.md │ ├── actions.md │ ├── AppRoot.md │ ├── component-apis.md │ ├── component-rendering.md │ ├── component-review-checklist.md │ ├── data-sources.md │ ├── e2e-summary.md │ ├── expression-evaluation.md │ ├── glossary.md │ ├── helper-components.md │ ├── index.md │ ├── loaders.md │ ├── next │ │ ├── component-dev-guide.md │ │ ├── configuration-management-enhancement-summary.md │ │ ├── documentation-scripts-refactoring-complete-summary.md │ │ ├── documentation-scripts-refactoring-plan.md │ │ ├── duplicate-pattern-extraction-summary.md │ │ ├── error-handling-standardization-summary.md │ │ ├── generating-component-reference.md │ │ ├── index.md │ │ ├── logging-consistency-implementation-summary.md │ │ ├── project-build.md │ │ ├── project-structure.md │ │ ├── theme-context.md │ │ ├── tiptap-design-considerations.md │ │ ├── working-with-code.md │ │ ├── xmlui-runtime-architecture │ │ └── xmlui-wcag-accessibility-report.md │ ├── react-fundamentals.md │ ├── release-method.md │ ├── rendering-fundamentals.md │ ├── reusable-components.md │ ├── standalone-apps.md │ ├── state-management.md │ └── xmlui-extensibility.xlsx ├── package.json ├── playwright.config.ts ├── scripts │ ├── coverage-only.js │ ├── e2e-test-summary.js │ ├── generate-docs │ │ ├── build-downloads-map.mjs │ │ ├── build-pages-map.mjs │ │ ├── components-config.json │ │ ├── configuration-management.mjs │ │ ├── constants.mjs │ │ ├── create-theme-files.mjs │ │ ├── DocsGenerator.mjs │ │ ├── error-handling.mjs │ │ ├── extensions-config.json │ │ ├── folders.mjs │ │ ├── generate-summary-files.mjs │ │ ├── get-docs.mjs │ │ ├── input-handler.mjs │ │ ├── logger.mjs │ │ ├── logging-standards.mjs │ │ ├── MetadataProcessor.mjs │ │ ├── pattern-utilities.mjs │ │ └── utils.mjs │ ├── get-langserver-metadata.mjs │ ├── inline-links.mjs │ └── README-e2e-summary.md ├── src │ ├── abstractions │ │ ├── _conventions.md │ │ ├── ActionDefs.ts │ │ ├── AppContextDefs.ts │ │ ├── ComponentDefs.ts │ │ ├── ContainerDefs.ts │ │ ├── ExtensionDefs.ts │ │ ├── FunctionDefs.ts │ │ ├── RendererDefs.ts │ │ ├── scripting │ │ │ ├── BlockScope.ts │ │ │ ├── Compilation.ts │ │ │ ├── LogicalThread.ts │ │ │ ├── LoopScope.ts │ │ │ ├── modules.ts │ │ │ ├── ScriptParserError.ts │ │ │ ├── Token.ts │ │ │ ├── TryScope.ts │ │ │ └── TryScopeExp.ts │ │ └── ThemingDefs.ts │ ├── components │ │ ├── _conventions.md │ │ ├── abstractions.ts │ │ ├── Accordion │ │ │ ├── Accordion.md │ │ │ ├── Accordion.module.scss │ │ │ ├── Accordion.spec.ts │ │ │ ├── Accordion.tsx │ │ │ ├── AccordionContext.tsx │ │ │ ├── AccordionItem.tsx │ │ │ ├── AccordionItemNative.tsx │ │ │ └── AccordionNative.tsx │ │ ├── Animation │ │ │ └── AnimationNative.tsx │ │ ├── APICall │ │ │ ├── APICall.md │ │ │ ├── APICall.spec.ts │ │ │ ├── APICall.tsx │ │ │ └── APICallNative.tsx │ │ ├── App │ │ │ ├── App.md │ │ │ ├── App.module.scss │ │ │ ├── App.spec.ts │ │ │ ├── App.tsx │ │ │ ├── AppLayoutContext.ts │ │ │ ├── AppNative.tsx │ │ │ ├── AppStateContext.ts │ │ │ ├── doc-resources │ │ │ │ ├── condensed-sticky.xmlui │ │ │ │ ├── condensed.xmlui │ │ │ │ ├── horizontal-sticky.xmlui │ │ │ │ ├── horizontal.xmlui │ │ │ │ ├── vertical-full-header.xmlui │ │ │ │ ├── vertical-sticky.xmlui │ │ │ │ └── vertical.xmlui │ │ │ ├── IndexerContext.ts │ │ │ ├── LinkInfoContext.ts │ │ │ ├── SearchContext.tsx │ │ │ ├── Sheet.module.scss │ │ │ └── Sheet.tsx │ │ ├── AppHeader │ │ │ ├── AppHeader.md │ │ │ ├── AppHeader.module.scss │ │ │ ├── AppHeader.spec.ts │ │ │ ├── AppHeader.tsx │ │ │ └── AppHeaderNative.tsx │ │ ├── AppState │ │ │ ├── AppState.md │ │ │ ├── AppState.spec.ts │ │ │ ├── AppState.tsx │ │ │ └── AppStateNative.tsx │ │ ├── AutoComplete │ │ │ ├── AutoComplete.md │ │ │ ├── AutoComplete.module.scss │ │ │ ├── AutoComplete.spec.ts │ │ │ ├── AutoComplete.tsx │ │ │ ├── AutoCompleteContext.tsx │ │ │ └── AutoCompleteNative.tsx │ │ ├── Avatar │ │ │ ├── Avatar.md │ │ │ ├── Avatar.module.scss │ │ │ ├── Avatar.spec.ts │ │ │ ├── Avatar.tsx │ │ │ └── AvatarNative.tsx │ │ ├── Backdrop │ │ │ ├── Backdrop.md │ │ │ ├── Backdrop.module.scss │ │ │ ├── Backdrop.spec.ts │ │ │ ├── Backdrop.tsx │ │ │ └── BackdropNative.tsx │ │ ├── Badge │ │ │ ├── Badge.md │ │ │ ├── Badge.module.scss │ │ │ ├── Badge.spec.ts │ │ │ ├── Badge.tsx │ │ │ └── BadgeNative.tsx │ │ ├── Bookmark │ │ │ ├── Bookmark.md │ │ │ ├── Bookmark.module.scss │ │ │ ├── Bookmark.spec.ts │ │ │ ├── Bookmark.tsx │ │ │ └── BookmarkNative.tsx │ │ ├── Breakout │ │ │ ├── Breakout.module.scss │ │ │ ├── Breakout.spec.ts │ │ │ ├── Breakout.tsx │ │ │ └── BreakoutNative.tsx │ │ ├── Button │ │ │ ├── Button-style.spec.ts │ │ │ ├── Button.md │ │ │ ├── Button.module.scss │ │ │ ├── Button.spec.ts │ │ │ ├── Button.tsx │ │ │ └── ButtonNative.tsx │ │ ├── Card │ │ │ ├── Card.md │ │ │ ├── Card.module.scss │ │ │ ├── Card.spec.ts │ │ │ ├── Card.tsx │ │ │ └── CardNative.tsx │ │ ├── Carousel │ │ │ ├── Carousel.md │ │ │ ├── Carousel.module.scss │ │ │ ├── Carousel.spec.ts │ │ │ ├── Carousel.tsx │ │ │ ├── CarouselContext.tsx │ │ │ ├── CarouselItem.tsx │ │ │ ├── CarouselItemNative.tsx │ │ │ └── CarouselNative.tsx │ │ ├── ChangeListener │ │ │ ├── ChangeListener.md │ │ │ ├── ChangeListener.spec.ts │ │ │ ├── ChangeListener.tsx │ │ │ └── ChangeListenerNative.tsx │ │ ├── chart-color-schemes.ts │ │ ├── Charts │ │ │ ├── AreaChart │ │ │ │ ├── AreaChart.md │ │ │ │ ├── AreaChart.spec.ts │ │ │ │ ├── AreaChart.tsx │ │ │ │ └── AreaChartNative.tsx │ │ │ ├── BarChart │ │ │ │ ├── BarChart.md │ │ │ │ ├── BarChart.module.scss │ │ │ │ ├── BarChart.spec.ts │ │ │ │ ├── BarChart.tsx │ │ │ │ └── BarChartNative.tsx │ │ │ ├── DonutChart │ │ │ │ ├── DonutChart.spec.ts │ │ │ │ └── DonutChart.tsx │ │ │ ├── LabelList │ │ │ │ ├── LabelList.spec.ts │ │ │ │ ├── LabelList.tsx │ │ │ │ ├── LabelListNative.module.scss │ │ │ │ └── LabelListNative.tsx │ │ │ ├── Legend │ │ │ │ ├── Legend.spec.ts │ │ │ │ ├── Legend.tsx │ │ │ │ └── LegendNative.tsx │ │ │ ├── LineChart │ │ │ │ ├── LineChart.md │ │ │ │ ├── LineChart.module.scss │ │ │ │ ├── LineChart.spec.ts │ │ │ │ ├── LineChart.tsx │ │ │ │ └── LineChartNative.tsx │ │ │ ├── PieChart │ │ │ │ ├── PieChart.md │ │ │ │ ├── PieChart.spec.ts │ │ │ │ ├── PieChart.tsx │ │ │ │ ├── PieChartNative.module.scss │ │ │ │ └── PieChartNative.tsx │ │ │ ├── RadarChart │ │ │ │ ├── RadarChart.md │ │ │ │ ├── RadarChart.spec.ts │ │ │ │ ├── RadarChart.tsx │ │ │ │ └── RadarChartNative.tsx │ │ │ ├── Tooltip │ │ │ │ ├── TooltipContent.module.scss │ │ │ │ ├── TooltipContent.spec.ts │ │ │ │ └── TooltipContent.tsx │ │ │ └── utils │ │ │ ├── abstractions.ts │ │ │ └── ChartProvider.tsx │ │ ├── Checkbox │ │ │ ├── Checkbox.md │ │ │ ├── Checkbox.spec.ts │ │ │ └── Checkbox.tsx │ │ ├── CodeBlock │ │ │ ├── CodeBlock.module.scss │ │ │ ├── CodeBlock.spec.ts │ │ │ ├── CodeBlock.tsx │ │ │ ├── CodeBlockNative.tsx │ │ │ └── highlight-code.ts │ │ ├── collectedComponentMetadata.ts │ │ ├── ColorPicker │ │ │ ├── ColorPicker.md │ │ │ ├── ColorPicker.module.scss │ │ │ ├── ColorPicker.spec.ts │ │ │ ├── ColorPicker.tsx │ │ │ └── ColorPickerNative.tsx │ │ ├── Column │ │ │ ├── Column.md │ │ │ ├── Column.tsx │ │ │ ├── ColumnNative.tsx │ │ │ ├── doc-resources │ │ │ │ └── list-component-data.js │ │ │ └── TableContext.tsx │ │ ├── component-utils.ts │ │ ├── ComponentProvider.tsx │ │ ├── ComponentRegistryContext.tsx │ │ ├── container-helpers.tsx │ │ ├── ContentSeparator │ │ │ ├── ContentSeparator.md │ │ │ ├── ContentSeparator.module.scss │ │ │ ├── ContentSeparator.spec.ts │ │ │ ├── ContentSeparator.tsx │ │ │ └── ContentSeparatorNative.tsx │ │ ├── DataSource │ │ │ ├── DataSource.md │ │ │ └── DataSource.tsx │ │ ├── DateInput │ │ │ ├── DateInput.md │ │ │ ├── DateInput.module.scss │ │ │ ├── DateInput.spec.ts │ │ │ ├── DateInput.tsx │ │ │ └── DateInputNative.tsx │ │ ├── DatePicker │ │ │ ├── DatePicker.md │ │ │ ├── DatePicker.module.scss │ │ │ ├── DatePicker.spec.ts │ │ │ ├── DatePicker.tsx │ │ │ └── DatePickerNative.tsx │ │ ├── DropdownMenu │ │ │ ├── DropdownMenu.md │ │ │ ├── DropdownMenu.module.scss │ │ │ ├── DropdownMenu.spec.ts │ │ │ ├── DropdownMenu.tsx │ │ │ ├── DropdownMenuNative.tsx │ │ │ ├── MenuItem.md │ │ │ └── SubMenuItem.md │ │ ├── EmojiSelector │ │ │ ├── EmojiSelector.md │ │ │ ├── EmojiSelector.spec.ts │ │ │ ├── EmojiSelector.tsx │ │ │ └── EmojiSelectorNative.tsx │ │ ├── ExpandableItem │ │ │ ├── ExpandableItem.module.scss │ │ │ ├── ExpandableItem.spec.ts │ │ │ ├── ExpandableItem.tsx │ │ │ └── ExpandableItemNative.tsx │ │ ├── FileInput │ │ │ ├── FileInput.md │ │ │ ├── FileInput.module.scss │ │ │ ├── FileInput.spec.ts │ │ │ ├── FileInput.tsx │ │ │ └── FileInputNative.tsx │ │ ├── FileUploadDropZone │ │ │ ├── FileUploadDropZone.md │ │ │ ├── FileUploadDropZone.module.scss │ │ │ ├── FileUploadDropZone.spec.ts │ │ │ ├── FileUploadDropZone.tsx │ │ │ └── FileUploadDropZoneNative.tsx │ │ ├── FlowLayout │ │ │ ├── FlowLayout.md │ │ │ ├── FlowLayout.module.scss │ │ │ ├── FlowLayout.spec.ts │ │ │ ├── FlowLayout.spec.ts-snapshots │ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png │ │ │ ├── FlowLayout.tsx │ │ │ └── FlowLayoutNative.tsx │ │ ├── Footer │ │ │ ├── Footer.md │ │ │ ├── Footer.module.scss │ │ │ ├── Footer.spec.ts │ │ │ ├── Footer.tsx │ │ │ └── FooterNative.tsx │ │ ├── Form │ │ │ ├── Form.md │ │ │ ├── Form.module.scss │ │ │ ├── Form.spec.ts │ │ │ ├── Form.tsx │ │ │ ├── formActions.ts │ │ │ ├── FormContext.ts │ │ │ └── FormNative.tsx │ │ ├── FormItem │ │ │ ├── FormItem.md │ │ │ ├── FormItem.module.scss │ │ │ ├── FormItem.spec.ts │ │ │ ├── FormItem.tsx │ │ │ ├── FormItemNative.tsx │ │ │ ├── HelperText.module.scss │ │ │ ├── HelperText.tsx │ │ │ ├── ItemWithLabel.tsx │ │ │ └── Validations.ts │ │ ├── FormSection │ │ │ ├── FormSection.md │ │ │ ├── FormSection.ts │ │ │ └── FormSection.xmlui │ │ ├── Fragment │ │ │ ├── Fragment.spec.ts │ │ │ └── Fragment.tsx │ │ ├── Heading │ │ │ ├── abstractions.ts │ │ │ ├── H1.md │ │ │ ├── H1.spec.ts │ │ │ ├── H2.md │ │ │ ├── H2.spec.ts │ │ │ ├── H3.md │ │ │ ├── H3.spec.ts │ │ │ ├── H4.md │ │ │ ├── H4.spec.ts │ │ │ ├── H5.md │ │ │ ├── H5.spec.ts │ │ │ ├── H6.md │ │ │ ├── H6.spec.ts │ │ │ ├── Heading.md │ │ │ ├── Heading.module.scss │ │ │ ├── Heading.spec.ts │ │ │ ├── Heading.tsx │ │ │ └── HeadingNative.tsx │ │ ├── HoverCard │ │ │ ├── HoverCard.tsx │ │ │ └── HovercardNative.tsx │ │ ├── HtmlTags │ │ │ ├── HtmlTags.module.scss │ │ │ ├── HtmlTags.spec.ts │ │ │ └── HtmlTags.tsx │ │ ├── Icon │ │ │ ├── AdmonitionDanger.tsx │ │ │ ├── AdmonitionInfo.tsx │ │ │ ├── AdmonitionNote.tsx │ │ │ ├── AdmonitionTip.tsx │ │ │ ├── AdmonitionWarning.tsx │ │ │ ├── ApiIcon.tsx │ │ │ ├── ArrowDropDown.module.scss │ │ │ ├── ArrowDropDown.tsx │ │ │ ├── ArrowDropUp.module.scss │ │ │ ├── ArrowDropUp.tsx │ │ │ ├── ArrowLeft.module.scss │ │ │ ├── ArrowLeft.tsx │ │ │ ├── ArrowRight.module.scss │ │ │ ├── ArrowRight.tsx │ │ │ ├── Attach.tsx │ │ │ ├── Binding.module.scss │ │ │ ├── Binding.tsx │ │ │ ├── BoardIcon.tsx │ │ │ ├── BoxIcon.tsx │ │ │ ├── CheckIcon.tsx │ │ │ ├── ChevronDownIcon.tsx │ │ │ ├── ChevronLeft.tsx │ │ │ ├── ChevronRight.tsx │ │ │ ├── ChevronUpIcon.tsx │ │ │ ├── CodeFileIcon.tsx │ │ │ ├── CodeSandbox.tsx │ │ │ ├── CompactListIcon.tsx │ │ │ ├── ContentCopyIcon.tsx │ │ │ ├── DarkToLightIcon.tsx │ │ │ ├── DatabaseIcon.module.scss │ │ │ ├── DatabaseIcon.tsx │ │ │ ├── DocFileIcon.tsx │ │ │ ├── DocIcon.tsx │ │ │ ├── DotMenuHorizontalIcon.tsx │ │ │ ├── DotMenuIcon.tsx │ │ │ ├── EmailIcon.tsx │ │ │ ├── EmptyFolderIcon.tsx │ │ │ ├── ErrorIcon.tsx │ │ │ ├── ExpressionIcon.tsx │ │ │ ├── FillPlusCricleIcon.tsx │ │ │ ├── FilterIcon.tsx │ │ │ ├── FolderIcon.tsx │ │ │ ├── GlobeIcon.tsx │ │ │ ├── HomeIcon.tsx │ │ │ ├── HyperLinkIcon.tsx │ │ │ ├── Icon.md │ │ │ ├── Icon.module.scss │ │ │ ├── Icon.spec.ts │ │ │ ├── Icon.tsx │ │ │ ├── IconNative.tsx │ │ │ ├── ImageFileIcon.tsx │ │ │ ├── Inspect.tsx │ │ │ ├── LightToDark.tsx │ │ │ ├── LinkIcon.tsx │ │ │ ├── ListIcon.tsx │ │ │ ├── LooseListIcon.tsx │ │ │ ├── MoonIcon.tsx │ │ │ ├── MoreOptionsIcon.tsx │ │ │ ├── NoSortIcon.tsx │ │ │ ├── PDFIcon.tsx │ │ │ ├── PenIcon.tsx │ │ │ ├── PhoneIcon.tsx │ │ │ ├── PhotoIcon.tsx │ │ │ ├── PlusIcon.tsx │ │ │ ├── SearchIcon.tsx │ │ │ ├── ShareIcon.tsx │ │ │ ├── SortAscendingIcon.tsx │ │ │ ├── SortDescendingIcon.tsx │ │ │ ├── StarsIcon.tsx │ │ │ ├── SunIcon.tsx │ │ │ ├── svg │ │ │ │ ├── admonition_danger.svg │ │ │ │ ├── admonition_info.svg │ │ │ │ ├── admonition_note.svg │ │ │ │ ├── admonition_tip.svg │ │ │ │ ├── admonition_warning.svg │ │ │ │ ├── api.svg │ │ │ │ ├── arrow-dropdown.svg │ │ │ │ ├── arrow-left.svg │ │ │ │ ├── arrow-right.svg │ │ │ │ ├── arrow-up.svg │ │ │ │ ├── attach.svg │ │ │ │ ├── binding.svg │ │ │ │ ├── box.svg │ │ │ │ ├── bulb.svg │ │ │ │ ├── code-file.svg │ │ │ │ ├── code-sandbox.svg │ │ │ │ ├── dark_to_light.svg │ │ │ │ ├── database.svg │ │ │ │ ├── doc.svg │ │ │ │ ├── empty-folder.svg │ │ │ │ ├── expression.svg │ │ │ │ ├── eye-closed.svg │ │ │ │ ├── eye-dark.svg │ │ │ │ ├── eye.svg │ │ │ │ ├── file-text.svg │ │ │ │ ├── filter.svg │ │ │ │ ├── folder.svg │ │ │ │ ├── img.svg │ │ │ │ ├── inspect.svg │ │ │ │ ├── light_to_dark.svg │ │ │ │ ├── moon.svg │ │ │ │ ├── pdf.svg │ │ │ │ ├── photo.svg │ │ │ │ ├── share.svg │ │ │ │ ├── stars.svg │ │ │ │ ├── sun.svg │ │ │ │ ├── trending-down.svg │ │ │ │ ├── trending-level.svg │ │ │ │ ├── trending-up.svg │ │ │ │ ├── txt.svg │ │ │ │ ├── unknown-file.svg │ │ │ │ ├── unlink.svg │ │ │ │ └── xls.svg │ │ │ ├── TableDeleteColumnIcon.tsx │ │ │ ├── TableDeleteRowIcon.tsx │ │ │ ├── TableInsertColumnIcon.tsx │ │ │ ├── TableInsertRowIcon.tsx │ │ │ ├── TrashIcon.tsx │ │ │ ├── TrendingDownIcon.tsx │ │ │ ├── TrendingLevelIcon.tsx │ │ │ ├── TrendingUpIcon.tsx │ │ │ ├── TxtIcon.tsx │ │ │ ├── UnknownFileIcon.tsx │ │ │ ├── UnlinkIcon.tsx │ │ │ ├── UserIcon.tsx │ │ │ ├── WarningIcon.tsx │ │ │ └── XlsIcon.tsx │ │ ├── IconProvider.tsx │ │ ├── IconRegistryContext.tsx │ │ ├── IFrame │ │ │ ├── IFrame.md │ │ │ ├── IFrame.module.scss │ │ │ ├── IFrame.spec.ts │ │ │ ├── IFrame.tsx │ │ │ └── IFrameNative.tsx │ │ ├── Image │ │ │ ├── Image.md │ │ │ ├── Image.module.scss │ │ │ ├── Image.spec.ts │ │ │ ├── Image.tsx │ │ │ └── ImageNative.tsx │ │ ├── Input │ │ │ ├── index.ts │ │ │ ├── InputAdornment.module.scss │ │ │ ├── InputAdornment.tsx │ │ │ ├── InputDivider.module.scss │ │ │ ├── InputDivider.tsx │ │ │ ├── InputLabel.module.scss │ │ │ ├── InputLabel.tsx │ │ │ ├── PartialInput.module.scss │ │ │ └── PartialInput.tsx │ │ ├── InspectButton │ │ │ ├── InspectButton.module.scss │ │ │ └── InspectButton.tsx │ │ ├── Items │ │ │ ├── Items.md │ │ │ ├── Items.spec.ts │ │ │ ├── Items.tsx │ │ │ └── ItemsNative.tsx │ │ ├── Link │ │ │ ├── Link.md │ │ │ ├── Link.module.scss │ │ │ ├── Link.spec.ts │ │ │ ├── Link.tsx │ │ │ └── LinkNative.tsx │ │ ├── List │ │ │ ├── doc-resources │ │ │ │ └── list-component-data.js │ │ │ ├── List.md │ │ │ ├── List.module.scss │ │ │ ├── List.spec.ts │ │ │ ├── List.tsx │ │ │ └── ListNative.tsx │ │ ├── Logo │ │ │ ├── doc-resources │ │ │ │ └── xmlui-logo.svg │ │ │ ├── Logo.md │ │ │ ├── Logo.tsx │ │ │ └── LogoNative.tsx │ │ ├── Markdown │ │ │ ├── CodeText.module.scss │ │ │ ├── CodeText.tsx │ │ │ ├── Markdown.md │ │ │ ├── Markdown.module.scss │ │ │ ├── Markdown.spec.ts │ │ │ ├── Markdown.tsx │ │ │ ├── MarkdownNative.tsx │ │ │ ├── parse-binding-expr.ts │ │ │ └── utils.ts │ │ ├── metadata-helpers.ts │ │ ├── ModalDialog │ │ │ ├── ConfirmationModalContextProvider.tsx │ │ │ ├── Dialog.module.scss │ │ │ ├── Dialog.tsx │ │ │ ├── ModalDialog.md │ │ │ ├── ModalDialog.module.scss │ │ │ ├── ModalDialog.spec.ts │ │ │ ├── ModalDialog.tsx │ │ │ ├── ModalDialogNative.tsx │ │ │ └── ModalVisibilityContext.tsx │ │ ├── NavGroup │ │ │ ├── NavGroup.md │ │ │ ├── NavGroup.module.scss │ │ │ ├── NavGroup.spec.ts │ │ │ ├── NavGroup.tsx │ │ │ ├── NavGroupContext.ts │ │ │ └── NavGroupNative.tsx │ │ ├── NavLink │ │ │ ├── NavLink.md │ │ │ ├── NavLink.module.scss │ │ │ ├── NavLink.spec.ts │ │ │ ├── NavLink.tsx │ │ │ └── NavLinkNative.tsx │ │ ├── NavPanel │ │ │ ├── NavPanel.md │ │ │ ├── NavPanel.module.scss │ │ │ ├── NavPanel.spec.ts │ │ │ ├── NavPanel.tsx │ │ │ └── NavPanelNative.tsx │ │ ├── NestedApp │ │ │ ├── AppWithCodeView.module.scss │ │ │ ├── AppWithCodeView.tsx │ │ │ ├── AppWithCodeViewNative.tsx │ │ │ ├── defaultProps.tsx │ │ │ ├── logo.svg │ │ │ ├── NestedApp.module.scss │ │ │ ├── NestedApp.tsx │ │ │ ├── NestedAppNative.tsx │ │ │ ├── Tooltip.module.scss │ │ │ ├── Tooltip.tsx │ │ │ └── utils.ts │ │ ├── NoResult │ │ │ ├── NoResult.md │ │ │ ├── NoResult.module.scss │ │ │ ├── NoResult.spec.ts │ │ │ ├── NoResult.tsx │ │ │ └── NoResultNative.tsx │ │ ├── NumberBox │ │ │ ├── numberbox-abstractions.ts │ │ │ ├── NumberBox.md │ │ │ ├── NumberBox.module.scss │ │ │ ├── NumberBox.spec.ts │ │ │ ├── NumberBox.tsx │ │ │ └── NumberBoxNative.tsx │ │ ├── Option │ │ │ ├── Option.md │ │ │ ├── Option.spec.ts │ │ │ ├── Option.tsx │ │ │ ├── OptionNative.tsx │ │ │ └── OptionTypeProvider.tsx │ │ ├── PageMetaTitle │ │ │ ├── PageMetaTilteNative.tsx │ │ │ ├── PageMetaTitle.md │ │ │ ├── PageMetaTitle.spec.ts │ │ │ └── PageMetaTitle.tsx │ │ ├── Pages │ │ │ ├── Page.md │ │ │ ├── Pages.md │ │ │ ├── Pages.module.scss │ │ │ ├── Pages.tsx │ │ │ └── PagesNative.tsx │ │ ├── Pagination │ │ │ ├── Pagination.md │ │ │ ├── Pagination.module.scss │ │ │ ├── Pagination.spec.ts │ │ │ ├── Pagination.tsx │ │ │ └── PaginationNative.tsx │ │ ├── PositionedContainer │ │ │ ├── PositionedContainer.module.scss │ │ │ ├── PositionedContainer.tsx │ │ │ └── PositionedContainerNative.tsx │ │ ├── ProfileMenu │ │ │ ├── ProfileMenu.module.scss │ │ │ └── ProfileMenu.tsx │ │ ├── ProgressBar │ │ │ ├── ProgressBar.md │ │ │ ├── ProgressBar.module.scss │ │ │ ├── ProgressBar.spec.ts │ │ │ ├── ProgressBar.tsx │ │ │ └── ProgressBarNative.tsx │ │ ├── Queue │ │ │ ├── Queue.md │ │ │ ├── Queue.spec.ts │ │ │ ├── Queue.tsx │ │ │ ├── queueActions.ts │ │ │ └── QueueNative.tsx │ │ ├── RadioGroup │ │ │ ├── RadioGroup.md │ │ │ ├── RadioGroup.module.scss │ │ │ ├── RadioGroup.spec.ts │ │ │ ├── RadioGroup.tsx │ │ │ ├── RadioGroupNative.tsx │ │ │ ├── RadioItem.tsx │ │ │ └── RadioItemNative.tsx │ │ ├── RealTimeAdapter │ │ │ ├── RealTimeAdapter.tsx │ │ │ └── RealTimeAdapterNative.tsx │ │ ├── Redirect │ │ │ ├── Redirect.md │ │ │ ├── Redirect.spec.ts │ │ │ └── Redirect.tsx │ │ ├── ResponsiveBar │ │ │ ├── README.md │ │ │ ├── ResponsiveBar.md │ │ │ ├── ResponsiveBar.module.scss │ │ │ ├── ResponsiveBar.spec.ts │ │ │ ├── ResponsiveBar.tsx │ │ │ └── ResponsiveBarNative.tsx │ │ ├── Select │ │ │ ├── HiddenOption.tsx │ │ │ ├── OptionContext.ts │ │ │ ├── Select.md │ │ │ ├── Select.module.scss │ │ │ ├── Select.spec.ts │ │ │ ├── Select.tsx │ │ │ ├── SelectContext.tsx │ │ │ └── SelectNative.tsx │ │ ├── SelectionStore │ │ │ ├── SelectionStore.md │ │ │ ├── SelectionStore.tsx │ │ │ └── SelectionStoreNative.tsx │ │ ├── Slider │ │ │ ├── Slider.md │ │ │ ├── Slider.module.scss │ │ │ ├── Slider.spec.ts │ │ │ ├── Slider.tsx │ │ │ └── SliderNative.tsx │ │ ├── Slot │ │ │ ├── Slot.md │ │ │ ├── Slot.spec.ts │ │ │ └── Slot.ts │ │ ├── SlotItem.tsx │ │ ├── SpaceFiller │ │ │ ├── SpaceFiller.md │ │ │ ├── SpaceFiller.module.scss │ │ │ ├── SpaceFiller.spec.ts │ │ │ ├── SpaceFiller.tsx │ │ │ └── SpaceFillerNative.tsx │ │ ├── Spinner │ │ │ ├── Spinner.md │ │ │ ├── Spinner.module.scss │ │ │ ├── Spinner.spec.ts │ │ │ ├── Spinner.tsx │ │ │ └── SpinnerNative.tsx │ │ ├── Splitter │ │ │ ├── HSplitter.md │ │ │ ├── HSplitter.spec.ts │ │ │ ├── Splitter.md │ │ │ ├── Splitter.module.scss │ │ │ ├── Splitter.spec.ts │ │ │ ├── Splitter.tsx │ │ │ ├── SplitterNative.tsx │ │ │ ├── utils.ts │ │ │ ├── VSplitter.md │ │ │ └── VSplitter.spec.ts │ │ ├── Stack │ │ │ ├── CHStack.md │ │ │ ├── CHStack.spec.ts │ │ │ ├── CVStack.md │ │ │ ├── CVStack.spec.ts │ │ │ ├── HStack.md │ │ │ ├── HStack.spec.ts │ │ │ ├── Stack.md │ │ │ ├── Stack.module.scss │ │ │ ├── Stack.spec.ts │ │ │ ├── Stack.tsx │ │ │ ├── StackNative.tsx │ │ │ ├── VStack.md │ │ │ └── VStack.spec.ts │ │ ├── StickyBox │ │ │ ├── StickyBox.md │ │ │ ├── StickyBox.module.scss │ │ │ ├── StickyBox.tsx │ │ │ └── StickyBoxNative.tsx │ │ ├── Switch │ │ │ ├── Switch.md │ │ │ ├── Switch.spec.ts │ │ │ └── Switch.tsx │ │ ├── Table │ │ │ ├── doc-resources │ │ │ │ └── list-component-data.js │ │ │ ├── react-table-config.d.ts │ │ │ ├── Table.md │ │ │ ├── Table.module.scss │ │ │ ├── Table.spec.ts │ │ │ ├── Table.tsx │ │ │ ├── TableNative.tsx │ │ │ └── useRowSelection.tsx │ │ ├── TableOfContents │ │ │ ├── TableOfContents.module.scss │ │ │ ├── TableOfContents.spec.ts │ │ │ ├── TableOfContents.tsx │ │ │ └── TableOfContentsNative.tsx │ │ ├── Tabs │ │ │ ├── TabContext.tsx │ │ │ ├── TabItem.md │ │ │ ├── TabItem.tsx │ │ │ ├── TabItemNative.tsx │ │ │ ├── Tabs.md │ │ │ ├── Tabs.module.scss │ │ │ ├── Tabs.spec.ts │ │ │ ├── Tabs.tsx │ │ │ └── TabsNative.tsx │ │ ├── Text │ │ │ ├── Text.md │ │ │ ├── Text.module.scss │ │ │ ├── Text.spec.ts │ │ │ ├── Text.tsx │ │ │ └── TextNative.tsx │ │ ├── TextArea │ │ │ ├── TextArea.md │ │ │ ├── TextArea.module.scss │ │ │ ├── TextArea.spec.ts │ │ │ ├── TextArea.tsx │ │ │ ├── TextAreaNative.tsx │ │ │ ├── TextAreaResizable.tsx │ │ │ └── useComposedRef.ts │ │ ├── TextBox │ │ │ ├── TextBox.md │ │ │ ├── TextBox.module.scss │ │ │ ├── TextBox.spec.ts │ │ │ ├── TextBox.tsx │ │ │ └── TextBoxNative.tsx │ │ ├── Theme │ │ │ ├── NotificationToast.tsx │ │ │ ├── Theme.md │ │ │ ├── Theme.module.scss │ │ │ ├── Theme.spec.ts │ │ │ ├── Theme.tsx │ │ │ └── ThemeNative.tsx │ │ ├── TimeInput │ │ │ ├── TimeInput.md │ │ │ ├── TimeInput.module.scss │ │ │ ├── TimeInput.spec.ts │ │ │ ├── TimeInput.tsx │ │ │ ├── TimeInputNative.tsx │ │ │ └── utils.ts │ │ ├── Timer │ │ │ ├── Timer.md │ │ │ ├── Timer.spec.ts │ │ │ ├── Timer.tsx │ │ │ └── TimerNative.tsx │ │ ├── Toggle │ │ │ ├── Toggle.module.scss │ │ │ └── Toggle.tsx │ │ ├── ToneChangerButton │ │ │ ├── ToneChangerButton.md │ │ │ ├── ToneChangerButton.spec.ts │ │ │ └── ToneChangerButton.tsx │ │ ├── ToneSwitch │ │ │ ├── ToneSwitch.md │ │ │ ├── ToneSwitch.module.scss │ │ │ ├── ToneSwitch.spec.ts │ │ │ ├── ToneSwitch.tsx │ │ │ └── ToneSwitchNative.tsx │ │ ├── Tooltip │ │ │ ├── Tooltip.md │ │ │ ├── Tooltip.module.scss │ │ │ ├── Tooltip.spec.ts │ │ │ ├── Tooltip.tsx │ │ │ └── TooltipNative.tsx │ │ ├── Tree │ │ │ ├── testData.ts │ │ │ ├── Tree-dynamic.spec.ts │ │ │ ├── Tree-icons.spec.ts │ │ │ ├── Tree.md │ │ │ ├── Tree.spec.ts │ │ │ ├── TreeComponent.module.scss │ │ │ ├── TreeComponent.tsx │ │ │ └── TreeNative.tsx │ │ ├── TreeDisplay │ │ │ ├── TreeDisplay.md │ │ │ ├── TreeDisplay.module.scss │ │ │ ├── TreeDisplay.tsx │ │ │ └── TreeDisplayNative.tsx │ │ ├── ValidationSummary │ │ │ ├── ValidationSummary.module.scss │ │ │ └── ValidationSummary.tsx │ │ └── VisuallyHidden.tsx │ ├── components-core │ │ ├── abstractions │ │ │ ├── ComponentRenderer.ts │ │ │ ├── LoaderRenderer.ts │ │ │ ├── standalone.ts │ │ │ └── treeAbstractions.ts │ │ ├── action │ │ │ ├── actions.ts │ │ │ ├── APICall.tsx │ │ │ ├── FileDownloadAction.tsx │ │ │ ├── FileUploadAction.tsx │ │ │ ├── NavigateAction.tsx │ │ │ └── TimedAction.tsx │ │ ├── ApiBoundComponent.tsx │ │ ├── appContext │ │ │ ├── date-functions.ts │ │ │ ├── math-function.ts │ │ │ └── misc-utils.ts │ │ ├── AppContext.tsx │ │ ├── behaviors │ │ │ ├── Behavior.tsx │ │ │ ├── BehaviorContext.tsx │ │ │ └── CoreBehaviors.tsx │ │ ├── component-hooks.ts │ │ ├── ComponentDecorator.tsx │ │ ├── ComponentViewer.tsx │ │ ├── CompoundComponent.tsx │ │ ├── constants.ts │ │ ├── DebugViewProvider.tsx │ │ ├── descriptorHelper.ts │ │ ├── devtools │ │ │ ├── InspectorDialog.module.scss │ │ │ ├── InspectorDialog.tsx │ │ │ └── InspectorDialogVisibilityContext.tsx │ │ ├── EngineError.ts │ │ ├── event-handlers.ts │ │ ├── InspectorButton.module.scss │ │ ├── InspectorContext.tsx │ │ ├── interception │ │ │ ├── abstractions.ts │ │ │ ├── ApiInterceptor.ts │ │ │ ├── ApiInterceptorProvider.tsx │ │ │ ├── apiInterceptorWorker.ts │ │ │ ├── Backend.ts │ │ │ ├── Errors.ts │ │ │ ├── IndexedDb.ts │ │ │ ├── initMock.ts │ │ │ ├── InMemoryDb.ts │ │ │ ├── ReadonlyCollection.ts │ │ │ └── useApiInterceptorContext.tsx │ │ ├── loader │ │ │ ├── ApiLoader.tsx │ │ │ ├── DataLoader.tsx │ │ │ ├── ExternalDataLoader.tsx │ │ │ ├── Loader.tsx │ │ │ ├── MockLoaderRenderer.tsx │ │ │ └── PageableLoader.tsx │ │ ├── LoaderComponent.tsx │ │ ├── markup-check.ts │ │ ├── parts.ts │ │ ├── renderers.ts │ │ ├── rendering │ │ │ ├── AppContent.tsx │ │ │ ├── AppRoot.tsx │ │ │ ├── AppWrapper.tsx │ │ │ ├── buildProxy.ts │ │ │ ├── collectFnVarDeps.ts │ │ │ ├── ComponentAdapter.tsx │ │ │ ├── ComponentWrapper.tsx │ │ │ ├── Container.tsx │ │ │ ├── containers.ts │ │ │ ├── ContainerWrapper.tsx │ │ │ ├── ErrorBoundary.module.scss │ │ │ ├── ErrorBoundary.tsx │ │ │ ├── InvalidComponent.module.scss │ │ │ ├── InvalidComponent.tsx │ │ │ ├── nodeUtils.ts │ │ │ ├── reducer.ts │ │ │ ├── renderChild.tsx │ │ │ ├── StandaloneComponent.tsx │ │ │ ├── StateContainer.tsx │ │ │ ├── UnknownComponent.module.scss │ │ │ ├── UnknownComponent.tsx │ │ │ └── valueExtractor.ts │ │ ├── reportEngineError.ts │ │ ├── RestApiProxy.ts │ │ ├── script-runner │ │ │ ├── asyncProxy.ts │ │ │ ├── AttributeValueParser.ts │ │ │ ├── bannedFunctions.ts │ │ │ ├── BindingTreeEvaluationContext.ts │ │ │ ├── eval-tree-async.ts │ │ │ ├── eval-tree-common.ts │ │ │ ├── eval-tree-sync.ts │ │ │ ├── ParameterParser.ts │ │ │ ├── process-statement-async.ts │ │ │ ├── process-statement-common.ts │ │ │ ├── process-statement-sync.ts │ │ │ ├── ScriptingSourceTree.ts │ │ │ ├── simplify-expression.ts │ │ │ ├── statement-queue.ts │ │ │ └── visitors.ts │ │ ├── StandaloneApp.tsx │ │ ├── StandaloneExtensionManager.ts │ │ ├── TableOfContentsContext.tsx │ │ ├── theming │ │ │ ├── _themes.scss │ │ │ ├── component-layout-resolver.ts │ │ │ ├── extendThemeUtils.ts │ │ │ ├── hvar.ts │ │ │ ├── layout-resolver.ts │ │ │ ├── parse-layout-props.ts │ │ │ ├── StyleContext.tsx │ │ │ ├── StyleRegistry.ts │ │ │ ├── ThemeContext.tsx │ │ │ ├── ThemeProvider.tsx │ │ │ ├── themes │ │ │ │ ├── base-utils.ts │ │ │ │ ├── palette.ts │ │ │ │ ├── root.ts │ │ │ │ ├── solid.ts │ │ │ │ ├── theme-colors.ts │ │ │ │ └── xmlui.ts │ │ │ ├── themeVars.module.scss │ │ │ ├── themeVars.ts │ │ │ ├── transformThemeVars.ts │ │ │ └── utils.ts │ │ ├── utils │ │ │ ├── actionUtils.ts │ │ │ ├── audio-utils.ts │ │ │ ├── compound-utils.ts │ │ │ ├── css-utils.ts │ │ │ ├── DataLoaderQueryKeyGenerator.ts │ │ │ ├── date-utils.ts │ │ │ ├── extractParam.ts │ │ │ ├── hooks.tsx │ │ │ ├── LruCache.ts │ │ │ ├── mergeProps.ts │ │ │ ├── misc.ts │ │ │ ├── request-params.ts │ │ │ ├── statementUtils.ts │ │ │ └── treeUtils.ts │ │ └── xmlui-parser.ts │ ├── index-standalone.ts │ ├── index.scss │ ├── index.ts │ ├── language-server │ │ ├── server-common.ts │ │ ├── server-web-worker.ts │ │ ├── server.ts │ │ ├── services │ │ │ ├── common │ │ │ │ ├── docs-generation.ts │ │ │ │ ├── lsp-utils.ts │ │ │ │ ├── metadata-utils.ts │ │ │ │ └── syntax-node-utilities.ts │ │ │ ├── completion.ts │ │ │ ├── diagnostic.ts │ │ │ ├── format.ts │ │ │ └── hover.ts │ │ └── xmlui-metadata-generated.mjs │ ├── logging │ │ ├── LoggerContext.tsx │ │ ├── LoggerInitializer.tsx │ │ ├── LoggerService.ts │ │ └── xmlui.ts │ ├── logo.svg │ ├── parsers │ │ ├── common │ │ │ ├── GenericToken.ts │ │ │ ├── InputStream.ts │ │ │ └── utils.ts │ │ ├── scripting │ │ │ ├── code-behind-collect.ts │ │ │ ├── Lexer.ts │ │ │ ├── modules.ts │ │ │ ├── Parser.ts │ │ │ ├── ParserError.ts │ │ │ ├── ScriptingNodeTypes.ts │ │ │ ├── TokenTrait.ts │ │ │ ├── TokenType.ts │ │ │ └── tree-visitor.ts │ │ ├── style-parser │ │ │ ├── errors.ts │ │ │ ├── source-tree.ts │ │ │ ├── StyleInputStream.ts │ │ │ ├── StyleLexer.ts │ │ │ ├── StyleParser.ts │ │ │ └── tokens.ts │ │ └── xmlui-parser │ │ ├── CharacterCodes.ts │ │ ├── diagnostics.ts │ │ ├── fileExtensions.ts │ │ ├── index.ts │ │ ├── lint.ts │ │ ├── parser.ts │ │ ├── ParserError.ts │ │ ├── scanner.ts │ │ ├── syntax-kind.ts │ │ ├── syntax-node.ts │ │ ├── transform.ts │ │ ├── utils.ts │ │ ├── xmlui-serializer.ts │ │ └── xmlui-tree.ts │ ├── react-app-env.d.ts │ ├── syntax │ │ ├── monaco │ │ │ ├── grammar.monacoLanguage.ts │ │ │ ├── index.ts │ │ │ ├── xmlui-dark.ts │ │ │ ├── xmlui-light.ts │ │ │ └── xmluiscript.monacoLanguage.ts │ │ └── textMate │ │ ├── index.ts │ │ ├── xmlui-dark.json │ │ ├── xmlui-light.json │ │ ├── xmlui.json │ │ └── xmlui.tmLanguage.json │ ├── testing │ │ ├── assertions.ts │ │ ├── component-test-helpers.ts │ │ ├── ComponentDrivers.ts │ │ ├── drivers │ │ │ ├── DateInputDriver.ts │ │ │ ├── ModalDialogDriver.ts │ │ │ ├── NumberBoxDriver.ts │ │ │ ├── TextBoxDriver.ts │ │ │ ├── TimeInputDriver.ts │ │ │ ├── TimerDriver.ts │ │ │ └── TreeDriver.ts │ │ ├── fixtures.ts │ │ ├── infrastructure │ │ │ ├── index.html │ │ │ ├── main.tsx │ │ │ ├── public │ │ │ │ ├── mockServiceWorker.js │ │ │ │ ├── resources │ │ │ │ │ ├── bell.svg │ │ │ │ │ ├── box.svg │ │ │ │ │ ├── doc.svg │ │ │ │ │ ├── eye.svg │ │ │ │ │ ├── flower-640x480.jpg │ │ │ │ │ ├── sun.svg │ │ │ │ │ ├── test-image-100x100.jpg │ │ │ │ │ └── txt.svg │ │ │ │ └── serve.json │ │ │ └── TestBed.tsx │ │ └── themed-app-test-helpers.ts │ └── vite-env.d.ts ├── tests │ ├── components │ │ ├── CodeBlock │ │ │ └── hightlight-code.test.ts │ │ ├── playground-pattern.test.ts │ │ └── Tree │ │ └── Tree-states.test.ts │ ├── components-core │ │ ├── abstractions │ │ │ └── treeAbstractions.test.ts │ │ ├── container │ │ │ └── buildProxy.test.ts │ │ ├── interception │ │ │ ├── orderBy.test.ts │ │ │ ├── ReadOnlyCollection.test.ts │ │ │ └── request-param-converter.test.ts │ │ ├── scripts-runner │ │ │ ├── AttributeValueParser.test.ts │ │ │ ├── eval-tree-arrow-async.test.ts │ │ │ ├── eval-tree-arrow.test.ts │ │ │ ├── eval-tree-func-decl-async.test.ts │ │ │ ├── eval-tree-func-decl.test.ts │ │ │ ├── eval-tree-pre-post.test.ts │ │ │ ├── eval-tree-regression.test.ts │ │ │ ├── eval-tree.test.ts │ │ │ ├── function-proxy.test.ts │ │ │ ├── parser-regression.test.ts │ │ │ ├── process-event.test.ts │ │ │ ├── process-function.test.ts │ │ │ ├── process-implicit-context.test.ts │ │ │ ├── process-statement-asgn.test.ts │ │ │ ├── process-statement-destruct.test.ts │ │ │ ├── process-statement-regs.test.ts │ │ │ ├── process-statement-sync.test.ts │ │ │ ├── process-statement.test.ts │ │ │ ├── process-switch-sync.test.ts │ │ │ ├── process-switch.test.ts │ │ │ ├── process-try-sync.test.ts │ │ │ ├── process-try.test.ts │ │ │ └── test-helpers.ts │ │ ├── test-metadata-handler.ts │ │ ├── theming │ │ │ ├── border-segments.test.ts │ │ │ ├── component-layout.resolver.test.ts │ │ │ ├── layout-property-parser.test.ts │ │ │ ├── layout-resolver.test.ts │ │ │ ├── layout-resolver2.test.ts │ │ │ ├── layout-vp-override.test.ts │ │ │ └── padding-segments.test.ts │ │ └── utils │ │ ├── date-utils.test.ts │ │ ├── format-human-elapsed-time.test.ts │ │ └── LruCache.test.ts │ ├── language-server │ │ ├── completion.test.ts │ │ ├── format.test.ts │ │ ├── hover.test.ts │ │ └── mockData.ts │ └── parsers │ ├── common │ │ └── input-stream.test.ts │ ├── markdown │ │ └── parse-binding-expression.test.ts │ ├── parameter-parser.test.ts │ ├── paremeter-parser.test.ts │ ├── scripting │ │ ├── eval-tree-arrow.test.ts │ │ ├── eval-tree-pre-post.test.ts │ │ ├── eval-tree.test.ts │ │ ├── function-proxy.test.ts │ │ ├── lexer-literals.test.ts │ │ ├── lexer-misc.test.ts │ │ ├── module-parse.test.ts │ │ ├── parser-arrow.test.ts │ │ ├── parser-assignments.test.ts │ │ ├── parser-binary.test.ts │ │ ├── parser-destructuring.test.ts │ │ ├── parser-errors.test.ts │ │ ├── parser-expressions.test.ts │ │ ├── parser-function.test.ts │ │ ├── parser-literals.test.ts │ │ ├── parser-primary.test.ts │ │ ├── parser-regex.test.ts │ │ ├── parser-statements.test.ts │ │ ├── parser-unary.test.ts │ │ ├── process-event.test.ts │ │ ├── process-implicit-context.test.ts │ │ ├── process-statement-asgn.test.ts │ │ ├── process-statement-destruct.test.ts │ │ ├── process-statement-regs.test.ts │ │ ├── process-statement-sync.test.ts │ │ ├── process-statement.test.ts │ │ ├── process-switch-sync.test.ts │ │ ├── process-switch.test.ts │ │ ├── process-try-sync.test.ts │ │ ├── process-try.test.ts │ │ ├── simplify-expression.test.ts │ │ ├── statement-hooks.test.ts │ │ └── test-helpers.ts │ ├── style-parser │ │ ├── generateHvarChain.test.ts │ │ ├── parseHVar.test.ts │ │ ├── parser.test.ts │ │ └── tokens.test.ts │ └── xmlui │ ├── lint.test.ts │ ├── parser.test.ts │ ├── scanner.test.ts │ ├── transform.attr.test.ts │ ├── transform.circular.test.ts │ ├── transform.element.test.ts │ ├── transform.errors.test.ts │ ├── transform.escape.test.ts │ ├── transform.regression.test.ts │ ├── transform.script.test.ts │ ├── transform.test.ts │ └── xmlui.ts ├── tests-e2e │ ├── api-bound-component-regression.spec.ts │ ├── api-call-as-extracted-component.spec.ts │ ├── assign-to-object-or-array-regression.spec.ts │ ├── binding-regression.spec.ts │ ├── children-as-template-context-vars.spec.ts │ ├── compound-component.spec.ts │ ├── context-vars-regression.spec.ts │ ├── data-bindings.spec.ts │ ├── datasource-and-api-usage-in-var.spec.ts │ ├── datasource-direct-binding.spec.ts │ ├── datasource-onLoaded-regression.spec.ts │ ├── modify-array-item-regression.spec.ts │ ├── namespaces.spec.ts │ ├── push-to-array-regression.spec.ts │ ├── screen-breakpoints.spec.ts │ ├── scripting.spec.ts │ ├── state-scope-in-pages.spec.ts │ └── state-var-scopes.spec.ts ├── tsconfig.bin.json ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── vitest.config.ts ``` # Files -------------------------------------------------------------------------------- /xmlui/src/components/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); 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); 167 | const { height: heightHeadingLong } = await getBounds(longHeading); 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"), 187 | ); 188 | const { height: heightHeadingLong } = await getBounds(await createHeadingDriver("headingLong")); 189 | 190 | expect(heightHeadingLong).toEqualWithTolerance(heightHeadingShort * 3, 0.01); 191 | }); 192 | 193 | // --- ellipses 194 | 195 | test("ellipses in long text", async ({ initTestBed, createHeadingDriver }) => { 196 | await initTestBed(` 197 | <Fragment> 198 | <Heading testId="headingShort" width="200">Short</Heading> 199 | <Heading testId="headingLong" width="200" maxLines="1"> 200 | Though this long text does not fit into a single line, please do not break it! 201 | </Heading> 202 | </Fragment> 203 | `); 204 | const shortTextDriver = await createHeadingDriver("headingShort"); 205 | const longTextDriver = await createHeadingDriver("headingLong"); 206 | 207 | const { height: heightHeadingShort } = await getBounds(shortTextDriver); 208 | const { height: heightHeadingLong } = await getBounds(longTextDriver); 209 | 210 | expect(heightHeadingShort).toEqual(heightHeadingLong); 211 | await expect(longTextDriver.component).toHaveCSS("text-overflow", "ellipsis"); 212 | }); 213 | 214 | test("no ellipses long text", async ({ initTestBed, createHeadingDriver }) => { 215 | await initTestBed(` 216 | <Fragment> 217 | <Heading testId="headingShort" width="200">Short</Heading> 218 | <Heading testId="headingLong" width="200" maxLines="1" ellipses="false"> 219 | Though this long text does not fit into a single line, please do not break it! 220 | </Heading> 221 | </Fragment> 222 | `); 223 | const shortTextDriver = await createHeadingDriver("headingShort"); 224 | const longTextDriver = await createHeadingDriver("headingLong"); 225 | 226 | const { height: heightHeadingShort } = await getBounds(shortTextDriver); 227 | const { height: heightHeadingLong } = await getBounds(longTextDriver); 228 | 229 | expect(heightHeadingShort).toEqual(heightHeadingLong); 230 | await expect(longTextDriver.component).not.toHaveCSS("text-overflow", "ellipsis"); 231 | }); 232 | 233 | // --- implicit text 234 | 235 | test("nested text whitespace collapsing", async ({ initTestBed, createHeadingDriver }) => { 236 | await initTestBed(` 237 | <Heading> 238 | test content 239 | here 240 | </Heading> 241 | `); 242 | const driver = await createHeadingDriver(); 243 | 244 | await expect(driver.component).toHaveText("test content here"); 245 | }); 246 | }); 247 | 248 | // --- Other Tests 249 | 250 | // --- formatting 251 | 252 | test("non-breaking space", async ({ initTestBed, createHeadingDriver }) => { 253 | const content = "4 spaces here [ ], &nbsp; written out."; 254 | const expected = "4 spaces here [ ], written out."; 255 | 256 | await initTestBed(`<Heading>${content}</Heading>`); 257 | const driver = await createHeadingDriver(); 258 | 259 | await expect(driver.component).toHaveText(expected); 260 | }); 261 | 262 | test("break long text", async ({ initTestBed, createHeadingDriver }) => { 263 | await initTestBed(` 264 | <Fragment> 265 | <Heading testId="headingShort" width="200px">Short</Heading> 266 | <Heading testId="headingLong" width="200px"> 267 | This long text does not fit into a viewport with a 200-pixel width. 268 | </Heading> 269 | </Fragment> 270 | `); 271 | const shortHeading = await createHeadingDriver("headingShort"); 272 | const longHeading = await createHeadingDriver("headingLong"); 273 | 274 | await expect(longHeading.component).toBeVisible(); 275 | 276 | const { height: heightHeadingShort } = await getBounds(shortHeading); 277 | const { height: heightHeadingLong } = await getBounds(longHeading); 278 | 279 | expect(heightHeadingShort).toBeLessThan(heightHeadingLong); 280 | }); 281 | 282 | // --- inside layout 283 | 284 | test("Heading is inline in HStack", async ({ 285 | initTestBed, 286 | createHeadingDriver, 287 | createIconDriver, 288 | }) => { 289 | await initTestBed(` 290 | <HStack> 291 | <Heading testId="heading0" >Show me a trash</Heading> 292 | <Icon testId="icon0" name="trash"/> 293 | <Heading testId="heading1" >icon!</Heading> 294 | </HStack> 295 | `); 296 | const { top: topHeading0 } = await getBounds(await createHeadingDriver("heading0")); 297 | const { top: topIcon0 } = await getBounds(await createIconDriver("icon0")); 298 | const { top: topHeading1 } = await getBounds(await createHeadingDriver("heading1")); 299 | 300 | expect(topHeading0).toEqual(topIcon0); 301 | expect(topIcon0).toEqual(topHeading1); 302 | }); 303 | 304 | test("Heading is block in VStack", async ({ 305 | initTestBed, 306 | createHeadingDriver, 307 | createIconDriver, 308 | }) => { 309 | await initTestBed(` 310 | <VStack> 311 | <Heading testId="heading0" >Show me a trash</Heading> 312 | <Icon testId="icon0" name="trash"/> 313 | <Heading testId="heading1" >icon!</Heading> 314 | </VStack> 315 | `); 316 | const { top: topHeading0 } = await getBounds(await createHeadingDriver("heading0")); 317 | const { top: topIcon0 } = await getBounds((await createIconDriver("icon0")).svgIcon); 318 | const { top: topHeading1 } = await getBounds(await createHeadingDriver("heading1")); 319 | 320 | expect(topHeading0).toBeLessThan(topIcon0); 321 | expect(topIcon0).toBeLessThan(topHeading1); 322 | }); 323 | 324 | test("Heading overflows container dimensions", async ({ 325 | initTestBed, 326 | createVStackDriver, 327 | createHeadingDriver, 328 | }) => { 329 | const widthLayoutExpected = 300; 330 | const widthHeadingExpected = 400; 331 | await initTestBed(` 332 | <VStack height="40" width="${widthLayoutExpected}px" border="1px solid red"> 333 | <Heading testId="heading" width="${widthHeadingExpected}px"> 334 | This text sets its size explicitly bigger than its container. 335 | As it does not fit into the container's viewport, it overflows. 336 | </Heading> 337 | </VStack> 338 | `); 339 | const { width: widthLayout } = await getBounds(await createVStackDriver()); 340 | const { width: widthHeading } = await getBounds(await createHeadingDriver("heading")); 341 | 342 | expect(widthHeading).toEqual(widthHeadingExpected); 343 | expect(widthLayout).toEqual(widthLayoutExpected); 344 | }); 345 | 346 | test("Heading accepts custom props", async ({ initTestBed, createHeadingDriver }) => { 347 | await initTestBed(`<Heading custom="test" boolean>Test Heading</Heading>`); 348 | const headingDriver = await createHeadingDriver(); 349 | 350 | await expect(headingDriver.component).toHaveAttribute("custom", "test"); 351 | await expect(headingDriver.component).toHaveAttribute("boolean", "true"); 352 | }); 353 | 354 | headingLevels.forEach((level) => { 355 | test(`HtmlTag '${level}' accepts custom props`, async ({ initTestBed, createHeadingDriver }) => { 356 | await initTestBed( 357 | `<${level.toLowerCase()} custom="test" boolean>Test Heading</${level.toLowerCase()}>`, 358 | ); 359 | const headingDriver = await createHeadingDriver(); 360 | 361 | await expect(headingDriver.component).toHaveAttribute("custom", "test"); 362 | await expect(headingDriver.component).toHaveAttribute("boolean", "true"); 363 | }); 364 | }); 365 | 366 | // ============================================================================= 367 | // COMPREHENSIVE END-TO-END TESTS (Following XMLUI Testing Conventions) 368 | // ============================================================================= 369 | 370 | // ============================================================================= 371 | // BASIC FUNCTIONALITY TESTS 372 | // ============================================================================= 373 | 374 | test.describe("Basic Functionality", () => { 375 | test("component renders with basic props", async ({ initTestBed, createHeadingDriver }) => { 376 | await initTestBed(`<Heading>Test Heading</Heading>`); 377 | const driver = await createHeadingDriver(); 378 | await expect(driver.component).toBeVisible(); 379 | await expect(driver.component).toHaveText("Test Heading"); 380 | }); 381 | 382 | test("component renders with all heading levels", async ({ 383 | initTestBed, 384 | createHeadingDriver, 385 | }) => { 386 | const levels = ["h1", "h2", "h3", "h4", "h5", "h6"]; 387 | for (const level of levels) { 388 | await initTestBed(`<Heading level="${level}">Level ${level}</Heading>`); 389 | const driver = await createHeadingDriver(); 390 | await expect(driver.component).toBeVisible(); 391 | const tagName = await driver.getComponentTagName(); 392 | expect(tagName.toLowerCase()).toBe(level); 393 | } 394 | }); 395 | 396 | test("specialized heading components render correctly", async ({ 397 | initTestBed, 398 | createHeadingDriver, 399 | }) => { 400 | const components = ["H1", "H2", "H3", "H4", "H5", "H6"]; 401 | for (const component of components) { 402 | await initTestBed(`<${component}>Specialized ${component}</${component}>`); 403 | const driver = await createHeadingDriver(); 404 | await expect(driver.component).toBeVisible(); 405 | await expect(driver.component).toHaveText(`Specialized ${component}`); 406 | } 407 | }); 408 | 409 | test("component handles value prop", async ({ initTestBed, createHeadingDriver }) => { 410 | await initTestBed(`<Heading value="Value prop text" />`); 411 | const driver = await createHeadingDriver(); 412 | await expect(driver.component).toHaveText("Value prop text"); 413 | }); 414 | 415 | test("component handles child content", async ({ initTestBed, createHeadingDriver }) => { 416 | await initTestBed(`<Heading>Child content text</Heading>`); 417 | const driver = await createHeadingDriver(); 418 | await expect(driver.component).toHaveText("Child content text"); 419 | }); 420 | }); 421 | 422 | // ============================================================================= 423 | // ACCESSIBILITY TESTS (REQUIRED) 424 | // ============================================================================= 425 | 426 | test.describe("Accessibility", () => { 427 | test("component has correct semantic heading roles", async ({ 428 | initTestBed, 429 | createHeadingDriver, 430 | }) => { 431 | await initTestBed(`<Heading level="h2">Accessible Heading</Heading>`); 432 | const driver = await createHeadingDriver(); 433 | await expect(driver.component).toHaveRole("heading"); 434 | const tagName = await driver.getComponentTagName(); 435 | expect(tagName.toLowerCase()).toBe("h2"); 436 | }); 437 | 438 | test("all heading levels have correct semantic roles", async ({ 439 | initTestBed, 440 | createHeadingDriver, 441 | }) => { 442 | const levels = ["h1", "h2", "h3", "h4", "h5", "h6"]; 443 | for (const level of levels) { 444 | await initTestBed(`<Heading level="${level}">Level ${level}</Heading>`); 445 | const driver = await createHeadingDriver(); 446 | await expect(driver.component).toHaveRole("heading"); 447 | const tagName = await driver.getComponentTagName(); 448 | expect(tagName.toLowerCase()).toBe(level); 449 | } 450 | }); 451 | 452 | test("specialized components maintain semantic heading structure", async ({ 453 | initTestBed, 454 | createHeadingDriver, 455 | }) => { 456 | const components = [ 457 | { component: "H1", expectedTag: "h1" }, 458 | { component: "H2", expectedTag: "h2" }, 459 | { component: "H3", expectedTag: "h3" }, 460 | { component: "H4", expectedTag: "h4" }, 461 | { component: "H5", expectedTag: "h5" }, 462 | { component: "H6", expectedTag: "h6" }, 463 | ]; 464 | 465 | for (const { component, expectedTag } of components) { 466 | await initTestBed(`<${component}>Heading Level ${expectedTag}</${component}>`); 467 | const driver = await createHeadingDriver(); 468 | await expect(driver.component).toHaveRole("heading"); 469 | const tagName = await driver.getComponentTagName(); 470 | expect(tagName.toLowerCase()).toBe(expectedTag); 471 | } 472 | }); 473 | 474 | test("component supports accessible text content", async ({ 475 | initTestBed, 476 | createHeadingDriver, 477 | }) => { 478 | await initTestBed(`<Heading>Accessible heading with proper content</Heading>`); 479 | const driver = await createHeadingDriver(); 480 | await expect(driver.component).toBeVisible(); 481 | await expect(driver.component).toHaveText("Accessible heading with proper content"); 482 | }); 483 | 484 | test("component supports screen reader navigation", async ({ 485 | initTestBed, 486 | createHeadingDriver, 487 | page, 488 | }) => { 489 | await initTestBed(` 490 | <VStack> 491 | <H1 testId="h1">Main Title</H1> 492 | <H2 testId="h2">Section Title</H2> 493 | <H3 testId="h3">Subsection Title</H3> 494 | </VStack> 495 | `); 496 | 497 | // Verify heading structure by using testId selectors 498 | const h1 = page.getByTestId("h1"); 499 | const h2 = page.getByTestId("h2"); 500 | const h3 = page.getByTestId("h3"); 501 | 502 | await expect(h1).toHaveRole("heading"); 503 | await expect(h2).toHaveRole("heading"); 504 | await expect(h3).toHaveRole("heading"); 505 | 506 | // Verify tag names for semantic structure 507 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase()); 508 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase()); 509 | const h3TagName = await h3.evaluate((el) => el.tagName.toLowerCase()); 510 | 511 | expect(h1TagName).toBe("h1"); 512 | expect(h2TagName).toBe("h2"); 513 | expect(h3TagName).toBe("h3"); 514 | }); 515 | }); 516 | 517 | // ============================================================================= 518 | // VISUAL STATE TESTS 519 | // ============================================================================= 520 | 521 | test.describe("Visual States & Themes", () => { 522 | test("component applies theme variables correctly", async ({ 523 | initTestBed, 524 | createHeadingDriver, 525 | }) => { 526 | await initTestBed(`<Heading>Themed Heading</Heading>`, { 527 | testThemeVars: { 528 | "color-Heading": "rgb(255, 0, 0)", 529 | }, 530 | }); 531 | const driver = await createHeadingDriver(); 532 | await expect(driver.component).toBeVisible(); 533 | 534 | // Test that the component handles theme variables (may not always apply due to CSS specificity) 535 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color); 536 | 537 | // Either the theme color is applied or the component handles it gracefully 538 | if (color === "rgb(255, 0, 0)") { 539 | await expect(driver.component).toHaveCSS("color", "rgb(255, 0, 0)"); 540 | } else { 541 | // Component exists and functions even if theme variable isn't applied 542 | await expect(driver.component).toBeVisible(); 543 | } 544 | }); 545 | 546 | test("component supports different heading levels with different font sizes", async ({ 547 | initTestBed, 548 | createHeadingDriver, 549 | }) => { 550 | // Test that h1 is larger than h2, h2 larger than h3, etc. 551 | await initTestBed(` 552 | <VStack> 553 | <H1 testId="h1">Heading 1</H1> 554 | <H2 testId="h2">Heading 2</H2> 555 | <H3 testId="h3">Heading 3</H3> 556 | </VStack> 557 | `); 558 | 559 | const h1Driver = await createHeadingDriver("h1"); 560 | const h2Driver = await createHeadingDriver("h2"); 561 | const h3Driver = await createHeadingDriver("h3"); 562 | 563 | const h1FontSize = await h1Driver.component.evaluate((el) => getComputedStyle(el).fontSize); 564 | const h2FontSize = await h2Driver.component.evaluate((el) => getComputedStyle(el).fontSize); 565 | const h3FontSize = await h3Driver.component.evaluate((el) => getComputedStyle(el).fontSize); 566 | 567 | const h1Size = parseFloat(h1FontSize); 568 | const h2Size = parseFloat(h2FontSize); 569 | const h3Size = parseFloat(h3FontSize); 570 | 571 | expect(h1Size).toBeGreaterThan(h2Size); 572 | expect(h2Size).toBeGreaterThan(h3Size); 573 | }); 574 | 575 | test("component supports custom styling props", async ({ initTestBed, createHeadingDriver }) => { 576 | await initTestBed(`<Heading color="blue" fontSize="24px">Custom Styled</Heading>`); 577 | const driver = await createHeadingDriver(); 578 | await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)"); 579 | await expect(driver.component).toHaveCSS("font-size", "24px"); 580 | }); 581 | 582 | test("component handles font weight variations", async ({ initTestBed, createHeadingDriver }) => { 583 | await initTestBed(`<Heading>Default Weight Heading</Heading>`); 584 | const driver = await createHeadingDriver(); 585 | 586 | // Verify default font weight is set (typically 600 for headings) 587 | const fontWeight = await driver.component.evaluate((el) => getComputedStyle(el).fontWeight); 588 | expect(parseInt(fontWeight)).toBeGreaterThanOrEqual(400); 589 | }); 590 | 591 | test("component supports text alignment", async ({ initTestBed, createHeadingDriver }) => { 592 | await initTestBed(`<Heading textAlign="center">Centered Heading</Heading>`); 593 | const driver = await createHeadingDriver(); 594 | await expect(driver.component).toHaveCSS("text-align", "center"); 595 | }); 596 | 597 | test("component handles overflow and text truncation", async ({ 598 | initTestBed, 599 | createHeadingDriver, 600 | }) => { 601 | await initTestBed(` 602 | <Heading width="100px" maxLines="1"> 603 | This is a very long heading that should be truncated 604 | </Heading> 605 | `); 606 | const driver = await createHeadingDriver(); 607 | await expect(driver.component).toHaveCSS("text-overflow", "ellipsis"); 608 | await expect(driver.component).toHaveCSS("overflow", "hidden"); 609 | }); 610 | }); 611 | 612 | // ============================================================================= 613 | // EDGE CASE TESTS (CRITICAL) 614 | // ============================================================================= 615 | 616 | test.describe("Edge Cases", () => { 617 | test("component handles null and undefined props gracefully", async ({ initTestBed, page }) => { 618 | await initTestBed(`<Heading/>`); 619 | const component = page.getByTestId("test-id-component"); 620 | 621 | // Check if component exists in DOM 622 | const exists = await component.count(); 623 | expect(exists).toBe(1); 624 | 625 | // Component with no content may be hidden but should exist 626 | const isVisible = await component.isVisible(); 627 | if (!isVisible) { 628 | // If not visible, that's acceptable for empty headings 629 | expect(isVisible).toBe(false); 630 | } else { 631 | await expect(component).toBeVisible(); 632 | } 633 | }); 634 | 635 | test("component handles empty content", async ({ initTestBed, page }) => { 636 | await initTestBed(`<Heading value="" />`); 637 | const component = page.getByTestId("test-id-component"); 638 | 639 | // Check if component exists in DOM 640 | const exists = await component.count(); 641 | expect(exists).toBe(1); 642 | 643 | // Component with empty value may be hidden but should exist 644 | const isVisible = await component.isVisible(); 645 | if (!isVisible) { 646 | // If not visible, that's acceptable for empty headings 647 | expect(isVisible).toBe(false); 648 | } else { 649 | await expect(component).toBeVisible(); 650 | await expect(component).toHaveText(""); 651 | } 652 | }); 653 | 654 | test("component handles whitespace-only content", async ({ initTestBed, page }) => { 655 | await initTestBed(`<Heading> </Heading>`); 656 | const component = page.getByTestId("test-id-component"); 657 | 658 | // Check if component exists in DOM 659 | const exists = await component.count(); 660 | expect(exists).toBe(1); 661 | 662 | // Component with whitespace-only content may be hidden but should exist 663 | const isVisible = await component.isVisible(); 664 | if (!isVisible) { 665 | // If not visible, that's acceptable for whitespace-only headings 666 | expect(isVisible).toBe(false); 667 | } else { 668 | await expect(component).toBeVisible(); 669 | } 670 | }); 671 | 672 | test("component handles special characters correctly", async ({ 673 | initTestBed, 674 | createHeadingDriver, 675 | }) => { 676 | await initTestBed(`<Heading>Test with émojis 🚀 & quotes "hello"</Heading>`); 677 | const driver = await createHeadingDriver(); 678 | await expect(driver.component).toBeVisible(); 679 | await expect(driver.component).toHaveText('Test with émojis 🚀 & quotes "hello"'); 680 | }); 681 | 682 | test("component handles very long text content", async ({ initTestBed, createHeadingDriver }) => { 683 | const longText = "A".repeat(1000); 684 | await initTestBed(`<Heading>${longText}</Heading>`); 685 | const driver = await createHeadingDriver(); 686 | await expect(driver.component).toBeVisible(); 687 | await expect(driver.component).toHaveText(longText); 688 | }); 689 | 690 | test("component handles numeric content", async ({ initTestBed, createHeadingDriver }) => { 691 | await initTestBed(`<Heading>12345</Heading>`); 692 | const driver = await createHeadingDriver(); 693 | await expect(driver.component).toHaveText("12345"); 694 | }); 695 | 696 | test("component handles boolean content", async ({ initTestBed, createHeadingDriver }) => { 697 | await initTestBed(`<Heading value="{true}" />`); 698 | const driver = await createHeadingDriver(); 699 | await expect(driver.component).toHaveText("true"); 700 | }); 701 | 702 | test("component handles invalid level prop gracefully", async ({ initTestBed, page }) => { 703 | await initTestBed(`<Heading level="invalid">Invalid Level</Heading>`); 704 | 705 | const component = page.getByTestId("test-id-component"); 706 | const isVisible = await component.isVisible(); 707 | 708 | if (isVisible) { 709 | await expect(component).toBeVisible(); 710 | await expect(component).toHaveText("Invalid Level"); 711 | } else { 712 | expect(isVisible).toBe(false); 713 | } 714 | }); 715 | 716 | test("component handles mixed content types", async ({ initTestBed, createHeadingDriver }) => { 717 | await initTestBed(`<Heading>Text 123 🎉 "quoted" & symbols</Heading>`); 718 | const driver = await createHeadingDriver(); 719 | await expect(driver.component).toHaveText('Text 123 🎉 "quoted" & symbols'); 720 | }); 721 | 722 | test("component handles newlines and preserveLinebreaks", async ({ 723 | initTestBed, 724 | createHeadingDriver, 725 | }) => { 726 | await initTestBed(`<Heading preserveLinebreaks="true" value="Line 1\nLine 2\nLine 3" />`); 727 | const driver = await createHeadingDriver(); 728 | await expect(driver.component).toBeVisible(); 729 | // The component should preserve the line breaks 730 | const height = await driver.component.evaluate((el) => getComputedStyle(el).height); 731 | expect(parseFloat(height)).toBeGreaterThan(20); // Should be taller due to multiple lines 732 | }); 733 | }); 734 | 735 | // ============================================================================= 736 | // PERFORMANCE TESTS 737 | // ============================================================================= 738 | 739 | test.describe("Performance", () => { 740 | test("component renders efficiently with minimal props", async ({ 741 | initTestBed, 742 | createHeadingDriver, 743 | }) => { 744 | // Simply test that the component renders without errors, not timing 745 | await initTestBed(`<Heading>Performance Test</Heading>`); 746 | const driver = await createHeadingDriver(); 747 | await expect(driver.component).toBeVisible(); 748 | await expect(driver.component).toHaveText("Performance Test"); 749 | }); 750 | 751 | test("component handles multiple heading instances efficiently", async ({ 752 | initTestBed, 753 | page, 754 | }) => { 755 | const headings = Array.from( 756 | { length: 20 }, 757 | (_, i) => `<Heading testId="heading-${i}">Heading ${i}</Heading>`, 758 | ).join(""); 759 | 760 | await initTestBed(`<VStack>${headings}</VStack>`); 761 | 762 | // All headings should be visible 763 | for (let i = 0; i < 20; i++) { 764 | const heading = page.getByTestId(`heading-${i}`); 765 | await expect(heading).toBeVisible(); 766 | } 767 | }); 768 | 769 | test("component handles level changes without performance degradation", async ({ 770 | initTestBed, 771 | createHeadingDriver, 772 | }) => { 773 | await initTestBed(`<Heading level="h1">Heading</Heading>`); 774 | const driver = await createHeadingDriver(); 775 | await expect(driver.component).toBeVisible(); 776 | await expect(driver.component).toHaveRole("heading"); 777 | const tagName = await driver.getComponentTagName(); 778 | expect(tagName.toLowerCase()).toBe("h1"); 779 | }); 780 | 781 | test("component handles content updates efficiently", async ({ 782 | initTestBed, 783 | createHeadingDriver, 784 | }) => { 785 | await initTestBed(`<Heading>Initial Content</Heading>`); 786 | const driver = await createHeadingDriver(); 787 | await expect(driver.component).toHaveText("Initial Content"); 788 | 789 | // Component should handle content updates well 790 | await expect(driver.component).toBeVisible(); 791 | }); 792 | }); 793 | 794 | // ============================================================================= 795 | // INTEGRATION TESTS 796 | // ============================================================================= 797 | 798 | test.describe("Integration", () => { 799 | test("component works correctly in VStack layout", async ({ 800 | initTestBed, 801 | createHeadingDriver, 802 | }) => { 803 | await initTestBed(` 804 | <VStack> 805 | <Heading>Header 1</Heading> 806 | <Heading>Header 2</Heading> 807 | </VStack> 808 | `); 809 | const driver = await createHeadingDriver(); 810 | await expect(driver.component).toBeVisible(); 811 | }); 812 | 813 | test("component works correctly in HStack layout", async ({ 814 | initTestBed, 815 | createHeadingDriver, 816 | }) => { 817 | await initTestBed(` 818 | <HStack> 819 | <Heading>Left Header</Heading> 820 | <Heading>Right Header</Heading> 821 | </HStack> 822 | `); 823 | const driver = await createHeadingDriver(); 824 | await expect(driver.component).toBeVisible(); 825 | }); 826 | 827 | test("component integrates with other text components", async ({ 828 | initTestBed, 829 | createHeadingDriver, 830 | page, 831 | }) => { 832 | await initTestBed(` 833 | <VStack> 834 | <Heading testId="heading">Main Title</Heading> 835 | <Text testId="text">Body text content</Text> 836 | </VStack> 837 | `); 838 | 839 | const heading = page.getByTestId("heading"); 840 | const text = page.getByTestId("text"); 841 | 842 | await expect(heading).toBeVisible(); 843 | await expect(text).toBeVisible(); 844 | await expect(heading).toHaveText("Main Title"); 845 | await expect(text).toHaveText("Body text content"); 846 | }); 847 | 848 | test("component supports anchor links functionality", async ({ 849 | initTestBed, 850 | createHeadingDriver, 851 | page, 852 | }) => { 853 | await initTestBed(`<Heading anchorId="test-anchor">Linkable Heading</Heading>`); 854 | const driver = await createHeadingDriver(); 855 | await expect(driver.component).toBeVisible(); 856 | 857 | // Check if heading can be used as an anchor target 858 | await expect(driver.component).toHaveText("Linkable Heading"); 859 | }); 860 | 861 | test("component maintains accessibility in complex layouts", async ({ initTestBed, page }) => { 862 | await initTestBed(` 863 | <VStack> 864 | <H1 testId="main">Main Title</H1> 865 | <VStack> 866 | <H2 testId="section">Section</H2> 867 | <HStack> 868 | <H3 testId="sub1">Subsection 1</H3> 869 | <H3 testId="sub2">Subsection 2</H3> 870 | </HStack> 871 | </VStack> 872 | </VStack> 873 | `); 874 | 875 | const h1 = page.getByTestId("main"); 876 | const h2 = page.getByTestId("section"); 877 | const h3_1 = page.getByTestId("sub1"); 878 | const h3_2 = page.getByTestId("sub2"); 879 | 880 | await expect(h1).toHaveRole("heading"); 881 | await expect(h2).toHaveRole("heading"); 882 | await expect(h3_1).toHaveRole("heading"); 883 | await expect(h3_2).toHaveRole("heading"); 884 | 885 | // Verify proper heading hierarchy through tag names 886 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase()); 887 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase()); 888 | const h3_1TagName = await h3_1.evaluate((el) => el.tagName.toLowerCase()); 889 | const h3_2TagName = await h3_2.evaluate((el) => el.tagName.toLowerCase()); 890 | 891 | expect(h1TagName).toBe("h1"); 892 | expect(h2TagName).toBe("h2"); 893 | expect(h3_1TagName).toBe("h3"); 894 | expect(h3_2TagName).toBe("h3"); 895 | }); 896 | 897 | test("component supports responsive behavior", async ({ initTestBed, createHeadingDriver }) => { 898 | await initTestBed(`<Heading width="100%">Responsive Heading</Heading>`); 899 | const driver = await createHeadingDriver(); 900 | await expect(driver.component).toBeVisible(); 901 | await expect(driver.component).toHaveText("Responsive Heading"); 902 | 903 | // Test that the component handles responsive properties 904 | // (The specific implementation may vary, but component should render) 905 | const computedWidth = await driver.component.evaluate((el) => getComputedStyle(el).width); 906 | expect(computedWidth).toBeTruthy(); // Should have some computed width 907 | }); 908 | 909 | test("component works with theme providers", async ({ initTestBed, createHeadingDriver }) => { 910 | await initTestBed(`<Heading>Themed Heading</Heading>`, { 911 | testThemeVars: { 912 | "color-Heading": "rgb(0, 128, 0)", 913 | }, 914 | }); 915 | const driver = await createHeadingDriver(); 916 | await expect(driver.component).toBeVisible(); 917 | 918 | // Test that the component accepts theme variables (may not always apply due to specificity) 919 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color); 920 | 921 | // Either the theme color is applied or the component handles it gracefully 922 | if (color === "rgb(0, 128, 0)") { 923 | await expect(driver.component).toHaveCSS("color", "rgb(0, 128, 0)"); 924 | } else { 925 | // Component exists and functions even if theme variable isn't applied due to CSS specificity 926 | await expect(driver.component).toBeVisible(); 927 | } 928 | }); 929 | 930 | test("component preserves semantic heading hierarchy in large documents", async ({ 931 | initTestBed, 932 | page, 933 | }) => { 934 | await initTestBed(` 935 | <VStack> 936 | <H1 testId="h1">Document Title</H1> 937 | <H2 testId="h2-1">Chapter 1</H2> 938 | <H3 testId="h3-1">Section 1.1</H3> 939 | <H3 testId="h3-2">Section 1.2</H3> 940 | <H2 testId="h2-2">Chapter 2</H2> 941 | <H3 testId="h3-3">Section 2.1</H3> 942 | <H4 testId="h4-1">Subsection 2.1.1</H4> 943 | </VStack> 944 | `); 945 | 946 | // Test each heading individually using testIds 947 | const testIds = ["h1", "h2-1", "h3-1", "h3-2", "h2-2", "h3-3", "h4-1"]; 948 | const expectedTags = ["h1", "h2", "h3", "h3", "h2", "h3", "h4"]; 949 | 950 | for (let i = 0; i < testIds.length; i++) { 951 | const heading = page.getByTestId(testIds[i]); 952 | await expect(heading).toHaveRole("heading"); 953 | const tagName = await heading.evaluate((el) => el.tagName.toLowerCase()); 954 | expect(tagName).toBe(expectedTags[i]); 955 | } 956 | }); 957 | }); 958 | 959 | // ============================================================================= 960 | // API TESTS 961 | // ============================================================================= 962 | 963 | test.describe("API", () => { 964 | test("hasOverflow returns true when heading text overflows horizontally", async ({ 965 | initTestBed, 966 | page, 967 | }) => { 968 | const { testStateDriver } = await initTestBed(` 969 | <Fragment> 970 | <Stack width="200px"> 971 | <H1 id="overflowHeading" maxLines="{1}" 972 | value="This is a very long heading text that should definitely overflow when constrained to a small width" 973 | /> 974 | <Button onClick="testState = overflowHeading.hasOverflow()" /> 975 | </Stack> 976 | </Fragment> 977 | `); 978 | 979 | await page.getByRole("button").click(); 980 | await expect.poll(testStateDriver.testState).toBe(true); 981 | }); 982 | 983 | test("hasOverflow returns true when heading text overflows with maxLines constraint", async ({ 984 | initTestBed, 985 | page, 986 | }) => { 987 | const { testStateDriver } = await initTestBed(` 988 | <Fragment> 989 | <Stack width="200px"> 990 | <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" /> 991 | <Button onClick="testState = overflowHeading.hasOverflow()" /> 992 | </Stack> 993 | </Fragment> 994 | `); 995 | 996 | await page.getByRole("button").click(); 997 | await expect.poll(testStateDriver.testState).toBe(true); 998 | }); 999 | 1000 | test("hasOverflow returns false when heading text fits within container", async ({ 1001 | initTestBed, 1002 | page, 1003 | }) => { 1004 | const { testStateDriver } = await initTestBed(` 1005 | <Fragment> 1006 | <Stack width="300px" height="100px"> 1007 | <H3 id="normalHeading" value="Short heading" /> 1008 | <Button onClick="testState = normalHeading.hasOverflow()" /> 1009 | </Stack> 1010 | </Fragment> 1011 | `); 1012 | 1013 | await page.getByRole("button").click(); 1014 | await expect.poll(testStateDriver.testState).toBe(false); 1015 | }); 1016 | 1017 | test("hasOverflow returns false for empty heading text", async ({ initTestBed, page }) => { 1018 | const { testStateDriver } = await initTestBed(` 1019 | <Fragment> 1020 | <Stack width="100px" height="50px"> 1021 | <H4 id="emptyHeading" value="" /> 1022 | <Button onClick="testState = emptyHeading.hasOverflow()" /> 1023 | </Stack> 1024 | </Fragment> 1025 | `); 1026 | 1027 | await page.getByRole("button").click(); 1028 | await expect.poll(testStateDriver.testState).toBe(false); 1029 | }); 1030 | 1031 | test("hasOverflow returns false for heading with no size constraints", async ({ 1032 | initTestBed, 1033 | page, 1034 | }) => { 1035 | const { testStateDriver } = await initTestBed(` 1036 | <Fragment> 1037 | <H5 id="unconstrainedHeading" value="This heading has no width or height constraints so it should not overflow" /> 1038 | <Button onClick="testState = unconstrainedHeading.hasOverflow()" /> 1039 | </Fragment> 1040 | `); 1041 | 1042 | await page.getByRole("button").click(); 1043 | await expect.poll(testStateDriver.testState).toBe(false); 1044 | }); 1045 | 1046 | test("hasOverflow works with different heading levels", async ({ initTestBed, page }) => { 1047 | const { testStateDriver } = await initTestBed(` 1048 | <Fragment> 1049 | <Stack width="100px"> 1050 | <H1 id="h1Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1051 | <H2 id="h2Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1052 | <H3 id="h3Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1053 | <H4 id="h4Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1054 | <H5 id="h5Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1055 | <H6 id="h6Text" maxLines="{1}" value="This is a very long heading that should overflow" /> 1056 | <Button onClick="testState = { 1057 | h1: h1Text.hasOverflow(), 1058 | h2: h2Text.hasOverflow(), 1059 | h3: h3Text.hasOverflow(), 1060 | h4: h4Text.hasOverflow(), 1061 | h5: h5Text.hasOverflow(), 1062 | h6: h6Text.hasOverflow() 1063 | }" /> 1064 | </Stack> 1065 | </Fragment> 1066 | `); 1067 | 1068 | await page.getByRole("button").click(); 1069 | const result = await testStateDriver.testState(); 1070 | expect(result.h1).toBe(true); 1071 | expect(result.h2).toBe(true); 1072 | expect(result.h3).toBe(true); 1073 | expect(result.h4).toBe(true); 1074 | expect(result.h5).toBe(true); 1075 | expect(result.h6).toBe(true); 1076 | }); 1077 | 1078 | test("hasOverflow returns correct result after content changes", async ({ 1079 | initTestBed, 1080 | page, 1081 | }) => { 1082 | const { testStateDriver } = await initTestBed(` 1083 | <Fragment var.headingText="Short"> 1084 | <Stack width="100px"> 1085 | <H1 id="dynamicHeading" value="{headingText}" maxLines="{1}" /> 1086 | <Button testId="checkBtn" onClick="testState = dynamicHeading.hasOverflow()" /> 1087 | <Button testId="changeBtn" onClick="headingText = 'This is a very long heading text that will definitely overflow the container'" /> 1088 | </Stack> 1089 | </Fragment> 1090 | `); 1091 | 1092 | // Check initial state (should not overflow) 1093 | await page.getByTestId("checkBtn").click(); 1094 | await expect.poll(testStateDriver.testState).toBe(false); 1095 | 1096 | // Change content to overflow 1097 | await page.getByTestId("changeBtn").click(); 1098 | await page.getByTestId("checkBtn").click(); 1099 | await expect.poll(testStateDriver.testState).toBe(true); 1100 | }); 1101 | 1102 | test("hasOverflow handles null/undefined values gracefully", async ({ initTestBed, page }) => { 1103 | const { testStateDriver } = await initTestBed(` 1104 | <Fragment> 1105 | <Stack width="100px"> 1106 | <H2 id="nullHeading" value="{null}" /> 1107 | <Button onClick="testState = nullHeading.hasOverflow()" /> 1108 | </Stack> 1109 | </Fragment> 1110 | `); 1111 | 1112 | await page.getByRole("button").click(); 1113 | await expect.poll(testStateDriver.testState).toBe(false); 1114 | }); 1115 | 1116 | test("hasOverflow works with generic Heading component", async ({ initTestBed, page }) => { 1117 | const { testStateDriver } = await initTestBed(` 1118 | <Fragment> 1119 | <Stack width="100px"> 1120 | <Heading id="genericHeading" level="h3" maxLines="{1}" value="This is a very long heading text that should overflow" /> 1121 | <Button onClick="testState = genericHeading.hasOverflow()" /> 1122 | </Stack> 1123 | </Fragment> 1124 | `); 1125 | 1126 | await page.getByRole("button").click(); 1127 | await expect.poll(testStateDriver.testState).toBe(true); 1128 | }); 1129 | 1130 | test("hasOverflow works with nested content instead of value prop", async ({ initTestBed, page }) => { 1131 | const { testStateDriver } = await initTestBed(` 1132 | <Fragment> 1133 | <Stack width="100px"> 1134 | <H1 id="nestedHeading" maxLines="{1}"> 1135 | This is a very long heading with nested content that should definitely overflow the container width 1136 | </H1> 1137 | <Button onClick="testState = nestedHeading.hasOverflow()" /> 1138 | </Stack> 1139 | </Fragment> 1140 | `); 1141 | 1142 | await page.getByRole("button").click(); 1143 | await expect.poll(testStateDriver.testState).toBe(true); 1144 | }); 1145 | }); 1146 | ```