This is page 164 of 181. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/%7Bsrc%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── layout-changes.md
│ ├── 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
│ │ │ ├── rss.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
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── 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
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Animation.tsx
│ │ │ ├── AnimationNative.tsx
│ │ │ ├── FadeAnimation.tsx
│ │ │ ├── FadeInAnimation.tsx
│ │ │ ├── FadeOutAnimation.tsx
│ │ │ ├── index.tsx
│ │ │ ├── ScaleAnimation.tsx
│ │ │ └── SlideInAnimation.tsx
│ │ └── tsconfig.json
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ ├── tsconfig.json
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── HelloWorld.module.scss
│ │ │ ├── HelloWorld.tsx
│ │ │ ├── HelloWorldNative.tsx
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── IPhoneFrame.module.scss
│ │ │ ├── IPhoneFrame.tsx
│ │ │ ├── MacOSAppFrame.module.scss
│ │ │ ├── MacOSAppFrame.tsx
│ │ │ ├── WindowsAppFrame.module.scss
│ │ │ └── WindowsAppFrame.tsx
│ │ └── tsconfig.json
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── LazyPdfNative.tsx
│ │ │ ├── Pdf.module.scss
│ │ │ └── Pdf.tsx
│ │ └── tsconfig.json
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── hooks
│ │ │ │ ├── usePlayground.ts
│ │ │ │ └── useToast.ts
│ │ │ ├── index.tsx
│ │ │ ├── playground
│ │ │ │ ├── Box.module.scss
│ │ │ │ ├── Box.tsx
│ │ │ │ ├── CodeSelector.tsx
│ │ │ │ ├── ConfirmationDialog.module.scss
│ │ │ │ ├── ConfirmationDialog.tsx
│ │ │ │ ├── Editor.tsx
│ │ │ │ ├── Header.module.scss
│ │ │ │ ├── Header.tsx
│ │ │ │ ├── Playground.tsx
│ │ │ │ ├── PlaygroundContent.module.scss
│ │ │ │ ├── PlaygroundContent.tsx
│ │ │ │ ├── PlaygroundNative.module.scss
│ │ │ │ ├── PlaygroundNative.tsx
│ │ │ │ ├── Preview.module.scss
│ │ │ │ ├── Preview.tsx
│ │ │ │ ├── Select.module.scss
│ │ │ │ ├── StandalonePlayground.tsx
│ │ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ │ ├── ThemeSwitcher.module.scss
│ │ │ │ ├── ThemeSwitcher.tsx
│ │ │ │ ├── ToneSwitcher.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── providers
│ │ │ │ ├── Toast.module.scss
│ │ │ │ └── ToastProvider.tsx
│ │ │ ├── state
│ │ │ │ └── store.ts
│ │ │ ├── themes
│ │ │ │ └── theme.ts
│ │ │ └── utils
│ │ │ └── helpers.ts
│ │ └── tsconfig.json
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Search.module.scss
│ │ │ └── Search.tsx
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ ├── src
│ │ ├── Carousel
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── FancyButton
│ │ │ ├── FancyButton.module.scss
│ │ │ ├── FancyButton.tsx
│ │ │ └── FancyButton.xmlui
│ │ ├── Hello
│ │ │ ├── Hello.tsx
│ │ │ ├── Hello.xmlui
│ │ │ └── Hello.xmlui.xs
│ │ ├── HeroSection
│ │ │ ├── HeroSection.module.scss
│ │ │ ├── HeroSection.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.mjs
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.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/Tabs/Tabs.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 |
4 | // =============================================================================
5 | // SMOKE TESTS
6 | // =============================================================================
7 |
8 | test.describe("smoke tests", { tag: "@smoke" }, () => {
9 | test("component renders", async ({ initTestBed, page }) => {
10 | await initTestBed(`
11 | <Tabs>
12 | <TabItem label="Tab 1">Content 1</TabItem>
13 | <TabItem label="Tab 2">Content 2</TabItem>
14 | </Tabs>
15 | `);
16 | // Check that tabs component is rendered
17 | await expect(page.getByRole('tablist')).toBeAttached();
18 | });
19 |
20 | test("renders tab labels correctly", async ({ initTestBed, page }) => {
21 | await initTestBed(`
22 | <Tabs>
23 | <TabItem label="First Tab">Content 1</TabItem>
24 | <TabItem label="Second Tab">Content 2</TabItem>
25 | <TabItem label="Third Tab">Content 3</TabItem>
26 | </Tabs>
27 | `);
28 |
29 | await expect(page.getByRole("tab", { name: "First Tab" })).toBeVisible();
30 | await expect(page.getByRole("tab", { name: "Second Tab" })).toBeVisible();
31 | await expect(page.getByRole("tab", { name: "Third Tab" })).toBeVisible();
32 | });
33 |
34 | test("shows first tab content by default", async ({ initTestBed, page }) => {
35 | await initTestBed(`
36 | <Tabs>
37 | <TabItem label="Tab 1">First content</TabItem>
38 | <TabItem label="Tab 2">Second content</TabItem>
39 | </Tabs>
40 | `);
41 |
42 | await expect(page.getByText("First content")).toBeVisible();
43 | await expect(page.getByText("Second content")).not.toBeVisible();
44 | });
45 | });
46 |
47 | // =============================================================================
48 | // BASIC FUNCTIONALITY TESTS
49 | // =============================================================================
50 |
51 | test.describe("basic functionality", () => {
52 | test("switches tabs when clicked", async ({ initTestBed, page }) => {
53 | await initTestBed(`
54 | <Tabs>
55 | <TabItem label="Tab 1">First content</TabItem>
56 | <TabItem label="Tab 2">Second content</TabItem>
57 | <TabItem label="Tab 3">Third content</TabItem>
58 | </Tabs>
59 | `);
60 |
61 | // Wait for tabs to be fully rendered
62 | await expect(page.getByRole('tablist')).toBeAttached();
63 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible();
64 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible();
65 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeVisible();
66 |
67 | // Initially first tab is active
68 | await expect(page.getByText("First content")).toBeVisible();
69 | await expect(page.getByText("Second content")).not.toBeVisible();
70 | await expect(page.getByText("Third content")).not.toBeVisible();
71 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "true");
72 |
73 | // Click second tab and wait for transition
74 | await page.getByRole("tab", { name: "Tab 2" }).click();
75 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "true");
76 | await expect(page.getByText("First content")).not.toBeVisible();
77 | await expect(page.getByText("Second content")).toBeVisible();
78 | await expect(page.getByText("Third content")).not.toBeVisible();
79 |
80 | // Click third tab and wait for transition
81 | await page.getByRole("tab", { name: "Tab 3" }).click();
82 | await expect(page.getByRole("tab", { name: "Tab 3" })).toHaveAttribute("aria-selected", "true");
83 | await expect(page.getByText("First content")).not.toBeVisible();
84 | await expect(page.getByText("Second content")).not.toBeVisible();
85 | await expect(page.getByText("Third content")).toBeVisible();
86 | });
87 |
88 | test("activeTab prop sets initial active tab", async ({ initTestBed, page }) => {
89 | await initTestBed(`
90 | <Tabs activeTab="{1}">
91 | <TabItem label="Tab 1">First content</TabItem>
92 | <TabItem label="Tab 2">Second content</TabItem>
93 | <TabItem label="Tab 3">Third content</TabItem>
94 | </Tabs>
95 | `);
96 |
97 | await expect(page.getByText("First content")).not.toBeVisible();
98 | await expect(page.getByText("Second content")).toBeVisible();
99 | await expect(page.getByText("Third content")).not.toBeVisible();
100 | });
101 |
102 | test("orientation prop changes tab layout", async ({ initTestBed, page }) => {
103 | await initTestBed(`
104 | <Tabs orientation="vertical" testId="vertical-tabs">
105 | <TabItem label="Tab 1">Content 1</TabItem>
106 | <TabItem label="Tab 2">Content 2</TabItem>
107 | </Tabs>
108 | `);
109 |
110 | // Check that tabs component has vertical orientation
111 | const tabsRoot = page.getByTestId("vertical-tabs");
112 | await expect(tabsRoot).toHaveAttribute("data-orientation", "vertical");
113 | });
114 |
115 | test.describe("tabAlignment property", () => {
116 | test("tabAlignment='start' positions tabs at the start of container (horizontal)", async ({ initTestBed, page }) => {
117 | await initTestBed(`
118 | <Tabs tabAlignment="start" testId="tabs">
119 | <TabItem label="Tab 1">Content 1</TabItem>
120 | <TabItem label="Tab 2">Content 2</TabItem>
121 | <TabItem label="Tab 3">Content 3</TabItem>
122 | </Tabs>
123 | `);
124 |
125 | const tabsContainer = page.getByTestId("tabs");
126 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
127 |
128 | const { left: containerLeft } = await getBounds(tabsContainer);
129 | const { left: tab1Left } = await getBounds(tab1);
130 |
131 | // Tab should be near the start of the container (within a small margin for padding)
132 | expect(tab1Left - containerLeft).toBeLessThan(50);
133 | });
134 |
135 | test("tabAlignment='end' positions tabs at the end of container (horizontal)", async ({ initTestBed, page }) => {
136 | await initTestBed(`
137 | <Tabs tabAlignment="end" testId="tabs">
138 | <TabItem label="Tab 1">Content 1</TabItem>
139 | <TabItem label="Tab 2">Content 2</TabItem>
140 | <TabItem label="Tab 3">Content 3</TabItem>
141 | </Tabs>
142 | `);
143 |
144 | const tabsContainer = page.getByTestId("tabs");
145 | const tab3 = page.getByRole("tab", { name: "Tab 3" });
146 |
147 | const { right: containerRight } = await getBounds(tabsContainer);
148 | const { right: tab3Right } = await getBounds(tab3);
149 |
150 | // Last tab should be near the end of the container (within a small margin for padding)
151 | expect(containerRight - tab3Right).toBeLessThan(50);
152 | });
153 |
154 | test("tabAlignment='center' positions tabs in center of container (horizontal)", async ({ initTestBed, page }) => {
155 | await initTestBed(`
156 | <Tabs tabAlignment="center" testId="tabs" style="width: 800px">
157 | <TabItem label="Tab 1">Content 1</TabItem>
158 | <TabItem label="Tab 2">Content 2</TabItem>
159 | <TabItem label="Tab 3">Content 3</TabItem>
160 | </Tabs>
161 | `);
162 |
163 | const tabsContainer = page.getByTestId("tabs");
164 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
165 | const tab3 = page.getByRole("tab", { name: "Tab 3" });
166 |
167 | const { left: containerLeft, right: containerRight, width: containerWidth } = await getBounds(tabsContainer);
168 | const { left: tab1Left } = await getBounds(tab1);
169 | const { right: tab3Right } = await getBounds(tab3);
170 |
171 | const containerCenter = containerLeft + containerWidth / 2;
172 | const tabsCenter = tab1Left + (tab3Right - tab1Left) / 2;
173 |
174 | // Tabs should be centered (within a reasonable margin)
175 | expect(Math.abs(tabsCenter - containerCenter)).toBeLessThan(50);
176 | });
177 |
178 | test("tabAlignment='stretch' makes tabs fill container width (horizontal)", async ({ initTestBed, page }) => {
179 | await initTestBed(`
180 | <Tabs tabAlignment="stretch" testId="tabs" style="width: 600px">
181 | <TabItem label="Tab 1">Content 1</TabItem>
182 | <TabItem label="Tab 2">Content 2</TabItem>
183 | <TabItem label="Tab 3">Content 3</TabItem>
184 | </Tabs>
185 | `);
186 |
187 | const tabsContainer = page.getByTestId("tabs");
188 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
189 | const tab3 = page.getByRole("tab", { name: "Tab 3" });
190 |
191 | const { left: containerLeft, right: containerRight } = await getBounds(tabsContainer);
192 | const { left: tab1Left } = await getBounds(tab1);
193 | const { right: tab3Right } = await getBounds(tab3);
194 |
195 | // First tab should start near container start
196 | expect(tab1Left - containerLeft).toBeLessThan(50);
197 | // Last tab should end near container end
198 | expect(containerRight - tab3Right).toBeLessThan(50);
199 | });
200 |
201 | test("tabAlignment can be dynamically changed", async ({ initTestBed, page }) => {
202 | const { testStateDriver } = await initTestBed(`
203 | <Fragment>
204 | <Tabs tabAlignment="{testState ?? 'start'}" testId="tabs" style="width: 700px">
205 | <TabItem label="Tab 1">Content 1</TabItem>
206 | <TabItem label="Tab 2">Content 2</TabItem>
207 | <TabItem label="Tab 3">Content 3</TabItem>
208 | </Tabs>
209 | <Button testId="changeBtn" onClick="testState = 'end'" />
210 | </Fragment>
211 | `);
212 |
213 | const tabsContainer = page.getByTestId("tabs");
214 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
215 |
216 | // Initially with 'start' alignment
217 | const { left: containerLeft } = await getBounds(tabsContainer);
218 | const { left: initialTab1Left } = await getBounds(tab1);
219 | expect(initialTab1Left - containerLeft).toBeLessThan(50);
220 |
221 | // Change to 'end' alignment
222 | await page.getByTestId("changeBtn").click();
223 | await expect.poll(testStateDriver.testState).toEqual("end");
224 |
225 | // After changing to 'end', the last tab should be near the end
226 | const tab3 = page.getByRole("tab", { name: "Tab 3" });
227 | const { right: containerRight } = await getBounds(tabsContainer);
228 | const { right: tab3Right } = await getBounds(tab3);
229 | expect(containerRight - tab3Right).toBeLessThan(50);
230 | });
231 |
232 | test("tabAlignment works with single tab", async ({ initTestBed, page }) => {
233 | await initTestBed(`
234 | <Tabs tabAlignment="center" testId="tabs" style="width: 600px">
235 | <TabItem label="Only Tab">Only Content</TabItem>
236 | </Tabs>
237 | `);
238 |
239 | const tab = page.getByRole("tab", { name: "Only Tab" });
240 | await expect(tab).toBeVisible();
241 |
242 | // Verify the tab renders and is functional
243 | await expect(page.getByText("Only Content")).toBeVisible();
244 | });
245 |
246 | test("tabAlignment='stretch' distributes multiple tabs evenly", async ({ initTestBed, page }) => {
247 | await initTestBed(`
248 | <Tabs tabAlignment="stretch" testId="tabs" style="width: 600px">
249 | <TabItem label="Tab 1">Content 1</TabItem>
250 | <TabItem label="Tab 2">Content 2</TabItem>
251 | <TabItem label="Tab 3">Content 3</TabItem>
252 | </Tabs>
253 | `);
254 |
255 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
256 | const tab2 = page.getByRole("tab", { name: "Tab 2" });
257 | const tab3 = page.getByRole("tab", { name: "Tab 3" });
258 |
259 | const { width: tab1Width } = await getBounds(tab1);
260 | const { width: tab2Width } = await getBounds(tab2);
261 | const { width: tab3Width } = await getBounds(tab3);
262 |
263 | // All tabs should have similar widths when stretched (within 20px tolerance for text differences)
264 | expect(Math.abs(tab1Width - tab2Width)).toBeLessThan(20);
265 | expect(Math.abs(tab2Width - tab3Width)).toBeLessThan(20);
266 | });
267 |
268 | test("tabAlignment handles null value gracefully", async ({ initTestBed, page }) => {
269 | await initTestBed(`
270 | <Tabs tabAlignment="{null}" testId="tabs">
271 | <TabItem label="Tab 1">Content 1</TabItem>
272 | <TabItem label="Tab 2">Content 2</TabItem>
273 | </Tabs>
274 | `);
275 |
276 | // Should fall back to default 'start' alignment
277 | const tabsContainer = page.getByTestId("tabs");
278 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
279 |
280 | await expect(tab1).toBeVisible();
281 |
282 | const { left: containerLeft } = await getBounds(tabsContainer);
283 | const { left: tab1Left } = await getBounds(tab1);
284 |
285 | // Should behave like 'start' alignment
286 | expect(tab1Left - containerLeft).toBeLessThan(50);
287 | });
288 |
289 | test("tabAlignment handles undefined value gracefully", async ({ initTestBed, page }) => {
290 | await initTestBed(`
291 | <Tabs tabAlignment="{undefined}" testId="tabs">
292 | <TabItem label="Tab 1">Content 1</TabItem>
293 | <TabItem label="Tab 2">Content 2</TabItem>
294 | </Tabs>
295 | `);
296 |
297 | // Should fall back to default 'start' alignment
298 | const tabsContainer = page.getByTestId("tabs");
299 | const tab1 = page.getByRole("tab", { name: "Tab 1" });
300 |
301 | await expect(tab1).toBeVisible();
302 |
303 | const { left: containerLeft } = await getBounds(tabsContainer);
304 | const { left: tab1Left } = await getBounds(tab1);
305 |
306 | // Should behave like 'start' alignment
307 | expect(tab1Left - containerLeft).toBeLessThan(50);
308 | });
309 |
310 | test("tabAlignment maintains functionality when tabs are clicked", async ({ initTestBed, page }) => {
311 | await initTestBed(`
312 | <Tabs tabAlignment="center" testId="tabs" style="width: 700px">
313 | <TabItem label="Tab 1">Content 1</TabItem>
314 | <TabItem label="Tab 2">Content 2</TabItem>
315 | <TabItem label="Tab 3">Content 3</TabItem>
316 | </Tabs>
317 | `);
318 |
319 | // Verify all tabs are visible
320 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible();
321 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible();
322 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeVisible();
323 |
324 | // Click different tabs and verify content changes
325 | await page.getByRole("tab", { name: "Tab 2" }).click();
326 | await expect(page.getByText("Content 2")).toBeVisible();
327 | await expect(page.getByText("Content 1")).not.toBeVisible();
328 |
329 | await page.getByRole("tab", { name: "Tab 3" }).click();
330 | await expect(page.getByText("Content 3")).toBeVisible();
331 | await expect(page.getByText("Content 2")).not.toBeVisible();
332 |
333 | await page.getByRole("tab", { name: "Tab 1" }).click();
334 | await expect(page.getByText("Content 1")).toBeVisible();
335 | await expect(page.getByText("Content 3")).not.toBeVisible();
336 | });
337 | });
338 |
339 | test.describe("accordionView property", () => {
340 | test("accordionView renders all tab headers when true", async ({ initTestBed, page }) => {
341 | await initTestBed(`
342 | <Tabs accordionView="true" testId="tabs">
343 | <TabItem label="Tab 1">Content 1</TabItem>
344 | <TabItem label="Tab 2">Content 2</TabItem>
345 | <TabItem label="Tab 3">Content 3</TabItem>
346 | </Tabs>
347 | `);
348 |
349 | // All tab headers should be visible
350 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible();
351 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible();
352 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeVisible();
353 | });
354 |
355 | test("accordionView shows only active tab content", async ({ initTestBed, page }) => {
356 | await initTestBed(`
357 | <Tabs accordionView="true" testId="tabs">
358 | <TabItem label="Tab 1">Content 1</TabItem>
359 | <TabItem label="Tab 2">Content 2</TabItem>
360 | <TabItem label="Tab 3">Content 3</TabItem>
361 | </Tabs>
362 | `);
363 |
364 | // Only first tab content should be visible (default active)
365 | await expect(page.getByText("Content 1")).toBeVisible();
366 | await expect(page.getByText("Content 2")).not.toBeVisible();
367 | await expect(page.getByText("Content 3")).not.toBeVisible();
368 | });
369 |
370 | test("accordionView positions active tab header above its content", async ({ initTestBed, page }) => {
371 | await initTestBed(`
372 | <Tabs accordionView="true" testId="tabs">
373 | <TabItem label="Tab 1">Content 1</TabItem>
374 | <TabItem label="Tab 2">Content 2</TabItem>
375 | <TabItem label="Tab 3">Content 3</TabItem>
376 | </Tabs>
377 | `);
378 |
379 | const tab1Header = page.getByRole("tab", { name: "Tab 1" });
380 | const tab1Content = page.getByText("Content 1");
381 |
382 | const { bottom: headerBottom } = await getBounds(tab1Header);
383 | const { top: contentTop } = await getBounds(tab1Content);
384 |
385 | // Header should be above content (header bottom should be less than or near content top)
386 | expect(headerBottom).toBeLessThanOrEqual(contentTop + 5);
387 | });
388 |
389 | test("accordionView positions active tab content above next tab header", async ({ initTestBed, page }) => {
390 | await initTestBed(`
391 | <Tabs accordionView="true" testId="tabs">
392 | <TabItem label="Tab 1">Content 1</TabItem>
393 | <TabItem label="Tab 2">Content 2</TabItem>
394 | <TabItem label="Tab 3">Content 3</TabItem>
395 | </Tabs>
396 | `);
397 |
398 | const tab1Content = page.getByText("Content 1");
399 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
400 |
401 | const { bottom: contentBottom } = await getBounds(tab1Content);
402 | const { top: nextHeaderTop } = await getBounds(tab2Header);
403 |
404 | // Content should be above next header (content bottom should be less than or near next header top)
405 | expect(contentBottom).toBeLessThanOrEqual(nextHeaderTop + 5);
406 | });
407 |
408 | test("accordionView maintains order: header1 -> content1 -> header2 -> content2 (when tab2 active)", async ({ initTestBed, page }) => {
409 | await initTestBed(`
410 | <Tabs accordionView="true" activeTab="1" testId="tabs">
411 | <TabItem label="Tab 1">Content 1</TabItem>
412 | <TabItem label="Tab 2">Content 2</TabItem>
413 | <TabItem label="Tab 3">Content 3</TabItem>
414 | </Tabs>
415 | `);
416 |
417 | const tab1Header = page.getByRole("tab", { name: "Tab 1" });
418 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
419 | const tab2Content = page.getByText("Content 2");
420 | const tab3Header = page.getByRole("tab", { name: "Tab 3" });
421 |
422 | const { top: tab1Top } = await getBounds(tab1Header);
423 | const { top: tab2Top } = await getBounds(tab2Header);
424 | const { top: content2Top } = await getBounds(tab2Content);
425 | const { top: tab3Top } = await getBounds(tab3Header);
426 |
427 | // Verify vertical ordering
428 | expect(tab1Top).toBeLessThan(tab2Top);
429 | expect(tab2Top).toBeLessThan(content2Top);
430 | expect(content2Top).toBeLessThan(tab3Top);
431 | });
432 |
433 | test("accordionView switches content when different tab is clicked", async ({ initTestBed, page }) => {
434 | await initTestBed(`
435 | <Tabs accordionView="true" testId="tabs">
436 | <TabItem label="Tab 1">Content 1</TabItem>
437 | <TabItem label="Tab 2">Content 2</TabItem>
438 | <TabItem label="Tab 3">Content 3</TabItem>
439 | </Tabs>
440 | `);
441 |
442 | // Initially Tab 1 is active
443 | await expect(page.getByText("Content 1")).toBeVisible();
444 | await expect(page.getByText("Content 2")).not.toBeVisible();
445 |
446 | // Click Tab 2
447 | await page.getByRole("tab", { name: "Tab 2" }).click();
448 | await expect(page.getByText("Content 2")).toBeVisible();
449 | await expect(page.getByText("Content 1")).not.toBeVisible();
450 |
451 | // Verify Tab 2 content is below Tab 2 header
452 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
453 | const tab2Content = page.getByText("Content 2");
454 | const { bottom: headerBottom } = await getBounds(tab2Header);
455 | const { top: contentTop } = await getBounds(tab2Content);
456 | expect(headerBottom).toBeLessThanOrEqual(contentTop + 5);
457 | });
458 |
459 | test("accordionView works with dynamic activeTab changes", async ({ initTestBed, page }) => {
460 | const { testStateDriver } = await initTestBed(`
461 | <Fragment>
462 | <Tabs accordionView="true" activeTab="{testState ?? 0}" testId="tabs">
463 | <TabItem label="Tab 1">Content 1</TabItem>
464 | <TabItem label="Tab 2">Content 2</TabItem>
465 | <TabItem label="Tab 3">Content 3</TabItem>
466 | </Tabs>
467 | <Button testId="tab2Btn" onClick="testState = 1" />
468 | <Button testId="tab3Btn" onClick="testState = 2" />
469 | </Fragment>
470 | `);
471 |
472 | // Initially Content 1 is visible
473 | await expect(page.getByText("Content 1")).toBeVisible();
474 | await expect(page.getByText("Content 2")).not.toBeVisible();
475 | await expect(page.getByText("Content 3")).not.toBeVisible();
476 |
477 | // Switch to Tab 2
478 | await page.getByTestId("tab2Btn").click();
479 | await expect(page.getByText("Content 2")).toBeVisible();
480 | await expect(page.getByText("Content 1")).not.toBeVisible();
481 | await expect(page.getByText("Content 3")).not.toBeVisible();
482 |
483 | // Verify ordering for Tab 2
484 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
485 | const tab2Content = page.getByText("Content 2");
486 | const tab3Header = page.getByRole("tab", { name: "Tab 3" });
487 |
488 | const { top: tab2Top } = await getBounds(tab2Header);
489 | const { top: content2Top } = await getBounds(tab2Content);
490 | const { top: tab3Top } = await getBounds(tab3Header);
491 |
492 | expect(tab2Top).toBeLessThan(content2Top);
493 | expect(content2Top).toBeLessThan(tab3Top);
494 |
495 | // Switch to Tab 3
496 | await page.getByTestId("tab3Btn").click();
497 | await expect(page.getByText("Content 3")).toBeVisible();
498 | await expect(page.getByText("Content 1")).not.toBeVisible();
499 | await expect(page.getByText("Content 2")).not.toBeVisible();
500 | });
501 |
502 | test("accordionView=false renders standard tabs (non-accordion)", async ({ initTestBed, page }) => {
503 | await initTestBed(`
504 | <Tabs accordionView="false" testId="tabs">
505 | <TabItem label="Tab 1">Content 1</TabItem>
506 | <TabItem label="Tab 2">Content 2</TabItem>
507 | <TabItem label="Tab 3">Content 3</TabItem>
508 | </Tabs>
509 | `);
510 |
511 | const tab1Header = page.getByRole("tab", { name: "Tab 1" });
512 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
513 | const tab1Content = page.getByText("Content 1");
514 |
515 | // In standard mode (non-accordion), all headers should be visible
516 | await expect(tab1Header).toBeVisible();
517 | await expect(tab2Header).toBeVisible();
518 |
519 | // Only active tab content should be visible
520 | await expect(tab1Content).toBeVisible();
521 | await expect(page.getByText("Content 2")).not.toBeVisible();
522 |
523 | // Tab content should NOT be interleaved between headers
524 | // (unlike accordion view where content appears between headers)
525 | const { bottom: tab1Bottom } = await getBounds(tab1Header);
526 | const { top: tab2Top } = await getBounds(tab2Header);
527 | const { top: contentTop } = await getBounds(tab1Content);
528 |
529 | // Content should NOT be between the two headers
530 | // Either tab2 is next to tab1 (horizontal) or below tab1 but before content (vertical)
531 | const isContentBetweenHeaders = contentTop > tab1Bottom && contentTop < tab2Top;
532 | expect(isContentBetweenHeaders).toBe(false);
533 | });
534 |
535 | test("accordionView handles null value gracefully (defaults to false)", async ({ initTestBed, page }) => {
536 | await initTestBed(`
537 | <Tabs accordionView="{null}" testId="tabs">
538 | <TabItem label="Tab 1">Content 1</TabItem>
539 | <TabItem label="Tab 2">Content 2</TabItem>
540 | </Tabs>
541 | `);
542 |
543 | // Should render as standard horizontal tabs
544 | const tab1Header = page.getByRole("tab", { name: "Tab 1" });
545 | const tab2Header = page.getByRole("tab", { name: "Tab 2" });
546 |
547 | await expect(tab1Header).toBeVisible();
548 | await expect(tab2Header).toBeVisible();
549 |
550 | // Headers should be horizontally aligned
551 | const { top: tab1Top } = await getBounds(tab1Header);
552 | const { top: tab2Top } = await getBounds(tab2Header);
553 | expect(Math.abs(tab1Top - tab2Top)).toBeLessThan(10);
554 | });
555 | });
556 | });
557 |
558 | // =============================================================================
559 | // HEADER TEMPLATE TESTS
560 | // =============================================================================
561 |
562 | test.describe("headerTemplate functionality", () => {
563 | test("renders custom headerTemplate instead of label", async ({ initTestBed, page }) => {
564 | await initTestBed(`
565 | <Tabs>
566 | <TabItem label="Simple Label">
567 | <property name="headerTemplate">
568 | <VStack gap="$space-1">
569 | <Text>Custom</Text>
570 | <Text>Header</Text>
571 | </VStack>
572 | </property>
573 | Content 1
574 | </TabItem>
575 | <TabItem label="Tab 2">Content 2</TabItem>
576 | </Tabs>
577 | `);
578 |
579 | // Custom header content should be visible
580 | await expect(page.getByText("Custom")).toBeVisible();
581 | await expect(page.getByText("Header")).toBeVisible();
582 |
583 | // Simple label should be visible for second tab
584 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible();
585 | });
586 |
587 | test("headerTemplate takes priority over global headerTemplate", async ({ initTestBed, page }) => {
588 | await initTestBed(`
589 | <Tabs>
590 | <property name="headerTemplate">
591 | <Text>Global: {$header.label}</Text>
592 | </property>
593 | <TabItem label="Tab 1">
594 | <property name="headerTemplate">
595 | <Text>Custom Content</Text>
596 | </property>
597 | Content 1
598 | </TabItem>
599 | <TabItem label="Tab 2">Content 2</TabItem>
600 | </Tabs>
601 | `);
602 |
603 | // First tab should use individual headerTemplate
604 | await expect(page.getByText("Custom Content")).toBeVisible();
605 |
606 | // Second tab should use global headerTemplate
607 | await expect(page.getByText("Global: Tab 2")).toBeVisible();
608 | });
609 |
610 | test("complex headerTemplate with icons and badges", async ({ initTestBed, page }) => {
611 | await initTestBed(`
612 | <Tabs>
613 | <TabItem label="Tab 1">
614 | <property name="headerTemplate">
615 | <HStack gap="$space-2" alignItems="center">
616 | <Text>Custom: {$header.label}</Text>
617 | <Badge>{$header.isActive ? 'Active' : ''}</Badge>
618 | </HStack>
619 | </property>
620 | Content 1
621 | </TabItem>
622 | <TabItem label="Tab 2">Content 2</TabItem>
623 | </Tabs>
624 | `);
625 |
626 | await expect(page.getByText("Custom: Tab 1")).toBeVisible();
627 | await expect(page.getByText("Active")).toBeVisible();
628 | });
629 |
630 | test("headerTemplate receives correct context props", async ({ initTestBed, page }) => {
631 | await initTestBed(`
632 | <Tabs>
633 | <TabItem label="First Tab">
634 | <property name="headerTemplate">
635 | <VStack gap="$space-1">
636 | <Text>Index: {$header.index}</Text>
637 | <Text>Label: {$header.label}</Text>
638 | <Text>Active: {$header.isActive ? 'Yes' : 'No'}</Text>
639 | </VStack>
640 | </property>
641 | Content 1
642 | </TabItem>
643 | <TabItem label="Second Tab">Content 2</TabItem>
644 | </Tabs>
645 | `);
646 |
647 | await expect(page.getByText("Index: 0")).toBeVisible();
648 | await expect(page.getByText("Label: First Tab")).toBeVisible();
649 | await expect(page.getByText("Active: Yes")).toBeVisible();
650 | });
651 |
652 | test("headerTemplate receives external id when provided", async ({ initTestBed, page }) => {
653 | await initTestBed(`
654 | <Tabs>
655 | <TabItem label="First Tab" id="custom-tab-1">
656 | <property name="headerTemplate">
657 | <VStack gap="$space-1">
658 | <Text>ID: {$header.id}</Text>
659 | <Text>Label: {$header.label}</Text>
660 | <Text>Has ID: {$header.id ? 'Yes' : 'No'}</Text>
661 | </VStack>
662 | </property>
663 | Content 1
664 | </TabItem>
665 | <TabItem label="Second Tab">
666 | <property name="headerTemplate">
667 | <VStack gap="$space-1">
668 | <Text>Label: {$header.label}</Text>
669 | <Text>Has ID: {$header.id ? 'Yes' : 'No'}</Text>
670 | </VStack>
671 | </property>
672 | Content 2
673 | </TabItem>
674 | </Tabs>
675 | `);
676 |
677 | // First tab should show the external id
678 | await expect(page.getByText("ID: custom-tab-1")).toBeVisible();
679 | await expect(page.getByText("Label: First Tab")).toBeVisible();
680 | await expect(page.getByText("Has ID: Yes")).toBeVisible();
681 |
682 | // Click second tab
683 | await page.getByRole("tab", { name: "Second Tab" }).click();
684 |
685 | // Second tab should not have id in context
686 | await expect(page.getByText("Label: Second Tab")).toBeVisible();
687 | await expect(page.getByText("Has ID: No")).toBeVisible();
688 | });
689 | });
690 |
691 | // =============================================================================
692 | // GLOBAL HEADER TEMPLATE TESTS
693 | // =============================================================================
694 |
695 | test.describe("global headerTemplate functionality", () => {
696 | test("global headerTemplate customizes all tab headers", async ({ initTestBed, page }) => {
697 | await initTestBed(`
698 | <Tabs>
699 | <property name="headerTemplate">
700 | <Text>Custom: {$header.label}</Text>
701 | </property>
702 | <TabItem label="Tab 1">Content 1</TabItem>
703 | <TabItem label="Tab 2">Content 2</TabItem>
704 | <TabItem label="Tab 3">Content 3</TabItem>
705 | </Tabs>
706 | `);
707 |
708 | await expect(page.getByText("Custom: Tab 1")).toBeVisible();
709 | await expect(page.getByText("Custom: Tab 2")).toBeVisible();
710 | await expect(page.getByText("Custom: Tab 3")).toBeVisible();
711 | });
712 |
713 | test("global headerTemplate receives isActive state", async ({ initTestBed, page }) => {
714 | await initTestBed(`
715 | <Tabs>
716 | <property name="headerTemplate">
717 | <Text>{$header.isActive ? 'Active: ' : ''}{$header.label}</Text>
718 | </property>
719 | <TabItem label="Tab 1">Content 1</TabItem>
720 | <TabItem label="Tab 2">Content 2</TabItem>
721 | </Tabs>
722 | `);
723 |
724 | // First tab should be active initially
725 | await expect(page.getByText("Active: Tab 1")).toBeVisible();
726 | await expect(page.getByText("Tab 2")).toBeVisible();
727 |
728 | // Click second tab
729 | await page.getByText("Tab 2").click();
730 | await expect(page.getByText("Tab 1")).toBeVisible();
731 | await expect(page.getByText("Active: Tab 2")).toBeVisible();
732 | });
733 |
734 | test("global headerTemplate with complex content", async ({ initTestBed, page }) => {
735 |
736 | await initTestBed(`
737 | <Tabs>
738 | <property name="headerTemplate">
739 | <HStack>
740 | <Text>{$header.label} {$header.isActive ? 'active' : ''}</Text>
741 | </HStack>
742 | </property>
743 | <TabItem label="Home">Home content</TabItem>
744 | <TabItem label="Settings">Settings content</TabItem>
745 | </Tabs>
746 | `);
747 |
748 | await expect(page.getByText("Home active")).toBeVisible();
749 |
750 | await page.getByText("Settings").click();
751 | await expect(page.getByText("Settings active")).toBeVisible();
752 | });
753 | });
754 |
755 | // =============================================================================
756 | // FILLER ELEMENT TESTS
757 | // =============================================================================
758 |
759 | test.describe("filler element", () => {
760 | test("filler is hidden when distributeEvenly is true", async ({ initTestBed, page }) => {
761 | await initTestBed(`
762 | <Tabs distributeEvenly>
763 | <TabItem label="Tab 1">Content 1</TabItem>
764 | <TabItem label="Tab 2">Content 2</TabItem>
765 | </Tabs>
766 | `);
767 |
768 | const filler = page.locator('.filler');
769 | await expect(filler).not.toBeVisible();
770 | });
771 |
772 | test("filler is hidden when headerRenderer is used", async ({ initTestBed, page }) => {
773 | await initTestBed(`
774 | <Tabs headerRenderer="{(item) => item.label}">
775 | <TabItem label="Tab 1">Content 1</TabItem>
776 | <TabItem label="Tab 2">Content 2</TabItem>
777 | </Tabs>
778 | `);
779 |
780 | const filler = page.locator('.filler');
781 | await expect(filler).not.toBeVisible();
782 | });
783 | });
784 |
785 | // =============================================================================
786 | // EDGE CASES AND ERROR HANDLING
787 | // =============================================================================
788 |
789 | test.describe("edge cases", () => {
790 | test("handles empty tabs", async ({ initTestBed, page }) => {
791 | await initTestBed(`<Tabs></Tabs>`);
792 | // Check that empty tabs component is rendered
793 | await expect(page.getByRole('tablist')).toBeAttached();
794 | });
795 |
796 | test("handles single tab", async ({ initTestBed, page }) => {
797 | await initTestBed(`
798 | <Tabs>
799 | <TabItem label="Only Tab">Only content</TabItem>
800 | </Tabs>
801 | `);
802 |
803 | await expect(page.getByRole("tab", { name: "Only Tab" })).toBeVisible();
804 | await expect(page.getByText("Only content")).toBeVisible();
805 | });
806 |
807 | test("handles tabs with empty content", async ({ initTestBed, page }) => {
808 | await initTestBed(`
809 | <Tabs>
810 | <TabItem label="Empty Tab"></TabItem>
811 | <TabItem label="Tab 2">Content 2</TabItem>
812 | </Tabs>
813 | `);
814 |
815 | await expect(page.getByRole("tab", { name: "Empty Tab" })).toBeVisible();
816 | await page.getByRole("tab", { name: "Tab 2" }).click();
817 | await expect(page.getByText("Content 2")).toBeVisible();
818 | });
819 |
820 | test("handles very long tab labels", async ({ initTestBed, page }) => {
821 | const longLabel = "This is a very long tab label that might cause layout issues";
822 | await initTestBed(`
823 | <Tabs>
824 | <TabItem label="${longLabel}">Content 1</TabItem>
825 | <TabItem label="Short">Content 2</TabItem>
826 | </Tabs>
827 | `);
828 |
829 | await expect(page.getByRole("tab", { name: longLabel })).toBeVisible();
830 | await expect(page.getByRole("tab", { name: "Short" })).toBeVisible();
831 | });
832 |
833 | test("handles activeTab out of bounds", async ({ initTestBed, page }) => {
834 | await initTestBed(`
835 | <Tabs activeTab="{5}">
836 | <TabItem label="Tab 1">Content 1</TabItem>
837 | <TabItem label="Tab 2">Content 2</TabItem>
838 | </Tabs>
839 | `);
840 |
841 | // Should default to first tab when activeTab is out of bounds
842 | await expect(page.getByText("Content 1")).toBeVisible();
843 | });
844 | });
845 |
846 | // =============================================================================
847 | // ACCESSIBILITY TESTS
848 | // =============================================================================
849 |
850 | test.describe("accessibility", () => {
851 | test("tabs have correct ARIA roles", async ({ initTestBed, page }) => {
852 | await initTestBed(`
853 | <Tabs>
854 | <TabItem label="Tab 1">Content 1</TabItem>
855 | <TabItem label="Tab 2">Content 2</TabItem>
856 | </Tabs>
857 | `);
858 |
859 | await expect(page.getByRole("tablist")).toBeVisible();
860 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible();
861 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible();
862 | await expect(page.getByRole("tabpanel")).toBeVisible();
863 | });
864 |
865 | test("active tab has correct aria-selected", async ({ initTestBed, page }) => {
866 | await initTestBed(`
867 | <Tabs>
868 | <TabItem label="Tab 1">Content 1</TabItem>
869 | <TabItem label="Tab 2">Content 2</TabItem>
870 | </Tabs>
871 | `);
872 |
873 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "true");
874 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "false");
875 |
876 | await page.getByRole("tab", { name: "Tab 2" }).click();
877 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "false");
878 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "true");
879 | });
880 |
881 | test("keyboard navigation works", async ({ initTestBed, page }) => {
882 | await initTestBed(`
883 | <Tabs>
884 | <TabItem label="Tab 1">Content 1</TabItem>
885 | <TabItem label="Tab 2">Content 2</TabItem>
886 | <TabItem label="Tab 3">Content 3</TabItem>
887 | </Tabs>
888 | `);
889 |
890 | // Focus first tab
891 | await page.getByRole("tab", { name: "Tab 1" }).focus();
892 |
893 | // Arrow right to second tab
894 | await page.keyboard.press("ArrowRight");
895 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeFocused();
896 |
897 | // Arrow right to third tab
898 | await page.keyboard.press("ArrowRight");
899 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeFocused();
900 |
901 | // Arrow left back to second tab
902 | await page.keyboard.press("ArrowLeft");
903 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeFocused();
904 | });
905 | // =============================================================================
906 |
907 | test.describe("API functionality verification", () => {
908 | test("next() method cycles through all tabs correctly", async ({ initTestBed, page }) => {
909 | await initTestBed(`
910 | <Fragment>
911 | <Tabs id="tabs">
912 | <TabItem label="Account">
913 | <Text>Account Content</Text>
914 | </TabItem>
915 | <TabItem label="Stream">
916 | <Text>Stream Content</Text>
917 | </TabItem>
918 | <TabItem label="Support">
919 | <Text>Support Content</Text>
920 | </TabItem>
921 | </Tabs>
922 | <Button onClick="tabs.next()" testId="next-btn">
923 | Next Tab
924 | </Button>
925 | </Fragment>
926 | `);
927 |
928 | // Initially Account tab should be active (first tab)
929 | await expect(page.getByText("Account Content")).toBeVisible();
930 | await expect(page.getByText("Stream Content")).not.toBeVisible();
931 | await expect(page.getByText("Support Content")).not.toBeVisible();
932 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
933 |
934 | // Call next() - should move to Stream tab
935 | await page.getByTestId("next-btn").click();
936 | await expect(page.getByText("Account Content")).not.toBeVisible();
937 | await expect(page.getByText("Stream Content")).toBeVisible();
938 | await expect(page.getByText("Support Content")).not.toBeVisible();
939 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
940 |
941 | // Call next() again - should move to Support tab
942 | await page.getByTestId("next-btn").click();
943 | await expect(page.getByText("Account Content")).not.toBeVisible();
944 | await expect(page.getByText("Stream Content")).not.toBeVisible();
945 | await expect(page.getByText("Support Content")).toBeVisible();
946 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
947 |
948 | // Call next() from last tab - should cycle back to Account tab
949 | await page.getByTestId("next-btn").click();
950 | await expect(page.getByText("Account Content")).toBeVisible();
951 | await expect(page.getByText("Stream Content")).not.toBeVisible();
952 | await expect(page.getByText("Support Content")).not.toBeVisible();
953 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
954 | });
955 |
956 | test("prev() method cycles through all tabs correctly in reverse", async ({ initTestBed, page }) => {
957 | await initTestBed(`
958 | <Fragment>
959 | <Tabs id="tabs">
960 | <TabItem label="Account">
961 | <Text>Account Content</Text>
962 | </TabItem>
963 | <TabItem label="Stream">
964 | <Text>Stream Content</Text>
965 | </TabItem>
966 | <TabItem label="Support">
967 | <Text>Support Content</Text>
968 | </TabItem>
969 | </Tabs>
970 | <Button onClick="tabs.prev()" testId="prev-btn">
971 | Previous Tab
972 | </Button>
973 | </Fragment>
974 | `);
975 |
976 | // Initially Account tab should be active (first tab)
977 | await expect(page.getByText("Account Content")).toBeVisible();
978 | await expect(page.getByText("Stream Content")).not.toBeVisible();
979 | await expect(page.getByText("Support Content")).not.toBeVisible();
980 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
981 |
982 | // Call prev() from first tab - should cycle to Support tab (last tab)
983 | await page.getByTestId("prev-btn").click();
984 | await expect(page.getByText("Account Content")).not.toBeVisible();
985 | await expect(page.getByText("Stream Content")).not.toBeVisible();
986 | await expect(page.getByText("Support Content")).toBeVisible();
987 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
988 |
989 | // Call prev() again - should move to Stream tab
990 | await page.getByTestId("prev-btn").click();
991 | await expect(page.getByText("Account Content")).not.toBeVisible();
992 | await expect(page.getByText("Stream Content")).toBeVisible();
993 | await expect(page.getByText("Support Content")).not.toBeVisible();
994 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
995 |
996 | // Call prev() again - should move to Account tab
997 | await page.getByTestId("prev-btn").click();
998 | await expect(page.getByText("Account Content")).toBeVisible();
999 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1000 | await expect(page.getByText("Support Content")).not.toBeVisible();
1001 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1002 | });
1003 |
1004 | test("next() and prev() methods work together for full navigation", async ({ initTestBed, page }) => {
1005 | await initTestBed(`
1006 | <Fragment>
1007 | <Tabs id="tabs">
1008 | <TabItem label="Account">
1009 | <Text>Account Content</Text>
1010 | </TabItem>
1011 | <TabItem label="Stream">
1012 | <Text>Stream Content</Text>
1013 | </TabItem>
1014 | <TabItem label="Support">
1015 | <Text>Support Content</Text>
1016 | </TabItem>
1017 | </Tabs>
1018 | <Button onClick="tabs.next()" testId="next-btn">
1019 | Next Tab
1020 | </Button>
1021 | <Button onClick="tabs.prev()" testId="prev-btn">
1022 | Previous Tab
1023 | </Button>
1024 | </Fragment>
1025 | `);
1026 |
1027 | // Start at Account tab
1028 | await expect(page.getByText("Account Content")).toBeVisible();
1029 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1030 |
1031 | // Go forward twice: Account -> Stream -> Support
1032 | await page.getByTestId("next-btn").click();
1033 | await expect(page.getByText("Stream Content")).toBeVisible();
1034 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1035 |
1036 | await page.getByTestId("next-btn").click();
1037 | await expect(page.getByText("Support Content")).toBeVisible();
1038 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1039 |
1040 | // Go back once: Support -> Stream
1041 | await page.getByTestId("prev-btn").click();
1042 | await expect(page.getByText("Stream Content")).toBeVisible();
1043 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1044 |
1045 | // Go forward to cycle: Stream -> Support -> Account
1046 | await page.getByTestId("next-btn").click();
1047 | await expect(page.getByText("Support Content")).toBeVisible();
1048 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1049 |
1050 | await page.getByTestId("next-btn").click();
1051 | await expect(page.getByText("Account Content")).toBeVisible();
1052 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1053 | });
1054 |
1055 | test("tabs can be navigated programmatically (simulating next() behavior)", async ({ initTestBed, page }) => {
1056 | await initTestBed(`
1057 | <Tabs>
1058 | <TabItem label="Tab 1">Content 1</TabItem>
1059 | <TabItem label="Tab 2">Content 2</TabItem>
1060 | <TabItem label="Tab 3">Content 3</TabItem>
1061 | </Tabs>
1062 | `);
1063 |
1064 | // Initially first tab is active
1065 | await expect(page.getByText("Content 1")).toBeVisible();
1066 | await expect(page.getByText("Content 2")).not.toBeVisible();
1067 | await expect(page.getByText("Content 3")).not.toBeVisible();
1068 |
1069 | // Simulate next() - move to second tab
1070 | await page.getByRole("tab", { name: "Tab 2" }).click();
1071 | await expect(page.getByText("Content 1")).not.toBeVisible();
1072 | await expect(page.getByText("Content 2")).toBeVisible();
1073 | await expect(page.getByText("Content 3")).not.toBeVisible();
1074 |
1075 | // Simulate next() - move to third tab
1076 | await page.getByRole("tab", { name: "Tab 3" }).click();
1077 | await expect(page.getByText("Content 1")).not.toBeVisible();
1078 | await expect(page.getByText("Content 2")).not.toBeVisible();
1079 | await expect(page.getByText("Content 3")).toBeVisible();
1080 |
1081 | // Simulate next() - should cycle back to first tab
1082 | await page.getByRole("tab", { name: "Tab 1" }).click();
1083 | await expect(page.getByText("Content 1")).toBeVisible();
1084 | await expect(page.getByText("Content 2")).not.toBeVisible();
1085 | await expect(page.getByText("Content 3")).not.toBeVisible();
1086 | });
1087 |
1088 | test("tabs can be navigated backwards programmatically (simulating prev() behavior)", async ({ initTestBed, page }) => {
1089 | await initTestBed(`
1090 | <Tabs>
1091 | <TabItem label="Tab 1">Content 1</TabItem>
1092 | <TabItem label="Tab 2">Content 2</TabItem>
1093 | <TabItem label="Tab 3">Content 3</TabItem>
1094 | </Tabs>
1095 | `);
1096 |
1097 | // Initially first tab is active
1098 | await expect(page.getByText("Content 1")).toBeVisible();
1099 |
1100 | // Simulate prev() from first tab - should cycle to last tab
1101 | await page.getByRole("tab", { name: "Tab 3" }).click();
1102 | await expect(page.getByText("Content 1")).not.toBeVisible();
1103 | await expect(page.getByText("Content 2")).not.toBeVisible();
1104 | await expect(page.getByText("Content 3")).toBeVisible();
1105 |
1106 | // Simulate prev() - move to second tab
1107 | await page.getByRole("tab", { name: "Tab 2" }).click();
1108 | await expect(page.getByText("Content 1")).not.toBeVisible();
1109 | await expect(page.getByText("Content 2")).toBeVisible();
1110 | await expect(page.getByText("Content 3")).not.toBeVisible();
1111 |
1112 | // Simulate prev() - move to first tab
1113 | await page.getByRole("tab", { name: "Tab 1" }).click();
1114 | await expect(page.getByText("Content 1")).toBeVisible();
1115 | await expect(page.getByText("Content 2")).not.toBeVisible();
1116 | await expect(page.getByText("Content 3")).not.toBeVisible();
1117 | });
1118 |
1119 | test("activeTab prop sets initial tab correctly (simulating setActiveTabIndex())", async ({ initTestBed, page }) => {
1120 | await initTestBed(`
1121 | <Tabs activeTab="{2}">
1122 | <TabItem label="Tab 1">Content 1</TabItem>
1123 | <TabItem label="Tab 2">Content 2</TabItem>
1124 | <TabItem label="Tab 3">Content 3</TabItem>
1125 | </Tabs>
1126 | `);
1127 |
1128 | // Third tab should be active initially (index 2)
1129 | await expect(page.getByText("Content 3")).toBeVisible();
1130 | await expect(page.getByText("Content 1")).not.toBeVisible();
1131 | await expect(page.getByText("Content 2")).not.toBeVisible();
1132 | });
1133 |
1134 | test("ArrowRight key cycles through all tabs correctly (keyboard navigation)", async ({ initTestBed, page }) => {
1135 | await initTestBed(`
1136 | <Tabs>
1137 | <TabItem label="Account">
1138 | <Text>Account Content</Text>
1139 | </TabItem>
1140 | <TabItem label="Stream">
1141 | <Text>Stream Content</Text>
1142 | </TabItem>
1143 | <TabItem label="Support">
1144 | <Text>Support Content</Text>
1145 | </TabItem>
1146 | </Tabs>
1147 | `);
1148 |
1149 | // Initially Account tab should be active and focused
1150 | await expect(page.getByText("Account Content")).toBeVisible();
1151 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1152 | await expect(page.getByText("Support Content")).not.toBeVisible();
1153 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1154 |
1155 | // Focus the first tab
1156 | await page.getByRole("tab", { name: "Account" }).focus();
1157 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused();
1158 |
1159 | // Press ArrowRight - should move to Stream tab
1160 | await page.keyboard.press("ArrowRight");
1161 | await expect(page.getByText("Account Content")).not.toBeVisible();
1162 | await expect(page.getByText("Stream Content")).toBeVisible();
1163 | await expect(page.getByText("Support Content")).not.toBeVisible();
1164 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1165 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused();
1166 |
1167 | // Press ArrowRight again - should move to Support tab
1168 | await page.keyboard.press("ArrowRight");
1169 | await expect(page.getByText("Account Content")).not.toBeVisible();
1170 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1171 | await expect(page.getByText("Support Content")).toBeVisible();
1172 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1173 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused();
1174 |
1175 | // Press ArrowRight from last tab - should cycle back to Account tab
1176 | await page.keyboard.press("ArrowRight");
1177 | await expect(page.getByText("Account Content")).toBeVisible();
1178 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1179 | await expect(page.getByText("Support Content")).not.toBeVisible();
1180 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1181 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused();
1182 | });
1183 |
1184 | test("ArrowLeft key cycles through all tabs correctly in reverse (keyboard navigation)", async ({ initTestBed, page }) => {
1185 | await initTestBed(`
1186 | <Tabs>
1187 | <TabItem label="Account">
1188 | <Text>Account Content</Text>
1189 | </TabItem>
1190 | <TabItem label="Stream">
1191 | <Text>Stream Content</Text>
1192 | </TabItem>
1193 | <TabItem label="Support">
1194 | <Text>Support Content</Text>
1195 | </TabItem>
1196 | </Tabs>
1197 | `);
1198 |
1199 | // Initially Account tab should be active
1200 | await expect(page.getByText("Account Content")).toBeVisible();
1201 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1202 | await expect(page.getByText("Support Content")).not.toBeVisible();
1203 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1204 |
1205 | // Focus the first tab
1206 | await page.getByRole("tab", { name: "Account" }).focus();
1207 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused();
1208 |
1209 | // Press ArrowLeft from first tab - should cycle to Support tab (last tab)
1210 | await page.keyboard.press("ArrowLeft");
1211 | await expect(page.getByText("Account Content")).not.toBeVisible();
1212 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1213 | await expect(page.getByText("Support Content")).toBeVisible();
1214 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1215 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused();
1216 |
1217 | // Press ArrowLeft again - should move to Stream tab
1218 | await page.keyboard.press("ArrowLeft");
1219 | await expect(page.getByText("Account Content")).not.toBeVisible();
1220 | await expect(page.getByText("Stream Content")).toBeVisible();
1221 | await expect(page.getByText("Support Content")).not.toBeVisible();
1222 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1223 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused();
1224 |
1225 | // Press ArrowLeft again - should move to Account tab
1226 | await page.keyboard.press("ArrowLeft");
1227 | await expect(page.getByText("Account Content")).toBeVisible();
1228 | await expect(page.getByText("Stream Content")).not.toBeVisible();
1229 | await expect(page.getByText("Support Content")).not.toBeVisible();
1230 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1231 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused();
1232 | });
1233 |
1234 | test("ArrowRight and ArrowLeft keys work together for full keyboard navigation", async ({ initTestBed, page }) => {
1235 | await initTestBed(`
1236 | <Tabs>
1237 | <TabItem label="Account">
1238 | <Text>Account Content</Text>
1239 | </TabItem>
1240 | <TabItem label="Stream">
1241 | <Text>Stream Content</Text>
1242 | </TabItem>
1243 | <TabItem label="Support">
1244 | <Text>Support Content</Text>
1245 | </TabItem>
1246 | </Tabs>
1247 | `);
1248 |
1249 | // Start at Account tab and focus it
1250 | await expect(page.getByText("Account Content")).toBeVisible();
1251 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1252 | await page.getByRole("tab", { name: "Account" }).focus();
1253 |
1254 | // Go forward twice: Account -> Stream -> Support
1255 | await page.keyboard.press("ArrowRight");
1256 | await expect(page.getByText("Stream Content")).toBeVisible();
1257 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1258 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused();
1259 |
1260 | await page.keyboard.press("ArrowRight");
1261 | await expect(page.getByText("Support Content")).toBeVisible();
1262 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1263 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused();
1264 |
1265 | // Go back once: Support -> Stream
1266 | await page.keyboard.press("ArrowLeft");
1267 | await expect(page.getByText("Stream Content")).toBeVisible();
1268 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true");
1269 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused();
1270 |
1271 | // Go forward to cycle: Stream -> Support -> Account
1272 | await page.keyboard.press("ArrowRight");
1273 | await expect(page.getByText("Support Content")).toBeVisible();
1274 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true");
1275 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused();
1276 |
1277 | await page.keyboard.press("ArrowRight");
1278 | await expect(page.getByText("Account Content")).toBeVisible();
1279 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true");
1280 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused();
1281 | });
1282 |
1283 | test("API methods work with headerTemplate (visual verification)", async ({ initTestBed, page }) => {
1284 | await initTestBed(`
1285 | <Fragment>
1286 | <Tabs id="tabs">
1287 | <property name="headerTemplate">
1288 | <Text>{$header.isActive ? 'Active: ' : ''}{$header.label}</Text>
1289 | </property>
1290 | <TabItem label="Tab 1">Content 1</TabItem>
1291 | <TabItem label="Tab 2">Content 2</TabItem>
1292 | <TabItem label="Tab 3">Content 3</TabItem>
1293 | </Tabs>
1294 | <Button onClick="tabs.prev()">Prev</Button>
1295 | <Button onClick="tabs.next()">Next</Button>
1296 | </Fragment>
1297 | `);
1298 |
1299 | // Initially first tab is active
1300 | await expect(page.getByText("Active: Tab 1")).toBeVisible();
1301 | await expect(page.getByText("Tab 2")).toBeVisible();
1302 | await expect(page.getByText("Tab 3")).toBeVisible();
1303 |
1304 | // Simulate next() behavior by clicking second tab
1305 | await page.getByRole("button", { name: "Next" }).click();
1306 | await expect(page.getByText("Active: Tab 2")).toBeVisible();
1307 | await expect(page.getByText("Tab 1")).toBeVisible();
1308 | await expect(page.getByText("Tab 3")).toBeVisible();
1309 |
1310 | // Simulate prev() behavior by clicking first tab
1311 | await page.getByRole("button", { name: "Prev" }).click();
1312 | await expect(page.getByText("Active: Tab 1")).toBeVisible();
1313 | await expect(page.getByText("Tab 2")).toBeVisible();
1314 | await expect(page.getByText("Tab 3")).toBeVisible();
1315 | });
1316 | });
1317 | });
1318 |
1319 | // =============================================================================
1320 | // DYNAMIC CONTENT TESTS
1321 | // =============================================================================
1322 |
1323 | test.describe("dynamic content", () => {
1324 | test("works with Items component for dynamic tabs", async ({ initTestBed, page }) => {
1325 | await initTestBed(`
1326 | <Tabs>
1327 | <Items data="{['First', 'Second', 'Third']}">
1328 | <TabItem label="{$item}">Content for {$item}</TabItem>
1329 | </Items>
1330 | </Tabs>
1331 | `);
1332 |
1333 | await expect(page.getByRole("tab", { name: "First" })).toBeVisible();
1334 | await expect(page.getByRole("tab", { name: "Second" })).toBeVisible();
1335 | await expect(page.getByRole("tab", { name: "Third" })).toBeVisible();
1336 |
1337 | await page.getByRole("tab", { name: "Second" }).click();
1338 | await expect(page.getByText("Content for Second")).toBeVisible();
1339 | });
1340 |
1341 | test("headerTemplate works with dynamic content from Items", async ({ initTestBed, page }) => {
1342 | await initTestBed(`
1343 | <Tabs>
1344 | <property name="headerTemplate">
1345 | <Text color="red">Account {$header.label}</Text>
1346 | </property>
1347 | <Items data="{[1, 2, 3, 4, 5]}">
1348 | <TabItem label="Account {$item}">
1349 | <property name="headerTemplate">
1350 | <Text when="true" color="blue">{$header.label} | {$item}</Text>
1351 | </property>
1352 | Content for account {$item}
1353 | </TabItem>
1354 | </Items>
1355 | </Tabs>
1356 | `);
1357 |
1358 | // Check that individual headerTemplate takes priority and has access to both $header and $item
1359 | await expect(page.getByText("Account 1 | 1")).toBeVisible();
1360 | await expect(page.getByText("Account 2 | 2")).toBeVisible();
1361 | await expect(page.getByText("Account 3 | 3")).toBeVisible();
1362 | await expect(page.getByText("Account 4 | 4")).toBeVisible();
1363 | await expect(page.getByText("Account 5 | 5")).toBeVisible();
1364 |
1365 | // Test clicking on different tabs
1366 | await page.getByText("Account 3 | 3").click();
1367 | await expect(page.getByText("Content for account 3")).toBeVisible();
1368 | });
1369 | });
1370 |
1371 | test.describe("onDidChange callback functionality", () => {
1372 | test("onDidChange callback is called when tab changes", async ({ initTestBed, page }) => {
1373 | await initTestBed(`
1374 | <Fragment var.tabChangeInfo="No change yet">
1375 | <Tabs onDidChange="(index, id, label) => {
1376 | tabChangeInfo = 'Tab: ' + index + ' - ' + label;
1377 | }">
1378 | <TabItem label="First Tab">
1379 | <Text>First tab content</Text>
1380 | </TabItem>
1381 | <TabItem label="Second Tab">
1382 | <Text>Second tab content</Text>
1383 | </TabItem>
1384 | <TabItem label="Third Tab">
1385 | <Text>Third tab content</Text>
1386 | </TabItem>
1387 | </Tabs>
1388 | <Text>{tabChangeInfo}</Text>
1389 | </Fragment>
1390 | `);
1391 |
1392 | // Initially should show no change
1393 | await expect(page.getByText("No change yet")).toBeVisible();
1394 | await expect(page.getByText("First tab content")).toBeVisible();
1395 |
1396 | // Click on second tab
1397 | await page.getByRole("tab", { name: "Second Tab" }).click();
1398 | await expect(page.getByText("Second tab content")).toBeVisible();
1399 | await expect(page.getByText("Tab: 1 - Second Tab")).toBeVisible();
1400 |
1401 | // Click on third tab
1402 | await page.getByRole("tab", { name: "Third Tab" }).click();
1403 | await expect(page.getByText("Third tab content")).toBeVisible();
1404 | await expect(page.getByText("Tab: 2 - Third Tab")).toBeVisible();
1405 |
1406 | // Click back to first tab
1407 | await page.getByRole("tab", { name: "First Tab" }).click();
1408 | await expect(page.getByText("First tab content")).toBeVisible();
1409 | await expect(page.getByText("Tab: 0 - First Tab")).toBeVisible();
1410 | });
1411 |
1412 | test("onDidChange callback is not called when same tab is clicked", async ({ initTestBed, page }) => {
1413 | await initTestBed(`
1414 | <Fragment var.changeCount="{0}">
1415 | <Tabs onDidChange="(index, id, label) => {
1416 | changeCount = changeCount + 1;
1417 | }">
1418 | <TabItem label="Tab One">
1419 | <Text>Content one</Text>
1420 | </TabItem>
1421 | <TabItem label="Tab Two">
1422 | <Text>Content two</Text>
1423 | </TabItem>
1424 | </Tabs>
1425 | <Text>Changes: {changeCount}</Text>
1426 | </Fragment>
1427 | `);
1428 |
1429 | // Initially should show 0 changes
1430 | await expect(page.getByText("Changes: 0")).toBeVisible();
1431 | await expect(page.getByText("Content one")).toBeVisible();
1432 |
1433 | // Click on second tab - should trigger onDidChange
1434 | await page.getByRole("tab", { name: "Tab Two" }).click();
1435 | await expect(page.getByText("Content two")).toBeVisible();
1436 | await expect(page.getByText("Changes: 1")).toBeVisible();
1437 |
1438 | // Click on second tab again - should NOT trigger onDidChange
1439 | await page.getByRole("tab", { name: "Tab Two" }).click();
1440 | await expect(page.getByText("Changes: 1")).toBeVisible(); // Should still be 1
1441 | });
1442 | });
1443 |
```