This is page 95 of 143. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/bg-iphone-14-pro.jpg?lines=false&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/List/List.spec.ts:
--------------------------------------------------------------------------------
```typescript
import { scrollAnchoringValues } from "../abstractions";
import { SKIP_REASON } from "../../testing/component-test-helpers";
import { expect, test } from "../../testing/fixtures";
// =============================================================================
// BASIC FUNCTIONALITY TESTS
// =============================================================================
test.describe("Basic Functionality", () => {
test("component renders with basic props", async ({ initTestBed, createListDriver }) => {
await initTestBed(`<List data="{[{id: 1, name: 'Item 1'}]}"/>`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
});
test("renders array of objects correctly", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'Apple'},
{id: 2, name: 'Banana'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Banana");
});
test("renders array of primitives correctly", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{['Apple', 'Banana', 'Cherry']}">
<Text>{$item}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Banana");
await expect(driver.component).toContainText("Cherry");
});
test("handles empty data gracefully", async ({ initTestBed, createListDriver }) => {
await initTestBed(`<List data="{[]}"/>`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
});
test("uses items property as alias for data", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List items="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Item 1");
});
test("items takes priority over data when both are provided", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
data="{[{id: 1, name: 'Data Item'}]}"
items="{[{id: 2, name: 'Items Item'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Items Item");
await expect(driver.component).not.toContainText("Data Item");
});
test("groups items by specified field", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
groupBy="category"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'},
{id: 3, name: 'Banana', category: 'fruit'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Banana");
await expect(driver.component).toContainText("Carrot");
});
test("supports custom group header template", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
groupBy="category"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'}
]}">
<property name="groupHeaderTemplate">
<Text variant="strong">Category: {$group.key}</Text>
</property>
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Category: fruit");
await expect(driver.component).toContainText("Category: vegetable");
});
test("supports custom group footer template", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
groupBy="category"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'}
]}">
<property name="groupFooterTemplate">
<Text>End of {$group.key}</Text>
</property>
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("End of fruit");
await expect(driver.component).toContainText("End of vegetable");
});
test("supports defaultGroups property for group ordering", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
groupBy="category"
defaultGroups="{['vegetable', 'fruit']}"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'},
{id: 3, name: 'Banana', category: 'fruit'}
]}">
<property name="groupHeaderTemplate">
<Text>Group: {$group.key}</Text>
</property>
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Group: vegetable");
await expect(driver.component).toContainText("Group: fruit");
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Carrot");
});
test("supports groupsInitiallyExpanded property", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
groupBy="category"
groupsInitiallyExpanded="true"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'}
]}">
<property name="groupHeaderTemplate">
<Text>Group: {$group.key}</Text>
</property>
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Group: fruit");
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Carrot");
});
test("sorts items by specified field ascending", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
orderBy="name"
data="{[
{id: 1, name: 'Zebra'},
{id: 2, name: 'Apple'},
{id: 3, name: 'Banana'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Just verify all items are present (sorting behavior may vary by implementation)
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Banana");
await expect(driver.component).toContainText("Zebra");
// Verify that the orderBy property is accepted and component renders
const itemCount = await driver.getVisibleItemCount();
expect(itemCount).toBeGreaterThanOrEqual(3);
});
test("uses default idKey 'id' when not specified", async ({
initTestBed,
createListDriver,
page,
}) => {
await initTestBed(`
<List id="testList" data="{[
{id: 'item-1', name: 'Item 1'},
{id: 'item-2', name: 'Item 2'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Use scrollToId with default idKey
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToId) {
list.scrollToId("item-2");
}
});
await expect(driver.component).toContainText("Item 2");
});
test("uses custom idKey when specified", async ({ initTestBed, createListDriver, page }) => {
await initTestBed(`
<List id="testList" idKey="customId" data="{[
{customId: 'custom-1', name: 'Item 1'},
{customId: 'custom-2', name: 'Item 2'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Use scrollToId with custom idKey
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToId) {
list.scrollToId("custom-2");
}
});
await expect(driver.component).toContainText("Item 2");
});
test("scrollToTop method works", async ({ initTestBed, createListDriver, page }) => {
await initTestBed(`
<List id="testList" data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'},
{id: 4, name: 'Item 4'},
{id: 5, name: 'Item 5'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Scroll down first
await driver.scrollTo("bottom");
// Use API to scroll to top
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToTop) {
list.scrollToTop();
}
});
// Should show first item
await expect(driver.component).toContainText("Item 1");
});
test("scrollToBottom method works", async ({ initTestBed, createListDriver, page }) => {
await initTestBed(`
<List id="testList" data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'},
{id: 4, name: 'Item 4'},
{id: 5, name: 'Item 5'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Use API to scroll to bottom
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToBottom) {
list.scrollToBottom();
}
});
// Should show last items
await expect(driver.component).toContainText("Item 5");
});
test("scrollToIndex method works", async ({ initTestBed, createListDriver, page }) => {
await initTestBed(`
<List id="testList" data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'},
{id: 4, name: 'Item 4'},
{id: 5, name: 'Item 5'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Use API to scroll to specific index
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToIndex) {
list.scrollToIndex(2);
}
});
// Should show item around index 2
await expect(driver.component).toContainText("Item 3");
});
test("scrollToId method works", async ({ initTestBed, createListDriver, page }) => {
await initTestBed(`
<List id="testList" idKey="id" data="{[
{id: 'item-1', name: 'First Item'},
{id: 'item-target', name: 'Target Item'},
{id: 'item-3', name: 'Third Item'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Use API to scroll to specific ID
await page.evaluate(() => {
const list = (window as any).testList;
if (list?.scrollToId) {
list.scrollToId("item-target");
}
});
// Should show target item
await expect(driver.component).toContainText("Target Item");
});
test("shows loading state when loading is true and no data", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`<List loading="true"/>`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
// Check for loading state using the driver method
const isLoading = await driver.isLoading();
expect(isLoading).toBe(true);
});
test("hides loading state when data is provided", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List loading="true" data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Item 1");
const isLoading = await driver.isLoading();
expect(isLoading).toBe(false);
});
test("respects limit property", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
limit="2"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 2");
await expect(driver.component).not.toContainText("Item 3");
// Note: The visible item count may include virtualization elements
// so we verify content rather than exact DOM count
});
test("shows all items when no limit specified", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
const texts = await driver.getVisibleItemTexts();
expect(texts.some((text) => text?.includes("Item 1"))).toBe(true);
expect(texts.some((text) => text?.includes("Item 2"))).toBe(true);
expect(texts.some((text) => text?.includes("Item 3"))).toBe(true);
});
test("$item provides access to current item", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[{id: 1, name: 'Apple', color: 'red'}]}">
<Text>{$item.name} is {$item.color}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple is red");
});
test("$itemIndex provides zero-based index", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{['A', 'B', 'C']}">
<Text>Item {$itemIndex}: {$item}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Item 0: A");
await expect(driver.component).toContainText("Item 1: B");
await expect(driver.component).toContainText("Item 2: C");
});
test("$isFirst identifies first item", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{['A', 'B', 'C']}">
<Text>{$item}{$isFirst ? ' (First)' : ''}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("A (First)");
await expect(driver.component).toContainText("B");
await expect(driver.component).not.toContainText("B (First)");
});
test("$isLast identifies last item", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{['A', 'B', 'C']}">
<Text>{$item}{$isLast ? ' (Last)' : ''}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("C (Last)");
await expect(driver.component).toContainText("B");
await expect(driver.component).not.toContainText("B (Last)");
});
test("uses children as itemTemplate", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[{id: 1, name: 'Apple'}]}">
<HStack>
<Text>{$item.name}</Text>
<Text>ID: {$item.id}</Text>
</HStack>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("ID: 1");
});
test("supports explicit itemTemplate property", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[{id: 1, name: 'Apple'}]}">
<property name="itemTemplate">
<VStack>
<Text variant="strong">{$item.name}</Text>
<Text>Item #{$item.id}</Text>
</VStack>
</property>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Item #1");
});
test("applies border collapse when borderCollapse is true", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
borderCollapse="true"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'}
]}">
<Card>
<Text>{$item.name}</Text>
</Card>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 2");
await expect(driver.component).toContainText("Item 3");
});
test("disables border collapse when borderCollapse is false", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
borderCollapse="false"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'}
]}">
<Card>
<Text>{$item.name}</Text>
</Card>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 2");
});
test("supports scrollAnchor property", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
scrollAnchor="bottom"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should render with scroll anchor
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 3");
});
test("handles different scrollAnchor values", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
scrollAnchor="top"
data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
});
test("handles empty data with default display", async ({ initTestBed, createListDriver }) => {
await initTestBed(`<List data="{[]}"/>`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
expect(await driver.isEmpty()).toBe(true);
});
test("shows custom empty list template", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[]}">
<property name="emptyListTemplate">
<Text>No items found!</Text>
</property>
</List>
`);
const driver = await createListDriver();
await expect(driver.emptyState).toBeVisible();
await expect(driver.component).toContainText("No items found!");
});
test("fires onRequestFetchPrevPage event", async ({ initTestBed, createListDriver }) => {
const { testStateDriver } = await initTestBed(`
<List
onRequestFetchPrevPage="testState = 'prev-page-requested'"
data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should be visible
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
// Note: The pagination events are triggered internally by scrolling behavior
// This test verifies the event handler is properly wired
await expect.poll(testStateDriver.testState).toEqual(null);
});
test("fires onRequestFetchNextPage event", async ({ initTestBed, createListDriver }) => {
const { testStateDriver } = await initTestBed(`
<List
onRequestFetchNextPage="testState = 'next-page-requested'"
data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should be visible
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
// Note: The pagination events are triggered internally by scrolling behavior
// This test verifies the event handler is properly wired
await expect.poll(testStateDriver.testState).toEqual(null);
});
});
// =============================================================================
// ACCESSIBILITY TESTS
// =============================================================================
test.describe("Accessibility", () => {
test("component is keyboard accessible", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should be visible and focusable
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
});
test("provides accessible structure for screen readers", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'First Item'},
{id: 2, name: 'Second Item'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Should have accessible content and structure
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("First Item");
await expect(driver.component).toContainText("Second Item");
});
test("handles keyboard navigation appropriately", async ({
initTestBed,
createListDriver,
page,
}) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should be visible and respond to keyboard events
await expect(driver.component).toBeVisible();
// Try keyboard navigation (may not focus the container itself)
await driver.component.press("ArrowDown");
await expect(driver.component).toBeVisible();
});
});
// =============================================================================
// THEME VARIABLE TESTS
// =============================================================================
test.describe("Theme Variables", () => {
test("component has no custom theme variables defined", async ({
initTestBed,
createListDriver,
}) => {
// List component has no custom theme variables ($themeVars: () in SCSS)
// This test documents that the component renders correctly without custom themes
await initTestBed(`
<List data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
});
});
// =============================================================================
// OTHER EDGE CASE TESTS
// =============================================================================
test.describe("Other Edge Cases", () => {
test("handles null and undefined data gracefully", async ({ initTestBed, createListDriver }) => {
await initTestBed(`<List/>`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
});
test("handles special characters in data", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'Test with émojis 🚀 and symbols &'},
{id: 2, name: '中文测试'},
{id: 3, name: '👨👩👧👦 Family emoji'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Test with émojis 🚀 and symbols");
await expect(driver.component).toContainText("中文测试");
await expect(driver.component).toContainText("👨👩👧👦 Family emoji");
});
test("handles invalid props gracefully", async ({ initTestBed, page }) => {
await initTestBed(`<List invalidProp="invalid" data="{[{id: 1, name: 'Item'}]}"/>`);
const component = page.getByTestId("test-id-component");
const isVisible = await component.isVisible();
if (isVisible) {
await expect(component).toBeVisible();
await expect(component).toContainText("Item");
} else {
expect(isVisible).toBe(false);
}
});
test("handles malformed data gracefully", async ({ initTestBed, createListDriver }) => {
await initTestBed(`<List data="{[{}, null, undefined, {id: 1, name: 'Valid'}]}"/>`);
const driver = await createListDriver();
// Should not crash and should handle valid items
await expect(driver.component).toBeVisible();
});
test("handles very large datasets", async ({ initTestBed, createListDriver }) => {
// Test with multiple items to verify the component can handle larger datasets
await initTestBed(`
<List data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'},
{id: 3, name: 'Item 3'},
{id: 4, name: 'Item 4'},
{id: 5, name: 'Item 5'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 5");
const itemCount = await driver.getVisibleItemCount();
// Accept that the count might include additional elements
expect(itemCount).toBeGreaterThanOrEqual(5);
});
test("handles dynamic data updates", async ({ initTestBed, createListDriver }) => {
// Test that component properly handles data binding patterns
await initTestBed(`
<List data="{[{id: 1, name: 'Test Item'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Test Item");
// Verify the component handles the data binding correctly
const itemCount = await driver.getVisibleItemCount();
expect(itemCount).toBeGreaterThanOrEqual(1);
});
test("handles boolean properties correctly", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
loading="false"
hideEmptyGroups="true"
groupsInitiallyExpanded="false"
borderCollapse="false"
data="{[{id: 1, name: 'Test Item'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Test Item");
});
test("handles string number properties", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
limit="5"
data="{[{id: 1, name: 'Test'}, {id: 2, name: 'Item'}]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Test");
await expect(driver.component).toContainText("Item");
});
test("handles nested object data", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, user: {name: 'John', details: {age: 30}}},
{id: 2, user: {name: 'Jane', details: {age: 25}}}
]}">
<Text>{$item.user.name} ({$item.user.details.age})</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("John (30)");
await expect(driver.component).toContainText("Jane (25)");
});
test("handles array data in items", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'User 1', tags: ['admin', 'active']},
{id: 2, name: 'User 2', tags: ['user', 'inactive']}
]}">
<Text>{$item.name}: {$item.tags.join(', ')}</Text>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("User 1: admin, active");
await expect(driver.component).toContainText("User 2: user, inactive");
});
test("works correctly in VStack layout", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<VStack>
<Text>Header</Text>
<List data="{[{id: 1, name: 'Item 1'}]}">
<Text>{$item.name}</Text>
</List>
<Text>Footer</Text>
</VStack>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
});
test("integrates with Form components", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<Form>
<FormItem label="Items">
<List data="{[{id: 1, name: 'Form Item'}]}">
<Text>{$item.name}</Text>
</List>
</FormItem>
</Form>
`);
const driver = await createListDriver();
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Form Item");
});
test("supports nested components", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[
{id: 1, name: 'Item 1', details: 'Detail A'},
{id: 2, name: 'Item 2', details: 'Detail B'}
]}">
<Card>
<VStack>
<Text variant="strong">{$item.name}</Text>
<Text>{$item.details}</Text>
</VStack>
</Card>
</List>
`);
const driver = await createListDriver();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Detail A");
await expect(driver.component).toContainText("Item 2");
await expect(driver.component).toContainText("Detail B");
});
test("no grouping if groupBy set to nonexistent attribute", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
groupBy="nonexistentField"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Should still render items, but without grouping
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Carrot");
});
test("orderBy sorts items by specified field", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
orderBy="name"
data="{[
{id: 1, name: 'Zebra'},
{id: 2, name: 'Apple'},
{id: 3, name: 'Banana'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Verify items are present (specific sort order may vary by implementation)
await expect(driver.component).toContainText("Apple");
await expect(driver.component).toContainText("Banana");
await expect(driver.component).toContainText("Zebra");
});
test("availableGroups filters displayed groups", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
groupBy="category"
availableGroups="{['fruit', 'dairy']}"
data="{[
{id: 1, name: 'Apple', category: 'fruit'},
{id: 2, name: 'Carrot', category: 'vegetable'},
{id: 3, name: 'Milk', category: 'dairy'}
]}">
<property name="groupHeaderTemplate">
<Text>Group: {$group.key}</Text>
</property>
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Should show allowed groups
await expect(driver.component).toContainText("Group: fruit");
await expect(driver.component).toContainText("Apple");
// Note: Implementation may still show items from filtered groups
const hasVegetableGroup =
(await driver.component.textContent())?.includes("Group: vegetable") ?? false;
if (!hasVegetableGroup) {
// This documents expected behavior - vegetable group header should be filtered
console.log("availableGroups correctly filters group headers");
}
});
test("idKey set to nonexistent attribute handles gracefully", async ({
initTestBed,
createListDriver,
}) => {
await initTestBed(`
<List
idKey="nonexistentKey"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Should still render items even with invalid idKey
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 2");
});
});
test("scrollAnchor scrolls to top", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}" height="100px" scrollAnchor="top">
<H2 value="Item {$itemIndex + 1}" backgroundColor="" />
</List>
`);
const driver = await createListDriver();
// Should still render items even with invalid idKey
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
await expect(driver.component).toContainText("Item 2");
await expect(driver.component).not.toContainText("Item 9");
await expect(driver.component).not.toContainText("Item 10");
});
test("scrollAnchor scrolls to bottom", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List data="{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}" height="100px" scrollAnchor="bottom">
<H2 value="Item {$itemIndex + 1}" backgroundColor="" />
</List>
`);
const driver = await createListDriver();
// Should still render items even with invalid idKey
await expect(driver.component).toBeVisible();
await expect(driver.component).not.toContainText("Item 2");
await expect(driver.component).not.toContainText("Item 3");
await expect(driver.component).toContainText("Item 9");
await expect(driver.component).toContainText("Item 10");
});
test("pageInfo enables pagination", async ({ initTestBed, createListDriver }) => {
await initTestBed(`
<List
pageInfo="page: 1"
data="{[
{id: 1, name: 'Item 1'},
{id: 2, name: 'Item 2'}
]}">
<Text>{$item.name}</Text>
</List>
`);
const driver = await createListDriver();
// Component should render with pagination
await expect(driver.component).toBeVisible();
await expect(driver.component).toContainText("Item 1");
});
```
--------------------------------------------------------------------------------
/xmlui/conventions/component-qa-checklist.md:
--------------------------------------------------------------------------------
```markdown
# XMLUI Component QA Checklist
This document provides a comprehensive checklist for ensuring XMLUI components follow established conventions and best practices. Use this with GitHub Copilot to verify component compliance.
## 📋 Quick Reference
**Component Location**: XMLUI components are located in the `xmlui/src/components` folder.
**Component Status**: Use this checklist to verify component compliance before release.
**Usage with Copilot**: Reference this document when asking Copilot to review or create XMLUI components.
## ⚠️ Component Review Scope
**Skip HTML Tag Components**: HTML tag wrapper components in `HtmlTags.tsx` are marked as deprecated and scheduled for removal. **Skip these components during routine reviews** unless explicitly requested. Focus reviews on:
- Core XMLUI components (Avatar, Button, Card, etc.)
- Form components (TextBox, Checkbox, Select, etc.)
- Layout components (Stack, App, Pages, etc.)
- Advanced components (Charts, DatePicker, etc.)
**Rationale**: HTML tag components are temporary solutions being phased out in favor of semantic HTML and dedicated XMLUI components.
---
## 🏗️ Component Structure
### ✅ File Organization Patterns
#### Dual-File Pattern (Recommended)
- [ ] **Native Component** (`ComponentNative.tsx`)
- [ ] Uses `forwardRef` pattern
- [ ] Contains pure React implementation
- [ ] Defines `Props` type interface
- [ ] Exports `defaultProps` object
- [ ] Implements actual rendering logic
- [ ] No XMLUI-specific dependencies
- [ ] **Renderer Component** (`Component.tsx`)
- [ ] Imports from `ComponentNative.tsx`
- [ ] Creates metadata with `createMetadata`
- [ ] Registers with `createComponentRenderer`
- [ ] Defines theme variables
- [ ] Maps XMLUI props to native props
#### Single-File Pattern (Alternative)
- [ ] **Combined Component** (`Component.tsx`)
- [ ] Contains both React implementation and XMLUI renderer
- [ ] Uses `createMetadata` for documentation
- [ ] Registers with `createComponentRenderer`
- [ ] Suitable for simple components or compositions
### ✅ File Naming Conventions
- [ ] Component folder matches component name (PascalCase)
- [ ] Native file: `ComponentName.tsx` or `ComponentNameNative.tsx`
- [ ] Renderer file: `ComponentName.tsx`
- [ ] Styles file: `ComponentName.module.scss`
- [ ] Test file: `ComponentName.spec.ts`
---
## 🎯 Component Implementation
### ✅ Native Component Requirements
#### forwardRef Pattern
- [ ] Uses `forwardRef` with proper typing
- [ ] Ref type is `Ref<any>` or specific HTML element type
- [ ] Component function has descriptive name matching component
```typescript
// ✅ Good
export const ComponentName = forwardRef(function ComponentName(
{ prop1, prop2, ...rest }: Props,
ref: Ref<HTMLDivElement>
) {
// Implementation
});
// ❌ Bad - anonymous function
export const ComponentName = forwardRef((props, ref) => {
// Implementation
});
```
#### Props and Default Values
- [ ] `Props` type interface is defined
- [ ] `defaultProps` object is exported
- [ ] All props have proper TypeScript types
- [ ] Optional props use `?` syntax
- [ ] Default values are referenced in metadata
```typescript
// ✅ Good
type Props = {
size?: string;
name?: string;
onClick?: (event: React.MouseEvent) => void;
style?: CSSProperties;
};
export const defaultProps: Pick<Props, 'size'> = {
size: "sm",
};
```
#### Memoization
- [ ] Component wrapped with `memo` for performance
- [ ] Expensive calculations use `useMemo`
- [ ] Event handlers use `useCallback` when appropriate
```typescript
// ✅ Good
export const ComponentName = memo(forwardRef(function ComponentName(props, ref) {
const expensiveValue = useMemo(() => calculateValue(props.data), [props.data]);
// Implementation
}));
```
### ✅ React Hooks Rules and Patterns
#### Hook Usage Rules (CRITICAL)
- [ ] **Only call hooks at the top level** - Never inside loops, conditions, or nested functions
- [ ] **Only call hooks from React functions** - Components or custom hooks only
- [ ] **Custom hooks start with "use"** - Follow naming convention for custom hooks
- [ ] **Hook calls are consistent** - Same hooks called in same order on every render
```typescript
// ✅ Good
function ComponentName() {
const [value, setValue] = useState(initialValue);
const [loading, setLoading] = useState(false);
useEffect(() => {
// Effect logic
}, []);
// Component logic
}
// ❌ Bad - conditional hook call
function ComponentName({ showFeature }) {
if (showFeature) {
const [value, setValue] = useState(initialValue); // ❌ Conditional hook
}
// Component logic
}
```
#### useState Patterns
- [ ] State initialized with proper default values
- [ ] State updates use functional updates for dependent changes
- [ ] Multiple related state values are grouped when appropriate
- [ ] State is not mutated directly
```typescript
// ✅ Good
const [count, setCount] = useState(0);
const [user, setUser] = useState({ name: '', email: '' });
// Functional update
setCount(prevCount => prevCount + 1);
// Object update (new object)
setUser(prevUser => ({ ...prevUser, name: 'New Name' }));
// ❌ Bad - mutating state directly
user.name = 'New Name'; // ❌ Direct mutation
setUser(user); // ❌ Same reference
```
#### useEffect Patterns
- [ ] Effect cleanup functions provided when needed
- [ ] Dependencies array is complete and accurate
- [ ] Effects are split by concern (separate effects for different purposes)
- [ ] Avoid infinite loops with proper dependency management
```typescript
// ✅ Good
useEffect(() => {
const subscription = subscribe(something);
return () => subscription.unsubscribe(); // Cleanup
}, []);
useEffect(() => {
updateDocument(value);
}, [value]); // Correct dependency
// ❌ Bad - missing cleanup
useEffect(() => {
const interval = setInterval(() => {
// Some logic
}, 1000);
// ❌ Missing cleanup
}, []);
// ❌ Bad - missing dependency
useEffect(() => {
updateDocument(value);
}, []); // ❌ Missing 'value' dependency
```
#### useCallback and useMemo Patterns
- [ ] `useCallback` used for event handlers passed to child components
- [ ] `useMemo` used for expensive computations
- [ ] Dependencies are properly specified
- [ ] Not overused (only when needed for performance)
```typescript
// ✅ Good
const handleClick = useCallback((event) => {
onClick(event, value);
}, [onClick, value]);
const expensiveValue = useMemo(() => {
return heavyComputation(data);
}, [data]);
// ❌ Bad - unnecessary useCallback
const handleClick = useCallback(() => {
console.log('clicked');
}, []); // ❌ No dependencies needed for static function
```
#### Custom Hook Patterns
- [ ] Custom hooks start with "use" prefix
- [ ] Custom hooks encapsulate related logic
- [ ] Custom hooks return consistent interface
- [ ] Custom hooks follow same rules as built-in hooks
```typescript
// ✅ Good
function useCounter(initialValue = 0) {
const [count, setCount] = useState(initialValue);
const increment = useCallback(() => {
setCount(prev => prev + 1);
}, []);
const decrement = useCallback(() => {
setCount(prev => prev - 1);
}, []);
return { count, increment, decrement };
}
// ❌ Bad - doesn't start with "use"
function counter(initialValue = 0) { // ❌ Wrong naming
// Hook logic
}
```
#### Context and useContext Patterns
- [ ] Context providers are placed at appropriate levels
- [ ] Context values are memoized to prevent unnecessary re-renders
- [ ] Custom hooks provide context access
- [ ] Context is split by concern when appropriate
```typescript
// ✅ Good
const ThemeContext = createContext();
const ThemeProvider = ({ children }) => {
const [theme, setTheme] = useState('light');
const value = useMemo(() => ({
theme,
setTheme
}), [theme]);
return (
<ThemeContext.Provider value={value}>
{children}
</ThemeContext.Provider>
);
};
// Custom hook for context access
function useTheme() {
const context = useContext(ThemeContext);
if (!context) {
throw new Error('useTheme must be used within ThemeProvider');
}
return context;
}
```
### ✅ Accessibility Requirements
#### ARIA Attributes
- [ ] Proper `aria-label` for screen readers
- [ ] `role` attribute when semantic HTML isn't sufficient
- [ ] `aria-disabled` for disabled states
- [ ] `aria-expanded` for expandable components
#### Keyboard Navigation
- [ ] Interactive elements are focusable (`tabIndex={0}`)
- [ ] Non-interactive elements are not focusable
- [ ] Enter and Space keys trigger actions
- [ ] Escape key closes modals/dropdowns
- [ ] Arrow keys for navigation where appropriate
```typescript
// ✅ Good
const handleKeyDown = (event: React.KeyboardEvent) => {
if (onClick && (event.key === 'Enter' || event.key === ' ')) {
event.preventDefault();
onClick(event as any);
}
};
return (
<div
role="button"
aria-label={altText}
tabIndex={onClick ? 0 : undefined}
onKeyDown={handleKeyDown}
>
{content}
</div>
);
```
#### Focus Management
- [ ] Focus states are visible
- [ ] Focus is properly managed in modal dialogs
- [ ] Focus returns to trigger element when closing
- [ ] Skip links provided for complex navigation
### ✅ Event Handling
#### Event Declaration
- [ ] Events declared in component metadata
- [ ] Event handlers properly typed
- [ ] Event names follow convention (camelCase)
#### Event Implementation
- [ ] Events connected via `lookupEventHandler`
- [ ] Event handlers are optional
- [ ] Proper event object passed to handlers
```typescript
// ✅ Good - In renderer
onClick={lookupEventHandler("click")}
// ✅ Good - In native component
onClick?: (event: React.MouseEvent) => void;
```
#### Renderer Function Patterns
- [ ] **No React hooks in renderer functions** (CRITICAL)
- [ ] Renderer functions only contain JSX mapping logic
- [ ] React hooks are used only in React components
- [ ] Complex logic wrapped in React components when hooks needed
```typescript
// ✅ Good - No hooks in renderer
export const componentRenderer = createComponentRenderer(
COMP,
ComponentMd,
({ node, extractValue, lookupEventHandler, layoutCss }) => {
return (
<ComponentNative
prop1={extractValue(node.props.prop1)}
prop2={extractValue(node.props.prop2)}
onClick={lookupEventHandler("click")}
style={layoutCss}
/>
);
},
);
// ✅ Good - Use React component wrapper when hooks needed
const ComponentWithState = ({ initialValue, ...props }) => {
const [state, setState] = useState(initialValue);
useEffect(() => {
// Effect logic here
}, []);
return <ComponentNative {...props} state={state} />;
};
export const componentRenderer = createComponentRenderer(
COMP,
ComponentMd,
({ node, extractValue, lookupEventHandler, layoutCss }) => {
return (
<ComponentWithState
initialValue={extractValue(node.props.initialValue)}
onClick={lookupEventHandler("click")}
style={layoutCss}
/>
);
},
);
// ❌ Bad - Hooks directly in renderer function
export const componentRenderer = createComponentRenderer(
COMP,
ComponentMd,
({ node, extractValue, lookupEventHandler, layoutCss }) => {
const [state, setState] = useState(); // ❌ Hook in renderer function
useEffect(() => { // ❌ Hook in renderer function
// Effect logic
}, []);
return (
<ComponentNative
prop1={extractValue(node.props.prop1)}
style={layoutCss}
/>
);
},
);
```
### ✅ Common Events
- [ ] `click` for clickable elements
- [ ] `didChange` for value changes
- [ ] `gotFocus` / `lostFocus` for focus events
- [ ] Component-specific events documented
---
## 🎨 Styling and Theming
### ✅ SCSS Module Pattern
- [ ] Component has dedicated SCSS module
- [ ] Styles imported as `styles` object
- [ ] Classes applied using `classnames` library
- [ ] CSS variables follow naming convention
### ✅ Theme Variables
- [ ] Theme variables defined in metadata
- [ ] Variables follow `propertyName-ComponentName` pattern
- [ ] Default theme variables provided
- [ ] Variables parsed with `parseScssVar`
```typescript
// ✅ Good
defaultThemeVars: {
[`borderRadius-${COMP}`]: "4px",
[`boxShadow-${COMP}`]: "inset 0 0 0 1px rgba(4,32,69,0.1)",
[`textColor-${COMP}`]: "$textColor-secondary",
[`backgroundColor-${COMP}`]: "$color-surface-100",
}
```
### ✅ Responsive Design
- [ ] Components adapt to different screen sizes
- [ ] Breakpoints use consistent values
- [ ] Text remains readable at all sizes
- [ ] Touch targets meet minimum size requirements
---
## 📚 Metadata and Documentation
### ✅ Component Metadata
- [ ] `createMetadata` used for documentation
- [ ] Component description is comprehensive
- [ ] All props documented with descriptions
- [ ] Available values listed for constrained props
- [ ] Default values specified
- [ ] Component status indicated (`stable`, `experimental`, etc.)
### ✅ Prop Documentation
- [ ] Each prop has clear description
- [ ] Type information provided
- [ ] Required props marked as `isRequired: true`
- [ ] Available values listed for enums
- [ ] Default values referenced from `defaultProps`
```typescript
// ✅ Good
export const ComponentMd = createMetadata({
status: "stable",
description: "Clear description of component purpose and usage",
props: {
size: {
description: "Controls the display size of the component",
type: "string",
availableValues: ["xs", "sm", "md", "lg"],
defaultValue: defaultProps.size,
},
},
});
```
### ✅ Event Documentation
- [ ] All events documented in metadata
- [ ] Event descriptions explain when triggered
- [ ] Event parameter types specified
---
## 🔄 State Management
### ✅ Internal State
- [ ] Component state is properly managed
- [ ] State updates are batched when possible
- [ ] State is synchronized with XMLUI when needed
### ✅ API Registration (Only for Interactive Components)
**Note**: Most UI components correctly have no APIs. Only apply this section to components that need programmatic control (form inputs, data tables, etc.).
- [ ] Component API methods registered with `registerComponentApi` (if component needs APIs)
- [ ] Common methods implemented where applicable: `setValue`, `focus`, `reset`
- [ ] API methods are properly typed
- [ ] API documentation explains when/why to use each method
```typescript
// ✅ Good - Only for components that need programmatic control
useEffect(() => {
registerComponentApi?.({
setValue: (value: string) => {
setInternalValue(value);
updateState?.({ value });
},
focus: () => inputRef.current?.focus(),
});
}, [registerComponentApi, updateState]);
```
### ✅ State Synchronization
- [ ] Internal state synchronized with XMLUI
- [ ] `updateState` called when values change
- [ ] State updates are properly debounced if needed
---
## 🧪 Testing
### ✅ Component Driver
- [ ] Component has dedicated driver class
- [ ] Driver extends `ComponentDriver`
- [ ] Driver provides component-specific methods
- [ ] Driver used in all component tests
### ✅ Test Coverage
- [ ] Basic functionality tests
- [ ] Accessibility tests (REQUIRED)
- [ ] Visual state tests
- [ ] Edge case tests (null, undefined, special characters)
- [ ] Performance tests (memoization, rapid changes)
- [ ] Integration tests (layout contexts)
### ✅ Test Organization
- [ ] Tests grouped by category with section headers
- [ ] Descriptive test names
- [ ] Tests are independent and isolated
- [ ] Tests use proper assertions
---
## 📦 Component Registration
### ✅ Registration Pattern
- [ ] Component registered in `ComponentRegistry`
- [ ] Conditional registration based on environment
- [ ] Component name matches metadata
```typescript
// ✅ Good
if (process.env.VITE_USED_COMPONENTS_ComponentName !== "false") {
this.registerCoreComponent(componentNameComponentRenderer);
}
```
---
## 🚀 Performance
### ✅ Optimization Patterns
- [ ] Component uses `memo` for re-render prevention
- [ ] Expensive calculations are memoized
- [ ] Event handlers are stable references
- [ ] Avoid unnecessary re-renders
- [ ] Hook dependencies are optimized
- [ ] Context values are memoized
### ✅ Hook Performance Best Practices
- [ ] `useCallback` dependencies are minimal and stable
- [ ] `useMemo` is used for expensive computations only
- [ ] Context providers memoize their values
- [ ] Effects are split to minimize re-runs
- [ ] State updates are batched when possible
```typescript
// ✅ Good Hook Performance
const ComponentName = memo(({ items, onItemClick }) => {
// Memoize expensive computation
const processedItems = useMemo(() => {
return items.map(item => expensiveProcessing(item));
}, [items]);
// Stable event handler
const handleItemClick = useCallback((item) => {
onItemClick(item);
}, [onItemClick]);
// Split effects by concern
useEffect(() => {
trackPageView();
}, []); // Only on mount
useEffect(() => {
updateItems(processedItems);
}, [processedItems]); // Only when items change
return (
<div>
{processedItems.map(item => (
<Item key={item.id} data={item} onClick={handleItemClick} />
))}
</div>
);
});
```
### ✅ Memory Management
- [ ] Event listeners properly cleaned up
- [ ] Subscriptions disposed in cleanup
- [ ] No memory leaks in component lifecycle
- [ ] Effect cleanup functions implemented
- [ ] Timers and intervals cleared
- [ ] AbortController used for cancellable requests
```typescript
// ✅ Good Memory Management
function ComponentName() {
useEffect(() => {
// Event listener cleanup
const handleResize = () => updateLayout();
window.addEventListener('resize', handleResize);
return () => window.removeEventListener('resize', handleResize);
}, []);
useEffect(() => {
// Timer cleanup
const timer = setTimeout(() => performAction(), 1000);
return () => clearTimeout(timer);
}, []);
useEffect(() => {
// Subscription cleanup
const subscription = dataService.subscribe(handleData);
return () => subscription.unsubscribe();
}, []);
useEffect(() => {
// Request cancellation
const controller = new AbortController();
fetchData({ signal: controller.signal })
.then(handleData)
.catch(error => {
if (error.name !== 'AbortError') {
handleError(error);
}
});
return () => controller.abort();
}, []);
}
```
---
## 📊 Component Status and Lifecycle
### ✅ Status Declaration
- [ ] Component has explicit status in metadata (`status: "experimental" | "stable" | "deprecated"`)
- [ ] Status is appropriate for component maturity level
- [ ] Breaking changes are documented in status transitions
- [ ] Experimental components have clear graduation criteria
- [ ] Deprecated components include migration guidance
### ✅ Documentation Requirements by Status
- [ ] **Experimental**: Clear warnings about API instability
- [ ] **Stable**: Comprehensive documentation and examples
- [ ] **Deprecated**: Deprecation timeline and alternatives
### ⚠️ Special Handling for Deprecated Components
- [ ] **HTML Tag Components**: All components in `HtmlTags.tsx` are deprecated
- [ ] Skip during routine component reviews
- [ ] Do not enhance or extend these components
- [ ] Direct new development to semantic HTML or dedicated XMLUI components
- [ ] Include migration guidance in documentation
**Example:**
```typescript
export const ComponentMd = createMetadata({
status: "stable", // or "experimental" | "deprecated"
description: "Component description with status context...",
// ... rest of metadata
});
```
---
## 🎨 Template and Customization Standards
### ✅ Template Property Patterns
- [ ] Template properties follow `*Template` suffix naming convention
- [ ] **Template properties use `dComponent()` metadata helper** (CRITICAL)
- [ ] Template documentation includes expected data structure
- [ ] Context variables are documented (e.g., `$item`, `$index`, `$itemContext`)
- [ ] Template examples are provided in component documentation
- [ ] Template fallbacks are properly handled in implementation
### ✅ Template Import Requirements
- [ ] `dComponent` imported from `../metadata-helpers` when templates are used
- [ ] Import statement includes `dComponent` alongside other helpers
```typescript
// ✅ Good - Import dComponent when using templates
import {
createMetadata,
d,
dComponent, // Required for template properties
dEnabled,
dLabel
} from "../metadata-helpers";
```
### ✅ Template Property Documentation Standards
- [ ] **All template properties use `dComponent()` consistently** (avoid `d()` for templates)
- [ ] Properties requiring additional flags use spread operator pattern
- [ ] Context variables are explicitly documented in descriptions
- [ ] Internal templates are marked appropriately
**✅ Correct Template Property Patterns:**
```typescript
props: {
// Standard template property
optionTemplate: dComponent(
`Template for rendering dropdown options. Context: $item (option data).`
),
// Empty state template
emptyListTemplate: dComponent(
`Template shown when no options are available. No additional context.`
),
// Template with additional properties
tabTemplate: {
...dComponent(
`Template for clickable tab area. Context: $tab (tab data).`
),
isInternal: true,
},
// Template with complex context
valueTemplate: dComponent(
`Template for selected values in multi-select. Context: $item (selected item), $itemContext ({ removeItem }).`
),
}
```
**❌ Incorrect Template Property Patterns:**
```typescript
props: {
// ❌ Wrong - using d() instead of dComponent()
emptyListTemplate: d(
"Template for empty state."
),
// ❌ Wrong - plain object instead of dComponent()
tabTemplate: {
description: "Template for tabs.",
valueType: "ComponentDef",
isInternal: true,
},
// ❌ Wrong - missing context variable documentation
optionTemplate: dComponent(
`Template for options.` // Missing $item context info
),
}
```
### ✅ Template Implementation
- [ ] Templates receive appropriate context data
- [ ] Template rendering uses `MemoizedItem` for performance
- [ ] Template components handle missing data gracefully
- [ ] Custom templates maintain accessibility standards
- [ ] Context variables are properly passed to templates
**Template Usage Pattern:**
```typescript
// ✅ Good - Template rendering with context
valueRenderer={
node.props.valueTemplate
? (item, removeItem) => {
return (
<MemoizedItem
contextVars={{
$item: item,
$itemContext: { removeItem },
}}
node={node.props.valueTemplate}
item={item}
renderChild={renderChild}
/>
);
}
: undefined
}
```
### ✅ Template Property Compliance Checklist
- [ ] **No template properties use `d()` helper** (should be `dComponent()`)
- [ ] **No template properties use plain objects** (should use `dComponent()`)
- [ ] **All template imports include `dComponent`** from metadata-helpers
- [ ] **Context variables documented** in all template descriptions
- [ ] **Spread operator used** for templates with additional properties
- [ ] **Template names end with `Template`** suffix consistently
---
## 🔧 Wrapper Component Guidelines
### ✅ Wrapper Component Standards
- [ ] Simple re-exports are justified (avoid unnecessary wrappers)
- [ ] Wrapper components maintain proper TypeScript exports
- [ ] Wrapper components preserve original component metadata
- [ ] Complex wrappers use proper `createComponentRenderer` pattern
- [ ] Wrapper purpose is clearly documented
### ✅ When to Use Wrappers
- [ ] **Valid**: Legacy compatibility layers
- [ ] **Valid**: Component composition with added functionality
- [ ] **Invalid**: Simple re-exports without added value
- [ ] **Invalid**: Breaking TypeScript type chains
---
## 📊 Data Component Standards
### ✅ Data Fetching Components
- [ ] Loading states are implemented with proper UI feedback
- [ ] Error handling provides meaningful user feedback
- [ ] Data components support polling/refresh patterns when appropriate
- [ ] Result selectors are documented with usage examples
- [ ] Caching strategies are clearly defined and implemented
- [ ] Data transformation patterns are consistent across components
### ✅ Data Flow Patterns
- [ ] Components follow unidirectional data flow
- [ ] Data mutations are handled through proper callbacks
- [ ] Component state is minimized in favor of props
- [ ] Data validation occurs at appropriate boundaries
**Example:**
```typescript
props: {
resultSelector: d(
"Extract subset of response data. Example: 'data.items' for nested arrays."
),
pollIntervalInSeconds: d(
"Polling interval for real-time updates. Set to 0 to disable polling."
),
}
```
---
## 🌐 API and Data Manipulation Standards
### ✅ API Component Requirements
- [ ] **HTTP methods handled comprehensively** (GET, POST, PUT, DELETE, PATCH)
- [ ] **Request/response lifecycle documented** with clear event patterns
- [ ] **Confirmation dialogs supported** for destructive operations
- [ ] **Optimistic updates implemented** where appropriate
- [ ] **Error handling comprehensive** with user-friendly messages
- [ ] **Loading states managed** with proper UI feedback
### ✅ API Component Event Lifecycle
- [ ] **beforeRequest**: Validation and preparation phase
- [ ] **progress**: Loading state and intermediate updates
- [ ] **success**: Successful completion handling
- [ ] **error**: Error handling and user notification
**Example:**
```typescript
export const APICallMd = createMetadata({
description: "API component for data manipulation operations",
events: {
beforeRequest: d("Fired before request execution for validation"),
progress: d("Fired during request processing for progress indication"),
success: d("Fired on successful completion with response data"),
error: d("Fired on error with error details for user feedback"),
},
// ... rest of metadata
});
```
### ✅ Data Fetching and Caching
- [ ] **Polling patterns supported** with configurable intervals
- [ ] **Cache invalidation strategies** clearly defined
- [ ] **Result selectors documented** with usage examples
- [ ] **Query parameter handling** comprehensive
- [ ] **Data transformation patterns** consistent
---
## 📊 Chart and Visualization Standards
### ✅ Chart Component Requirements
- [ ] **Data visualization accessibility** for screen readers
- [ ] **Responsive chart layouts** for different screen sizes
- [ ] **Consistent data key patterns** across chart types
- [ ] **Comprehensive theming support** following XMLUI standards
- [ ] **Performance optimized** for large datasets
- [ ] **Interactive elements** properly accessible
### ✅ Chart Data Patterns
- [ ] **Data structure documented** with clear examples
- [ ] **Data validation implemented** with proper error handling
- [ ] **Data transformation utilities** available and documented
- [ ] **Color schemes accessible** with proper contrast ratios
- [ ] **Animation performance** optimized for smooth interactions
**Example:**
```typescript
export const BarChartMd = createMetadata({
status: "experimental",
description: "Bar chart component for data visualization",
props: {
data: d("Array of objects with consistent data structure"),
dataKeys: d("Keys to extract values - e.g., 'value', 'category'"),
accessibility: d("Screen reader descriptions for chart elements"),
},
// ... chart-specific metadata
});
```
---
## 📝 Rich Content Component Standards
### ✅ Content Processing Requirements
- [ ] **Content sanitization implemented** to prevent XSS attacks
- [ ] **Keyboard navigation support** for rich content areas
- [ ] **Undo/redo functionality** for editor components
- [ ] **Large document performance** optimized with virtualization
- [ ] **Content accessibility standards** followed (WCAG compliance)
- [ ] **Export/import capabilities** documented and tested
### ✅ Editor Component Patterns
- [ ] **Editor state management** follows controlled component patterns
- [ ] **Plugin architecture supported** for extensibility
- [ ] **Content validation** implemented with user feedback
- [ ] **Auto-save functionality** with conflict resolution
- [ ] **Collaborative editing** considerations documented
**Example:**
```typescript
export const MarkdownMd = createMetadata({
description: "Rich markdown content processor with syntax highlighting",
props: {
content: d("Markdown content with security sanitization"),
removeIndents: d("Auto-format content for display consistency"),
showHeadingAnchors: d("Navigation aids for long documents"),
},
// ... content-specific metadata
});
```
---
## 🔌 External Library Integration Standards
### ✅ Integration Requirements
- [ ] **External dependencies documented** with version compatibility
- [ ] **Library integrations follow XMLUI patterns** consistently
- [ ] **Theme consistency maintained** across external components
- [ ] **Library updates versioned and tested** systematically
- [ ] **Integration error handling** graceful with fallbacks
- [ ] **Bundle size impact** documented and minimized
### ✅ Third-Party Component Wrapper Patterns
- [ ] **Wrapper components use createComponentRenderer** when possible
- [ ] **External component props mapped** to XMLUI conventions
- [ ] **Error boundaries implemented** for external component failures
- [ ] **Performance considerations** documented for heavy libraries
- [ ] **Alternative implementations** considered for critical features
**Example:**
```typescript
// TipTap editor integration
export const TableEditorMd = createMetadata({
description: "Rich table editor using TipTap library",
externalDependencies: ["@tiptap/react", "@tiptap/starter-kit"],
props: {
// Map external props to XMLUI patterns
},
// ... integration metadata
});
```
---
## ⚛️ React-Only Component Guidelines
### ✅ Non-XMLUI Component Standards
- [ ] **Pure React components justified** with clear reasoning
- [ ] **Theme integration maintained** despite bypassing XMLUI
- [ ] **Documentation explains** why XMLUI patterns are not used
- [ ] **React best practices followed** consistently
- [ ] **Components marked clearly** as non-XMLUI in documentation
### ✅ When React-Only is Acceptable
- [ ] **Complex state management** not suited to XMLUI patterns
- [ ] **Heavy external library integration** requiring direct React usage
- [ ] **Performance-critical components** needing direct React optimizations
- [ ] **Legacy integration** requiring specific React patterns
**Example:**
```typescript
// ProfileMenu - React-only component
export const ProfileMenu = ({ loggedInUser }: Props) => {
// Direct React implementation for complex dropdown logic
// Note: This bypasses XMLUI createComponentRenderer pattern
// Justification: Complex user state management and theme switching
return (
<DropdownMenu triggerTemplate={<Avatar {...props} />}>
{/* Complex menu logic */}
</DropdownMenu>
);
};
```
### ❌ React-Only Antipatterns
- [ ] **Avoid**: Creating React-only components when XMLUI patterns would work
- [ ] **Avoid**: Bypassing theme system without justification
- [ ] **Avoid**: Missing documentation for architecture decisions
- [ ] **Avoid**: Inconsistent patterns within the same feature area
---
## 📏 Component File Size and Modularization
### ✅ File Size Management
- [ ] **Individual component files under 500 lines** (excluding generated content)
- [ ] **Large component collections modularized** by logical groups
- [ ] **Utility files separated** from component definitions
- [ ] **Generated content uses build-time generation** when possible
- [ ] **Monolithic files identified** and refactoring planned
### ✅ Modularization Strategies
- [ ] **Related components grouped** in logical folders
- [ ] **Shared utilities extracted** to common modules
- [ ] **Registration files modular** to avoid massive imports
- [ ] **Component dependencies minimized** through proper separation
**Example - HtmlTags Modularization:**
```typescript
// Instead of 2,500-line HtmlTags.tsx, create:
// components/HtmlTags/TextTags.tsx
// components/HtmlTags/MediaTags.tsx
// components/HtmlTags/FormTags.tsx
// components/HtmlTags/index.ts (barrel export)
export const textTagRenderers = {
htmlATagRenderer,
htmlPTagRenderer,
htmlSpanTagRenderer,
// ... text-related tags
};
export const mediaTagRenderers = {
htmlImgTagRenderer,
htmlVideoTagRenderer,
htmlAudioTagRenderer,
// ... media-related tags
};
```
### ❌ File Size Antipatterns
- [ ] **Avoid**: Single files exceeding 500 lines without justification
- [ ] **Avoid**: Mixing unrelated functionality in single files
- [ ] **Avoid**: Generated content committed without build process
- [ ] **Avoid**: Monolithic registration files
---
## 🧩 Child Component and Sub-Component Patterns
### ✅ Child Component Standards
- [ ] **Child components use dedicated files** when exceeding 50 lines
- [ ] **Consistent naming pattern** (ParentChild format)
- [ ] **Parent relationship documented** in component metadata
- [ ] **Independent metadata maintained** for each child component
- [ ] **Parent-child context passing documented** with examples
### ✅ Sub-Component Architecture
- [ ] **Child component registration** handled properly with parent
- [ ] **Shared styling and theming** consistent between parent and children
- [ ] **Child component lifecycle** managed by parent appropriately
- [ ] **Context boundaries clear** between parent and child responsibilities
**Example:**
```typescript
// TabItem - Child component for Tabs
export const TabItemMd = createMetadata({
description: "Individual tab within Tabs component",
docFolder: "Tabs", // Groups with parent documentation
parentComponent: "Tabs",
props: {
label: dLabel("Tab header text displayed in tab bar"),
},
});
```
### ❌ Child Component Antipatterns
- [ ] **Avoid**: Inconsistent approaches to parent-child relationships
- [ ] **Avoid**: Large child components inlined in parent files
- [ ] **Avoid**: Missing documentation of parent-child contracts
- [ ] **Avoid**: Tight coupling preventing child component reuse
---
## 📖 Context Variable Documentation
### ✅ Context Variable Standards
- [ ] **All template components document** available context variables
- [ ] **Context variables use `$variable` naming** convention consistently
- [ ] **Variable types and descriptions provided** for all context data
- [ ] **Usage examples included** in component documentation
- [ ] **Context variable scope clearly defined** for nested components
### ✅ Template Context Patterns
- [ ] **Standard context variables** used consistently (`$item`, `$index`, `$value`)
- [ ] **Component-specific context** documented with clear examples
- [ ] **Context data transformation** explained when applicable
- [ ] **Context performance implications** considered for large datasets
**Example:**
```typescript
export const ColumnMd = createMetadata({
description: "Table column with rich context support",
contextVars: {
$item: {
description: "The complete data row object being rendered",
type: "object",
example: "{ id: 1, name: 'John', email: '[email protected]' }",
},
$cell: {
description: "The specific cell value for this column",
type: "any",
example: "'John' (when bindTo='name')",
},
$itemIndex: {
description: "Zero-based row index",
type: "number",
example: "0, 1, 2, ...",
},
$colIndex: {
description: "Zero-based column index",
type: "number",
example: "0, 1, 2, ...",
},
},
// ... rest of metadata
});
```
### ❌ Context Variable Antipatterns
- [ ] **Avoid**: Missing context variable documentation for template components
- [ ] **Avoid**: Inconsistent context variable naming across components
- [ ] **Avoid**: Undocumented context data transformation
- [ ] **Avoid**: Context variables without type information
---
```