This is page 108 of 190. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/%7BimageSrc%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs-swa.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
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.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
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ └── Separator.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
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.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
│ │ ├── staticwebapp.config.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
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── Separator.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.module.scss
│ │ │ ├── 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.tsx
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.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
│ │ │ └── test-padding.xmlui
│ │ ├── 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.json
├── tsdown.config.ts
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/App/App.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import styles from "./App.module.scss";
2 | import drawerStyles from "./Sheet.module.scss";
3 |
4 | import { type ComponentDef } from "../../abstractions/ComponentDefs";
5 | import { createComponentRenderer } from "../../components-core/renderers";
6 | import { parseScssVar } from "../../components-core/theming/themeVars";
7 |
8 | import { createMetadata, dComponent } from "../../components/metadata-helpers";
9 | import { appLayoutMd } from "./AppLayoutContext";
10 | import { App, defaultProps } from "./AppNative";
11 | import type { CSSProperties } from "react";
12 | import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
13 | import type { PageMd } from "../Pages/Pages";
14 | import type { RenderChildFn } from "../../abstractions/RendererDefs";
15 | import { IndexerContext } from "./IndexerContext";
16 | import { createPortal } from "react-dom";
17 | import { useAppContext } from "../../components-core/AppContext";
18 | import { useSearchContextSetIndexing, useSearchContextUpdater } from "./SearchContext";
19 |
20 | // --- Define a structure to represent navigation hierarchy
21 | interface NavHierarchyNode {
22 | type: string;
23 | label: string;
24 | path?: string;
25 | children?: NavHierarchyNode[];
26 | }
27 |
28 | const COMP = "App";
29 |
30 | export const AppMd = createMetadata({
31 | status: "stable",
32 | description:
33 | "The `App` component is the root container that defines your application's overall " +
34 | "structure and layout. It provides a complete UI framework with built-in navigation, " +
35 | "header, footer, and content areas that work together seamlessly.",
36 | props: {
37 | layout: {
38 | description:
39 | `This property sets the layout template of the app. This setting determines the position ` +
40 | `and size of the app parts (such as header, navigation bar, footer, etc.) and the app's ` +
41 | `scroll behavior.`,
42 | availableValues: appLayoutMd,
43 | },
44 | loggedInUser: {
45 | description:
46 | "Stores information about the currently logged-in user. By not defining this property, " +
47 | "you can indicate that no user is logged in.",
48 | valueType: "string",
49 | },
50 | logoTemplate: dComponent("Optional template of the app logo"),
51 | logo: {
52 | description: "Optional logo path",
53 | valueType: "string",
54 | },
55 | "logo-dark": {
56 | description: "Optional logo path in dark tone",
57 | valueType: "string",
58 | },
59 | "logo-light": {
60 | description: "Optional logo path in light tone",
61 | valueType: "string",
62 | },
63 | name: {
64 | description:
65 | "Optional application name (visible in the browser tab). When you do not define " +
66 | "this property, the tab name falls back to the one defined in the app\'s configuration. " +
67 | 'If the name is not configured, "XMLUI App" is displayed in the tab.',
68 | valueType: "string",
69 | },
70 | scrollWholePage: {
71 | description:
72 | `This boolean property specifies whether the whole page should scroll (\`true\`) or just ` +
73 | `the content area (\`false\`). The default value is \`true\`.`,
74 | valueType: "boolean",
75 | defaultValue: defaultProps.scrollWholePage,
76 | },
77 | noScrollbarGutters: {
78 | description:
79 | "This boolean property specifies whether the scrollbar gutters should be hidden.",
80 | valueType: "boolean",
81 | defaultValue: defaultProps.noScrollbarGutters,
82 | },
83 | defaultTone: {
84 | description: 'This property sets the app\'s default tone ("light" or "dark").',
85 | valueType: "string",
86 | defaultValue: defaultProps.defaultTone,
87 | availableValues: ["light", "dark"],
88 | },
89 | defaultTheme: {
90 | description: "This property sets the app's default theme.",
91 | valueType: "string",
92 | defaultValue: defaultProps.defaultTheme,
93 | },
94 | autoDetectTone: {
95 | description:
96 | 'This boolean property enables automatic detection of the system theme preference. ' +
97 | 'When set to true and no defaultTone is specified, the app will automatically use ' +
98 | '"light" or "dark" tone based on the user\'s system theme setting. The app will ' +
99 | 'also respond to changes in the system theme preference.',
100 | valueType: "boolean",
101 | defaultValue: defaultProps.autoDetectTone,
102 | },
103 | },
104 | events: {
105 | ready: {
106 | description: `This event fires when the \`${COMP}\` component finishes rendering on the page.`,
107 | },
108 | messageReceived: {
109 | description: `This event fires when the \`${COMP}\` component receives a message from another window or iframe via the window.postMessage API.`,
110 | },
111 | },
112 | themeVars: { ...parseScssVar(styles.themeVars), ...parseScssVar(drawerStyles.themeVars) },
113 | limitThemeVarsToComponent: true,
114 | themeVarDescriptions: {
115 | "maxWidth-content-App":
116 | "This theme variable defines the maximum width of the main content. If the main " +
117 | "content is broader, the engine adds margins to keep the expected maximum size.",
118 | "boxShadow‑header‑App": "This theme variable sets the shadow of the app's header section.",
119 | "boxShadow‑navPanel‑App":
120 | "This theme variable sets the shadow of the app's navigation panel section " +
121 | "(visible only in vertical layouts).",
122 | "width‑navPanel‑App":
123 | "This theme variable sets the width of the navigation panel when the app is displayed " +
124 | "with one of the vertical layouts.",
125 | },
126 | defaultThemeVars: {
127 | "maxWidth-Drawer": "100%",
128 | [`width-navPanel-${COMP}`]: "$space-64",
129 | [`backgroundColor-navPanel-${COMP}`]: "$backgroundColor",
130 | [`maxWidth-content-${COMP}`]: "$maxWidth-content",
131 | [`maxWidth-${COMP}`]: "$maxWidth-content",
132 | [`boxShadow-header-${COMP}`]: "none",
133 | [`boxShadow-navPanel-${COMP}`]: "none",
134 | [`scroll-padding-block-Pages`]: "$space-4",
135 | [`backgroundColor-content-App`]: "$backgroundColor",
136 | light: {
137 | // --- No light-specific theme vars
138 | },
139 | dark: {
140 | // --- No dark-specific theme vars
141 | },
142 | },
143 | });
144 |
145 |
146 | function AppNode({ node, extractValue, renderChild, className, lookupEventHandler, registerComponentApi }) {
147 | // --- Use ref to track if we've already processed the navigation to avoid duplicates in strict mode
148 | const processedNavRef = useRef(false);
149 |
150 | // --- Memoize the layout type to avoid unnecessary re-extraction
151 | const layoutType = useMemo(
152 | () => extractValue(node.props.layout),
153 | [node.props.layout, extractValue],
154 | );
155 |
156 | // --- Memoize helper functions that are used in multiple places
157 |
158 | // --- Parse a string into hierarchy labels, handling escaped pipe characters
159 | const parseHierarchyLabels = useMemo(() => {
160 | // Cache to hold previously computed results
161 | const cache = new Map<string, string[]>();
162 |
163 | return (labelText: string): string[] => {
164 | // Return cached result if we've seen this input before
165 | if (cache.has(labelText)) {
166 | return cache.get(labelText)!;
167 | }
168 |
169 | const result: string[] = [];
170 | let currentLabel = "";
171 | let escaped = false;
172 |
173 | for (let i = 0; i < labelText.length; i++) {
174 | const char = labelText[i];
175 |
176 | if (escaped) {
177 | // --- If this character was escaped, just add it literally
178 | currentLabel += char;
179 | escaped = false;
180 | } else if (char === "\\") {
181 | // --- Start of an escape sequence
182 | escaped = true;
183 | } else if (char === "|") {
184 | // --- Unescaped pipe indicates hierarchy separator
185 | result.push(currentLabel.trim());
186 | currentLabel = "";
187 | } else {
188 | // --- Regular character
189 | currentLabel += char;
190 | }
191 | }
192 |
193 | // --- Don't forget to add the last segment
194 | if (currentLabel.length > 0) {
195 | result.push(currentLabel.trim());
196 | }
197 |
198 | // Cache the result
199 | cache.set(labelText, result);
200 |
201 | return result;
202 | };
203 | }, []);
204 |
205 | // --- Helper function to check if a label exists in the navigation hierarchy
206 | const labelExistsInHierarchy = useMemo(() => {
207 | // Cache for previously checked labels within a hierarchy
208 | const cache = new Map<string, boolean>();
209 |
210 | return (searchLabel: string, hierarchy: any[]): boolean => {
211 | // Create a cache key (could be improved with a better serialization of hierarchy)
212 | const cacheKey = searchLabel + "_" + hierarchy.length;
213 |
214 | if (cache.has(cacheKey)) {
215 | return cache.get(cacheKey)!;
216 | }
217 |
218 | const result = hierarchy.some((node) => {
219 | if (node.label === searchLabel) {
220 | return true;
221 | }
222 |
223 | if (node.children && node.children.length > 0) {
224 | return labelExistsInHierarchy(searchLabel, node.children);
225 | }
226 |
227 | return false;
228 | });
229 |
230 | cache.set(cacheKey, result);
231 | return result;
232 | };
233 | }, []);
234 |
235 | // --- Helper function to find or create NavGroups in the hierarchy
236 | const findOrCreateNavGroup = useMemo(() => {
237 | return (navItems: any[], groupLabel: string): any => {
238 | // --- Check if a NavGroup with this label already exists
239 | const existingGroup = navItems.find(
240 | (item) => item.type === "NavGroup" && item.props?.label === groupLabel,
241 | );
242 |
243 | if (existingGroup) {
244 | return existingGroup;
245 | }
246 |
247 | // --- Create a new NavGroup and add it to the array
248 | const newGroup = {
249 | type: "NavGroup",
250 | props: {
251 | label: groupLabel,
252 | },
253 | children: [],
254 | };
255 |
256 | navItems.push(newGroup);
257 | return newGroup;
258 | };
259 | }, []);
260 |
261 | const { AppHeader, Footer, NavPanel, Pages, restChildren } = useMemo(() => {
262 | let AppHeader: ComponentDef;
263 | let Footer: ComponentDef;
264 | let NavPanel: ComponentDef;
265 | let Pages: ComponentDef;
266 | const restChildren: any[] = [];
267 | node.children?.forEach((rootChild) => {
268 | let transformedChild = { ...rootChild };
269 | if (rootChild.type === "Theme") {
270 | transformedChild.children = rootChild.children?.filter((child) => {
271 | if (child.type === "AppHeader") {
272 | AppHeader = {
273 | ...rootChild,
274 | children: [child],
275 | };
276 | return false;
277 | } else if (child.type === "Footer") {
278 | Footer = {
279 | ...rootChild,
280 | children: [child],
281 | };
282 | return false;
283 | } else if (child.type === "NavPanel") {
284 | NavPanel = {
285 | ...rootChild,
286 | children: [child],
287 | };
288 | return false;
289 | }
290 | return true;
291 | });
292 | if (!transformedChild.children.length) {
293 | transformedChild = null;
294 | }
295 | }
296 | if (rootChild.type === "AppHeader") {
297 | AppHeader = rootChild;
298 | } else if (rootChild.type === "Footer") {
299 | Footer = rootChild;
300 | } else if (rootChild.type === "NavPanel") {
301 | NavPanel = rootChild;
302 | } else if (rootChild.type === "Pages") {
303 | Pages = rootChild;
304 | restChildren.push(transformedChild);
305 | } else if (transformedChild !== null) {
306 | restChildren.push(transformedChild);
307 | }
308 | });
309 |
310 | // --- Check if there is any extra NavPanel in Pages
311 | const extraNavs = extractNavPanelFromPages(
312 | Pages,
313 | NavPanel,
314 | processedNavRef,
315 | extractValue,
316 | parseHierarchyLabels,
317 | labelExistsInHierarchy,
318 | findOrCreateNavGroup,
319 | );
320 |
321 | // --- If we found extra navigation items
322 | if (extraNavs?.length) {
323 | if (NavPanel) {
324 | // --- Create a new NavPanel with combined children instead of mutating the existing one
325 | NavPanel = {
326 | ...NavPanel,
327 | children: NavPanel.children ? [...NavPanel.children, ...extraNavs] : extraNavs,
328 | };
329 | } else {
330 | // --- Create a new NavPanel component definition if none exists
331 | NavPanel = {
332 | type: "NavPanel",
333 | props: {},
334 | children: extraNavs,
335 | };
336 | }
337 | }
338 |
339 | return {
340 | AppHeader,
341 | Footer,
342 | NavPanel,
343 | Pages,
344 | restChildren,
345 | };
346 | }, [
347 | node.children,
348 | extractValue,
349 | parseHierarchyLabels,
350 | labelExistsInHierarchy,
351 | findOrCreateNavGroup,
352 | ]);
353 |
354 | const applyDefaultContentPadding= !Pages;
355 |
356 | // Extract sticky property from Footer component
357 | const footerSticky = useMemo(() => {
358 | if (!Footer) return true;
359 |
360 | // Check if Footer is wrapped in Theme
361 | let footerNode = Footer;
362 | if (Footer.type === "Theme" && Footer.children?.length > 0) {
363 | footerNode = Footer.children.find((child) => child.type === "Footer");
364 | }
365 |
366 | if (footerNode?.type === "Footer" && footerNode.props?.sticky !== undefined) {
367 | return extractValue.asOptionalBoolean(footerNode.props.sticky, true);
368 | }
369 |
370 | return true;
371 | }, [Footer, extractValue]);
372 |
373 | // --- Memoize all app props to prevent unnecessary re-renders
374 | const appProps = useMemo(
375 | () => ({
376 | scrollWholePage: extractValue.asOptionalBoolean(node.props.scrollWholePage, true),
377 | noScrollbarGutters: extractValue.asOptionalBoolean(node.props.noScrollbarGutters, false),
378 | className,
379 | layout: layoutType,
380 | loggedInUser: extractValue(node.props.loggedInUser),
381 | onReady: lookupEventHandler("ready"),
382 | onMessageReceived: lookupEventHandler("messageReceived"),
383 | name: extractValue(node.props.name),
384 | logo: extractValue(node.props.logo),
385 | logoDark: extractValue(node.props["logo-dark"]),
386 | logoLight: extractValue(node.props["logo-light"]),
387 | defaultTone: extractValue(node.props.defaultTone),
388 | defaultTheme: extractValue(node.props.defaultTheme),
389 | autoDetectTone: extractValue.asOptionalBoolean(node.props.autoDetectTone, false),
390 | applyDefaultContentPadding,
391 | footerSticky,
392 | }),
393 | [
394 | extractValue,
395 | layoutType,
396 | lookupEventHandler,
397 | node.props.loggedInUser,
398 | node.props.noScrollbarGutters,
399 | node.props.scrollWholePage,
400 | node.props.name,
401 | node.props.logo,
402 | node.props["logo-dark"],
403 | node.props["logo-light"],
404 | node.props.defaultTone,
405 | node.props.defaultTheme,
406 | node.props.autoDetectTone,
407 | className,
408 | applyDefaultContentPadding,
409 | footerSticky,
410 | ],
411 | );
412 |
413 | // Memoize the rendered children to prevent unnecessary re-renders
414 | const renderedHeader = useMemo(() => renderChild(AppHeader), [AppHeader, renderChild]);
415 | const renderedFooter = useMemo(() => renderChild(Footer), [Footer, renderChild]);
416 | const renderedNavPanel = useMemo(() => renderChild(NavPanel), [NavPanel, renderChild]);
417 | const renderedContent = useMemo(() => renderChild(restChildren), [restChildren, renderChild]);
418 |
419 | return (
420 | <App
421 | {...appProps}
422 | header={renderedHeader}
423 | footer={renderedFooter}
424 | footerSticky={footerSticky}
425 | navPanel={renderedNavPanel}
426 | navPanelDef={NavPanel}
427 | logoContentDef={node.props.logoTemplate}
428 | renderChild={renderChild}
429 | registerComponentApi={registerComponentApi}
430 | >
431 | {renderedContent}
432 | <SearchIndexCollector Pages={Pages} renderChild={renderChild} />
433 | </App>
434 | );
435 | }
436 |
437 | const HIDDEN_STYLE: CSSProperties = {
438 | position: "absolute",
439 | top: "-9999px",
440 | display: "none",
441 | };
442 |
443 | const indexerContextValue = {
444 | indexing: true,
445 | };
446 |
447 | function SearchIndexCollector({ Pages, renderChild }) {
448 | const appContext = useAppContext();
449 | const setIndexing = useSearchContextSetIndexing();
450 |
451 | const [isClient, setIsClient] = useState(false);
452 | useEffect(() => {
453 | setIsClient(true); // Ensure document.body is available
454 |
455 | return () => {
456 | setIndexing(false);
457 | };
458 | }, [setIndexing]);
459 |
460 | // 1. Memoize the list of pages to be indexed
461 | const pagesToIndex = useMemo(() => {
462 | return (
463 | Pages?.children?.filter(
464 | (child) =>
465 | child.type === "Page" && // Ensure 'Page' matches your actual component type name
466 | child.props?.url && // Ensure URL exists
467 | !child.props.url.includes("*") &&
468 | !child.props.url.includes(":"),
469 | ) || []
470 | );
471 | }, [Pages?.children]);
472 |
473 | const [currentIndex, setCurrentIndex] = useState(0);
474 | const [isDoneIndexing, setIsDoneIndexing] = useState(false);
475 | const [, startTransitionParent] = useTransition(); // Transition for parent updates
476 |
477 | const handlePageIndexed = useCallback(() => {
478 | startTransitionParent(() => {
479 | // Transition the update to the next page
480 | setCurrentIndex((prevIndex) => {
481 | const nextIndex = prevIndex + 1;
482 | if (nextIndex >= pagesToIndex.length) {
483 | // console.log("All pages indexed.");
484 | setIsDoneIndexing(true); // All pages processed
485 | }
486 | return nextIndex;
487 | });
488 | });
489 | }, [pagesToIndex.length]); // Recreate if the total number of pages changes
490 |
491 | if (!appContext.appGlobals?.searchIndexEnabled || isDoneIndexing || !isClient) {
492 | return null;
493 | }
494 |
495 | const currentPageToProcess = pagesToIndex[currentIndex];
496 |
497 | if (!currentPageToProcess) {
498 | // This can happen if pagesToIndex is empty or currentIndex went out of bounds unexpectedly.
499 | // Setting isDoneIndexing if pagesToIndex is empty initially.
500 | if (pagesToIndex.length === 0 && currentIndex === 0 && !isDoneIndexing) {
501 | setIsDoneIndexing(true);
502 | }
503 | return null;
504 | }
505 |
506 | return (
507 | <IndexerContext.Provider value={indexerContextValue}>
508 | {createPortal(
509 | <div style={HIDDEN_STYLE} aria-hidden="true">
510 | {/* Render only one PageIndexer at a time */}
511 | <PageIndexer
512 | Page={currentPageToProcess}
513 | renderChild={renderChild}
514 | onIndexed={handlePageIndexed}
515 | key={currentPageToProcess.props?.url || currentIndex} // Key ensures re-mount
516 | />
517 | </div>,
518 | document.body,
519 | )}
520 | </IndexerContext.Provider>
521 | );
522 | }
523 |
524 | function PageIndexer({
525 | Page,
526 | renderChild,
527 | onIndexed,
528 | }: {
529 | Page: ComponentDef<typeof PageMd>; // Use the defined PageMdProps
530 | renderChild: RenderChildFn;
531 | onIndexed: () => void;
532 | }) {
533 | const contentRef = useRef<HTMLDivElement>(null);
534 | const pageUrl = Page.props?.url || "";
535 | const navLabel = Page.props?.navLabel || "";
536 | const searchContextUpdater = useSearchContextUpdater();
537 |
538 | const [isContentRendered, setIsContentRendered] = useState(false);
539 | const [isCollected, setIsCollected] = useState(false);
540 | const [isProcessing, startTransition] = useTransition();
541 |
542 | // Effect 1: Schedule the rendering of the Page's children (low priority)
543 | useEffect(() => {
544 | // console.log(`PageIndexer (${pageUrl}): Scheduling content render.`);
545 | startTransition(() => {
546 | setIsContentRendered(true); // This will trigger rendering of Page.children
547 | });
548 | }, [pageUrl]); // Re-run if the Page prop itself changes identity (due to key in parent)
549 |
550 | // Effect 2: Extract content once Page.children is rendered and ref is available (low priority)
551 | useEffect(() => {
552 | if (isContentRendered && contentRef.current && !isCollected && !isProcessing) {
553 | // console.log(`PageIndexer (${pageUrl}): Content rendered, scheduling extraction.`);
554 | startTransition(() => {
555 | // console.log(`PageIndexer (${pageUrl}): Starting extraction...`);
556 | const currentContent = contentRef.current; // Capture ref value
557 | if (!currentContent) return;
558 |
559 | const clone = currentContent.cloneNode(true) as HTMLDivElement;
560 | const elementsToRemove = clone.querySelectorAll("style, script");
561 | elementsToRemove.forEach((el) => el.remove());
562 | const titleElement = clone.querySelector("h1");
563 | const title = titleElement
564 | ? titleElement.innerText
565 | : navLabel || pageUrl.split("/").pop() || pageUrl;
566 | titleElement?.remove(); // Remove title element from clone to avoid duplication
567 | const textContent = (clone.textContent || "").trim().replace(/\s+/g, " ");
568 |
569 | const entry = {
570 | title: title,
571 | content: textContent,
572 | path: pageUrl,
573 | };
574 |
575 | searchContextUpdater(entry);
576 | // console.log(`PageIndexer (${pageUrl}): Extraction complete, signaling parent.`);
577 | onIndexed(); // Signal completion to parent
578 | setIsCollected(true); // Mark as collected
579 | });
580 | }
581 | }, [
582 | isContentRendered,
583 | pageUrl,
584 | searchContextUpdater,
585 | onIndexed,
586 | isCollected,
587 | isProcessing,
588 | navLabel,
589 | ]); // Ensure all dependencies are listed
590 |
591 | // If this PageIndexer instance's work is done, or content not yet rendered, render nothing.
592 | // The parent (SearchIndexCollector) will unmount this and mount the next one.
593 | if (isCollected || !isContentRendered) {
594 | // console.log(`PageIndexer (${pageUrl}): Null render (isCollected: ${isCollected}, isContentRendered: ${isContentRendered})`);
595 | return null;
596 | }
597 |
598 | // This part renders when isContentRendered is true and isCollected is false.
599 | // The content needs to be in the DOM for contentRef.current to be populated.
600 | // console.log(`PageIndexer (${pageUrl}): Rendering content for ref population.`);
601 | return <div ref={contentRef}>{renderChild(Page.children)}</div>;
602 | }
603 |
604 | export const appRenderer = createComponentRenderer(
605 | COMP,
606 | AppMd,
607 | ({ node, extractValue, renderChild, className, lookupEventHandler, registerComponentApi }) => {
608 | return (
609 | <AppNode
610 | node={node}
611 | renderChild={renderChild}
612 | extractValue={extractValue}
613 | className={className}
614 | lookupEventHandler={lookupEventHandler}
615 | registerComponentApi={registerComponentApi}
616 | />
617 | );
618 | },
619 | );
620 |
621 | // --- Process the entire navigation tree recursively and build hierarchy
622 | function processNavItems(
623 | items: ComponentDef[],
624 | parentHierarchy: NavHierarchyNode[],
625 | extractValue: (value: any) => any,
626 | ) {
627 | items.forEach((navItem) => {
628 | // --- Process NavLink items
629 | if (navItem.type === "NavLink") {
630 | let itemLabel = navItem.props?.label;
631 | let itemPath = navItem.props?.to;
632 |
633 | if (!itemLabel) {
634 | if (navItem.children?.length === 1 && navItem.children[0].type === "TextNode") {
635 | itemLabel = navItem.children[0].props.value;
636 | }
637 | }
638 |
639 | if (itemLabel) {
640 | const labelValue = extractValue(itemLabel);
641 |
642 | // --- Add to hierarchy
643 | parentHierarchy.push({
644 | type: "NavLink",
645 | label: labelValue,
646 | path: itemPath ? extractValue(itemPath) : undefined,
647 | });
648 | }
649 | }
650 | // --- Process NavGroup items (which may contain nested NavLink or NavGroup items)
651 | else if (navItem.type === "NavGroup") {
652 | let groupLabel = navItem.props?.label;
653 |
654 | if (groupLabel) {
655 | const labelValue = extractValue(groupLabel);
656 |
657 | // --- Create group node
658 | const groupNode: NavHierarchyNode = {
659 | type: "NavGroup",
660 | label: labelValue,
661 | children: [],
662 | };
663 |
664 | // --- Add to parent hierarchy
665 | parentHierarchy.push(groupNode);
666 |
667 | // --- Recursively process children of the NavGroup
668 | if (navItem.children && navItem.children.length > 0) {
669 | processNavItems(navItem.children, groupNode.children, extractValue);
670 | }
671 | } else if (navItem.children && navItem.children.length > 0) {
672 | // --- If no label but has children, still process them under parent
673 | processNavItems(navItem.children, parentHierarchy, extractValue);
674 | }
675 | }
676 | });
677 | }
678 |
679 | // --- Extract navigation panel items from Pages component
680 | function extractNavPanelFromPages(
681 | Pages: ComponentDef,
682 | NavPanel: ComponentDef | undefined,
683 | processedNavRef: React.MutableRefObject<boolean>,
684 | extractValue: (value: any) => any,
685 | parseHierarchyLabels: (labelText: string) => string[],
686 | labelExistsInHierarchy: (searchLabel: string, hierarchy: NavHierarchyNode[]) => boolean,
687 | findOrCreateNavGroup: (navItems: ComponentDef[], groupLabel: string) => ComponentDef,
688 | ): ComponentDef[] | null {
689 | // --- Skip extraction if we've already processed this navigation structure
690 | // --- This prevents duplicate items when React renders twice in strict mode
691 | if (!Pages || processedNavRef.current) return null;
692 |
693 | // --- Mark as processed
694 | processedNavRef.current = true;
695 |
696 | const extraNavs: ComponentDef[] = [];
697 |
698 | // --- Root of navigation hierarchy
699 | const navigationHierarchy: NavHierarchyNode[] = [];
700 |
701 | // --- Start processing the navigation tree if NavPanel exists
702 | if (NavPanel?.children) {
703 | processNavItems(NavPanel.children, navigationHierarchy, extractValue);
704 | }
705 |
706 | // --- Process Pages to create hierarchical navigation structure
707 | Pages.children?.forEach((page) => {
708 | if (page.type === "Page" && page.props.navLabel) {
709 | const label = extractValue(page.props.navLabel);
710 | const url = extractValue(page.props.url);
711 |
712 | // --- Parse hierarchy labels separated by unescaped pipe characters
713 | const hierarchyLabels = parseHierarchyLabels(label);
714 |
715 | // --- Skip if we have no labels
716 | if (hierarchyLabels.length === 0) {
717 | return;
718 | }
719 |
720 | // --- For a single level, just add a NavLink directly
721 | if (hierarchyLabels.length === 1) {
722 | // --- Check if this exact NavLink already exists in the navigation hierarchy
723 | if (!labelExistsInHierarchy(hierarchyLabels[0], navigationHierarchy)) {
724 | extraNavs.push({
725 | type: "NavLink",
726 | props: {
727 | label: hierarchyLabels[0],
728 | to: url,
729 | },
730 | });
731 | }
732 | return;
733 | }
734 |
735 | // --- For multi-level hierarchies, create NavGroups and a final NavLink
736 | let currentLevel = extraNavs;
737 |
738 | // --- Create NavGroups for all levels except the last one
739 | for (let i = 0; i < hierarchyLabels.length - 1; i++) {
740 | const groupLabel = hierarchyLabels[i];
741 | const navGroup = findOrCreateNavGroup(currentLevel, groupLabel);
742 |
743 | // --- Initialize children array if it doesn't exist
744 | if (!navGroup.children) {
745 | navGroup.children = [];
746 | }
747 |
748 | // --- Move to the next level
749 | currentLevel = navGroup.children;
750 | }
751 |
752 | // --- Add the leaf NavLink to the deepest NavGroup
753 | const leafLabel = hierarchyLabels[hierarchyLabels.length - 1];
754 |
755 | // --- Check if this NavLink already exists at this level
756 | const existingNavLink = currentLevel.find(
757 | (item) => item.type === "NavLink" && item.props?.label === leafLabel,
758 | );
759 |
760 | if (!existingNavLink) {
761 | currentLevel.push({
762 | type: "NavLink",
763 | props: {
764 | label: leafLabel,
765 | to: url,
766 | },
767 | });
768 | }
769 | }
770 | });
771 |
772 | return extraNavs;
773 | }
774 |
```
--------------------------------------------------------------------------------
/xmlui/tests/components-core/theming/layout-vp-override.test.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { describe, expect, it } from "vitest";
2 | import { resolveLayoutProps } from "../../../src/components-core/theming/layout-resolver";
3 |
4 | type TestDescriptor = {
5 | category: string;
6 | props: string[];
7 | cssProps?: Record<string, string>;
8 | baseValue: string;
9 | overrideValue: string;
10 | override2Value: string;
11 | };
12 |
13 | const testDescriptors: TestDescriptor[] = [
14 | {
15 | category: "size",
16 | props: [
17 | "width",
18 | "minWidth",
19 | "maxWidth",
20 | "height",
21 | "minHeight",
22 | "maxHeight",
23 | "top",
24 | "right",
25 | "bottom",
26 | "left",
27 | "gap",
28 | "padding",
29 | "paddingTop",
30 | "paddingRight",
31 | "paddingBottom",
32 | "paddingLeft",
33 | "margin",
34 | "marginTop",
35 | "marginRight",
36 | "marginBottom",
37 | "marginLeft",
38 | "letterSpacing",
39 | "fontSize",
40 | "lineHeight"
41 | ],
42 | baseValue: "12px",
43 | overrideValue: "123px",
44 | override2Value: "456px",
45 | },
46 | {
47 | category: "border",
48 | props: ["border", "borderTop", "borderRight", "borderBottom", "borderLeft"],
49 | baseValue: "1px solid red",
50 | overrideValue: "2px solid blue",
51 | override2Value: "3px solid green",
52 | },
53 | {
54 | category: "borderRadius",
55 | props: ["borderRadius", "radiusTopLeft", "radiusTopRight", "radiusBottomRight", "radiusBottomLeft"],
56 | cssProps: {
57 | borderRadius: "borderRadius",
58 | radiusTopLeft: "borderTopLeftRadius",
59 | radiusTopRight: "borderTopRightRadius",
60 | radiusBottomRight: "borderBottomRightRadius",
61 | radiusBottomLeft: "borderBottomLeftRadius",
62 | },
63 | baseValue: "12px",
64 | overrideValue: "123px",
65 | override2Value: "456px",
66 | },
67 | {
68 | category: "color",
69 | props: ["backgroundColor", "background", "color"],
70 | baseValue: "red",
71 | overrideValue: "blue",
72 | override2Value: "green",
73 | },
74 | {
75 | category: "boxShadow",
76 | props: ["boxShadow"],
77 | baseValue: "1px 1px 1px 1px red",
78 | overrideValue: "2px 2px 2px 2px blue",
79 | override2Value: "3px 3px 3px 3px green",
80 | },
81 | {
82 | category: "direction",
83 | props: ["direction"],
84 | baseValue: "rtl",
85 | overrideValue: "ltr",
86 | override2Value: "rtl",
87 | },
88 | {
89 | category: "overflow",
90 | props: ["overflowX", "overflowY"],
91 | cssProps: {
92 | overflowX: "overflowX",
93 | overflowY: "overflowY",
94 | },
95 | baseValue: "hidden",
96 | overrideValue: "visible",
97 | override2Value: "scroll",
98 | },
99 | {
100 | category: "zIndex",
101 | props: ["zIndex"],
102 | baseValue: "1",
103 | overrideValue: "2",
104 | override2Value: "3",
105 | },
106 | {
107 | category: "opacity",
108 | props: ["opacity"],
109 | baseValue: "0.5",
110 | overrideValue: "0.7",
111 | override2Value: "0.9",
112 | },
113 | {
114 | category: "fontFamily",
115 | props: ["fontFamily"],
116 | baseValue: "Arial",
117 | overrideValue: "'Times New Roman'",
118 | override2Value: "'Courier New'",
119 | },
120 | {
121 | category: "fontWeight",
122 | props: ["fontWeight"],
123 | baseValue: "normal",
124 | overrideValue: "bold",
125 | override2Value: "bolder",
126 | },
127 | {
128 | category: "textDecoration",
129 | props: ["textDecoration"],
130 | baseValue: "none",
131 | overrideValue: "underline",
132 | override2Value: "line-through",
133 | },
134 | {
135 | category: "userSelect",
136 | props: ["userSelect"],
137 | baseValue: "none",
138 | overrideValue: "text",
139 | override2Value: "all",
140 | },
141 | {
142 | category: "textTransform",
143 | props: ["textTransform"],
144 | baseValue: "uppercase",
145 | overrideValue: "lowercase",
146 | override2Value: "capitalize",
147 | },
148 | {
149 | category: "textAlign",
150 | props: ["textAlign","textAlignLast"],
151 | baseValue: "center",
152 | overrideValue: "left",
153 | override2Value: "right",
154 | },
155 | {
156 | category: "cursor",
157 | props: ["cursor"],
158 | baseValue: "pointer",
159 | overrideValue: "default",
160 | override2Value: "none",
161 | }
162 | ];
163 |
164 | testDescriptors.forEach((td) => {
165 | describe(`Style compiler viewport (${td.category})`, () => {
166 | // --- width
167 | td.props.forEach((c) => {
168 | it(`${c}, ${c}-xs (xs)`, () => {
169 | const result = resolveLayoutProps(
170 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
171 | { mediaSize: { sizeIndex: 0 } },
172 | );
173 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
174 | expect(result.cssProps[propName]).equal(td.overrideValue);
175 | expect(result.issues.has(propName)).toBe(false);
176 | });
177 |
178 | it(`${c}, ${c}-xs (sm)`, () => {
179 | const result = resolveLayoutProps(
180 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
181 | { mediaSize: { sizeIndex: 1 } },
182 | );
183 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
184 | expect(result.cssProps[propName]).equal(td.baseValue);
185 | expect(result.issues.has(propName)).toBe(false);
186 | });
187 |
188 | it(`${c}, ${c}-xs (md)`, () => {
189 | const result = resolveLayoutProps(
190 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
191 | { mediaSize: { sizeIndex: 2 } },
192 | );
193 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
194 | expect(result.cssProps[propName]).equal(td.baseValue);
195 | expect(result.issues.has(propName)).toBe(false);
196 | });
197 |
198 | it(`${c}, ${c}-xs (lg)`, () => {
199 | const result = resolveLayoutProps(
200 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
201 | { mediaSize: { sizeIndex: 3 } },
202 | );
203 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
204 | expect(result.cssProps[propName]).equal(td.baseValue);
205 | expect(result.issues.has(propName)).toBe(false);
206 | });
207 |
208 | it(`${c}, ${c}-xs (xl)`, () => {
209 | const result = resolveLayoutProps(
210 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
211 | { mediaSize: { sizeIndex: 4 } },
212 | );
213 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
214 | expect(result.cssProps[propName]).equal(td.baseValue);
215 | expect(result.issues.has(propName)).toBe(false);
216 | });
217 |
218 | it(`${c}, ${c}-xs (xxl)`, () => {
219 | const result = resolveLayoutProps(
220 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue },
221 | { mediaSize: { sizeIndex: 5 } },
222 | );
223 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
224 | expect(result.cssProps[propName]).equal(td.baseValue);
225 | expect(result.issues.has(propName)).toBe(false);
226 | });
227 |
228 | it(`${c}, ${c}-sm (xs)`, () => {
229 | const result = resolveLayoutProps(
230 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
231 | { mediaSize: { sizeIndex: 0 } },
232 | );
233 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
234 | expect(result.cssProps[propName]).equal(td.overrideValue);
235 | expect(result.issues.has(propName)).toBe(false);
236 | });
237 |
238 | it(`${c}, ${c}-sm (sm)`, () => {
239 | const result = resolveLayoutProps(
240 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
241 | { mediaSize: { sizeIndex: 1 } },
242 | );
243 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
244 | expect(result.cssProps[propName]).equal(td.overrideValue);
245 | });
246 |
247 | it(`${c}, ${c}-sm (sm)`, () => {
248 | const result = resolveLayoutProps(
249 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
250 | { mediaSize: { sizeIndex: 1 } },
251 | );
252 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
253 | expect(result.cssProps[propName]).equal(td.overrideValue);
254 | expect(result.issues.has(propName)).toBe(false);
255 | });
256 |
257 | it(`${c}, ${c}-sm (md)`, () => {
258 | const result = resolveLayoutProps(
259 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
260 | { mediaSize: { sizeIndex: 2 } },
261 | );
262 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
263 | expect(result.cssProps[propName]).equal(td.baseValue);
264 | expect(result.issues.has(propName)).toBe(false);
265 | });
266 |
267 | it(`${c}, ${c}-sm (lg)`, () => {
268 | const result = resolveLayoutProps(
269 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
270 | { mediaSize: { sizeIndex: 3 } },
271 | );
272 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
273 | expect(result.cssProps[propName]).equal(td.baseValue);
274 | expect(result.issues.has(propName)).toBe(false);
275 | });
276 |
277 | it(`${c}, ${c}-sm (xl)`, () => {
278 | const result = resolveLayoutProps(
279 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
280 | { mediaSize: { sizeIndex: 4 } },
281 | );
282 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
283 | expect(result.cssProps[propName]).equal(td.baseValue);
284 | expect(result.issues.has(propName)).toBe(false);
285 | });
286 |
287 | it(`${c}, ${c}-sm (xxl)`, () => {
288 | const result = resolveLayoutProps(
289 | { [c]: td.baseValue, [`${c}-sm`]: td.overrideValue },
290 | { mediaSize: { sizeIndex: 5 } },
291 | );
292 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
293 | expect(result.cssProps[propName]).equal(td.baseValue);
294 | expect(result.issues.has(propName)).toBe(false);
295 | });
296 |
297 | it(`${c}, ${c}-md (xs)`, () => {
298 | const result = resolveLayoutProps(
299 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
300 | { mediaSize: { sizeIndex: 0 } },
301 | );
302 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
303 | expect(result.cssProps[propName]).equal(td.overrideValue);
304 | expect(result.issues.has(propName)).toBe(false);
305 | });
306 |
307 | it(`${c}, ${c}-md (sm)`, () => {
308 | const result = resolveLayoutProps(
309 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
310 | { mediaSize: { sizeIndex: 1 } },
311 | );
312 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
313 | expect(result.cssProps[propName]).equal(td.overrideValue);
314 | expect(result.issues.has(propName)).toBe(false);
315 | });
316 |
317 | it(`${c}, ${c}-md (md)`, () => {
318 | const result = resolveLayoutProps(
319 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
320 | { mediaSize: { sizeIndex: 2 } },
321 | );
322 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
323 | expect(result.cssProps[propName]).equal(td.overrideValue);
324 | expect(result.issues.has(propName)).toBe(false);
325 | });
326 |
327 | it(`${c}, ${c}-md (lg)`, () => {
328 | const result = resolveLayoutProps(
329 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
330 | { mediaSize: { sizeIndex: 3 } },
331 | );
332 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
333 | expect(result.cssProps[propName]).equal(td.baseValue);
334 | expect(result.issues.has(propName)).toBe(false);
335 | });
336 |
337 | it(`${c}, ${c}-md (xl)`, () => {
338 | const result = resolveLayoutProps(
339 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
340 | { mediaSize: { sizeIndex: 4 } },
341 | );
342 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
343 | expect(result.cssProps[propName]).equal(td.baseValue);
344 | expect(result.issues.has(propName)).toBe(false);
345 | });
346 |
347 | it(`${c}, ${c}-md (xxl)`, () => {
348 | const result = resolveLayoutProps(
349 | { [c]: td.baseValue, [`${c}-md`]: td.overrideValue },
350 | { mediaSize: { sizeIndex: 5 } },
351 | );
352 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
353 | expect(result.cssProps[propName]).equal(td.baseValue);
354 | expect(result.issues.has(propName)).toBe(false);
355 | });
356 |
357 | it(`${c}, ${c}-lg (xs)`, () => {
358 | const result = resolveLayoutProps(
359 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
360 | { mediaSize: { sizeIndex: 0 } },
361 | );
362 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
363 | expect(result.cssProps[propName]).equal(td.baseValue);
364 | expect(result.issues.has(propName)).toBe(false);
365 | });
366 |
367 | it(`${c}, ${c}-lg (sm)`, () => {
368 | const result = resolveLayoutProps(
369 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
370 | { mediaSize: { sizeIndex: 1 } },
371 | );
372 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
373 | expect(result.cssProps[propName]).equal(td.baseValue);
374 | expect(result.issues.has(propName)).toBe(false);
375 | });
376 |
377 | it(`${c}, ${c}-lg (md)`, () => {
378 | const result = resolveLayoutProps(
379 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
380 | { mediaSize: { sizeIndex: 2 } },
381 | );
382 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
383 | expect(result.cssProps[propName]).equal(td.baseValue);
384 | expect(result.issues.has(propName)).toBe(false);
385 | });
386 |
387 | it(`${c}, ${c}-lg (lg)`, () => {
388 | const result = resolveLayoutProps(
389 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
390 | { mediaSize: { sizeIndex: 3 } },
391 | );
392 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
393 | expect(result.cssProps[propName]).equal(td.overrideValue);
394 | expect(result.issues.has(propName)).toBe(false);
395 | });
396 |
397 | it(`${c}, ${c}-lg (xl)`, () => {
398 | const result = resolveLayoutProps(
399 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
400 | { mediaSize: { sizeIndex: 4 } },
401 | );
402 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
403 | expect(result.cssProps[propName]).equal(td.overrideValue);
404 | expect(result.issues.has(propName)).toBe(false);
405 | });
406 |
407 | it(`${c}, ${c}-lg (xxl)`, () => {
408 | const result = resolveLayoutProps(
409 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue },
410 | { mediaSize: { sizeIndex: 5 } },
411 | );
412 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
413 | expect(result.cssProps[propName]).equal(td.overrideValue);
414 | expect(result.issues.has(propName)).toBe(false);
415 | });
416 |
417 | it(`${c}, ${c}-xl (xs)`, () => {
418 | const result = resolveLayoutProps(
419 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
420 | { mediaSize: { sizeIndex: 0 } },
421 | );
422 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
423 | expect(result.cssProps[propName]).equal(td.baseValue);
424 | expect(result.issues.has(propName)).toBe(false);
425 | });
426 |
427 | it(`${c}, ${c}-xl (sm)`, () => {
428 | const result = resolveLayoutProps(
429 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
430 | { mediaSize: { sizeIndex: 1 } },
431 | );
432 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
433 | expect(result.cssProps[propName]).equal(td.baseValue);
434 | expect(result.issues.has(propName)).toBe(false);
435 | });
436 |
437 | it(`${c}, ${c}-xl (md)`, () => {
438 | const result = resolveLayoutProps(
439 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
440 | { mediaSize: { sizeIndex: 2 } },
441 | );
442 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
443 | expect(result.cssProps[propName]).equal(td.baseValue);
444 | expect(result.issues.has(propName)).toBe(false);
445 | });
446 |
447 | it(`${c}, ${c}-xl (lg)`, () => {
448 | const result = resolveLayoutProps(
449 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
450 | { mediaSize: { sizeIndex: 3 } },
451 | );
452 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
453 | expect(result.cssProps[propName]).equal(td.baseValue);
454 | expect(result.issues.has(propName)).toBe(false);
455 | });
456 |
457 | it(`${c}, ${c}-xl (xl)`, () => {
458 | const result = resolveLayoutProps(
459 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
460 | { mediaSize: { sizeIndex: 4 } },
461 | );
462 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
463 | expect(result.cssProps[propName]).equal(td.overrideValue);
464 | expect(result.issues.has(propName)).toBe(false);
465 | });
466 |
467 | it(`${c}, ${c}-xl (xxl)`, () => {
468 | const result = resolveLayoutProps(
469 | { [c]: td.baseValue, [`${c}-xl`]: td.overrideValue },
470 | { mediaSize: { sizeIndex: 5 } },
471 | );
472 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
473 | expect(result.cssProps[propName]).equal(td.overrideValue);
474 | expect(result.issues.has(propName)).toBe(false);
475 | });
476 |
477 | it(`${c}, ${c}-xxl (xs)`, () => {
478 | const result = resolveLayoutProps(
479 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
480 | { mediaSize: { sizeIndex: 0 } },
481 | );
482 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
483 | expect(result.cssProps[propName]).equal(td.baseValue);
484 | expect(result.issues.has(propName)).toBe(false);
485 | });
486 |
487 | it(`${c}, ${c}-xxl (sm)`, () => {
488 | const result = resolveLayoutProps(
489 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
490 | { mediaSize: { sizeIndex: 1 } },
491 | );
492 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
493 | expect(result.cssProps[propName]).equal(td.baseValue);
494 | expect(result.issues.has(propName)).toBe(false);
495 | });
496 |
497 | it(`${c}, ${c}-xxl (md)`, () => {
498 | const result = resolveLayoutProps(
499 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
500 | { mediaSize: { sizeIndex: 2 } },
501 | );
502 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
503 | expect(result.cssProps[propName]).equal(td.baseValue);
504 | expect(result.issues.has(propName)).toBe(false);
505 | });
506 |
507 | it(`${c}, ${c}-xxl (lg)`, () => {
508 | const result = resolveLayoutProps(
509 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
510 | { mediaSize: { sizeIndex: 3 } },
511 | );
512 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
513 | expect(result.cssProps[propName]).equal(td.baseValue);
514 | expect(result.issues.has(propName)).toBe(false);
515 | });
516 |
517 | it(`${c}, ${c}-xxl (xl)`, () => {
518 | const result = resolveLayoutProps(
519 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
520 | { mediaSize: { sizeIndex: 4 } },
521 | );
522 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
523 | expect(result.cssProps[propName]).equal(td.baseValue);
524 | expect(result.issues.has(propName)).toBe(false);
525 | });
526 |
527 | it(`${c}, ${c}-xxl (xxl)`, () => {
528 | const result = resolveLayoutProps(
529 | { [c]: td.baseValue, [`${c}-xxl`]: td.overrideValue },
530 | { mediaSize: { sizeIndex: 5 } },
531 | );
532 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
533 | expect(result.cssProps[propName]).equal(td.overrideValue);
534 | expect(result.issues.has(propName)).toBe(false);
535 | });
536 |
537 | it(`${c}, ${c}-xs, ${c}-md (xs)`, () => {
538 | const result = resolveLayoutProps(
539 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
540 | { mediaSize: { sizeIndex: 0 } },
541 | );
542 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
543 | expect(result.cssProps[propName]).equal(td.overrideValue);
544 | expect(result.issues.has(propName)).toBe(false);
545 | });
546 |
547 | it(`${c}, ${c}-xs, ${c}-md (sm)`, () => {
548 | const result = resolveLayoutProps(
549 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
550 | { mediaSize: { sizeIndex: 1 } },
551 | );
552 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
553 | expect(result.cssProps[propName]).equal(td.override2Value);
554 | expect(result.issues.has(propName)).toBe(false);
555 | });
556 |
557 | it(`${c}, ${c}-xs, ${c}-md (md)`, () => {
558 | const result = resolveLayoutProps(
559 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
560 | { mediaSize: { sizeIndex: 2 } },
561 | );
562 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
563 | expect(result.cssProps[propName]).equal(td.override2Value);
564 | expect(result.issues.has(propName)).toBe(false);
565 | });
566 |
567 | it(`${c}, ${c}-xs, ${c}-md (lg)`, () => {
568 | const result = resolveLayoutProps(
569 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
570 | { mediaSize: { sizeIndex: 3 } },
571 | );
572 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
573 | expect(result.cssProps[propName]).equal(td.baseValue);
574 | expect(result.issues.has(propName)).toBe(false);
575 | });
576 |
577 | it(`${c}, ${c}-xs, ${c}-md (xl)`, () => {
578 | const result = resolveLayoutProps(
579 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
580 | { mediaSize: { sizeIndex: 4 } },
581 | );
582 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
583 | expect(result.cssProps[propName]).equal(td.baseValue);
584 | expect(result.issues.has(propName)).toBe(false);
585 | });
586 |
587 | it(`${c}, ${c}-xs, ${c}-md (xxl)`, () => {
588 | const result = resolveLayoutProps(
589 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-md`]: td.override2Value },
590 | { mediaSize: { sizeIndex: 5 } },
591 | );
592 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
593 | expect(result.cssProps[propName]).equal(td.baseValue);
594 | expect(result.issues.has(propName)).toBe(false);
595 | });
596 |
597 | it(`${c}, ${c}-xs, ${c}-xl (xs)`, () => {
598 | const result = resolveLayoutProps(
599 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
600 | { mediaSize: { sizeIndex: 0 } },
601 | );
602 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
603 | expect(result.cssProps[propName]).equal(td.overrideValue);
604 | expect(result.issues.has(propName)).toBe(false);
605 | });
606 |
607 | it(`${c}, ${c}-xs, ${c}-xl (sm)`, () => {
608 | const result = resolveLayoutProps(
609 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
610 | { mediaSize: { sizeIndex: 1 } },
611 | );
612 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
613 | expect(result.cssProps[propName]).equal(td.baseValue);
614 | expect(result.issues.has(propName)).toBe(false);
615 | });
616 |
617 | it(`${c}, ${c}-xs, ${c}-xl (md)`, () => {
618 | const result = resolveLayoutProps(
619 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
620 | { mediaSize: { sizeIndex: 2 } },
621 | );
622 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
623 | expect(result.cssProps[propName]).equal(td.baseValue);
624 | expect(result.issues.has(propName)).toBe(false);
625 | });
626 |
627 | it(`${c}, ${c}-xs, ${c}-xl (lg)`, () => {
628 | const result = resolveLayoutProps(
629 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
630 | { mediaSize: { sizeIndex: 3 } },
631 | );
632 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
633 | expect(result.cssProps[propName]).equal(td.baseValue);
634 | expect(result.issues.has(propName)).toBe(false);
635 | });
636 |
637 | it(`${c}, ${c}-xs, ${c}-xl (xl)`, () => {
638 | const result = resolveLayoutProps(
639 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
640 | { mediaSize: { sizeIndex: 4 } },
641 | );
642 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
643 | expect(result.cssProps[propName]).equal(td.override2Value);
644 | expect(result.issues.has(propName)).toBe(false);
645 | });
646 |
647 | it(`${c}, ${c}-xs, ${c}-xl (xxl)`, () => {
648 | const result = resolveLayoutProps(
649 | { [c]: td.baseValue, [`${c}-xs`]: td.overrideValue, [`${c}-xl`]: td.override2Value },
650 | { mediaSize: { sizeIndex: 5 } },
651 | );
652 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
653 | expect(result.cssProps[propName]).equal(td.override2Value);
654 | expect(result.issues.has(propName)).toBe(false);
655 | });
656 |
657 | it(`${c}, ${c}-lg, ${c}-xxl (xs)`, () => {
658 | const result = resolveLayoutProps(
659 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
660 | { mediaSize: { sizeIndex: 0 } },
661 | );
662 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
663 | expect(result.cssProps[propName]).equal(td.baseValue);
664 | expect(result.issues.has(propName)).toBe(false);
665 | });
666 |
667 | it(`${c}, ${c}-lg, ${c}-xxl (sm)`, () => {
668 | const result = resolveLayoutProps(
669 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
670 | { mediaSize: { sizeIndex: 1 } },
671 | );
672 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
673 | expect(result.cssProps[propName]).equal(td.baseValue);
674 | expect(result.issues.has(propName)).toBe(false);
675 | });
676 |
677 | it(`${c}, ${c}-lg, ${c}-xxl (md)`, () => {
678 | const result = resolveLayoutProps(
679 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
680 | { mediaSize: { sizeIndex: 2 } },
681 | );
682 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
683 | expect(result.cssProps[propName]).equal(td.baseValue);
684 | expect(result.issues.has(propName)).toBe(false);
685 | });
686 |
687 | it(`${c}, ${c}-lg, ${c}-xxl (lg)`, () => {
688 | const result = resolveLayoutProps(
689 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
690 | { mediaSize: { sizeIndex: 3 } },
691 | );
692 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
693 | expect(result.cssProps[propName]).equal(td.overrideValue);
694 | expect(result.issues.has(propName)).toBe(false);
695 | });
696 |
697 | it(`${c}, ${c}-lg, ${c}-xxl (xl)`, () => {
698 | const result = resolveLayoutProps(
699 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
700 | { mediaSize: { sizeIndex: 4 } },
701 | );
702 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
703 | expect(result.cssProps[propName]).equal(td.overrideValue);
704 | expect(result.issues.has(propName)).toBe(false);
705 | });
706 |
707 | it(`${c}, ${c}-lg, ${c}-xxl (xxl)`, () => {
708 | const result = resolveLayoutProps(
709 | { [c]: td.baseValue, [`${c}-lg`]: td.overrideValue, [`${c}-xxl`]: td.override2Value },
710 | { mediaSize: { sizeIndex: 5 } },
711 | );
712 | const propName = td.cssProps?.[c] ? td.cssProps[c] : c;
713 | expect(result.cssProps[propName]).equal(td.override2Value);
714 | expect(result.issues.has(propName)).toBe(false);
715 | });
716 | });
717 | });
718 | });
719 |
```