This is page 148 of 186. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/%7BimageSrc%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── 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
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ ├── staticwebapp.config.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
│ │ ├── FancyButton.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
│ │ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ │ ├── debounce-with-changelistener.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── 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
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.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
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── 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.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── 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
│ ├── component-metadata.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
│ ├── theme-variables-refactoring.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── 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.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── 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.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── 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
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── 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/Splitter/Splitter.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds, SKIP_REASON } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 | import { parseSize, toPercentage } from "./utils";
4 |
5 | // =============================================================================
6 | // BASIC FUNCTIONALITY TESTS
7 | // =============================================================================
8 |
9 | test.describe("Basic Functionality", () => {
10 | test("renders with basic setup", async ({ initTestBed, page }) => {
11 | await initTestBed(`
12 | <Splitter height="200px" testId="splitter">
13 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
14 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
15 | </Splitter>
16 | `);
17 |
18 | await expect(page.getByTestId("splitter")).toBeVisible();
19 | await expect(page.getByTestId("primary")).toBeVisible();
20 | await expect(page.getByTestId("secondary")).toBeVisible();
21 | });
22 |
23 | test("renders with single child", async ({ initTestBed, page }) => {
24 | await initTestBed(`
25 | <Splitter height="200px" testId="splitter">
26 | <Stack backgroundColor="lightblue" height="100%" testId="single-child"/>
27 | </Splitter>
28 | `);
29 |
30 | await expect(page.getByTestId("splitter")).toBeVisible();
31 | await expect(page.getByTestId("single-child")).toBeVisible();
32 | });
33 |
34 | test.describe("conditional rendering behavior", () => {
35 | test("hides resizer and stretches single panel when second child has when=false", async ({ initTestBed, page }) => {
36 | await initTestBed(`
37 | <Splitter height="200px" width="400px" testId="splitter">
38 | <Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
39 | <Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
40 | </Splitter>
41 | `);
42 |
43 | // Primary panel should be visible
44 | await expect(page.getByTestId("primary")).toBeVisible();
45 |
46 | // Secondary panel should not be visible (filtered out by when=false)
47 | await expect(page.getByTestId("secondary")).not.toBeVisible();
48 |
49 | // Resizer should not be visible when only one child is rendered
50 | const resizer = page.locator('[class*="resizer"]');
51 | const isResizerVisible = await resizer.isVisible().catch(() => false);
52 | expect(isResizerVisible).toBe(false);
53 |
54 | // Primary panel should stretch to fill the entire splitter container
55 | const splitter = page.getByTestId("splitter");
56 | const primary = page.getByTestId("primary");
57 |
58 | const splitterBounds = await getBounds(splitter);
59 | const primaryBounds = await getBounds(primary);
60 |
61 | // Allow small tolerance for borders/padding
62 | const tolerance = 5;
63 | expect(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
64 | expect(Math.abs(primaryBounds.height - splitterBounds.height)).toBeLessThan(tolerance);
65 | });
66 |
67 | test("hides resizer and stretches single panel when first child has when=false", async ({ initTestBed, page }) => {
68 | await initTestBed(`
69 | <Splitter height="200px" width="400px" testId="splitter">
70 | <Stack when="{false}" backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
71 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
72 | </Splitter>
73 | `);
74 |
75 | // Primary panel should not be visible (filtered out by when=false)
76 | await expect(page.getByTestId("primary")).not.toBeVisible();
77 |
78 | // Secondary panel should be visible
79 | await expect(page.getByTestId("secondary")).toBeVisible();
80 |
81 | // Resizer should not be visible when only one child is rendered
82 | const resizer = page.locator('[class*="resizer"]');
83 | const isResizerVisible = await resizer.isVisible().catch(() => false);
84 | expect(isResizerVisible).toBe(false);
85 |
86 | // Secondary panel should stretch to fill the entire splitter container
87 | const splitter = page.getByTestId("splitter");
88 | const secondary = page.getByTestId("secondary");
89 |
90 | const splitterBounds = await getBounds(splitter);
91 | const secondaryBounds = await getBounds(secondary);
92 |
93 | // Allow small tolerance for borders/padding
94 | const tolerance = 5;
95 | expect(Math.abs(secondaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
96 | expect(Math.abs(secondaryBounds.height - splitterBounds.height)).toBeLessThan(tolerance);
97 | });
98 |
99 | test("shows resizer when both children are visible", async ({ initTestBed, page }) => {
100 | await initTestBed(`
101 | <Splitter height="200px" width="400px" testId="splitter">
102 | <Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
103 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
104 | </Splitter>
105 | `);
106 |
107 | // Both panels should be visible
108 | await expect(page.getByTestId("primary")).toBeVisible();
109 | await expect(page.getByTestId("secondary")).toBeVisible();
110 |
111 | // Resizer should be visible when both children are rendered
112 | const resizer = page.locator('[class*="resizer"]');
113 | await expect(resizer).toBeVisible();
114 | });
115 |
116 | test("dynamically updates when child visibility changes", async ({ initTestBed, page }) => {
117 | const { testStateDriver } = await initTestBed(`
118 | <Fragment var.showSecondary="{true}">
119 | <Splitter height="200px" width="400px" testId="splitter">
120 | <Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
121 | <Stack when="{showSecondary}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
122 | </Splitter>
123 | <Button testId="toggle" onClick="showSecondary = !showSecondary">Toggle Secondary</Button>
124 | </Fragment>
125 | `);
126 |
127 | // Initially both panels should be visible
128 | await expect(page.getByTestId("primary")).toBeVisible();
129 | await expect(page.getByTestId("secondary")).toBeVisible();
130 |
131 | // Resizer should be visible
132 | const resizer = page.locator('[class*="resizer"]');
133 | await expect(resizer).toBeVisible();
134 |
135 | // Click toggle to hide secondary panel
136 | await page.getByTestId("toggle").click();
137 |
138 | // Primary should still be visible, secondary should be hidden
139 | await expect(page.getByTestId("primary")).toBeVisible();
140 | await expect(page.getByTestId("secondary")).not.toBeVisible();
141 |
142 | // Resizer should now be hidden
143 | const isResizerVisible = await resizer.isVisible().catch(() => false);
144 | expect(isResizerVisible).toBe(false);
145 |
146 | // Primary panel should stretch to fill container
147 | const splitter = page.getByTestId("splitter");
148 | const primary = page.getByTestId("primary");
149 |
150 | const splitterBounds = await getBounds(splitter);
151 | const primaryBounds = await getBounds(primary);
152 |
153 | const tolerance = 5;
154 | expect(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
155 |
156 | // Click toggle again to show secondary panel
157 | await page.getByTestId("toggle").click();
158 |
159 | // Both panels should be visible again
160 | await expect(page.getByTestId("primary")).toBeVisible();
161 | await expect(page.getByTestId("secondary")).toBeVisible();
162 |
163 | // Resizer should be visible again
164 | await expect(resizer).toBeVisible();
165 | });
166 |
167 | test("handles when condition with complex expressions", async ({ initTestBed, page }) => {
168 | const { testStateDriver } = await initTestBed(`
169 | <Fragment var.count="{0}">
170 | <Splitter height="200px" width="400px" testId="splitter">
171 | <Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
172 | <Stack when="{count > 5}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
173 | </Splitter>
174 | <Button testId="increment" onClick="count = count + 1">Increment</Button>
175 | <Text testId="count-display">{count}</Text>
176 | </Fragment>
177 | `);
178 |
179 | // Initially only primary should be visible (count = 0, which is not > 5)
180 | await expect(page.getByTestId("primary")).toBeVisible();
181 | await expect(page.getByTestId("secondary")).not.toBeVisible();
182 |
183 | // Resizer should be hidden
184 | const resizer = page.locator('[class*="resizer"]');
185 | const isResizerVisible1 = await resizer.isVisible().catch(() => false);
186 | expect(isResizerVisible1).toBe(false);
187 |
188 | // Click increment 6 times to make count > 5
189 | for (let i = 0; i < 6; i++) {
190 | await page.getByTestId("increment").click();
191 | }
192 |
193 | await expect(page.getByTestId("count-display")).toHaveText("6");
194 |
195 | // Now both panels should be visible
196 | await expect(page.getByTestId("primary")).toBeVisible();
197 | await expect(page.getByTestId("secondary")).toBeVisible();
198 |
199 | // Resizer should be visible
200 | await expect(resizer).toBeVisible();
201 | });
202 |
203 | test("works with multiple conditionally hidden children", async ({ initTestBed, page }) => {
204 | await initTestBed(`
205 | <Splitter height="200px" width="400px" testId="splitter">
206 | <Stack when="{false}" backgroundColor="lightblue" height="100%" testId="child1">Child 1</Stack>
207 | <Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="child2">Child 2</Stack>
208 | <Stack backgroundColor="lightgreen" height="100%" testId="child3">Child 3</Stack>
209 | </Splitter>
210 | `);
211 |
212 | // Only child3 should be visible
213 | await expect(page.getByTestId("child1")).not.toBeVisible();
214 | await expect(page.getByTestId("child2")).not.toBeVisible();
215 | await expect(page.getByTestId("child3")).toBeVisible();
216 |
217 | // Resizer should be hidden (only one visible child)
218 | const resizer = page.locator('[class*="resizer"]');
219 | const isResizerVisible = await resizer.isVisible().catch(() => false);
220 | expect(isResizerVisible).toBe(false);
221 |
222 | // Child3 should stretch to fill container
223 | const splitter = page.getByTestId("splitter");
224 | const child3 = page.getByTestId("child3");
225 |
226 | const splitterBounds = await getBounds(splitter);
227 | const child3Bounds = await getBounds(child3);
228 |
229 | const tolerance = 5;
230 | expect(Math.abs(child3Bounds.width - splitterBounds.width)).toBeLessThan(tolerance);
231 | });
232 |
233 | test("handles all children being conditionally hidden", async ({ initTestBed, page }) => {
234 | await initTestBed(`
235 | <Splitter height="200px" width="400px" testId="splitter">
236 | <Stack when="{false}" backgroundColor="lightblue" height="100%" testId="child1">Child 1</Stack>
237 | <Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="child2">Child 2</Stack>
238 | </Splitter>
239 | `);
240 |
241 | // No children should be visible
242 | await expect(page.getByTestId("child1")).not.toBeVisible();
243 | await expect(page.getByTestId("child2")).not.toBeVisible();
244 |
245 | // Splitter should still be visible but empty
246 | await expect(page.getByTestId("splitter")).toBeVisible();
247 |
248 | // Resizer should not be visible
249 | const resizer = page.locator('[class*="resizer"]');
250 | const isResizerVisible = await resizer.isVisible().catch(() => false);
251 | expect(isResizerVisible).toBe(false);
252 | });
253 |
254 | test("works with different orientations", async ({ initTestBed, page }) => {
255 | await initTestBed(`
256 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
257 | <Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
258 | <Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
259 | </Splitter>
260 | `);
261 |
262 | // Primary should be visible, secondary should not
263 | await expect(page.getByTestId("primary")).toBeVisible();
264 | await expect(page.getByTestId("secondary")).not.toBeVisible();
265 |
266 | // Resizer should be hidden
267 | const resizer = page.locator('[class*="resizer"]');
268 | const isResizerVisible = await resizer.isVisible().catch(() => false);
269 | expect(isResizerVisible).toBe(false);
270 |
271 | // Primary should stretch horizontally to fill container
272 | const splitter = page.getByTestId("splitter");
273 | const primary = page.getByTestId("primary");
274 |
275 | const splitterBounds = await getBounds(splitter);
276 | const primaryBounds = await getBounds(primary);
277 |
278 | const tolerance = 5;
279 | expect(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
280 | });
281 | });
282 |
283 | test.describe("orientation property", () => {
284 | test("orientation='horizontal' arranges sections left to right", async ({ initTestBed, page }) => {
285 | await initTestBed(`
286 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
287 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
288 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
289 | </Splitter>
290 | `);
291 |
292 | const primary = page.getByTestId("primary");
293 | const secondary = page.getByTestId("secondary");
294 |
295 | const primaryBounds = await getBounds(primary);
296 | const secondaryBounds = await getBounds(secondary);
297 |
298 | // In horizontal orientation, primary should be to the left of secondary
299 | expect(primaryBounds.right).toBeLessThanOrEqual(secondaryBounds.left + 10); // Allow for small overlap due to resizer
300 | });
301 |
302 | test("orientation='vertical' arranges sections top to bottom", async ({ initTestBed, page }) => {
303 | await initTestBed(`
304 | <Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
305 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
306 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
307 | </Splitter>
308 | `);
309 |
310 | const primary = page.getByTestId("primary");
311 | const secondary = page.getByTestId("secondary");
312 |
313 | const primaryBounds = await getBounds(primary);
314 | const secondaryBounds = await getBounds(secondary);
315 |
316 | // In vertical orientation, primary should be above secondary
317 | expect(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10); // Allow for small overlap due to resizer
318 | });
319 |
320 | test("defaults to vertical orientation", async ({ initTestBed, page }) => {
321 | await initTestBed(`
322 | <Splitter height="200px" width="400px" testId="splitter">
323 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
324 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
325 | </Splitter>
326 | `);
327 |
328 | const primary = page.getByTestId("primary");
329 | const secondary = page.getByTestId("secondary");
330 |
331 | const primaryBounds = await getBounds(primary);
332 | const secondaryBounds = await getBounds(secondary);
333 |
334 | // Default should be vertical (primary above secondary)
335 | expect(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10);
336 | });
337 | });
338 |
339 | test.describe("swapped property", () => {
340 | [
341 | { swapped: false, orientation: "horizontal", description: "primary left, secondary right" },
342 | { swapped: true, orientation: "horizontal", description: "secondary left, primary right" },
343 | { swapped: false, orientation: "vertical", description: "primary top, secondary bottom" },
344 | { swapped: true, orientation: "vertical", description: "secondary top, primary bottom" },
345 | ].forEach(({ swapped, orientation, description }) => {
346 | test(`swapped=${swapped} with orientation=${orientation} renders ${description}`, async ({ initTestBed, page }) => {
347 | await initTestBed(`
348 | <Splitter height="200px" width="400px" orientation="${orientation}" swapped="${swapped}" testId="splitter">
349 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
350 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
351 | </Splitter>
352 | `);
353 |
354 | const primary = page.getByTestId("primary");
355 | const secondary = page.getByTestId("secondary");
356 |
357 | const primaryBounds = await getBounds(primary);
358 | const secondaryBounds = await getBounds(secondary);
359 |
360 | if (orientation === "horizontal") {
361 | if (swapped) {
362 | // Secondary should be to the left of primary
363 | expect(secondaryBounds.right).toBeLessThanOrEqual(primaryBounds.left + 10);
364 | } else {
365 | // Primary should be to the left of secondary
366 | expect(primaryBounds.right).toBeLessThanOrEqual(secondaryBounds.left + 10);
367 | }
368 | } else {
369 | if (swapped) {
370 | // Secondary should be above primary
371 | expect(secondaryBounds.bottom).toBeLessThanOrEqual(primaryBounds.top + 10);
372 | } else {
373 | // Primary should be above secondary
374 | expect(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10);
375 | }
376 | }
377 | });
378 | });
379 | });
380 |
381 | test.describe("initialPrimarySize property", () => {
382 | test("sets initial size with percentage", async ({ initTestBed, page }) => {
383 | await initTestBed(`
384 | <Splitter height="200px" width="400px" orientation="horizontal" initialPrimarySize="25%" testId="splitter">
385 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
386 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
387 | </Splitter>
388 | `);
389 |
390 | const splitter = page.getByTestId("splitter");
391 | const primary = page.getByTestId("primary");
392 |
393 | const splitterBounds = await getBounds(splitter);
394 | const primaryBounds = await getBounds(primary);
395 |
396 | const expectedWidth = splitterBounds.width * 0.25;
397 | const tolerance = 10; // Allow some tolerance for rounding/margins
398 |
399 | expect(Math.abs(primaryBounds.width - expectedWidth)).toBeLessThan(tolerance);
400 | });
401 |
402 | test("sets initial size with pixels", async ({ initTestBed, page }) => {
403 | await initTestBed(`
404 | <Splitter height="200px" width="400px" orientation="horizontal" initialPrimarySize="100px" testId="splitter">
405 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
406 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
407 | </Splitter>
408 | `);
409 |
410 | const primary = page.getByTestId("primary");
411 | const primaryBounds = await getBounds(primary);
412 |
413 | const tolerance = 10;
414 | expect(Math.abs(primaryBounds.width - 100)).toBeLessThan(tolerance);
415 | });
416 |
417 | test("defaults to 50%", async ({ initTestBed, page }) => {
418 | await initTestBed(`
419 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
420 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
421 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
422 | </Splitter>
423 | `);
424 |
425 | const splitter = page.getByTestId("splitter");
426 | const primary = page.getByTestId("primary");
427 |
428 | const splitterBounds = await getBounds(splitter);
429 | const primaryBounds = await getBounds(primary);
430 |
431 | const expectedWidth = splitterBounds.width * 0.5;
432 | const tolerance = 15; // Allow some tolerance for default behavior
433 |
434 | expect(Math.abs(primaryBounds.width - expectedWidth)).toBeLessThan(tolerance);
435 | });
436 | });
437 |
438 | test.describe("floating property", () => {
439 | test("floating=false shows resizer permanently", async ({ initTestBed, page, createSplitterDriver }) => {
440 | await initTestBed(`
441 | <Splitter height="200px" width="400px" orientation="horizontal" floating="false" testId="splitter">
442 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
443 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
444 | </Splitter>
445 | `);
446 |
447 | const splitter = page.getByTestId("splitter");
448 | const driver = await createSplitterDriver(splitter);
449 | const resizer = await driver.getResizer();
450 |
451 | await expect(resizer).toBeVisible();
452 | });
453 |
454 | test("floating=true hides resizer until hover", async ({ initTestBed, page }) => {
455 | await initTestBed(`
456 | <Splitter height="200px" width="400px" orientation="horizontal" floating="true" testId="splitter">
457 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
458 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
459 | </Splitter>
460 | `);
461 |
462 | const splitter = page.getByTestId("splitter");
463 |
464 | // When floating=true, the regular resizer should not be visible
465 | const regularResizer = splitter.locator('[class*="resizer"]:not([class*="floating"])');
466 | const isRegularResizerVisible = await regularResizer.isVisible().catch(() => false);
467 | expect(isRegularResizerVisible).toBe(false);
468 |
469 | // The floating resizer should exist but be initially hidden (opacity 0)
470 | const floatingResizer = splitter.locator('[class*="floating"]');
471 | if (await floatingResizer.count() > 0) {
472 | const initialOpacity = await floatingResizer.evaluate(el => window.getComputedStyle(el).opacity);
473 | expect(parseFloat(initialOpacity)).toBe(0);
474 | }
475 | });
476 | });
477 |
478 | test.describe("splitterTemplate property", () => {
479 | test("renders custom splitter template", async ({ initTestBed, page, createSplitterDriver }) => {
480 | await initTestBed(`
481 | <Splitter height="200px" width="400px" testId="splitter">
482 | <property name="splitterTemplate">
483 | <ContentSeparator backgroundColor="green" height="4px" testId="custom-separator"/>
484 | </property>
485 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
486 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
487 | </Splitter>
488 | `);
489 |
490 | await expect(page.getByTestId("custom-separator")).toBeVisible();
491 | });
492 | });
493 |
494 | test.describe("resize functionality", () => {
495 | test("drag resizer changes panel sizes in horizontal orientation", async ({ initTestBed, page, createSplitterDriver }) => {
496 | await initTestBed(`
497 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
498 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
499 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
500 | </Splitter>
501 | `);
502 |
503 | const splitter = page.getByTestId("splitter");
504 | const primary = page.getByTestId("primary");
505 | const driver = await createSplitterDriver(splitter);
506 |
507 | // Get initial size
508 | const initialBounds = await getBounds(primary);
509 |
510 | // Drag resizer to the right by 50 pixels
511 | await driver.dragResizer(50, 0);
512 |
513 | // Get new size and verify it changed
514 | const newBounds = await getBounds(primary);
515 | expect(newBounds.width).toBeGreaterThan(initialBounds.width + 30); // Allow some tolerance
516 | });
517 |
518 | test("drag resizer changes panel sizes in vertical orientation", async ({ initTestBed, page, createSplitterDriver }) => {
519 | await initTestBed(`
520 | <Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
521 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
522 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
523 | </Splitter>
524 | `);
525 |
526 | const splitter = page.getByTestId("splitter");
527 | const primary = page.getByTestId("primary");
528 | const driver = await createSplitterDriver(splitter);
529 |
530 | // Get initial size
531 | const initialBounds = await getBounds(primary);
532 |
533 | // Drag resizer down by 30 pixels
534 | await driver.dragResizer(0, 30);
535 |
536 | // Get new size and verify it changed
537 | const newBounds = await getBounds(primary);
538 | expect(newBounds.height).toBeGreaterThan(initialBounds.height + 15); // Allow some tolerance
539 | });
540 | });
541 |
542 | test.describe("size constraint properties", () => {
543 | test("minPrimarySize constrains minimum size", async ({ initTestBed, page, createSplitterDriver }) => {
544 | await initTestBed(`
545 | <Splitter height="200px" width="400px" orientation="horizontal" minPrimarySize="100px" testId="splitter">
546 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
547 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
548 | </Splitter>
549 | `);
550 |
551 | const splitter = page.getByTestId("splitter");
552 | const primary = page.getByTestId("primary");
553 | const driver = await createSplitterDriver(splitter);
554 |
555 | // Try to drag resizer far to the left
556 | await driver.dragResizer(-300, 0);
557 |
558 | // Primary should not be smaller than minimum
559 | const bounds = await getBounds(primary);
560 | expect(bounds.width).toBeGreaterThanOrEqual(90); // Allow small tolerance
561 | });
562 |
563 | test("maxPrimarySize constrains maximum size", async ({ initTestBed, page, createSplitterDriver }) => {
564 | await initTestBed(`
565 | <Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="300px" testId="splitter">
566 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
567 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
568 | </Splitter>
569 | `);
570 |
571 | const splitter = page.getByTestId("splitter");
572 | const primary = page.getByTestId("primary");
573 | const driver = await createSplitterDriver(splitter);
574 |
575 | // Try to drag resizer far to the right
576 | await driver.dragResizer(300, 0);
577 |
578 | // Primary should not be larger than maximum
579 | const bounds = await getBounds(primary);
580 | expect(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance
581 | });
582 |
583 | test("negative maxPrimarySize in pixels constrains from end", async ({ initTestBed, page, createSplitterDriver }) => {
584 | await initTestBed(`
585 | <Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="-100px" testId="splitter">
586 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
587 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
588 | </Splitter>
589 | `);
590 |
591 | const splitter = page.getByTestId("splitter");
592 | const primary = page.getByTestId("primary");
593 | const driver = await createSplitterDriver(splitter);
594 |
595 | // Try to drag resizer far to the right
596 | await driver.dragResizer(350, 0);
597 |
598 | // Primary should not be larger than 400 - 100 = 300px
599 | const bounds = await getBounds(primary);
600 | expect(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
601 | });
602 |
603 | test("negative maxPrimarySize in percentage constrains from end", async ({ initTestBed, page, createSplitterDriver }) => {
604 | await initTestBed(`
605 | <Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="-25%" testId="splitter">
606 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
607 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
608 | </Splitter>
609 | `);
610 |
611 | const splitter = page.getByTestId("splitter");
612 | const primary = page.getByTestId("primary");
613 | const driver = await createSplitterDriver(splitter);
614 |
615 | // Try to drag resizer far to the right
616 | await driver.dragResizer(350, 0);
617 |
618 | // Primary should not be larger than 75% of 400px = 300px
619 | const bounds = await getBounds(primary);
620 | expect(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
621 | });
622 |
623 | test("negative maxPrimarySize works in vertical orientation", async ({ initTestBed, page, createSplitterDriver }) => {
624 | await initTestBed(`
625 | <Splitter height="400px" width="200px" orientation="vertical" maxPrimarySize="-100px" testId="splitter">
626 | <Stack backgroundColor="lightblue" width="100%" testId="primary"/>
627 | <Stack backgroundColor="darksalmon" width="100%" testId="secondary"/>
628 | </Splitter>
629 | `);
630 |
631 | const splitter = page.getByTestId("splitter");
632 | const primary = page.getByTestId("primary");
633 | const driver = await createSplitterDriver(splitter);
634 |
635 | // Try to drag resizer far down
636 | await driver.dragResizer(0, 350);
637 |
638 | // Primary should not be larger than 400 - 100 = 300px height
639 | const bounds = await getBounds(primary);
640 | expect(bounds.height).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
641 | });
642 | });
643 |
644 | test.describe("resize event", () => {
645 | test("fires resize event when dragging", async ({ initTestBed, page, createSplitterDriver }) => {
646 | const { testStateDriver } = await initTestBed(`
647 | <Splitter height="200px" width="400px" orientation="horizontal" onResize="arg => testState = arg" testId="splitter">
648 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
649 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
650 | </Splitter>
651 | `);
652 |
653 | const splitter = page.getByTestId("splitter");
654 | const driver = await createSplitterDriver(splitter);
655 |
656 | // Drag resizer
657 | await driver.dragResizer(50, 0);
658 |
659 | // Verify resize event was called with array of percentages
660 | await expect.poll(testStateDriver.testState).toBeDefined();
661 | const resizeData = await testStateDriver.testState();
662 | expect(Array.isArray(resizeData)).toBe(true);
663 | expect(resizeData).toHaveLength(2);
664 | expect(typeof resizeData[0]).toBe("number");
665 | expect(typeof resizeData[1]).toBe("number");
666 | });
667 | });
668 |
669 | test.describe("edge cases", () => {
670 | test("handles null properties gracefully", async ({ initTestBed, page }) => {
671 | await initTestBed(`
672 | <Splitter
673 | height="200px"
674 | initialPrimarySize="50px"
675 | minPrimarySize="10px"
676 | maxPrimarySize="180px"
677 | testId="splitter"
678 | >
679 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
680 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
681 | </Splitter>
682 | `);
683 |
684 | await expect(page.getByTestId("splitter")).toBeVisible();
685 | await expect(page.getByTestId("primary")).toBeVisible();
686 | await expect(page.getByTestId("secondary")).toBeVisible();
687 | });
688 |
689 | test("handles undefined properties gracefully", async ({ initTestBed, page }) => {
690 | await initTestBed(`
691 | <Splitter
692 | height="200px"
693 | width="400px"
694 | testId="splitter"
695 | >
696 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
697 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
698 | </Splitter>
699 | `);
700 |
701 | await expect(page.getByTestId("splitter")).toBeVisible();
702 | await expect(page.getByTestId("primary")).toBeVisible();
703 | await expect(page.getByTestId("secondary")).toBeVisible();
704 | });
705 |
706 | test("handles invalid size values", async ({ initTestBed, page }) => {
707 | await initTestBed(`
708 | <Splitter
709 | height="200px"
710 | width="400px"
711 | initialPrimarySize="50%"
712 | testId="splitter"
713 | >
714 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
715 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
716 | </Splitter>
717 | `);
718 |
719 | await expect(page.getByTestId("splitter")).toBeVisible();
720 | await expect(page.getByTestId("primary")).toBeVisible();
721 | await expect(page.getByTestId("secondary")).toBeVisible();
722 | });
723 |
724 | test("handles object values for string properties", async ({ initTestBed, page }) => {
725 | await initTestBed(`
726 | <Splitter
727 | height="200px"
728 | width="400px"
729 | orientation="horizontal"
730 | initialPrimarySize="50%"
731 | testId="splitter"
732 | >
733 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
734 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
735 | </Splitter>
736 | `);
737 |
738 | await expect(page.getByTestId("splitter")).toBeVisible();
739 | await expect(page.getByTestId("primary")).toBeVisible();
740 | await expect(page.getByTestId("secondary")).toBeVisible();
741 | });
742 | });
743 | });
744 |
745 | // =============================================================================
746 | // ACCESSIBILITY TESTS
747 | // =============================================================================
748 |
749 | test.describe("Accessibility", () => {
750 | test("resizer has appropriate cursor styles", async ({ initTestBed, page, createSplitterDriver }) => {
751 | await initTestBed(`
752 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
753 | <Stack backgroundColor="lightblue" height="100%"/>
754 | <Stack backgroundColor="darksalmon" height="100%"/>
755 | </Splitter>
756 | `);
757 |
758 | const splitter = page.getByTestId("splitter");
759 | const driver = await createSplitterDriver(splitter);
760 | const resizer = await driver.getResizer();
761 |
762 | await expect(resizer).toHaveCSS("cursor", "ew-resize");
763 | });
764 |
765 | test("vertical resizer has appropriate cursor style", async ({ initTestBed, page, createSplitterDriver }) => {
766 | await initTestBed(`
767 | <Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
768 | <Stack backgroundColor="lightblue" height="100%"/>
769 | <Stack backgroundColor="darksalmon" height="100%"/>
770 | </Splitter>
771 | `);
772 |
773 | const splitter = page.getByTestId("splitter");
774 | const driver = await createSplitterDriver(splitter);
775 | const resizer = await driver.getResizer();
776 |
777 | await expect(resizer).toHaveCSS("cursor", "ns-resize");
778 | });
779 |
780 | test("splitter prevents text selection during drag", async ({ initTestBed, page }) => {
781 | await initTestBed(`
782 | <Splitter height="200px" width="400px" testId="splitter">
783 | <Stack backgroundColor="lightblue" height="100%"/>
784 | <Stack backgroundColor="darksalmon" height="100%"/>
785 | </Splitter>
786 | `);
787 |
788 | const splitter = page.getByTestId("splitter");
789 | await expect(splitter).toHaveCSS("user-select", "none");
790 | });
791 | });
792 |
793 | // =============================================================================
794 | // THEME VARIABLE TESTS
795 | // =============================================================================
796 |
797 | test.describe("Theme Variables", () => {
798 | test("applies backgroundColor-resizer-Splitter theme variable", async ({ initTestBed, page, createSplitterDriver }) => {
799 | await initTestBed(`
800 | <Splitter height="200px" width="400px" testId="splitter">
801 | <Stack backgroundColor="lightblue" height="100%"/>
802 | <Stack backgroundColor="darksalmon" height="100%"/>
803 | </Splitter>
804 | `, {
805 | testThemeVars: { "backgroundColor-resizer-Splitter": "rgb(255, 0, 0)" },
806 | });
807 |
808 | const splitter = page.getByTestId("splitter");
809 | const driver = await createSplitterDriver(splitter);
810 | const resizer = await driver.getResizer();
811 |
812 | await expect(resizer).toHaveCSS("background-color", "rgb(255, 0, 0)");
813 | });
814 |
815 | test("applies thickness-resizer-Splitter theme variable for horizontal", async ({ initTestBed, page, createSplitterDriver }) => {
816 | await initTestBed(`
817 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
818 | <Stack backgroundColor="lightblue" height="100%"/>
819 | <Stack backgroundColor="darksalmon" height="100%"/>
820 | </Splitter>
821 | `, {
822 | testThemeVars: { "thickness-resizer-Splitter": "10px" },
823 | });
824 |
825 | const splitter = page.getByTestId("splitter");
826 | const driver = await createSplitterDriver(splitter);
827 | const resizer = await driver.getResizer();
828 |
829 | await expect(resizer).toHaveCSS("width", "10px");
830 | });
831 |
832 | test("applies thickness-resizer-Splitter theme variable for vertical", async ({ initTestBed, page, createSplitterDriver }) => {
833 | await initTestBed(`
834 | <Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
835 | <Stack backgroundColor="lightblue" height="100%"/>
836 | <Stack backgroundColor="darksalmon" height="100%"/>
837 | </Splitter>
838 | `, {
839 | testThemeVars: { "thickness-resizer-Splitter": "10px" },
840 | });
841 |
842 | const splitter = page.getByTestId("splitter");
843 | const driver = await createSplitterDriver(splitter);
844 | const resizer = await driver.getResizer();
845 |
846 | await expect(resizer).toHaveCSS("height", "10px");
847 | });
848 |
849 | test("applies cursor-resizer-horizontal-Splitter theme variable", async ({ initTestBed, page, createSplitterDriver }) => {
850 | await initTestBed(`
851 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
852 | <Stack backgroundColor="lightblue" height="100%"/>
853 | <Stack backgroundColor="darksalmon" height="100%"/>
854 | </Splitter>
855 | `, {
856 | testThemeVars: { "cursor-resizer-horizontal-Splitter": "col-resize" },
857 | });
858 |
859 | const splitter = page.getByTestId("splitter");
860 | const driver = await createSplitterDriver(splitter);
861 | const resizer = await driver.getResizer();
862 |
863 | await expect(resizer).toHaveCSS("cursor", "col-resize");
864 | });
865 |
866 | test("applies cursor-resizer-vertical-Splitter theme variable", async ({ initTestBed, page, createSplitterDriver }) => {
867 | await initTestBed(`
868 | <Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
869 | <Stack backgroundColor="lightblue" height="100%"/>
870 | <Stack backgroundColor="darksalmon" height="100%"/>
871 | </Splitter>
872 | `, {
873 | testThemeVars: { "cursor-resizer-vertical-Splitter": "row-resize" },
874 | });
875 |
876 | const splitter = page.getByTestId("splitter");
877 | const driver = await createSplitterDriver(splitter);
878 | const resizer = await driver.getResizer();
879 |
880 | await expect(resizer).toHaveCSS("cursor", "row-resize");
881 | });
882 | });
883 |
884 | // =============================================================================
885 | // OTHER EDGE CASE TESTS
886 | // =============================================================================
887 |
888 | test.describe("Other Edge Cases", () => {
889 | test("handles very small container dimensions", async ({ initTestBed, page }) => {
890 | await initTestBed(`
891 | <Splitter height="20px" width="20px" testId="splitter">
892 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
893 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
894 | </Splitter>
895 | `);
896 |
897 | await expect(page.getByTestId("splitter")).toBeVisible();
898 | await expect(page.getByTestId("primary")).toBeVisible();
899 | // Secondary might be hidden in very small containers due to space constraints
900 | const secondary = page.getByTestId("secondary");
901 | const isSecondaryVisible = await secondary.isVisible();
902 | if (isSecondaryVisible) {
903 | await expect(secondary).toBeVisible();
904 | }
905 | });
906 |
907 | test("handles very large initial size values", async ({ initTestBed, page }) => {
908 | await initTestBed(`
909 | <Splitter height="200px" width="400px" initialPrimarySize="90%" testId="splitter">
910 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
911 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
912 | </Splitter>
913 | `);
914 |
915 | await expect(page.getByTestId("splitter")).toBeVisible();
916 | await expect(page.getByTestId("primary")).toBeVisible();
917 | // Secondary might be very small but should still be visible
918 | const secondary = page.getByTestId("secondary");
919 | const isSecondaryVisible = await secondary.isVisible();
920 | if (isSecondaryVisible) {
921 | await expect(secondary).toBeVisible();
922 | }
923 | });
924 |
925 | test("handles rapid resize operations", async ({ initTestBed, page, createSplitterDriver }) => {
926 | await initTestBed(`
927 | <Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
928 | <Stack backgroundColor="lightblue" height="100%" testId="primary"/>
929 | <Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
930 | </Splitter>
931 | `);
932 |
933 | const splitter = page.getByTestId("splitter");
934 | const driver = await createSplitterDriver(splitter);
935 |
936 | // Perform multiple rapid drag operations
937 | await driver.dragResizer(20, 0);
938 | await driver.dragResizer(-30, 0);
939 | await driver.dragResizer(40, 0);
940 | await driver.dragResizer(-10, 0);
941 |
942 | // Should still be functional
943 | await expect(page.getByTestId("primary")).toBeVisible();
944 | await expect(page.getByTestId("secondary")).toBeVisible();
945 | });
946 |
947 | test("conditional rendering works with different child component types", async ({ initTestBed, page }) => {
948 | await initTestBed(`
949 | <Splitter height="200px" width="400px" testId="splitter">
950 | <VStack when="{false}" backgroundColor="lightblue" height="100%" testId="vstack">
951 | <Text>VStack Content</Text>
952 | </VStack>
953 | <Text backgroundColor="darksalmon" height="100%" testId="text">Just Text</Text>
954 | <Fragment when="{false}" testId="fragment">
955 | <Stack backgroundColor="lightgreen" height="100%">Fragment Content</Stack>
956 | </Fragment>
957 | </Splitter>
958 | `);
959 |
960 | // Only the Text component should be visible
961 | await expect(page.getByTestId("vstack")).not.toBeVisible();
962 | await expect(page.getByTestId("text")).toBeVisible();
963 | await expect(page.getByTestId("fragment")).not.toBeVisible();
964 |
965 | // Resizer should be hidden since only one child is visible
966 | const resizer = page.locator('[class*="resizer"]');
967 | const isResizerVisible = await resizer.isVisible().catch(() => false);
968 | expect(isResizerVisible).toBe(false);
969 |
970 | // Text component should stretch to fill container
971 | const splitter = page.getByTestId("splitter");
972 | const text = page.getByTestId("text");
973 |
974 | const splitterBounds = await getBounds(splitter);
975 | const textBounds = await getBounds(text);
976 |
977 | const tolerance = 5;
978 | expect(Math.abs(textBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
979 | });
980 | });
981 |
982 | // =============================================================================
983 | // UTILITY FUNCTION TESTS
984 | // =============================================================================
985 |
986 | test.describe("Utility Functions", () => {
987 | test.describe("parseSize", () => {
988 | test("parses positive pixel values", () => {
989 | expect(parseSize("100px", 400)).toBe(100);
990 | expect(parseSize("200px", 400)).toBe(200);
991 | });
992 |
993 | test("parses positive percentage values", () => {
994 | expect(parseSize("50%", 400)).toBe(200);
995 | expect(parseSize("25%", 400)).toBe(100);
996 | expect(parseSize("100%", 400)).toBe(400);
997 | });
998 |
999 | test("parses negative pixel values (calculated from end)", () => {
1000 | expect(parseSize("-100px", 400)).toBe(300); // 400 - 100
1001 | expect(parseSize("-50px", 400)).toBe(350); // 400 - 50
1002 | expect(parseSize("-200px", 600)).toBe(400); // 600 - 200
1003 | });
1004 |
1005 | test("parses negative percentage values (calculated from end)", () => {
1006 | expect(parseSize("-20%", 400)).toBe(320); // 80% of 400
1007 | expect(parseSize("-50%", 400)).toBe(200); // 50% of 400
1008 | expect(parseSize("-10%", 600)).toBe(540); // 90% of 600
1009 | });
1010 |
1011 | test("throws error for invalid format", () => {
1012 | expect(() => parseSize("100", 400)).toThrow("Invalid size format. Use px or %.");
1013 | expect(() => parseSize("100em", 400)).toThrow("Invalid size format. Use px or %.");
1014 | expect(() => parseSize("invalid", 400)).toThrow("Invalid size format. Use px or %.");
1015 | });
1016 | });
1017 |
1018 | test.describe("toPercentage", () => {
1019 | test("converts pixel size to percentage", () => {
1020 | expect(toPercentage(200, 400)).toBe(50);
1021 | expect(toPercentage(100, 400)).toBe(25);
1022 | expect(toPercentage(400, 400)).toBe(100);
1023 | expect(toPercentage(0, 400)).toBe(0);
1024 | });
1025 | });
1026 | });
1027 |
```