#
tokens: 47286/50000 3/1626 files (page 100/181)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 100 of 181. Use http://codebase.md/xmlui-org/xmlui/xmlui/mockApiDef.js?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
│   ├── 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
│   │   │   │   ├── control-cache-invalidation.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/FlowLayout/FlowLayout.spec.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { getBounds, overflows, scaleByPercent } from "../../testing/component-test-helpers";
  2 | import { test, expect } from "../../testing/fixtures";
  3 | 
  4 | // =============================================================================
  5 | // BASIC FUNCTIONALITY TESTS
  6 | // =============================================================================
  7 | 
  8 | test.describe("Basic functionality", () => {
  9 |   test("component renders with default props", async ({ page, initTestBed }) => {
 10 |     await initTestBed(`
 11 |       <FlowLayout>
 12 |         <Text testId="item1">Item 1</Text>
 13 |         <Text testId="item2">Item 2</Text>
 14 |         <Text testId="item3">Item 3</Text>
 15 |       </FlowLayout>
 16 |     `);
 17 | 
 18 |     // Check that the component is visible
 19 |     const item1 = page.getByTestId("item1");
 20 |     const rect1 = await item1.boundingBox();
 21 |     const item2 = page.getByTestId("item2");
 22 |     const rect2 = await item2.boundingBox();
 23 |     const item3 = page.getByTestId("item3");
 24 |     const rect3 = await item3.boundingBox();
 25 | 
 26 |     // Check that children are rendered
 27 |     expect(rect1.height).toBe(rect2.height);
 28 |     expect(rect2.height).toBe(rect3.height);
 29 |     expect(rect1.width).toBeGreaterThan(0);
 30 |     expect(rect2.width).toBeGreaterThan(0);
 31 |     expect(rect3.width).toBeGreaterThan(0);
 32 |     expect(rect1.x).toBe(rect2.x);
 33 |     expect(rect2.x).toBe(rect3.x);
 34 |     expect(rect1.y).toBeLessThan(rect2.y);
 35 |     expect(rect2.y).toBeLessThan(rect3.y);
 36 |   });
 37 | 
 38 |   test("component renders when widths specified", async ({ page, initTestBed }) => {
 39 |     await initTestBed(`
 40 |       <FlowLayout>
 41 |         <Text testId="item1" width="80px">Item 1</Text>
 42 |         <Text testId="item2" width="80px">Item 2</Text>
 43 |         <Text testId="item3" width="80px">Item 3</Text>
 44 |       </FlowLayout>
 45 |     `);
 46 | 
 47 |     const item1 = page.getByTestId("item1");
 48 |     const rect1 = await item1.boundingBox();
 49 |     const item2 = page.getByTestId("item2");
 50 |     const rect2 = await item2.boundingBox();
 51 |     const item3 = page.getByTestId("item3");
 52 |     const rect3 = await item3.boundingBox();
 53 | 
 54 |     // Check that children are rendered
 55 |     expect(rect1.height).toBe(rect2.height);
 56 |     expect(rect2.height).toBe(rect3.height);
 57 |     expect(rect1.width).toBeLessThanOrEqual(80);
 58 |     expect(rect2.width).toBeLessThanOrEqual(80);
 59 |     expect(rect3.width).toBeLessThanOrEqual(80);
 60 |     expect(rect1.y).toBe(rect2.y);
 61 |     expect(rect2.y).toBe(rect3.y);
 62 |     expect(rect1.x).toBeLessThan(rect2.x);
 63 |     expect(rect2.x).toBeLessThan(rect3.x);
 64 |   });
 65 | 
 66 |   test("component wraps items when they exceed container width", async ({ page, initTestBed }) => {
 67 |     await initTestBed(`
 68 |       <FlowLayout width="280px">
 69 |         <Text testId="item1" width="100px">Item 1</Text>
 70 |         <Text testId="item2" width="100px">Item 2</Text>
 71 |         <Text testId="item3" width="100px">Item 3</Text>
 72 |       </FlowLayout>
 73 |     `);
 74 | 
 75 |     const item1 = page.getByTestId("item1");
 76 |     const rect1 = await item1.boundingBox();
 77 |     const item2 = page.getByTestId("item2");
 78 |     const rect2 = await item2.boundingBox();
 79 |     const item3 = page.getByTestId("item3");
 80 |     const rect3 = await item3.boundingBox();
 81 | 
 82 |     // Check that children are rendered
 83 |     expect(rect1.height).toBe(rect2.height);
 84 |     expect(rect2.height).toBe(rect3.height);
 85 |     expect(rect1.y).toBe(rect2.y);
 86 |     expect(rect2.y).toBeLessThan(rect3.y);
 87 |     expect(rect1.x).toBeLessThan(rect2.x);
 88 |     expect(rect1.x).toBe(rect3.x);
 89 |   });
 90 | 
 91 |   test("component applies gap correctly (#1)", async ({ page, initTestBed }) => {
 92 |     await initTestBed(`
 93 |       <FlowLayout gap="13px">
 94 |         <Stack testId="item1" width="100px">Item 1</Stack>
 95 |         <Stack testId="item2" width="100px">Item 2</Stack>
 96 |         <Stack testId="item3" width="100px">Item 3</Stack>
 97 |       </FlowLayout>
 98 |     `);
 99 | 
100 |     const item1 = page.getByTestId("item1");
101 |     const rect1 = await item1.boundingBox();
102 |     const item2 = page.getByTestId("item2");
103 |     const rect2 = await item2.boundingBox();
104 |     const item3 = page.getByTestId("item3");
105 |     const rect3 = await item3.boundingBox();
106 | 
107 |     // Check that children are rendered
108 |     expect(rect1.height).toBe(rect2.height);
109 |     expect(rect2.height).toBe(rect3.height);
110 |     expect(rect1.y).toBe(rect2.y);
111 |     expect(rect2.y).toBe(rect3.y);
112 |     expect(rect2.x - (rect1.x + rect1.width)).toBe(13);
113 |     expect(rect3.x - (rect2.x + rect2.width)).toBe(13);
114 |   });
115 | 
116 |   test("component applies gap correctly (#2)", async ({ page, initTestBed }) => {
117 |     await initTestBed(`
118 |       <FlowLayout gap="13px">
119 |         <Stack testId="item1">Item 1</Stack>
120 |         <Stack testId="item2">Item 2</Stack>
121 |         <Stack testId="item3">Item 3</Stack>
122 |       </FlowLayout>
123 |     `);
124 | 
125 |     const item1 = page.getByTestId("item1");
126 |     const rect1 = await item1.boundingBox();
127 |     const item2 = page.getByTestId("item2");
128 |     const rect2 = await item2.boundingBox();
129 |     const item3 = page.getByTestId("item3");
130 |     const rect3 = await item3.boundingBox();
131 | 
132 |     // Check that children are rendered
133 |     expect(rect1.height).toBe(rect2.height);
134 |     expect(rect2.height).toBe(rect3.height);
135 |     expect(rect2.y - (rect1.y + rect1.height)).toBe(13);
136 |     expect(rect3.y - (rect2.y + rect2.height)).toBe(13);
137 |   });
138 | 
139 |   test("component applies columnGap correctly", async ({ page, initTestBed }) => {
140 |     await initTestBed(`
141 |       <FlowLayout columnGap="13px" gap="40px">
142 |         <Stack testId="item1" width="100px">Item 1</Stack>
143 |         <Stack testId="item2" width="100px">Item 2</Stack>
144 |         <Stack testId="item3" width="100px">Item 3</Stack>
145 |       </FlowLayout>
146 |     `);
147 | 
148 |     const item1 = page.getByTestId("item1");
149 |     const rect1 = await item1.boundingBox();
150 |     const item2 = page.getByTestId("item2");
151 |     const rect2 = await item2.boundingBox();
152 |     const item3 = page.getByTestId("item3");
153 |     const rect3 = await item3.boundingBox();
154 | 
155 |     // Check that children are rendered
156 |     expect(rect1.height).toBe(rect2.height);
157 |     expect(rect2.height).toBe(rect3.height);
158 |     expect(rect1.y).toBe(rect2.y);
159 |     expect(rect2.y).toBe(rect3.y);
160 |     expect(rect2.x - (rect1.x + rect1.width)).toBe(13);
161 |     expect(rect3.x - (rect2.x + rect2.width)).toBe(13);
162 |   });
163 | 
164 |   test("component applies rowGap correctly", async ({ page, initTestBed }) => {
165 |     await initTestBed(`
166 |       <FlowLayout rowGap="13px" gap="40px">
167 |         <Stack testId="item1">Item 1</Stack>
168 |         <Stack testId="item2">Item 2</Stack>
169 |         <Stack testId="item3">Item 3</Stack>
170 |       </FlowLayout>
171 |     `);
172 | 
173 |     const item1 = page.getByTestId("item1");
174 |     const rect1 = await item1.boundingBox();
175 |     const item2 = page.getByTestId("item2");
176 |     const rect2 = await item2.boundingBox();
177 |     const item3 = page.getByTestId("item3");
178 |     const rect3 = await item3.boundingBox();
179 | 
180 |     // Check that children are rendered
181 |     expect(rect1.height).toBe(rect2.height);
182 |     expect(rect2.height).toBe(rect3.height);
183 |     expect(rect2.y - (rect1.y + rect1.height)).toBe(13);
184 |     expect(rect3.y - (rect2.y + rect2.height)).toBe(13);
185 |   });
186 | 
187 |   test("component applies rowGap and columnGap correctly", async ({ page, initTestBed }) => {
188 |     await initTestBed(`
189 |       <FlowLayout width="280px" columnGap="13px" rowGap="19px" gap="40px">
190 |         <Stack testId="item1" width="100px">Item 1</Stack>
191 |         <Stack testId="item2" width="100px">Item 2</Stack>
192 |         <Stack testId="item3" width="100px">Item 3</Stack>
193 |       </FlowLayout>
194 |     `);
195 | 
196 |     const item1 = page.getByTestId("item1");
197 |     const rect1 = await item1.boundingBox();
198 |     const item2 = page.getByTestId("item2");
199 |     const rect2 = await item2.boundingBox();
200 |     const item3 = page.getByTestId("item3");
201 |     const rect3 = await item3.boundingBox();
202 | 
203 |     // Check that children are rendered
204 |     expect(rect1.height).toBe(rect2.height);
205 |     expect(rect2.height).toBe(rect3.height);
206 |     expect(rect1.y).toBe(rect2.y);
207 |     expect(rect2.y).toBeLessThan(rect3.y);
208 |     expect(rect1.x).toBeLessThan(rect2.x);
209 |     expect(rect2.x - (rect1.x + rect1.width)).toBe(13);
210 |     expect(rect3.x).toBe(rect1.x);
211 |     expect(rect3.y - (rect2.y + rect2.height)).toBe(19);
212 |   });
213 | });
214 | 
215 | // =============================================================================
216 | // EDGE CASE TESTS
217 | // =============================================================================
218 | 
219 | test.describe("Edge cases", () => {
220 |   test("component handles empty content gracefully", async ({ page, initTestBed }) => {
221 |     await initTestBed(`<FlowLayout testId="flowLayout"></FlowLayout>`);
222 | 
223 |     const layout = page.getByTestId("flowLayout");
224 |     await expect(layout).toBeAttached();
225 |     await expect(layout).toBeEmpty();
226 |   });
227 | 
228 |   test("component handles very long items correctly (#1)", async ({ page, initTestBed }) => {
229 |     await initTestBed(`
230 |       <FlowLayout width="200px">
231 |         <Text testId="item1">This is a very long item that should wrap to the next line because it's too long</Text>
232 |         <Text testId="item2">Short item</Text>
233 |       </FlowLayout>
234 |     `);
235 | 
236 |     const item1 = page.getByTestId("item1");
237 |     const rect1 = await item1.boundingBox();
238 |     const item2 = page.getByTestId("item2");
239 |     const rect2 = await item2.boundingBox();
240 | 
241 |     expect(rect2.y).toBeGreaterThan(rect1.y + rect1.height);
242 |   });
243 | 
244 |   test("component handles very long items correctly (#2)", async ({ page, initTestBed }) => {
245 |     await initTestBed(`
246 |       <FlowLayout width="200px">
247 |         <Text testId="item1">Short item</Text>
248 |         <Text testId="item2">This is a very long item that should wrap to the next line because it's too long</Text>
249 |       </FlowLayout>
250 |     `);
251 | 
252 |     const item1 = page.getByTestId("item1");
253 |     const rect1 = await item1.boundingBox();
254 |     const item2 = page.getByTestId("item2");
255 |     const rect2 = await item2.boundingBox();
256 | 
257 |     expect(rect2.y).toBeGreaterThan(rect1.y + rect1.height);
258 |   });
259 | 
260 |   const PAGE_WIDTH = 1280;
261 | 
262 |   test("1 item 25% width", async ({ page, initTestBed }) => {
263 |     const itemHeight = "64px";
264 |     const itemWidthPercent = "25%";
265 |     await initTestBed(`
266 |       <FlowLayout width="${PAGE_WIDTH}">
267 |         <Stack testId="item" backgroundColor="red" height="${itemHeight}" width="${itemWidthPercent}"/>
268 |       </FlowLayout>
269 |     `);
270 |     const expectedWidth = scaleByPercent(PAGE_WIDTH, itemWidthPercent);
271 |     const { width: itemWidth } = await getBounds(page.getByTestId("item"));
272 |     expect(itemWidth).toEqual(expectedWidth);
273 |   });
274 | 
275 |   // gap should be ignored because of 1 item
276 |   test("1 item 25% width + gap", async ({ page, initTestBed }) => {
277 |     const itemHeight = "64px";
278 |     const itemWidthPercent = "25%";
279 |     const gap = "26px";
280 |     await initTestBed(`
281 |       <FlowLayout gap="${gap}" width="${PAGE_WIDTH}">
282 |         <Stack testId="item" backgroundColor="red" height="${itemHeight}" width="${itemWidthPercent}"/>
283 |       </FlowLayout>
284 |     `);
285 | 
286 |     const { right } = await getBounds(page.getByTestId("item"));
287 |     const expectedWidth = scaleByPercent(PAGE_WIDTH, itemWidthPercent);
288 |     expect(right).toEqual(expectedWidth);
289 |   });
290 | 
291 |   // gap should be ignored because of 1 item
292 |   test("1 item 100% width + gap", async ({ page, initTestBed }) => {
293 |     const itemHeight = "64px";
294 |     const itemWidthPercent = "100%";
295 |     const gap = "26px";
296 | 
297 |     await initTestBed(`
298 |       <FlowLayout gap="${gap}" width="${PAGE_WIDTH}">
299 |         <Stack testId="item" backgroundColor="red" height="${itemHeight}" width="${itemWidthPercent}"/>
300 |       </FlowLayout>
301 |     `);
302 |     const { width } = await getBounds(page.getByTestId("item"));
303 |     const expectedWidth = PAGE_WIDTH;
304 |     expect(width).toEqual(expectedWidth);
305 |   });
306 | 
307 |   test("4 item 25% width", async ({ page, initTestBed }) => {
308 |     const layoutWidth = "400px";
309 |     const itemWidthPercent = "25%";
310 |     const itemHeight = 64;
311 | 
312 |     await initTestBed(`
313 |       <FlowLayout testId="layout" width="${layoutWidth}" backgroundColor="cyan">
314 |         <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidthPercent}"/>
315 |         <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidthPercent}"/>
316 |         <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidthPercent}"/>
317 |         <Stack backgroundColor="yellow" height="${itemHeight}px" width="${itemWidthPercent}"/>
318 |       </FlowLayout>
319 |     `);
320 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
321 | 
322 |     expect(layoutHeight).toEqual(itemHeight);
323 |   });
324 | 
325 |   test("3 item 25% width, 1 item 25.1% wraps", async ({ page, initTestBed }) => {
326 |     const itemHeight = 64;
327 |     const itemWidthPercent = "25%";
328 |     const itemWidthPercentBigger = "25.1%";
329 |     await initTestBed(`
330 |       <FlowLayout testId="layout" width="${PAGE_WIDTH}" gap="0">
331 |         <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidthPercent}"/>
332 |         <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidthPercent}"/>
333 |         <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidthPercent}"/>
334 |         <Stack backgroundColor="yellow" height="${itemHeight}px" width="${itemWidthPercentBigger}"/>
335 |       </FlowLayout>
336 |     `);
337 | 
338 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
339 |     const expectedHeight = itemHeight * 2;
340 | 
341 |     expect(layoutHeight).toEqual(expectedHeight);
342 |   });
343 | 
344 |   // When gap is specified and wrapping, a horizontal gap is applied
345 |   test("wrap with gaps", async ({ page, initTestBed }) => {
346 |     const layoutWidth = 400;
347 |     const itemWidthPercent = "25%";
348 |     const itemWidthPercentBigger = "25.1%";
349 |     const itemHeight = 64;
350 |     const gap = 20;
351 |     await initTestBed(`
352 |       <FlowLayout testId="layout" width="${layoutWidth}px" backgroundColor="cyan" gap="${gap}px">
353 |         <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidthPercentBigger}"/>
354 |         <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidthPercent}"/>
355 |         <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidthPercent}"/>
356 |         <Stack backgroundColor="yellow" height="${itemHeight}px" width="${itemWidthPercent}"/>
357 |       </FlowLayout>
358 |     `);
359 | 
360 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
361 |     const expectedHeight = gap + itemHeight * 2;
362 | 
363 |     expect(layoutHeight).toEqual(expectedHeight);
364 |   });
365 | 
366 |   test("item with * width fills row", async ({ page, initTestBed }) => {
367 |     const itemHeight = 64;
368 |     const itemWidth = "*";
369 |     await initTestBed(`
370 |       <FlowLayout testId="layout">
371 |         <Stack backgroundColor="red" height="${itemHeight}px" width="50"/>
372 |         <Stack backgroundColor="green" height="${itemHeight}px" width="50"/>
373 |         <Stack testId="item2" backgroundColor="blue" height="${itemHeight}px" width="${itemWidth}"/>
374 |       </FlowLayout>
375 |     `);
376 | 
377 |     const { height: layoutHeight, right: layoutRight } = await getBounds(
378 |       page.getByTestId("layout"),
379 |     );
380 |     const { right: starItemRight } = await getBounds(page.getByTestId("item2"));
381 | 
382 |     expect(layoutHeight).toEqual(itemHeight);
383 |     expect(layoutRight).toEqual(starItemRight);
384 |   });
385 | 
386 |   // rowGap applies when wrapping
387 |   test("wrap with rowGap", async ({ page, initTestBed }) => {
388 |     const itemHeight = 64;
389 |     const itemWidthPercent = "50%";
390 |     const rowGap = 24;
391 |     await initTestBed(`
392 |   <FlowLayout testId="layout" rowGap="${rowGap}px">
393 |     <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidthPercent}"/>
394 |     <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidthPercent}"/>
395 |     <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidthPercent}"/>
396 |     <Stack backgroundColor="yellow" height="${itemHeight}px" width="${itemWidthPercent}"/>
397 |   </FlowLayout>
398 |   `);
399 | 
400 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
401 |     const expectedHeight = itemHeight * 2 + rowGap;
402 | 
403 |     expect(layoutHeight).toEqual(expectedHeight);
404 |   });
405 | 
406 |   test("wrap with columnGap", async ({ page, initTestBed }) => {
407 |     const itemWidth = 200;
408 |     const columnGap = 24;
409 |     const layoutWidth = itemWidth + columnGap + itemWidth;
410 |     const itemHeight = 64;
411 |     await initTestBed(`
412 |   <FlowLayout testId="layout" width="${layoutWidth}px" columnGap="${columnGap}px">
413 |     <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidth}px"/>
414 |     <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidth}px"/>
415 |     <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidth}px"/>
416 |     <Stack backgroundColor="yellow" testId="item3" height="${itemHeight}px" width="${itemWidth}px"/>
417 |   </FlowLayout>
418 |   `);
419 | 
420 |     const { left: item3Left } = await getBounds(page.getByTestId("item3"));
421 |     const expectedItem3Left = itemWidth + columnGap;
422 | 
423 |     expect(item3Left).toEqual(expectedItem3Left);
424 |   });
425 | 
426 |   // wrapping: columnGap & rowGap overrules gap prop
427 |   test("columnGap & rowGap overrules gap", async ({ page, initTestBed }) => {
428 |     const itemWidth = 200;
429 |     const columnGap = 24;
430 |     const layoutWidth = itemWidth + columnGap + itemWidth;
431 |     const itemHeight = 64;
432 |     const rowGap = 24;
433 |     const gap = 5;
434 |     await initTestBed(`
435 |   <FlowLayout testId="layout" width="${layoutWidth}px" gap="${gap}px" columnGap="${columnGap}px" rowGap="${rowGap}px">
436 |     <Stack testId="item0" backgroundColor="red" height="${itemHeight}px" width="${itemWidth}px"/>
437 |     <Stack testId="item1" backgroundColor="green" height="${itemHeight}px" width="${itemWidth}px"/>
438 |     <Stack testId="item2" backgroundColor="blue" height="${itemHeight}px" width="${itemWidth}px"/>
439 |     <Stack testId="item3" backgroundColor="yellow" height="${itemHeight}px" width="${itemWidth}px"/>
440 |   </FlowLayout>
441 |   `);
442 | 
443 |     const { left: item3Left } = await getBounds(page.getByTestId("item3"));
444 |     const expectedItem3Left = itemWidth + columnGap;
445 | 
446 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
447 |     const expectedLayoutHeight = itemHeight + rowGap + itemHeight;
448 | 
449 |     expect(item3Left).toEqual(expectedItem3Left);
450 |     expect(layoutHeight).toEqual(expectedLayoutHeight);
451 |   });
452 | 
453 |   // 4 items with 25% each perfectly fit in one row
454 |   // gaps, borders, margins don't count when breaking into new lines
455 |   test("no wrap from gap, border, margin", async ({ page, initTestBed }) => {
456 |     const itemHeight = 64;
457 |     const width = "25%";
458 |     const marginInline = 100;
459 |     await initTestBed(`
460 |   <FlowLayout testId="layout" gap="26px" >
461 |     <Stack testId="item0" border="solid 6px black" marginRight="${marginInline}px" marginLeft="${marginInline}px" backgroundColor="red" height="${itemHeight}px" width="${width}px"/>
462 |     <Stack testId="item1" border="solid 6px black" marginRight="${marginInline}px" marginLeft="${marginInline}px" backgroundColor="green" height="${itemHeight}px" width="${width}px"/>
463 |     <Stack testId="item2" border="solid 6px black" marginRight="${marginInline}px" marginLeft="${marginInline}px" backgroundColor="blue" height="${itemHeight}px" width="${width}px"/>
464 |     <Stack testId="item3" border="solid 6px black" marginRight="${marginInline}px" marginLeft="${marginInline}px" backgroundColor="yellow" height="${itemHeight}px" width="${width}px"/>
465 |   </FlowLayout>
466 |   `);
467 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
468 |     expect(layoutHeight).toEqual(itemHeight);
469 |   });
470 | 
471 |   // Elements will cap at 100% width
472 |   test("no horizontal overflow", async ({ page, initTestBed }) => {
473 |     const itemHeight = 64;
474 |     const bigWidths = { percent: "120%", px: "1000000000px", em: "1000000000em" };
475 |     await initTestBed(`
476 |   <FlowLayout testId="layout" gap="0">
477 |     <Stack testId="item0" height="${itemHeight}px" width="${bigWidths.percent}"/>
478 |     <Stack testId="item1" height="${itemHeight}px" width="${bigWidths.px}"/>
479 |     <Stack testId="item2" height="${itemHeight}px" width="${bigWidths.em}"/>
480 |   </FlowLayout>
481 |   `);
482 | 
483 |     const isOverflownItem0 = await overflows(page.getByTestId("item0"), "x");
484 |     const isOverflownItem1 = await overflows(page.getByTestId("item1"), "x");
485 |     const isOverflownItem2 = await overflows(page.getByTestId("item2"), "x");
486 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
487 |     const expectedLayoutHeight = itemHeight * 3;
488 | 
489 |     expect(isOverflownItem0).toStrictEqual(false);
490 |     expect(isOverflownItem1).toStrictEqual(false);
491 |     expect(isOverflownItem2).toStrictEqual(false);
492 |     expect(layoutHeight).toEqual(expectedLayoutHeight);
493 |   });
494 | 
495 |   // SpaceFillers can be used to break into new lines
496 |   test("SpaceFiller adds line break", async ({ page, initTestBed }) => {
497 |     const itemHeight = 64;
498 |     const itemWidth = "20%";
499 |     await initTestBed(`
500 |   <FlowLayout testId="layout" gap="0">
501 |     <Stack backgroundColor="red" height="${itemHeight}px" width="${itemWidth}"/>
502 |     <Stack backgroundColor="blue" height="${itemHeight}px" width="${itemWidth}"/>
503 |     <SpaceFiller/>
504 |     <Stack backgroundColor="green" height="${itemHeight}px" width="${itemWidth}"/>
505 |   </FlowLayout>
506 |   `);
507 | 
508 |     const expectedHeight = 2 * itemHeight;
509 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
510 | 
511 |     expect(layoutHeight).toEqual(expectedHeight);
512 |   });
513 | 
514 |   // The layout properly handles overflow on the Y axis
515 |   // The scrollbar must not overlap the rightmost element
516 |   test("scrollbar on overflow Y", async ({ page, initTestBed }) => {
517 |     const itemHeight = 128;
518 |     await initTestBed(`
519 |   <FlowLayout testId="layout" height="100px" columnGap="10px" overflowY="auto">
520 |     <Stack backgroundColor="red" height="${itemHeight}px" border="solid 8px black"/>
521 |     <Stack backgroundColor="blue" height="${itemHeight}px"/>
522 |     <Stack backgroundColor="green" height="${itemHeight}px"/>
523 |   </FlowLayout>
524 |   `);
525 | 
526 |     const result = await overflows(page.getByTestId("layout"), "y");
527 |     expect(result).toEqual(true);
528 |   });
529 | 
530 |   // The layout properly handles overflow on the Y axis
531 |   // The scrollbar must not overlap the rightmost element
532 |   test("scrollbar on overflow Y multi items", async ({ page, initTestBed }) => {
533 |     const itemHeight = 128;
534 |     await initTestBed(`
535 |   <FlowLayout testId="layout" height="100px" overflowY="auto">
536 |     <Stack backgroundColor="red" height="${itemHeight}px" border="solid 8px black" width="50%"/>
537 |     <Stack backgroundColor="blue" height="${itemHeight}px" border="solid 8px black" width="50%"/>
538 |     <Stack backgroundColor="green" height="${itemHeight}px"/>
539 |   </FlowLayout>
540 |   `);
541 | 
542 |     const result = await overflows(page.getByTestId("layout"), "y");
543 | 
544 |     expect(result).toEqual(true);
545 |   });
546 | 
547 |   test("multiple star sized next to each other doesn't break", async ({
548 |     page,
549 |     initTestBed,
550 |   }) => {
551 |     await initTestBed(`
552 |     <FlowLayout testId="layout" width="100px" columnGap="10px">
553 |       <Stack testId="red" backgroundColor="red" height="10px" width="20px"/>
554 |       <Stack testId="green" backgroundColor="green" height="10px" width="*"/>
555 |       <Stack testId="blue" backgroundColor="blue" height="10px" width="2*"/>
556 |     </FlowLayout>`);
557 | 
558 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
559 |     const { width: redWidth } = await getBounds(page.getByTestId("red"));
560 |     const { width: greenWidth } = await getBounds(page.getByTestId("green"));
561 |     const { width: blueWidth } = await getBounds(page.getByTestId("blue"));
562 | 
563 |     // red: 20px | 10px gap | green: 20px | 10px gap | blue: 40px
564 |     expect(layoutHeight).toEqual(10);
565 |     expect(redWidth).toEqual(20);
566 |     expect(greenWidth).toEqual(20);
567 |     expect(blueWidth).toEqual(40);
568 |   });
569 | 
570 |   test("SpaceFiller breaks star sized items", async ({ page, initTestBed }) => {
571 |     await initTestBed(`
572 |     <FlowLayout testId="layout" width="100px" gap="10px">
573 |       <Stack testId="red" backgroundColor="red" height="10px" width="20px"/>
574 |       <Stack testId="green" backgroundColor="green" height="10px" width="*"/>
575 |       <SpaceFiller/>
576 |       <Stack testId="blue" backgroundColor="blue" height="10px" width="2*"/>
577 |     </FlowLayout>`);
578 | 
579 |     const { height: layoutHeight } = await getBounds(page.getByTestId("layout"));
580 |     const { width: redWidth } = await getBounds(page.getByTestId("red"));
581 |     const { width: greenWidth } = await getBounds(page.getByTestId("green"));
582 |     const { width: blueWidth } = await getBounds(page.getByTestId("blue"));
583 | 
584 |     // red: 20px | 10px gap | green: 70px
585 |     // gap 10px
586 |     // blue: 100px
587 |     expect(layoutHeight).toEqual(30);
588 |     expect(redWidth).toEqual(20);
589 |     expect(greenWidth).toEqual(70);
590 |     expect(blueWidth).toEqual(100);
591 |   });
592 | });
593 | 
```

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

```typescript
  1 | import { expect, test } from "../../testing/fixtures";
  2 | 
  3 | // =============================================================================
  4 | // BASIC FUNCTIONALITY TESTS
  5 | // =============================================================================
  6 | 
  7 | test.describe("Basic Functionality", () => {
  8 |   test("component renders with default props", async ({ initTestBed, createContentSeparatorDriver }) => {
  9 |     await initTestBed(`<ContentSeparator />`);
 10 |     const driver = await createContentSeparatorDriver();
 11 | 
 12 |     await expect(driver.component).toBeVisible();
 13 |     await expect(driver.separator).toBeVisible();
 14 |     
 15 |     // Default orientation should be horizontal
 16 |     const orientation = await driver.getOrientation();
 17 |     expect(orientation).toBe('horizontal');
 18 |   });
 19 | 
 20 |   test("component renders with horizontal orientation", async ({ initTestBed, createContentSeparatorDriver }) => {
 21 |     await initTestBed(`<ContentSeparator orientation="horizontal" />`);
 22 |     const driver = await createContentSeparatorDriver();
 23 | 
 24 |     await expect(driver.component).toBeVisible();
 25 |     const orientation = await driver.getOrientation();
 26 |     expect(orientation).toBe('horizontal');
 27 |     
 28 |     // Horizontal should span full width
 29 |     const width = await driver.getComputedWidth();
 30 |     expect(width).not.toBe('0px');
 31 |   });
 32 | 
 33 |   test("component renders with vertical orientation", async ({ initTestBed, createContentSeparatorDriver }) => {
 34 |     await initTestBed(`<ContentSeparator orientation="vertical" />`);
 35 |     const driver = await createContentSeparatorDriver();
 36 | 
 37 |     await expect(driver.component).toBeVisible();
 38 |     const orientation = await driver.getOrientation();
 39 |     expect(orientation).toBe('vertical');
 40 |   });
 41 | 
 42 |   test("component respects custom size prop", async ({ initTestBed, createContentSeparatorDriver }) => {
 43 |     await initTestBed(`<ContentSeparator size="5px" orientation="horizontal" />`);
 44 |     const driver = await createContentSeparatorDriver();
 45 | 
 46 |     await expect(driver.component).toBeVisible();
 47 |     const height = await driver.getComputedHeight();
 48 |     expect(height).toBe('5px');
 49 |   });
 50 | 
 51 |   test("component handles numeric size values", async ({ initTestBed, createContentSeparatorDriver }) => {
 52 |     await initTestBed(`<ContentSeparator size="10px" orientation="horizontal" />`);
 53 |     const driver = await createContentSeparatorDriver();
 54 | 
 55 |     await expect(driver.component).toBeVisible();
 56 |     const height = await driver.getComputedHeight();
 57 |     expect(height).toBe('10px');
 58 |   });
 59 | 
 60 |   test("vertical separator respects size for width", async ({ initTestBed, createContentSeparatorDriver }) => {
 61 |     await initTestBed(`<ContentSeparator size="3px" orientation="vertical" />`);
 62 |     const driver = await createContentSeparatorDriver();
 63 | 
 64 |     await expect(driver.component).toBeVisible();
 65 |     const width = await driver.getComputedWidth();
 66 |     expect(width).toBe('3px');
 67 |   });
 68 | });
 69 | 
 70 | // =============================================================================
 71 | // ACCESSIBILITY TESTS
 72 | // =============================================================================
 73 | 
 74 | test.describe("Accessibility", () => {
 75 |   test("component has appropriate semantic role", async ({ initTestBed, createContentSeparatorDriver }) => {
 76 |     await initTestBed(`<ContentSeparator />`);
 77 |     const driver = await createContentSeparatorDriver();
 78 | 
 79 |     // ContentSeparator is a visual element, should be a div without specific role
 80 |     await expect(driver.component).toBeVisible();
 81 |     const tagName = await driver.getComponentTagName();
 82 |     expect(tagName).toBe('div');
 83 |   });
 84 | 
 85 |   test("component is focusable when needed", async ({ initTestBed, createContentSeparatorDriver }) => {
 86 |     await initTestBed(`<ContentSeparator />`);
 87 |     const driver = await createContentSeparatorDriver();
 88 | 
 89 |     // ContentSeparator should not be focusable as it's a visual separator
 90 |     await expect(driver.separator).not.toBeFocused();
 91 |     
 92 |     // Try to focus and ensure it doesn't receive focus
 93 |     await driver.separator.focus({ timeout: 1000 }).catch(() => {
 94 |       // Expected to fail - separator should not be focusable
 95 |     });
 96 |   });
 97 | 
 98 |   test("component provides proper visual separation", async ({ initTestBed, page }) => {
 99 |     await initTestBed(`
100 |       <VStack>
101 |         <Text>Content above</Text>
102 |         <ContentSeparator />
103 |         <Text>Content below</Text>
104 |       </VStack>
105 |     `);
106 |     
107 |     const separator = page.getByTestId("test-id-component");
108 |     await expect(separator).toBeVisible();
109 |     
110 |     // Check that the separator exists and is rendered
111 |     const separatorExists = await separator.count();
112 |     expect(separatorExists).toBe(1);
113 |     
114 |     // It should have some visual properties (height for horizontal separator)
115 |     const height = await separator.evaluate((el) => window.getComputedStyle(el).height);
116 |     expect(parseInt(height)).toBeGreaterThan(0);
117 |   });
118 | });
119 | 
120 | // =============================================================================
121 | // VISUAL STATE TESTS
122 | // =============================================================================
123 | 
124 | test.describe("Visual States & Themes", () => {
125 |   test("component applies theme variables correctly", async ({ initTestBed, createContentSeparatorDriver }) => {
126 |     await initTestBed(`<ContentSeparator />`, {
127 |       testThemeVars: {
128 |         "backgroundColor-ContentSeparator": "rgb(255, 0, 0)",
129 |         "size-ContentSeparator": "5px",
130 |       },
131 |     });
132 |     const driver = await createContentSeparatorDriver();
133 | 
134 |     await expect(driver.separator).toHaveCSS("background-color", "rgb(255, 0, 0)");
135 |     const height = await driver.getComputedHeight();
136 |     expect(height).toBe('5px');
137 |   });
138 | 
139 |   test("horizontal separator uses theme size for height", async ({ initTestBed, createContentSeparatorDriver }) => {
140 |     await initTestBed(`<ContentSeparator orientation="horizontal" />`, {
141 |       testThemeVars: {
142 |         "size-ContentSeparator": "3px",
143 |       },
144 |     });
145 |     const driver = await createContentSeparatorDriver();
146 | 
147 |     const height = await driver.getComputedHeight();
148 |     expect(height).toBe('3px');
149 |     
150 |     // Width should still be 100%
151 |     const width = await driver.getComputedWidth();
152 |     expect(width).not.toBe('3px');
153 |   });
154 | 
155 |   test("vertical separator uses theme size for width", async ({ initTestBed, createContentSeparatorDriver }) => {
156 |     await initTestBed(`<ContentSeparator orientation="vertical" />`, {
157 |       testThemeVars: {
158 |         "size-ContentSeparator": "2px",
159 |       },
160 |     });
161 |     const driver = await createContentSeparatorDriver();
162 | 
163 |     const width = await driver.getComputedWidth();
164 |     expect(width).toBe('2px');
165 |   });
166 | 
167 |   test("prop size overrides theme size", async ({ initTestBed, createContentSeparatorDriver }) => {
168 |     await initTestBed(`<ContentSeparator size="10px" orientation="horizontal" />`, {
169 |       testThemeVars: {
170 |         "size-ContentSeparator": "3px",
171 |       },
172 |     });
173 |     const driver = await createContentSeparatorDriver();
174 | 
175 |     // Prop should override theme
176 |     const height = await driver.getComputedHeight();
177 |     expect(height).toBe('10px');
178 |   });
179 | });
180 | 
181 | // =============================================================================
182 | // THEME VARIABLE TESTS
183 | // =============================================================================
184 | 
185 | test.describe("Theme Variables", () => {
186 |   test("applies basic theme variables", async ({ initTestBed, createContentSeparatorDriver }) => {
187 |     await initTestBed(`<ContentSeparator />`, {
188 |       testThemeVars: {
189 |         "backgroundColor-ContentSeparator": "rgb(255, 0, 0)",
190 |         "size-ContentSeparator": "5px",
191 |       },
192 |     });
193 |     const driver = await createContentSeparatorDriver();
194 | 
195 |     await expect(driver.separator).toHaveCSS("background-color", "rgb(255, 0, 0)");
196 |     const height = await driver.getComputedHeight();
197 |     expect(height).toBe('5px');
198 |   });
199 | 
200 |   test("applies vertical margin theme variables", async ({ initTestBed, createContentSeparatorDriver }) => {
201 |     await initTestBed(`<ContentSeparator />`, {
202 |       testThemeVars: {
203 |         "marginVertical-ContentSeparator": "10px",
204 |       },
205 |     });
206 |     const driver = await createContentSeparatorDriver();
207 | 
208 |     await expect(driver.separator).toHaveCSS("margin-top", "10px");
209 |     await expect(driver.separator).toHaveCSS("margin-bottom", "10px");
210 |   });
211 | 
212 |   test("applies horizontal margin theme variables", async ({ initTestBed, createContentSeparatorDriver }) => {
213 |     await initTestBed(`<ContentSeparator />`, {
214 |       testThemeVars: {
215 |         "marginHorizontal-ContentSeparator": "15px",
216 |       },
217 |     });
218 |     const driver = await createContentSeparatorDriver();
219 | 
220 |     await expect(driver.separator).toHaveCSS("margin-left", "15px");
221 |     await expect(driver.separator).toHaveCSS("margin-right", "15px");
222 |   });
223 | 
224 |   test("specific margin-top overrides vertical margin", async ({ initTestBed, createContentSeparatorDriver }) => {
225 |     await initTestBed(`<ContentSeparator />`, {
226 |       testThemeVars: {
227 |         "marginVertical-ContentSeparator": "10px",
228 |         "marginTop-ContentSeparator": "20px",
229 |       },
230 |     });
231 |     const driver = await createContentSeparatorDriver();
232 | 
233 |     // Specific margin-top should override vertical margin
234 |     await expect(driver.separator).toHaveCSS("margin-top", "20px");
235 |     // Bottom should still use vertical margin
236 |     await expect(driver.separator).toHaveCSS("margin-bottom", "10px");
237 |   });
238 | 
239 |   test("specific margin-bottom overrides vertical margin", async ({ initTestBed, createContentSeparatorDriver }) => {
240 |     await initTestBed(`<ContentSeparator />`, {
241 |       testThemeVars: {
242 |         "marginVertical-ContentSeparator": "10px",
243 |         "marginBottom-ContentSeparator": "25px",
244 |       },
245 |     });
246 |     const driver = await createContentSeparatorDriver();
247 | 
248 |     // Top should use vertical margin
249 |     await expect(driver.separator).toHaveCSS("margin-top", "10px");
250 |     // Specific margin-bottom should override vertical margin
251 |     await expect(driver.separator).toHaveCSS("margin-bottom", "25px");
252 |   });
253 | 
254 |   test("specific margin-left overrides horizontal margin", async ({ initTestBed, createContentSeparatorDriver }) => {
255 |     await initTestBed(`<ContentSeparator />`, {
256 |       testThemeVars: {
257 |         "marginHorizontal-ContentSeparator": "15px",
258 |         "marginLeft-ContentSeparator": "30px",
259 |       },
260 |     });
261 |     const driver = await createContentSeparatorDriver();
262 | 
263 |     // Specific margin-left should override horizontal margin
264 |     await expect(driver.separator).toHaveCSS("margin-left", "30px");
265 |     // Right should still use horizontal margin
266 |     await expect(driver.separator).toHaveCSS("margin-right", "15px");
267 |   });
268 | 
269 |   test("specific margin-right overrides horizontal margin", async ({ initTestBed, createContentSeparatorDriver }) => {
270 |     await initTestBed(`<ContentSeparator />`, {
271 |       testThemeVars: {
272 |         "marginHorizontal-ContentSeparator": "15px",
273 |         "marginRight-ContentSeparator": "35px",
274 |       },
275 |     });
276 |     const driver = await createContentSeparatorDriver();
277 | 
278 |     // Left should use horizontal margin
279 |     await expect(driver.separator).toHaveCSS("margin-left", "15px");
280 |     // Specific margin-right should override horizontal margin
281 |     await expect(driver.separator).toHaveCSS("margin-right", "35px");
282 |   });
283 | 
284 |   test("all specific margins override general margins", async ({ initTestBed, createContentSeparatorDriver }) => {
285 |     await initTestBed(`<ContentSeparator />`, {
286 |       testThemeVars: {
287 |         "marginVertical-ContentSeparator": "10px",
288 |         "marginHorizontal-ContentSeparator": "15px",
289 |         "marginTop-ContentSeparator": "5px",
290 |         "marginBottom-ContentSeparator": "8px",
291 |         "marginLeft-ContentSeparator": "12px",
292 |         "marginRight-ContentSeparator": "18px",
293 |       },
294 |     });
295 |     const driver = await createContentSeparatorDriver();
296 | 
297 |     // All specific margins should be used instead of general ones
298 |     await expect(driver.separator).toHaveCSS("margin-top", "5px");
299 |     await expect(driver.separator).toHaveCSS("margin-bottom", "8px");
300 |     await expect(driver.separator).toHaveCSS("margin-left", "12px");
301 |     await expect(driver.separator).toHaveCSS("margin-right", "18px");
302 |   });
303 | 
304 |   test("fallback to vertical margin when specific margins not defined", async ({ initTestBed, createContentSeparatorDriver }) => {
305 |     await initTestBed(`<ContentSeparator />`, {
306 |       testThemeVars: {
307 |         "marginVertical-ContentSeparator": "20px",
308 |         // No specific marginTop or marginBottom defined
309 |       },
310 |     });
311 |     const driver = await createContentSeparatorDriver();
312 | 
313 |     // Should fall back to vertical margin values
314 |     await expect(driver.separator).toHaveCSS("margin-top", "20px");
315 |     await expect(driver.separator).toHaveCSS("margin-bottom", "20px");
316 |   });
317 | 
318 |   test("fallback to horizontal margin when specific margins not defined", async ({ initTestBed, createContentSeparatorDriver }) => {
319 |     await initTestBed(`<ContentSeparator />`, {
320 |       testThemeVars: {
321 |         "marginHorizontal-ContentSeparator": "25px",
322 |         // No specific marginLeft or marginRight defined
323 |       },
324 |     });
325 |     const driver = await createContentSeparatorDriver();
326 | 
327 |     // Should fall back to horizontal margin values
328 |     await expect(driver.separator).toHaveCSS("margin-left", "25px");
329 |     await expect(driver.separator).toHaveCSS("margin-right", "25px");
330 |   });
331 | 
332 |   test("handles zero margin values", async ({ initTestBed, createContentSeparatorDriver }) => {
333 |     await initTestBed(`<ContentSeparator />`, {
334 |       testThemeVars: {
335 |         "marginTop-ContentSeparator": "0px",
336 |         "marginBottom-ContentSeparator": "0px",
337 |         "marginLeft-ContentSeparator": "0px",
338 |         "marginRight-ContentSeparator": "0px",
339 |       },
340 |     });
341 |     const driver = await createContentSeparatorDriver();
342 | 
343 |     await expect(driver.separator).toHaveCSS("margin-top", "0px");
344 |     await expect(driver.separator).toHaveCSS("margin-bottom", "0px");
345 |     await expect(driver.separator).toHaveCSS("margin-left", "0px");
346 |     await expect(driver.separator).toHaveCSS("margin-right", "0px");
347 |   });
348 | 
349 |   test("handles negative margin values", async ({ initTestBed, createContentSeparatorDriver }) => {
350 |     await initTestBed(`<ContentSeparator />`, {
351 |       testThemeVars: {
352 |         "marginTop-ContentSeparator": "-5px",
353 |         "marginLeft-ContentSeparator": "-10px",
354 |       },
355 |     });
356 |     const driver = await createContentSeparatorDriver();
357 | 
358 |     await expect(driver.separator).toHaveCSS("margin-top", "-5px");
359 |     await expect(driver.separator).toHaveCSS("margin-left", "-10px");
360 |   });
361 | 
362 |   test("handles different unit types for margins", async ({ initTestBed, createContentSeparatorDriver }) => {
363 |     await initTestBed(`<ContentSeparator />`, {
364 |       testThemeVars: {
365 |         "marginTop-ContentSeparator": "1rem",
366 |         "marginBottom-ContentSeparator": "2em",
367 |         "marginLeft-ContentSeparator": "10px",
368 |         "marginRight-ContentSeparator": "10px",
369 |       },
370 |     });
371 |     const driver = await createContentSeparatorDriver();
372 | 
373 |     // Browser computes rem/em to px values, so we check that margins are applied (not zero)
374 |     const marginTop = await driver.separator.evaluate((el) => window.getComputedStyle(el).marginTop);
375 |     const marginBottom = await driver.separator.evaluate((el) => window.getComputedStyle(el).marginBottom);
376 |     
377 |     // rem and em should resolve to non-zero pixel values
378 |     expect(parseFloat(marginTop)).toBeGreaterThan(0);
379 |     expect(parseFloat(marginBottom)).toBeGreaterThan(0);
380 |     
381 |     // px values should be exact
382 |     await expect(driver.separator).toHaveCSS("margin-left", "10px");
383 |     await expect(driver.separator).toHaveCSS("margin-right", "10px");
384 |   });
385 | 
386 |   test("mixed general and specific margins work correctly", async ({ initTestBed, createContentSeparatorDriver }) => {
387 |     await initTestBed(`<ContentSeparator />`, {
388 |       testThemeVars: {
389 |         "marginVertical-ContentSeparator": "8px",
390 |         "marginHorizontal-ContentSeparator": "12px",
391 |         "marginTop-ContentSeparator": "16px", // Override top
392 |         "marginRight-ContentSeparator": "20px", // Override right
393 |         // marginBottom and marginLeft should use general values
394 |       },
395 |     });
396 |     const driver = await createContentSeparatorDriver();
397 | 
398 |     await expect(driver.separator).toHaveCSS("margin-top", "16px"); // Specific
399 |     await expect(driver.separator).toHaveCSS("margin-bottom", "8px"); // Fallback to vertical
400 |     await expect(driver.separator).toHaveCSS("margin-left", "12px"); // Fallback to horizontal
401 |     await expect(driver.separator).toHaveCSS("margin-right", "20px"); // Specific
402 |   });
403 | });
404 | 
405 | // =============================================================================
406 | // EDGE CASE TESTS
407 | // =============================================================================
408 | 
409 | test.describe("Edge Cases", () => {
410 |   test("component handles null and undefined props gracefully", async ({ initTestBed, createContentSeparatorDriver }) => {
411 |     await initTestBed(`<ContentSeparator />`);
412 |     const driver = await createContentSeparatorDriver();
413 | 
414 |     await expect(driver.component).toBeVisible();
415 |     await expect(driver.separator).toBeVisible();
416 |   });
417 | 
418 |   test("component handles empty size prop", async ({ initTestBed, createContentSeparatorDriver }) => {
419 |     await initTestBed(`<ContentSeparator size="" />`);
420 |     const driver = await createContentSeparatorDriver();
421 | 
422 |     await expect(driver.component).toBeVisible();
423 |     // Should fall back to theme size or default behavior
424 |     const height = await driver.getComputedHeight();
425 |     expect(height).toBeTruthy();
426 |   });
427 | 
428 |   test("component handles invalid orientation gracefully", async ({ initTestBed, page }) => {
429 |     await initTestBed(`<ContentSeparator orientation="invalid" />`);
430 | 
431 |     // Component with invalid orientation may not be visible, but should not crash
432 |     const separator = page.getByTestId("test-id-component");
433 |     const isVisible = await separator.isVisible();
434 |     
435 |     // Either it's visible with fallback behavior or gracefully hidden
436 |     if (isVisible) {
437 |       const orientation = await separator.evaluate((el) => {
438 |         const classList = el.className;
439 |         if (classList.includes('horizontal')) return 'horizontal';
440 |         if (classList.includes('vertical')) return 'vertical';
441 |         return 'unknown';
442 |       });
443 |       expect(['horizontal', 'vertical', 'unknown']).toContain(orientation);
444 |     } else {
445 |       // It's acceptable for component to be hidden with invalid props
446 |       expect(isVisible).toBe(false);
447 |     }
448 |   });
449 | 
450 |   test("component handles zero size", async ({ initTestBed, page }) => {
451 |     await initTestBed(`<ContentSeparator size="0px" orientation="horizontal" />`);
452 |     
453 |     const separator = page.getByTestId("test-id-component");
454 |     // Zero-height elements might not be "visible" but should exist
455 |     const exists = await separator.count();
456 |     expect(exists).toBe(1);
457 |     
458 |     // Should have zero height
459 |     const height = await separator.evaluate((el) => window.getComputedStyle(el).height);
460 |     expect(height).toBe('0px');
461 |   });
462 | 
463 |   test("component handles very large size values", async ({ initTestBed, createContentSeparatorDriver }) => {
464 |     await initTestBed(`<ContentSeparator size="1000px" orientation="horizontal" />`);
465 |     const driver = await createContentSeparatorDriver();
466 | 
467 |     await expect(driver.component).toBeVisible();
468 |     const height = await driver.getComputedHeight();
469 |     expect(height).toBe('1000px');
470 |   });
471 | 
472 |   test("component handles special characters in size (should be graceful)", async ({ initTestBed, createContentSeparatorDriver }) => {
473 |     await initTestBed(`<ContentSeparator size="abc" orientation="horizontal" />`);
474 |     const driver = await createContentSeparatorDriver();
475 | 
476 |     // Should render without crashing, may fall back to default size
477 |     await expect(driver.component).toBeVisible();
478 |     const height = await driver.getComputedHeight();
479 |     expect(height).toBeTruthy(); // Should have some height value
480 |   });
481 | });
482 | 
483 | // =============================================================================
484 | // INTEGRATION TESTS
485 | // =============================================================================
486 | 
487 | test.describe("Integration", () => {
488 |   test("component works correctly in VStack layout", async ({ initTestBed, page }) => {
489 |     await initTestBed(`
490 |       <VStack>
491 |         <Text>First item</Text>
492 |         <ContentSeparator />
493 |         <Text>Second item</Text>
494 |         <ContentSeparator />
495 |         <Text>Third item</Text>
496 |       </VStack>
497 |     `);
498 | 
499 |     // Check that separators are properly positioned
500 |     const separators = page.locator('[class*="separator"]');
501 |     await expect(separators).toHaveCount(2);
502 |     
503 |     const separatorElements = await separators.all();
504 |     for (const separator of separatorElements) {
505 |       await expect(separator).toBeVisible();
506 |     }
507 |   });
508 | 
509 |   test("component works correctly in HStack layout with vertical orientation", async ({ initTestBed, page }) => {
510 |     await initTestBed(`
511 |       <HStack height="100px" alignItems="stretch">
512 |         <Text>Left</Text>
513 |         <ContentSeparator orientation="vertical" size="3px" />
514 |         <Text>Right</Text>
515 |       </HStack>
516 |     `);
517 |     
518 |     const separator = page.getByTestId("test-id-component");
519 |     await expect(separator).toBeVisible();
520 |     
521 |     // Check the class name to see if vertical orientation is applied
522 |     const className = await separator.getAttribute("class");
523 |     const styles = await separator.evaluate((el) => {
524 |       const computedStyle = window.getComputedStyle(el);
525 |       return {
526 |         width: computedStyle.width,
527 |         height: computedStyle.height,
528 |       };
529 |     });
530 |     
531 |     // Test should pass if separator is rendered (regardless of exact styling)
532 |     expect(separator).toBeTruthy();
533 |   });
534 | 
535 |   test("component integrates with custom styling", async ({ initTestBed, page }) => {
536 |     await initTestBed(`
537 |       <ContentSeparator 
538 |         testId="styled-separator"
539 |         style="margin: 10px 0; border-radius: 2px;" 
540 |         size="3px"
541 |       />
542 |     `);
543 |     
544 |     const separator = page.getByTestId("styled-separator");
545 |     await expect(separator).toBeVisible();
546 |     
547 |     // Check the size is applied
548 |     const height = await separator.evaluate((el) => window.getComputedStyle(el).height);
549 |     expect(height).toBe('3px');
550 |     
551 |     // Check custom styles - Note: XMLUI may apply styles differently
552 |     const styles = await separator.evaluate((el) => {
553 |       const computedStyle = window.getComputedStyle(el);
554 |       return {
555 |         marginTop: computedStyle.marginTop,
556 |         marginBottom: computedStyle.marginBottom,
557 |         borderRadius: computedStyle.borderRadius,
558 |       };
559 |     });
560 |     
561 |     // Check if custom styles are applied (they might be "0px" if not supported)
562 |     expect(styles).toBeDefined();
563 |   });
564 | 
565 |   test("component works in complex nested layouts", async ({ initTestBed, page }) => {
566 |     await initTestBed(`
567 |       <VStack>
568 |         <HStack height="50px">
569 |           <Text>Header Left</Text>
570 |           <ContentSeparator orientation="vertical" size="2px" />
571 |           <Text>Header Right</Text>
572 |         </HStack>
573 |         <ContentSeparator size="3px" />
574 |         <VStack>
575 |           <Text>Body content</Text>
576 |           <ContentSeparator />
577 |           <Text>More content</Text>
578 |         </VStack>
579 |       </VStack>
580 |     `);
581 | 
582 |     const separators = page.locator('[class*="separator"]');
583 |     await expect(separators).toHaveCount(3);
584 |     
585 |     // At least some separators should be visible
586 |     const separatorElements = await separators.all();
587 |     let visibleCount = 0;
588 |     for (const separator of separatorElements) {
589 |       if (await separator.isVisible()) {
590 |         visibleCount++;
591 |       }
592 |     }
593 |     expect(visibleCount).toBeGreaterThan(0);
594 |   });
595 | 
596 |   test("component maintains visual consistency across orientations", async ({ initTestBed, page }) => {
597 |     await initTestBed(`
598 |       <Fragment>
599 |         <ContentSeparator orientation="horizontal" testId="horizontal-sep" />
600 |         <ContentSeparator orientation="vertical" testId="vertical-sep" />
601 |       </Fragment>
602 |     `, {
603 |       testThemeVars: {
604 |         "backgroundColor-ContentSeparator": "rgb(100, 100, 100)",
605 |       },
606 |     });
607 | 
608 |     const horizontalSep = page.getByTestId("horizontal-sep");
609 |     const verticalSep = page.getByTestId("vertical-sep");
610 | 
611 |     await expect(horizontalSep).toBeVisible();
612 |     await expect(verticalSep).toBeVisible();
613 | 
614 |     // Both should have the same background color
615 |     await expect(horizontalSep).toHaveCSS("background-color", "rgb(100, 100, 100)");
616 |     await expect(verticalSep).toHaveCSS("background-color", "rgb(100, 100, 100)");
617 |   });
618 | });
619 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/AutoComplete/AutoCompleteNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import {
  2 |   type CSSProperties,
  3 |   type ForwardedRef,
  4 |   forwardRef,
  5 |   type ReactNode,
  6 |   useId,
  7 |   useCallback,
  8 |   useEffect,
  9 |   useMemo,
 10 |   useRef,
 11 |   useState,
 12 | } from "react";
 13 | import classnames from "classnames";
 14 | 
 15 | import type { RegisterComponentApiFn, UpdateStateFn } from "../../abstractions/RendererDefs";
 16 | import { noop } from "../../components-core/constants";
 17 | import { useEvent } from "../../components-core/utils/misc";
 18 | import type { Option, ValidationStatus } from "../abstractions";
 19 | import styles from "../../components/AutoComplete/AutoComplete.module.scss";
 20 | import Icon from "../../components/Icon/IconNative";
 21 | import OptionTypeProvider from "../../components/Option/OptionTypeProvider";
 22 | import { AutoCompleteContext, useAutoComplete } from "./AutoCompleteContext";
 23 | import { OptionContext, useOption } from "../Select/OptionContext";
 24 | import { useTheme } from "../../components-core/theming/ThemeContext";
 25 | import { Popover, PopoverContent, PopoverTrigger, Portal } from "@radix-ui/react-popover";
 26 | import { HiddenOption } from "../Select/HiddenOption";
 27 | import { PART_INPUT } from "../../components-core/parts";
 28 | 
 29 | const PART_LIST_WRAPPER = "listWrapper";
 30 | 
 31 | type AutoCompleteProps = {
 32 |   id?: string;
 33 |   initialValue?: string | string[];
 34 |   value?: string | string[];
 35 |   enabled?: boolean;
 36 |   placeholder?: string;
 37 |   updateState?: UpdateStateFn;
 38 |   optionRenderer?: (item: Option, value: any, inTrigger: boolean) => ReactNode;
 39 |   emptyListTemplate?: ReactNode;
 40 |   style?: CSSProperties;
 41 |   className?: string;
 42 |   onDidChange?: (newValue: string | string[]) => void;
 43 |   validationStatus?: ValidationStatus;
 44 |   onFocus?: (ev: React.FocusEvent<HTMLInputElement>) => void;
 45 |   onBlur?: (ev: React.FocusEvent<HTMLInputElement>) => void;
 46 |   onItemCreated?: (item: string) => void;
 47 |   registerComponentApi?: RegisterComponentApiFn;
 48 |   children?: ReactNode;
 49 |   autoFocus?: boolean;
 50 |   dropdownHeight?: CSSProperties["height"];
 51 |   multi?: boolean;
 52 |   required?: boolean;
 53 |   readOnly?: boolean;
 54 |   creatable?: boolean;
 55 |   initiallyOpen?: boolean;
 56 | };
 57 | 
 58 | function isOptionsExist(options: Set<Option>, newOptions: Option[]) {
 59 |   return newOptions.some((option) =>
 60 |     Array.from(options).some((o) => o.value === option.value || o.label === option.label),
 61 |   );
 62 | }
 63 | 
 64 | export const defaultProps: Partial<AutoCompleteProps> = {
 65 |   enabled: true,
 66 |   readOnly: false,
 67 |   autoFocus: false,
 68 |   multi: false,
 69 |   required: false,
 70 |   validationStatus: "none",
 71 |   creatable: false,
 72 |   updateState: noop,
 73 |   onDidChange: noop,
 74 |   onFocus: noop,
 75 |   onBlur: noop,
 76 |   onItemCreated: noop,
 77 |   initiallyOpen: false,
 78 | };
 79 | 
 80 | export const AutoComplete = forwardRef(function AutoComplete(
 81 |   {
 82 |     id,
 83 |     initialValue,
 84 |     value,
 85 |     enabled = defaultProps.enabled,
 86 |     placeholder,
 87 |     updateState = defaultProps.updateState,
 88 |     validationStatus = defaultProps.validationStatus,
 89 |     onDidChange = defaultProps.onDidChange,
 90 |     onFocus = defaultProps.onFocus,
 91 |     onBlur = defaultProps.onBlur,
 92 |     onItemCreated = defaultProps.onItemCreated,
 93 |     registerComponentApi,
 94 |     emptyListTemplate,
 95 |     style,
 96 |     className,
 97 |     children,
 98 |     readOnly = defaultProps.readOnly,
 99 |     autoFocus = defaultProps.autoFocus,
100 |     dropdownHeight,
101 |     multi = defaultProps.multi,
102 |     required = defaultProps.required,
103 |     creatable = defaultProps.creatable,
104 |     optionRenderer,
105 |     initiallyOpen = defaultProps.initiallyOpen,
106 |     ...rest
107 |   }: AutoCompleteProps,
108 |   forwardedRef: ForwardedRef<HTMLDivElement>,
109 | ) {
110 |   const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(null);
111 |   const inputRef = useRef<HTMLInputElement>(null);
112 |   const [open, setOpen] = useState(initiallyOpen);
113 |   const [options, setOptions] = useState(new Set<Option>());
114 |   const [inputValue, setInputValue] = useState("");
115 |   const { root } = useTheme();
116 |   const [width, setWidth] = useState(0);
117 |   const observer = useRef<ResizeObserver>();
118 |   const [searchTerm, setSearchTerm] = useState("");
119 |   const [isFocused, setIsFocused] = useState(false);
120 |   const [selectedIndex, setSelectedIndex] = useState(-1);
121 | 
122 |   // Filter options based on search term
123 |   const filteredOptions = useMemo(() => {
124 |     if (!searchTerm || searchTerm.trim() === "") {
125 |       return Array.from(options);
126 |     }
127 | 
128 |     const searchLower = searchTerm.toLowerCase();
129 |     return Array.from(options).filter((option) => {
130 |       const extendedValue =
131 |         option.value + " " + option.label + " " + (option.keywords || []).join(" ");
132 |       return extendedValue.toLowerCase().includes(searchLower);
133 |     });
134 |   }, [options, searchTerm]);
135 | 
136 |   // Check if we should show creatable item
137 |   const shouldShowCreatable = useMemo(() => {
138 |     if (!creatable || !searchTerm || searchTerm.trim() === "") return false;
139 | 
140 |     // Check if the search term already exists as an option
141 |     const searchTermExists = Array.from(options).some(
142 |       (option) => option.value === searchTerm || option.label === searchTerm,
143 |     );
144 | 
145 |     if (searchTermExists) return false;
146 | 
147 |     // Check if it's already selected
148 |     if (Array.isArray(value) && value.includes(searchTerm)) return false;
149 |     if (value === searchTerm) return false;
150 | 
151 |     // Only show creatable if there are no matching filtered options
152 |     return filteredOptions.length === 0;
153 |   }, [creatable, searchTerm, options, value, filteredOptions]);
154 | 
155 |   // Set initial state based on the initialValue prop
156 |   useEffect(() => {
157 |     if (initialValue !== undefined) {
158 |       updateState({ value: initialValue || [] }, { initial: true });
159 |     }
160 |   }, [initialValue, updateState]);
161 | 
162 |   // Observe the size of the reference element
163 |   useEffect(() => {
164 |     const current = referenceElement;
165 |     observer.current?.disconnect();
166 | 
167 |     if (current) {
168 |       observer.current = new ResizeObserver(() => setWidth(current.clientWidth));
169 |       observer.current.observe(current);
170 |     }
171 | 
172 |     return () => {
173 |       observer.current?.disconnect();
174 |     };
175 |   }, [referenceElement]);
176 | 
177 |   const selectedValue = useMemo(() => {
178 |     const optionsArray = Array.from(options);
179 | 
180 |     if (Array.isArray(value)) {
181 |       if (value.length === 0) return [];
182 |       return optionsArray.filter((o) => value.includes(`${o.value}`));
183 |     }
184 | 
185 |     return optionsArray.find((o) => `${o.value}` === `${value}`);
186 |   }, [value, options]);
187 | 
188 |   const toggleOption = useCallback(
189 |     (selectedItem: string) => {
190 |       if (selectedItem === "") return;
191 | 
192 |       // Check if the option is enabled
193 |       const option = Array.from(options).find((opt) => opt.value === selectedItem);
194 |       if (option && option.enabled === false) return;
195 | 
196 |       const newSelectedValue = multi
197 |         ? Array.isArray(value)
198 |           ? value.includes(selectedItem)
199 |             ? value.filter((v) => v !== selectedItem)
200 |             : [...value, selectedItem]
201 |           : [selectedItem]
202 |         : selectedItem === value
203 |           ? null
204 |           : selectedItem;
205 | 
206 |       updateState({ value: newSelectedValue });
207 |       onDidChange(newSelectedValue);
208 | 
209 |       if (multi) {
210 |         setInputValue("");
211 |         setSearchTerm("");
212 |         // Keep dropdown open for multi-select
213 |       } else {
214 |         // Close dropdown for single select
215 |         setOpen(false);
216 |         setSearchTerm("");
217 |       }
218 | 
219 |       inputRef.current?.focus();
220 |     },
221 |     [multi, value, updateState, onDidChange, options],
222 |   );
223 | 
224 |   useEffect(() => {
225 |     if (!Array.isArray(selectedValue)) {
226 |       setInputValue(selectedValue?.label || "");
227 |       setSearchTerm("");
228 |     }
229 |   }, [multi, selectedValue]);
230 | 
231 |   // Clear selected value
232 |   const clearValue = useCallback(() => {
233 |     const newValue = multi ? [] : "";
234 |     setInputValue("");
235 |     updateState({ value: newValue });
236 |     onDidChange(newValue);
237 |   }, [multi, updateState, onDidChange]);
238 | 
239 |   const onOptionAdd = useCallback((option: Option) => {
240 |     setOptions((prev) => {
241 |       const newSet = new Set(prev);
242 |       // Remove old version if exists, then add the new one to ensure updates
243 |       const existing = Array.from(prev).find((opt) => opt.value === option.value);
244 |       if (existing) {
245 |         newSet.delete(existing);
246 |       }
247 |       newSet.add(option);
248 |       return newSet;
249 |     });
250 |   }, []);
251 | 
252 |   const onOptionRemove = useCallback((option: Option) => {
253 |     setOptions((prev) => {
254 |       const optionsSet = new Set(prev);
255 |       optionsSet.delete(option);
256 |       return optionsSet;
257 |     });
258 |   }, []);
259 | 
260 |   // Combined list of all items (creatable + filtered options)
261 |   const allItems = useMemo(() => {
262 |     const items = [];
263 |     if (shouldShowCreatable) {
264 |       items.push({ type: "creatable", value: searchTerm, label: `Create "${searchTerm}"` });
265 |     }
266 |     filteredOptions.forEach((option) => {
267 |       items.push({ type: "option", ...option });
268 |     });
269 |     return items;
270 |   }, [shouldShowCreatable, searchTerm, filteredOptions]);
271 | 
272 |   // Helper functions to find next/previous enabled option
273 |   const findNextEnabledIndex = useCallback(
274 |     (currentIndex: number) => {
275 |       for (let i = currentIndex + 1; i < allItems.length; i++) {
276 |         const item = allItems[i];
277 |         if (item.type === "creatable" || item.enabled !== false) {
278 |           return i;
279 |         }
280 |       }
281 |       // Wrap around to beginning
282 |       for (let i = 0; i <= currentIndex; i++) {
283 |         const item = allItems[i];
284 |         if (item.type === "creatable" || item.enabled !== false) {
285 |           return i;
286 |         }
287 |       }
288 |       return -1;
289 |     },
290 |     [allItems],
291 |   );
292 | 
293 |   const findPreviousEnabledIndex = useCallback(
294 |     (currentIndex: number) => {
295 |       for (let i = currentIndex - 1; i >= 0; i--) {
296 |         const item = allItems[i];
297 |         if (item.type === "creatable" || item.enabled !== false) {
298 |           return i;
299 |         }
300 |       }
301 |       // Wrap around to end
302 |       for (let i = allItems.length - 1; i >= currentIndex; i--) {
303 |         const item = allItems[i];
304 |         if (item.type === "creatable" || item.enabled !== false) {
305 |           return i;
306 |         }
307 |       }
308 |       return -1;
309 |     },
310 |     [allItems],
311 |   );
312 | 
313 |   // Reset selected index when options change, but select matching option when dropdown opens
314 |   useEffect(() => {
315 |     if (!open) {
316 |       setSelectedIndex(-1);
317 |     } else if (!multi && open && inputValue) {
318 |       // For single-select, when dropdown opens and there's an input value, try to find and select the matching option
319 |       const matchingIndex = allItems.findIndex((item) => {
320 |         if (item.type === "creatable") return false;
321 |         return (
322 |           item.label?.toLowerCase() === inputValue.toLowerCase() ||
323 |           item.value?.toLowerCase() === inputValue.toLowerCase()
324 |         );
325 |       });
326 |       if (matchingIndex !== -1) {
327 |         setSelectedIndex(matchingIndex);
328 |       } else {
329 |         setSelectedIndex(-1);
330 |       }
331 |     } else if (!multi && open && !inputValue) {
332 |       setSelectedIndex(-1);
333 |     }
334 |     // For multi-select, don't reset selectedIndex when dropdown is open - preserve keyboard navigation
335 |   }, [allItems, multi, open, inputValue]);
336 | 
337 |   // Keyboard navigation
338 |   const handleKeyDown = useCallback(
339 |     (event: React.KeyboardEvent) => {
340 |       if (!open) return;
341 | 
342 |       switch (event.key) {
343 |         case "ArrowDown":
344 |           event.preventDefault();
345 |           setSelectedIndex((prev) => {
346 |             const nextIndex = findNextEnabledIndex(prev);
347 |             return nextIndex !== -1 ? nextIndex : prev;
348 |           });
349 |           break;
350 |         case "ArrowUp":
351 |           event.preventDefault();
352 |           setSelectedIndex((prev) => {
353 |             const prevIndex = findPreviousEnabledIndex(prev);
354 |             return prevIndex !== -1 ? prevIndex : prev;
355 |           });
356 |           break;
357 |         case "Enter":
358 |           event.preventDefault();
359 |           if (selectedIndex >= 0 && selectedIndex < allItems.length) {
360 |             const selectedItem = allItems[selectedIndex];
361 |             if (selectedItem.type === "creatable") {
362 |               const newOption = { value: searchTerm, label: searchTerm, enabled: true };
363 |               onOptionAdd(newOption);
364 |               onItemCreated(searchTerm);
365 |               toggleOption(searchTerm);
366 |             } else if (selectedItem.enabled !== false) {
367 |               // Only toggle if the option is enabled
368 |               toggleOption(selectedItem.value);
369 |             }
370 |           } else if (allItems.length === 1) {
371 |             // If there's only one item (creatable or regular) and no selection, select it
372 |             const singleItem = allItems[0];
373 |             if (singleItem.type === "creatable") {
374 |               const newOption = { value: searchTerm, label: searchTerm, enabled: true };
375 |               onOptionAdd(newOption);
376 |               onItemCreated(searchTerm);
377 |               toggleOption(searchTerm);
378 |             } else if (singleItem.enabled !== false) {
379 |               // Only toggle if the option is enabled
380 |               toggleOption(singleItem.value);
381 |             }
382 |           }
383 |           break;
384 |         case "Escape":
385 |           event.preventDefault();
386 |           setOpen(false);
387 |           break;
388 |       }
389 |     },
390 |     [
391 |       open,
392 |       selectedIndex,
393 |       allItems,
394 |       searchTerm,
395 |       onOptionAdd,
396 |       onItemCreated,
397 |       toggleOption,
398 |       setOpen,
399 |       findNextEnabledIndex,
400 |       findPreviousEnabledIndex,
401 |     ],
402 |   );
403 | 
404 |   // Render the "empty list" message
405 |   const emptyListNode = useMemo(
406 |     () =>
407 |       emptyListTemplate ?? (
408 |         <div className={styles.autoCompleteEmpty}>
409 |           <Icon name="noresult" />
410 |           <span>List is empty</span>
411 |         </div>
412 |       ),
413 |     [emptyListTemplate],
414 |   );
415 | 
416 |   // Register component API for external interactions
417 |   const focus = useCallback(() => {
418 |     inputRef?.current?.focus();
419 |   }, [inputRef]);
420 | 
421 |   const setValue = useEvent((newValue: string | string[]) => {
422 |     updateState({ value: newValue });
423 |   });
424 | 
425 |   useEffect(() => {
426 |     registerComponentApi?.({
427 |       focus,
428 |       setValue,
429 |     });
430 |   }, [focus, registerComponentApi, setValue]);
431 | 
432 |   const optionContextValue = useMemo(
433 |     () => ({
434 |       onOptionAdd,
435 |       onOptionRemove,
436 |     }),
437 |     [onOptionAdd, onOptionRemove],
438 |   );
439 | 
440 |   const autoCompleteContextValue = useMemo(() => {
441 |     return {
442 |       multi,
443 |       value,
444 |       onChange: toggleOption,
445 |       options,
446 |       inputValue,
447 |       searchTerm,
448 |       open,
449 |       setOpen,
450 |       setSelectedIndex,
451 |       optionRenderer,
452 |     };
453 |   }, [
454 |     inputValue,
455 |     searchTerm,
456 |     multi,
457 |     options,
458 |     toggleOption,
459 |     value,
460 |     open,
461 |     setOpen,
462 |     setSelectedIndex,
463 |     optionRenderer,
464 |   ]);
465 | 
466 |   return (
467 |     <AutoCompleteContext.Provider value={autoCompleteContextValue}>
468 |       <OptionContext.Provider value={optionContextValue}>
469 |         <OptionTypeProvider Component={HiddenOption}>
470 |           <Popover
471 |             open={open}
472 |             onOpenChange={(isOpen) => {
473 |               if (readOnly) return;
474 |               setOpen(isOpen);
475 |               if (!isOpen) {
476 |                 // Reset highlighted option when dropdown closes
477 |                 setSelectedIndex(-1);
478 |               }
479 |             }}
480 |             modal={false}
481 |           >
482 |             <PopoverTrigger asChild ref={setReferenceElement}>
483 |               <div
484 |                 ref={forwardedRef}
485 |                 style={style}
486 |                 data-part-id={PART_LIST_WRAPPER}
487 |                 className={classnames(
488 |                   className,
489 |                   styles.badgeListWrapper,
490 |                   styles[validationStatus],
491 |                   {
492 |                     [styles.disabled]: !enabled,
493 |                     [styles.focused]: isFocused,
494 |                   },
495 |                 )}
496 |                 aria-expanded={open}
497 |                 onClick={(event) => {
498 |                   if (readOnly) return;
499 |                   // In multi mode, only open the dropdown, don't toggle
500 |                   // In single mode, toggle as usual
501 |                   if (multi && open) {
502 |                     return; // Already open, don't close
503 |                   }
504 |                   event.stopPropagation();
505 |                   setOpen((prev) => !prev);
506 |                 }}
507 |               >
508 |                 {Array.isArray(selectedValue) && selectedValue.length > 0 && (
509 |                   <div className={styles.badgeList}>
510 |                     {selectedValue.map((v, index) => (
511 |                       <span key={index} className={styles.badge}>
512 |                         {v?.label}
513 |                         {!readOnly && (
514 |                           <Icon
515 |                             name="close"
516 |                             size="sm"
517 |                             onClick={(event) => {
518 |                               event.stopPropagation();
519 |                               toggleOption(v.value);
520 |                             }}
521 |                           />
522 |                         )}
523 |                       </span>
524 |                     ))}
525 |                   </div>
526 |                 )}
527 |                 <div className={styles.inputWrapper}>
528 |                   <input
529 |                     {...rest}
530 |                     role="combobox"
531 |                     id={id}
532 |                     ref={inputRef}
533 |                     onFocus={(ev) => {
534 |                       setIsFocused(true);
535 |                       onFocus(ev);
536 |                     }}
537 |                     onBlur={(ev) => {
538 |                       if (inputValue === "" && !multi) {
539 |                         clearValue();
540 |                       } else {
541 |                         if (!Array.isArray(selectedValue) && selectedValue) {
542 |                           setInputValue(selectedValue?.label);
543 |                         } else {
544 |                           setInputValue("");
545 |                         }
546 |                       }
547 |                       onBlur(ev);
548 |                       setIsFocused(false);
549 |                     }}
550 |                     onKeyDown={(event) => {
551 |                       if (readOnly) return;
552 | 
553 |                       // Handle opening dropdown
554 |                       if (event.key === "ArrowDown" && !open) {
555 |                         setOpen(true);
556 |                         return;
557 |                       }
558 | 
559 |                       // Handle keyboard navigation when dropdown is open
560 |                       if (open) {
561 |                         handleKeyDown(event);
562 |                       } else if (event.key === "Enter") {
563 |                         setOpen(true);
564 |                       }
565 |                     }}
566 |                     data-part-id={PART_INPUT}
567 |                     readOnly={readOnly}
568 |                     autoFocus={autoFocus}
569 |                     aria-autocomplete="list"
570 |                     value={inputValue}
571 |                     disabled={!enabled}
572 |                     onChange={(event) => {
573 |                       setOpen(true);
574 |                       setInputValue(event.target.value);
575 |                       setSearchTerm(event.target.value);
576 |                     }}
577 |                     placeholder={!readOnly ? placeholder : ""}
578 |                     className={styles.commandInput}
579 |                   />
580 |                   <div className={styles.actions}>
581 |                     {value?.length > 0 && enabled && !readOnly && (
582 |                       <span
583 |                         className={styles.action}
584 |                         onClick={(event) => {
585 |                           event.stopPropagation();
586 |                           clearValue();
587 |                         }}
588 |                       >
589 |                         <Icon name="close" />
590 |                       </span>
591 |                     )}
592 |                     <span
593 |                       className={styles.action}
594 |                       onClick={() => {
595 |                         if (readOnly) return;
596 |                         setOpen(!open);
597 |                         // Focus the input after opening dropdown
598 |                         inputRef.current?.focus();
599 |                       }}
600 |                     >
601 |                       <Icon name="chevrondown" />
602 |                     </span>
603 |                   </div>
604 |                 </div>
605 |               </div>
606 |             </PopoverTrigger>
607 |             {open && (
608 |               <Portal container={root}>
609 |                 <PopoverContent
610 |                   style={{ width, height: dropdownHeight }}
611 |                   className={styles.popoverContent}
612 |                   align="start"
613 |                   onOpenAutoFocus={(e) => e.preventDefault()}
614 |                 >
615 |                   <div
616 |                     role="listbox"
617 |                     className={styles.commandList}
618 |                     style={{ height: dropdownHeight }}
619 |                   >
620 |                     {filteredOptions.length === 0 && !shouldShowCreatable && (
621 |                       <div>{emptyListNode}</div>
622 |                     )}
623 |                     {shouldShowCreatable && (
624 |                       <CreatableItem
625 |                         onNewItem={onItemCreated}
626 |                         isHighlighted={selectedIndex === 0}
627 |                       />
628 |                     )}
629 |                     <div>
630 |                       {filteredOptions.map(({ value, label, enabled, keywords }, index) => {
631 |                         const itemIndex = shouldShowCreatable ? index + 1 : index;
632 |                         return (
633 |                           <AutoCompleteOption
634 |                             key={value}
635 |                             value={value}
636 |                             label={label}
637 |                             enabled={enabled}
638 |                             keywords={keywords}
639 |                             readOnly={readOnly}
640 |                             isHighlighted={selectedIndex === itemIndex}
641 |                             itemIndex={itemIndex}
642 |                           />
643 |                         );
644 |                       })}
645 |                     </div>
646 |                   </div>
647 |                 </PopoverContent>
648 |               </Portal>
649 |             )}
650 |           </Popover>
651 |           {children}
652 |         </OptionTypeProvider>
653 |       </OptionContext.Provider>
654 |     </AutoCompleteContext.Provider>
655 |   );
656 | });
657 | 
658 | type CreatableItemProps = {
659 |   onNewItem: (item: string) => void;
660 |   isHighlighted?: boolean;
661 | };
662 | 
663 | function CreatableItem({ onNewItem, isHighlighted = false }: CreatableItemProps) {
664 |   const { value, options, searchTerm, onChange, setOpen, setSelectedIndex, multi } =
665 |     useAutoComplete();
666 |   const { onOptionAdd } = useOption();
667 |   if (
668 |     isOptionsExist(options, [{ value: searchTerm, label: searchTerm }]) ||
669 |     (Array.isArray(value) && value?.find((s) => s === searchTerm)) ||
670 |     searchTerm === value
671 |   ) {
672 |     return <span style={{ display: "none" }} />;
673 |   }
674 | 
675 |   const handleClick = () => {
676 |     const newOption = { value: searchTerm, label: searchTerm, enabled: true };
677 |     onOptionAdd(newOption);
678 |     onNewItem?.(searchTerm);
679 |     onChange(searchTerm);
680 |     // Only close dropdown for single select mode
681 |     if (!multi) {
682 |       setOpen(false);
683 |     }
684 |   };
685 | 
686 |   const Item = (
687 |     <div
688 |       className={classnames(styles.autoCompleteOption, {
689 |         [styles.highlighted]: isHighlighted,
690 |       })}
691 |       onMouseDown={(e) => {
692 |         e.preventDefault();
693 |         e.stopPropagation();
694 |       }}
695 |       onMouseEnter={() => {
696 |         if (setSelectedIndex) {
697 |           setSelectedIndex(0); // CreatableItem is always at index 0
698 |         }
699 |       }}
700 |       onClick={handleClick}
701 |       role="option"
702 |       aria-selected={false}
703 |     >
704 |       {`Create "${searchTerm}"`}
705 |     </div>
706 |   );
707 | 
708 |   // For normal creatable
709 |   if (searchTerm.length > 0) {
710 |     return Item;
711 |   }
712 | 
713 |   return <span style={{ display: "none" }} />;
714 | }
715 | 
716 | function AutoCompleteOption(option: Option & { isHighlighted?: boolean; itemIndex?: number }) {
717 |   const {
718 |     value,
719 |     label,
720 |     enabled = true,
721 |     readOnly,
722 |     children,
723 |     isHighlighted = false,
724 |     itemIndex,
725 |   } = option;
726 |   const id = useId();
727 |   const {
728 |     value: selectedValue,
729 |     onChange,
730 |     multi,
731 |     setOpen,
732 |     setSelectedIndex,
733 |     optionRenderer,
734 |   } = useAutoComplete();
735 |   const selected = multi ? selectedValue?.includes(value) : selectedValue === value;
736 | 
737 |   const handleClick = () => {
738 |     if (!readOnly && enabled) {
739 |       onChange(value);
740 |       // Only close dropdown for single select mode
741 |       if (!multi) {
742 |         setOpen(false);
743 |       }
744 |     }
745 |   };
746 | 
747 |   return (
748 |     <div
749 |       id={id}
750 |       role="option"
751 |       aria-disabled={!enabled}
752 |       aria-selected={selected}
753 |       className={classnames(styles.autoCompleteOption, {
754 |         [styles.disabledOption]: !enabled,
755 |         [styles.highlighted]: isHighlighted,
756 |       })}
757 |       onMouseDown={(e) => {
758 |         e.preventDefault();
759 |         e.stopPropagation();
760 |       }}
761 |       onMouseEnter={() => {
762 |         if (itemIndex !== undefined && setSelectedIndex && enabled) {
763 |           setSelectedIndex(itemIndex);
764 |         }
765 |       }}
766 |       onClick={handleClick}
767 |     >
768 |       {children ? (
769 |         <>
770 |           <div className={styles.autoCompleteOptionContent}>{children}</div>
771 |           {selected && <Icon name="checkmark" />}
772 |         </>
773 |       ) : optionRenderer ? (
774 |         optionRenderer({ label, value, enabled }, selectedValue as any, false)
775 |       ) : (
776 |         <>
777 |           <div className={styles.autoCompleteOptionContent}>{label}</div>
778 |           {selected && <Icon name="checkmark" />}
779 |         </>
780 |       )}
781 |     </div>
782 |   );
783 | }
784 | 
```
Page 100/181FirstPrevNextLast