#
tokens: 46050/50000 3/1630 files (page 88/186)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 88 of 186. Use http://codebase.md/xmlui-org/xmlui/xmlui/tools/vscode/resources/xmlui-markup-syntax-highlighting.png?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   └── cyan-tools-design.md
├── .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
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   ├── rss.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   ├── staticwebapp.config.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       └── blog-theme.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── FancyButton.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── control-cache-invalidation.md
│   │   │   │   ├── debounce-user-input-for-api-calls.md
│   │   │   │   ├── debounce-with-changelistener.md
│   │   │   │   ├── debug-a-component.md
│   │   │   │   ├── delay-a-datasource-until-another-datasource-is-ready.md
│   │   │   │   ├── delegate-a-method.md
│   │   │   │   ├── do-custom-form-validation.md
│   │   │   │   ├── expose-a-method-from-a-component.md
│   │   │   │   ├── filter-and-transform-data-from-an-api.md
│   │   │   │   ├── group-items-in-list-by-a-property.md
│   │   │   │   ├── handle-background-operations.md
│   │   │   │   ├── hide-an-element-until-its-datasource-is-ready.md
│   │   │   │   ├── make-a-set-of-equal-width-cards.md
│   │   │   │   ├── make-a-table-responsive.md
│   │   │   │   ├── make-navpanel-width-responsive.md
│   │   │   │   ├── modify-a-value-reported-in-a-column.md
│   │   │   │   ├── paginate-a-list.md
│   │   │   │   ├── pass-data-to-a-modal-dialog.md
│   │   │   │   ├── react-to-button-click-not-keystrokes.md
│   │   │   │   ├── set-the-initial-value-of-a-select-from-fetched-data.md
│   │   │   │   ├── share-a-modaldialog-across-components.md
│   │   │   │   ├── sync-selections-between-table-and-list-views.md
│   │   │   │   ├── update-ui-optimistically.md
│   │   │   │   ├── use-built-in-form-validation.md
│   │   │   │   └── use-the-same-modaldialog-to-add-or-edit.md
│   │   │   ├── howto.md
│   │   │   ├── intro.md
│   │   │   ├── layout.md
│   │   │   ├── markup.md
│   │   │   ├── mcp.md
│   │   │   ├── modal-dialogs.md
│   │   │   ├── news-and-reviews.md
│   │   │   ├── reactive-intro.md
│   │   │   ├── refactoring.md
│   │   │   ├── routing-and-links.md
│   │   │   ├── samples
│   │   │   │   ├── color-palette.xmlui
│   │   │   │   ├── color-values.xmlui
│   │   │   │   ├── shadow-sizes.xmlui
│   │   │   │   ├── spacing-sizes.xmlui
│   │   │   │   ├── swatch.xmlui
│   │   │   │   ├── theme-gallery-brief.xmlui
│   │   │   │   └── theme-gallery.xmlui
│   │   │   ├── scoping.md
│   │   │   ├── scripting.md
│   │   │   ├── styles-and-themes
│   │   │   │   ├── common-units.md
│   │   │   │   ├── layout-props.md
│   │   │   │   ├── theme-variable-defaults.md
│   │   │   │   ├── theme-variables.md
│   │   │   │   └── themes.md
│   │   │   ├── template-properties.md
│   │   │   ├── test.md
│   │   │   ├── tutorial-01.md
│   │   │   ├── tutorial-02.md
│   │   │   ├── tutorial-03.md
│   │   │   ├── tutorial-04.md
│   │   │   ├── tutorial-05.md
│   │   │   ├── tutorial-06.md
│   │   │   ├── tutorial-07.md
│   │   │   ├── tutorial-08.md
│   │   │   ├── tutorial-09.md
│   │   │   ├── tutorial-10.md
│   │   │   ├── tutorial-11.md
│   │   │   ├── tutorial-12.md
│   │   │   ├── universal-properties.md
│   │   │   ├── user-defined-components.md
│   │   │   ├── vscode.md
│   │   │   ├── working-with-markdown.md
│   │   │   ├── working-with-text.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-charts
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── BarChart.md
│   │   │   │   ├── DonutChart.md
│   │   │   │   ├── LabelList.md
│   │   │   │   ├── Legend.md
│   │   │   │   ├── LineChart.md
│   │   │   │   └── PieChart.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   └── xmlui-spreadsheet
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       └── Spreadsheet.md
│   │   ├── resources
│   │   │   ├── devdocs
│   │   │   │   ├── debug-proxy-object-2.png
│   │   │   │   ├── debug-proxy-object.png
│   │   │   │   ├── table_editor_01.png
│   │   │   │   ├── table_editor_02.png
│   │   │   │   ├── table_editor_03.png
│   │   │   │   ├── table_editor_04.png
│   │   │   │   ├── table_editor_05.png
│   │   │   │   ├── table_editor_06.png
│   │   │   │   ├── table_editor_07.png
│   │   │   │   ├── table_editor_08.png
│   │   │   │   ├── table_editor_09.png
│   │   │   │   ├── table_editor_10.png
│   │   │   │   ├── table_editor_11.png
│   │   │   │   ├── table-editor-01.png
│   │   │   │   ├── table-editor-02.png
│   │   │   │   ├── table-editor-03.png
│   │   │   │   ├── table-editor-04.png
│   │   │   │   ├── table-editor-06.png
│   │   │   │   ├── table-editor-07.png
│   │   │   │   ├── table-editor-08.png
│   │   │   │   ├── table-editor-09.png
│   │   │   │   └── xmlui-rendering-of-tiptap-markdown.png
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   ├── clients.json
│   │   │   │   ├── daily-revenue.json
│   │   │   │   ├── dashboard-stats.json
│   │   │   │   ├── demo.xmlui
│   │   │   │   ├── demo.xmlui.xs
│   │   │   │   ├── downloads
│   │   │   │   │   └── downloads.json
│   │   │   │   ├── for-download
│   │   │   │   │   ├── index-with-api.html
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── mockApi.js
│   │   │   │   │   ├── start-darwin.sh
│   │   │   │   │   ├── start-linux.sh
│   │   │   │   │   ├── start.bat
│   │   │   │   │   └── xmlui
│   │   │   │   │       └── xmlui-standalone.umd.js
│   │   │   │   ├── getting-started
│   │   │   │   │   ├── cl-tutorial-final.zip
│   │   │   │   │   ├── cl-tutorial.zip
│   │   │   │   │   ├── cl-tutorial2.zip
│   │   │   │   │   ├── cl-tutorial3.zip
│   │   │   │   │   ├── cl-tutorial4.zip
│   │   │   │   │   ├── cl-tutorial5.zip
│   │   │   │   │   ├── cl-tutorial6.zip
│   │   │   │   │   ├── getting-started.zip
│   │   │   │   │   ├── hello-xmlui.zip
│   │   │   │   │   ├── xmlui-empty.zip
│   │   │   │   │   └── xmlui-starter.zip
│   │   │   │   ├── howto
│   │   │   │   │   └── component-icons
│   │   │   │   │       └── up-arrow.svg
│   │   │   │   ├── invoices.json
│   │   │   │   ├── monthly-status.json
│   │   │   │   ├── news-and-reviews.json
│   │   │   │   ├── products.json
│   │   │   │   ├── releases.json
│   │   │   │   ├── tutorials
│   │   │   │   │   ├── datasource
│   │   │   │   │   │   └── api.ts
│   │   │   │   │   └── p2do
│   │   │   │   │       ├── api.ts
│   │   │   │   │       └── todo-logo.svg
│   │   │   │   └── xmlui.json
│   │   │   ├── github.svg
│   │   │   ├── images
│   │   │   │   ├── apiaction-tutorial
│   │   │   │   │   ├── add-success.png
│   │   │   │   │   ├── apiaction-param.png
│   │   │   │   │   ├── change-completed.png
│   │   │   │   │   ├── change-in-progress.png
│   │   │   │   │   ├── confirm-delete.png
│   │   │   │   │   ├── data-error.png
│   │   │   │   │   ├── data-progress.png
│   │   │   │   │   ├── data-success.png
│   │   │   │   │   ├── display-1.png
│   │   │   │   │   ├── item-deleted.png
│   │   │   │   │   ├── item-updated.png
│   │   │   │   │   ├── missing-api-key.png
│   │   │   │   │   ├── new-item-added.png
│   │   │   │   │   └── test-message.png
│   │   │   │   ├── chat-api
│   │   │   │   │   └── domain-model.svg
│   │   │   │   ├── components
│   │   │   │   │   ├── image
│   │   │   │   │   │   └── breakfast.jpg
│   │   │   │   │   ├── markdown
│   │   │   │   │   │   └── colors.png
│   │   │   │   │   └── modal
│   │   │   │   │       ├── deep_link_dialog_1.jpg
│   │   │   │   │       └── deep_link_dialog_2.jpg
│   │   │   │   ├── create-apps
│   │   │   │   │   ├── collapsed-vertical.png
│   │   │   │   │   ├── using-forms-warning-dialog.png
│   │   │   │   │   └── using-forms.png
│   │   │   │   ├── datasource-tutorial
│   │   │   │   │   ├── data-with-header.png
│   │   │   │   │   ├── filtered-data.png
│   │   │   │   │   ├── filtered-items.png
│   │   │   │   │   ├── initial-page-items.png
│   │   │   │   │   ├── list-items.png
│   │   │   │   │   ├── next-page-items.png
│   │   │   │   │   ├── no-data.png
│   │   │   │   │   ├── pagination-1.jpg
│   │   │   │   │   ├── pagination-1.png
│   │   │   │   │   ├── polling-1.png
│   │   │   │   │   ├── refetch-data.png
│   │   │   │   │   ├── slow-loading.png
│   │   │   │   │   ├── test-message.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── unconventional-data.png
│   │   │   │   │   └── unfiltered-items.png
│   │   │   │   ├── flower.jpg
│   │   │   │   ├── get-started
│   │   │   │   │   ├── add-new-contact.png
│   │   │   │   │   ├── app-modified.png
│   │   │   │   │   ├── app-start.png
│   │   │   │   │   ├── app-with-boxes.png
│   │   │   │   │   ├── app-with-toast.png
│   │   │   │   │   ├── boilerplate-structure.png
│   │   │   │   │   ├── cl-initial.png
│   │   │   │   │   ├── cl-start.png
│   │   │   │   │   ├── contact-counts.png
│   │   │   │   │   ├── contact-dialog-title.png
│   │   │   │   │   ├── contact-dialog.png
│   │   │   │   │   ├── contact-menus.png
│   │   │   │   │   ├── contact-predicates.png
│   │   │   │   │   ├── context-menu.png
│   │   │   │   │   ├── dashboard-numbers.png
│   │   │   │   │   ├── default-contact-list.png
│   │   │   │   │   ├── delete-contact.png
│   │   │   │   │   ├── delete-task.png
│   │   │   │   │   ├── detailed-template.png
│   │   │   │   │   ├── edit-contact-details.png
│   │   │   │   │   ├── edited-contact-saved.png
│   │   │   │   │   ├── empty-sections.png
│   │   │   │   │   ├── filter-completed.png
│   │   │   │   │   ├── fullwidth-desktop.png
│   │   │   │   │   ├── fullwidth-mobile.png
│   │   │   │   │   ├── initial-table.png
│   │   │   │   │   ├── items-and-badges.png
│   │   │   │   │   ├── loading-message.png
│   │   │   │   │   ├── new-contact-button.png
│   │   │   │   │   ├── new-contact-saved.png
│   │   │   │   │   ├── no-empty-sections.png
│   │   │   │   │   ├── personal-todo-initial.png
│   │   │   │   │   ├── piechart.png
│   │   │   │   │   ├── review-today.png
│   │   │   │   │   ├── rudimentary-dashboard.png
│   │   │   │   │   ├── section-collapsed.png
│   │   │   │   │   ├── sectioned-items.png
│   │   │   │   │   ├── sections-ordered.png
│   │   │   │   │   ├── spacex-list-with-links.png
│   │   │   │   │   ├── spacex-list.png
│   │   │   │   │   ├── start-personal-todo-1.png
│   │   │   │   │   ├── submit-new-contact.png
│   │   │   │   │   ├── submit-new-task.png
│   │   │   │   │   ├── syntax-highlighting.png
│   │   │   │   │   ├── table-with-badge.png
│   │   │   │   │   ├── template-with-card.png
│   │   │   │   │   ├── test-emulated-api.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── todo-logo.png
│   │   │   │   │   └── xmlui-tools.png
│   │   │   │   ├── HelloApp.png
│   │   │   │   ├── HelloApp2.png
│   │   │   │   ├── logos
│   │   │   │   │   ├── xmlui1.svg
│   │   │   │   │   ├── xmlui2.svg
│   │   │   │   │   ├── xmlui3.svg
│   │   │   │   │   ├── xmlui4.svg
│   │   │   │   │   ├── xmlui5.svg
│   │   │   │   │   ├── xmlui6.svg
│   │   │   │   │   └── xmlui7.svg
│   │   │   │   ├── pdf
│   │   │   │   │   └── dummy-pdf.jpg
│   │   │   │   ├── rendering-engine
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   ├── Component.svg
│   │   │   │   │   ├── CompoundComponent.svg
│   │   │   │   │   ├── RootComponent.svg
│   │   │   │   │   └── tree-with-containers.svg
│   │   │   │   ├── reviewers-guide
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   └── incbutton-in-action.png
│   │   │   │   ├── tools
│   │   │   │   │   └── boilerplate-structure.png
│   │   │   │   ├── try.svg
│   │   │   │   ├── tutorial
│   │   │   │   │   ├── app-chat-history.png
│   │   │   │   │   ├── app-content-placeholder.png
│   │   │   │   │   ├── app-header-and-content.png
│   │   │   │   │   ├── app-links-channel-selected.png
│   │   │   │   │   ├── app-links-click.png
│   │   │   │   │   ├── app-navigation.png
│   │   │   │   │   ├── finished-ex01.png
│   │   │   │   │   ├── finished-ex02.png
│   │   │   │   │   ├── hello.png
│   │   │   │   │   ├── splash-screen-advanced.png
│   │   │   │   │   ├── splash-screen-after-click.png
│   │   │   │   │   ├── splash-screen-centered.png
│   │   │   │   │   ├── splash-screen-events.png
│   │   │   │   │   ├── splash-screen-expression.png
│   │   │   │   │   ├── splash-screen-reuse-after.png
│   │   │   │   │   ├── splash-screen-reuse-before.png
│   │   │   │   │   └── splash-screen.png
│   │   │   │   └── tutorial-01.png
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   ├── Boxes.xmlui
│   │   │   ├── Breadcrumb.xmlui
│   │   │   ├── ChangeLog.xmlui
│   │   │   ├── ColorPalette.xmlui
│   │   │   ├── DocumentLinks.xmlui
│   │   │   ├── DocumentPage.xmlui
│   │   │   ├── DocumentPageNoTOC.xmlui
│   │   │   ├── Icons.xmlui
│   │   │   ├── IncButton.xmlui
│   │   │   ├── IncButton2.xmlui
│   │   │   ├── NameValue.xmlui
│   │   │   ├── PageNotFound.xmlui
│   │   │   ├── PaletteItem.xmlui
│   │   │   ├── Palettes.xmlui
│   │   │   ├── SectionHeader.xmlui
│   │   │   ├── TBD.xmlui
│   │   │   ├── Test.xmlui
│   │   │   ├── ThemesIntro.xmlui
│   │   │   ├── ThousandThemes.xmlui
│   │   │   ├── TubeStops.xmlui
│   │   │   ├── TubeStops.xmlui.xs
│   │   │   └── TwoColumnCode.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│   ├── tsconfig.json
│   ├── xmlui-animations
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── Animation.tsx
│   │       ├── AnimationNative.tsx
│   │       ├── FadeAnimation.tsx
│   │       ├── FadeInAnimation.tsx
│   │       ├── FadeOutAnimation.tsx
│   │       ├── index.tsx
│   │       ├── ScaleAnimation.tsx
│   │       └── SlideInAnimation.tsx
│   ├── xmlui-devtools
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── devtools
│   │   │   │   ├── DevTools.tsx
│   │   │   │   ├── DevToolsNative.module.scss
│   │   │   │   ├── DevToolsNative.tsx
│   │   │   │   ├── ModalDialog.module.scss
│   │   │   │   ├── ModalDialog.tsx
│   │   │   │   ├── ModalVisibilityContext.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── editor
│   │   │   │   └── Editor.tsx
│   │   │   └── index.tsx
│   │   └── vite.config-overrides.ts
│   ├── xmlui-hello-world
│   │   ├── .gitignore
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── HelloWorld.module.scss
│   │       ├── HelloWorld.tsx
│   │       ├── HelloWorldNative.tsx
│   │       └── index.tsx
│   ├── xmlui-os-frames
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── IPhoneFrame.module.scss
│   │       ├── IPhoneFrame.tsx
│   │       ├── MacOSAppFrame.module.scss
│   │       ├── MacOSAppFrame.tsx
│   │       ├── WindowsAppFrame.module.scss
│   │       └── WindowsAppFrame.tsx
│   ├── xmlui-pdf
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   ├── components
│   │   │   │   └── Pdf.xmlui
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── LazyPdfNative.tsx
│   │       ├── Pdf.module.scss
│   │       └── Pdf.tsx
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── hooks
│   │       │   ├── usePlayground.ts
│   │       │   └── useToast.ts
│   │       ├── index.tsx
│   │       ├── playground
│   │       │   ├── Box.module.scss
│   │       │   ├── Box.tsx
│   │       │   ├── CodeSelector.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
    │   │   ├── 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/Button/Button.spec.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { getBorders, getBounds, getPaddings } from "../../testing/component-test-helpers";
  2 | import { expect, test } from "../../testing/fixtures";
  3 | import {
  4 |   alignmentOptionValues,
  5 |   buttonTypeValues,
  6 |   buttonThemeValues,
  7 |   buttonVariantValues,
  8 |   type IconPosition,
  9 | } from "../../components/abstractions";
 10 | import type { ComponentDriver } from "../../testing/ComponentDrivers";
 11 | import { sizeValues } from "../abstractions";
 12 | 
 13 | // --- Smoke
 14 | 
 15 | test.describe("smoke tests", { tag: "@smoke" }, () => {
 16 |   test("component renders", async ({ initTestBed, createButtonDriver }) => {
 17 |     await initTestBed(`<Button />`);
 18 |     await expect((await createButtonDriver()).component).toBeAttached();
 19 |   });
 20 | 
 21 |   // --- label
 22 | 
 23 |   test("renders ASCII text in label", async ({ initTestBed, createButtonDriver }) => {
 24 |     await initTestBed(`<Button label="hello" />`);
 25 |     await expect((await createButtonDriver()).component).toHaveText("hello");
 26 |   });
 27 | 
 28 |   test("renders Unicode text in label", async ({ initTestBed, createButtonDriver }) => {
 29 |     await initTestBed(`<Button label="😀" />`);
 30 |     await expect((await createButtonDriver()).component).toHaveText("😀");
 31 |   });
 32 | 
 33 |   // --- icon
 34 | 
 35 |   test("can render icon", async ({ initTestBed, createButtonDriver }) => {
 36 |     await initTestBed(`<Button icon="test" />`, {
 37 |       resources: {
 38 |         "icon.test": "resources/bell.svg",
 39 |       },
 40 |     });
 41 |     await expect((await createButtonDriver()).getIcons().first()).toBeVisible();
 42 |   });
 43 | 
 44 |   // --- enabled
 45 | 
 46 |   test("has enabled state", async ({ initTestBed, createButtonDriver }) => {
 47 |     await initTestBed(`<Button enabled="true" />`);
 48 |     await expect((await createButtonDriver()).component).toBeEnabled();
 49 |   });
 50 | 
 51 |   test("has disabled state", async ({ initTestBed, createButtonDriver }) => {
 52 |     await initTestBed(`<Button enabled="false" />`);
 53 |     await expect((await createButtonDriver()).component).toBeDisabled();
 54 |   });
 55 | 
 56 |   // --- click
 57 | 
 58 |   test("click event fires", async ({ initTestBed, createButtonDriver }) => {
 59 |     const { testStateDriver } = await initTestBed(`<Button onClick="testState = true" />`);
 60 |     await (await createButtonDriver()).click();
 61 |     await expect.poll(testStateDriver.testState).toEqual(true);
 62 |   });
 63 | 
 64 |   // --- variant & themeColor
 65 | 
 66 |   // background color
 67 |   const EXPECTED_BACKGROUND_COLOR = "rgb(255, 0, 0)";
 68 |   buttonThemeValues.forEach((themeColor) => {
 69 |     test(`"solid" background color: "${themeColor}"`, async ({
 70 |       initTestBed,
 71 |       createButtonDriver,
 72 |     }) => {
 73 |       await initTestBed(`<Button variant="solid" themeColor="${themeColor}" />`, {
 74 |         testThemeVars: {
 75 |           [`backgroundColor-Button-${themeColor}-solid`]: EXPECTED_BACKGROUND_COLOR,
 76 |         },
 77 |       });
 78 |       await expect((await createButtonDriver()).component).toHaveCSS(
 79 |         "background-color",
 80 |         EXPECTED_BACKGROUND_COLOR,
 81 |       );
 82 |     });
 83 |   });
 84 | 
 85 |   // content/label color
 86 |   const EXPECTED_CONTENT_COLOR = "rgb(255, 255, 255)";
 87 |   buttonVariantValues.forEach((variant) => {
 88 |     buttonThemeValues.forEach((themeColor) => {
 89 |       test(`"${variant}" content color: "${themeColor}"`, async ({
 90 |         initTestBed,
 91 |         createButtonDriver,
 92 |       }) => {
 93 |         await initTestBed(`<Button variant="${variant}" themeColor="${themeColor}" />`, {
 94 |           testThemeVars: {
 95 |             [`textColor-Button-${themeColor}-${variant}`]: EXPECTED_CONTENT_COLOR,
 96 |           },
 97 |         });
 98 |         await expect((await createButtonDriver()).component).toHaveCSS(
 99 |           "color",
100 |           EXPECTED_CONTENT_COLOR,
101 |         );
102 |       });
103 |     });
104 |   });
105 | 
106 |   // border
107 |   const EXPECTED_BORDER_COLOR = "rgb(255, 0, 0)";
108 |   const EXPECTED_BORDER_WIDTH = "5px";
109 |   const EXPECTED_BORDER_STYLE = "dotted";
110 |   const EXPECTED_BORDER_RADIUS = "10px";
111 |   buttonVariantValues
112 |     .filter((v) => v !== "ghost")
113 |     .forEach((variant) => {
114 |       buttonThemeValues.forEach((themeColor) => {
115 |         test(`border: "${themeColor}" "${variant}" variant`, async ({
116 |           initTestBed,
117 |           createButtonDriver,
118 |         }) => {
119 |           await initTestBed(`<Button variant="${variant}" themeColor="${themeColor}" />`, {
120 |             testThemeVars: {
121 |               [`borderColor-Button-${themeColor}-${variant}`]: EXPECTED_BORDER_COLOR,
122 |               [`borderWidth-Button-${themeColor}-${variant}`]: EXPECTED_BORDER_WIDTH,
123 |               [`borderRadius-Button-${themeColor}-${variant}`]: EXPECTED_BORDER_RADIUS,
124 |               [`borderStyle-Button-${themeColor}-${variant}`]: EXPECTED_BORDER_STYLE,
125 |             },
126 |           });
127 | 
128 |           const driver = await createButtonDriver();
129 |           await expect(driver.component).toHaveCSS("border-color", EXPECTED_BORDER_COLOR);
130 |           await expect(driver.component).toHaveCSS("border-width", EXPECTED_BORDER_WIDTH);
131 |           await expect(driver.component).toHaveCSS("border-radius", EXPECTED_BORDER_RADIUS);
132 |           await expect(driver.component).toHaveCSS("border-style", EXPECTED_BORDER_STYLE);
133 |         });
134 |       });
135 |     });
136 | 
137 |   buttonThemeValues.forEach((themeColor) => {
138 |     test(`border: "${themeColor}" "ghost" variant`, async ({ initTestBed, createButtonDriver }) => {
139 |       await initTestBed(`<Button variant="ghost" themeColor="${themeColor}" />`, {
140 |         testThemeVars: {
141 |           [`borderWidth-Button-${themeColor}-ghost`]: EXPECTED_BORDER_WIDTH,
142 |           [`borderRadius-Button-${themeColor}-ghost`]: EXPECTED_BORDER_RADIUS,
143 |         },
144 |       });
145 |       const driver = await createButtonDriver();
146 |       await expect(driver.component).toHaveCSS("border-width", EXPECTED_BORDER_WIDTH);
147 |       await expect(driver.component).toHaveCSS("border-radius", EXPECTED_BORDER_RADIUS);
148 |     });
149 |   });
150 | 
151 |   // fonts
152 |   const EXPECTED_FONT_FAMILY = "Arial, sans-serif";
153 |   const EXPECTED_FONT_SIZE = "20px";
154 |   const EXPECTED_FONT_WEIGHT = "200";
155 |   buttonVariantValues.forEach((variant) => {
156 |     buttonThemeValues.forEach((themeColor) => {
157 |       test(`font: "${themeColor}" "${variant}" variant`, async ({
158 |         initTestBed,
159 |         createButtonDriver,
160 |       }) => {
161 |         await initTestBed(`<Button variant="${variant}" themeColor="${themeColor}" />`, {
162 |           testThemeVars: {
163 |             [`fontFamily-Button-${themeColor}-${variant}`]: EXPECTED_FONT_FAMILY,
164 |             [`fontSize-Button-${themeColor}-${variant}`]: EXPECTED_FONT_SIZE,
165 |             [`fontWeight-Button-${themeColor}-${variant}`]: EXPECTED_FONT_WEIGHT,
166 |           },
167 |         });
168 |         const driver = await createButtonDriver();
169 |         await expect(driver.component).toHaveCSS("font-family", EXPECTED_FONT_FAMILY);
170 |         await expect(driver.component).toHaveCSS("font-size", EXPECTED_FONT_SIZE);
171 |         await expect(driver.component).toHaveCSS("font-weight", EXPECTED_FONT_WEIGHT);
172 |       });
173 |     });
174 |   });
175 | 
176 |   // --- Accessibility
177 | 
178 |   test("icon-only button has accessible name", async ({ initTestBed, createButtonDriver }) => {
179 |     await initTestBed(`<Button icon="test" />`, {
180 |       resources: {
181 |         "icon.test": "resources/bell.svg",
182 |       },
183 |     });
184 |     await expect((await createButtonDriver()).component).toHaveText("test");
185 |   });
186 | 
187 |   test("icon & label button uses label name only", async ({ initTestBed, createButtonDriver }) => {
188 |     await initTestBed(`<Button icon="test" label="label" />`, {
189 |       resources: {
190 |         "icon.test": "resources/bell.svg",
191 |       },
192 |     });
193 |     await expect((await createButtonDriver()).component).toHaveText("label");
194 |   });
195 | 
196 |   test("icon-only button uses contextualLabel", async ({ initTestBed, createButtonDriver }) => {
197 |     await initTestBed(`<Button icon="test" contextualLabel="label" />`, {
198 |       resources: {
199 |         "icon.test": "resources/bell.svg",
200 |       },
201 |     });
202 |     await expect((await createButtonDriver()).component).toHaveText("label");
203 |   });
204 | 
205 |   test("icon, label, contextualLabel button uses label", async ({
206 |     initTestBed,
207 |     createButtonDriver,
208 |   }) => {
209 |     await initTestBed(`<Button icon="test" label="label" contextualLabel="contextLabel" />`, {
210 |       resources: {
211 |         "icon.test": "resources/bell.svg",
212 |       },
213 |     });
214 |     await expect((await createButtonDriver()).component).toHaveText("label");
215 |   });
216 | });
217 | 
218 | // --- E2E
219 | 
220 | // --- label
221 | 
222 | // Label inputs resolved with converting them to a string
223 | [
224 |   { label: "null", input: null, toExpect: "null" },
225 |   { label: "undefined", input: undefined, toExpect: "undefined" },
226 |   { label: "empty object", input: {}, toExpect: "[object Object]" },
227 |   { label: "object", input: { a: 1, b: "hi" }, toExpect: "[object Object]" },
228 |   { label: "empty array", input: [], toExpect: undefined },
229 |   { label: "array", input: [1, 2, 3], toExpect: "1,2,3" },
230 |   { label: "arrow function returning string", input: "{() => ''}", toExpect: "[object Object]" },
231 |   {
232 |     label: "function returning string",
233 |     input: "{function () { return ''; }}",
234 |     toExpect: "[object Object]",
235 |   },
236 |   {
237 |     label: "IIFE returning string",
238 |     input: "{(function () { return 'hello'; })()}",
239 |     toExpect: "hello",
240 |   },
241 | ].forEach((type) => {
242 |   test(`if label is ${type.label} renders label as "${type.toExpect}"`, async ({
243 |     initTestBed,
244 |     createButtonDriver,
245 |   }) => {
246 |     await initTestBed(`<Button label="${type.input}" />`);
247 |     await expect((await createButtonDriver()).component).toHaveExplicitLabel(type.toExpect);
248 |   });
249 | });
250 | 
251 | test("text node as children are same as setting label", async ({
252 |   initTestBed,
253 |   createButtonDriver,
254 | }) => {
255 |   await initTestBed(`<Button>hello</Button>`);
256 |   await expect((await createButtonDriver()).component).toHaveExplicitLabel("hello");
257 | });
258 | 
259 | test("ignores label property if children present", async ({ initTestBed, createButtonDriver }) => {
260 |   await initTestBed(`<Button label="hello">world</Button>`);
261 |   await expect((await createButtonDriver()).component).toHaveExplicitLabel("world");
262 | });
263 | 
264 | test("renders XMLUI Text component as child", async ({
265 |   initTestBed,
266 |   createButtonDriver,
267 |   createTextDriver,
268 | }) => {
269 |   await initTestBed(`<Button label="hello"><Text testId="text">world</Text></Button>`);
270 |   await expect((await createButtonDriver()).component).not.toHaveExplicitLabel("hello");
271 |   await expect((await createTextDriver("text")).component).toHaveText("world");
272 | });
273 | 
274 | test("renders XMLUI Complex component as child", async ({
275 |   initTestBed,
276 |   createButtonDriver,
277 |   createCardDriver,
278 | }) => {
279 |   await initTestBed(
280 |     `<Button label="hello"><Card testId="card" title="Button">Content</Card></Button>`,
281 |   );
282 |   await expect((await createButtonDriver()).component).not.toHaveExplicitLabel("hello");
283 |   await expect((await createCardDriver("card")).component).toBeAttached();
284 | });
285 | 
286 | // --- icon
287 | 
288 | test("renders icon and label", async ({ initTestBed, createButtonDriver }) => {
289 |   await initTestBed(`<Button icon="test" label="hello" />`, {
290 |     resources: {
291 |       "icon.test": "resources/bell.svg",
292 |     },
293 |   });
294 |   const driver = await createButtonDriver();
295 | 
296 |   await expect(driver.component).toHaveText("hello");
297 |   await expect(driver.getIcons().first()).toBeVisible();
298 | });
299 | 
300 | test("renders icon if children present", async ({ initTestBed, createButtonDriver }) => {
301 |   await initTestBed(`<Button icon="test">Hello World</Button>`, {
302 |     resources: {
303 |       "icon.test": "resources/bell.svg",
304 |     },
305 |   });
306 |   await expect((await createButtonDriver()).getIcons().first()).toBeVisible();
307 | });
308 | 
309 | [
310 |   { label: "null", value: null },
311 |   { label: "undefined", value: undefined },
312 |   { label: "empty object", value: {} },
313 |   { label: "object", value: { a: 1, b: "hi" } },
314 |   { label: "empty array", value: [] },
315 |   { label: "array", value: [] },
316 |   { label: "function", value: () => {} },
317 | ].forEach((type) => {
318 |   test(`does not render icon if icon is of type ${type.label}`, async ({
319 |     initTestBed,
320 |     createButtonDriver,
321 |   }) => {
322 |     await initTestBed(`<Button icon="${type.value}" />`);
323 |     await expect((await createButtonDriver()).getIcons().first()).not.toBeAttached();
324 |   });
325 | });
326 | 
327 | test("renders if icon is not found and label is present", async ({
328 |   initTestBed,
329 |   createButtonDriver,
330 | }) => {
331 |   await initTestBed(`<Button icon="_" label="hello" />`);
332 |   const driver = await createButtonDriver();
333 | 
334 |   await expect(driver.getIcons().first()).not.toBeAttached();
335 |   await expect(driver.component).toHaveText("hello");
336 | });
337 | 
338 | // --- iconPosition
339 | 
340 | const iconPositionCases: {
341 |   position: "left" | "right";
342 |   value: IconPosition;
343 | }[] = [
344 |   { position: "left", value: "start" },
345 |   { position: "right", value: "end" },
346 | ];
347 | 
348 | // This is a helper function to calculate the icon position
349 | async function iconPositionCalculation(buttonDriver: ComponentDriver, iconDriver: ComponentDriver) {
350 |   const buttonBounds = await getBounds(buttonDriver);
351 |   const buttonPadding = await getPaddings(buttonDriver);
352 |   const buttonBorders = await getBorders(buttonDriver);
353 |   const { left: iconLeft, right: iconRight } = await getBounds(iconDriver);
354 |   const buttonContentLeft =
355 |     buttonBounds.left + buttonBorders.left.width.value + buttonPadding.left.value;
356 |   const buttonContentRight =
357 |     buttonBounds.right - buttonBorders.right.width.value - buttonPadding.right.value;
358 |   return { buttonContentLeft, buttonContentRight, iconLeft, iconRight };
359 | }
360 | 
361 | iconPositionCases.forEach(({ value }) => {
362 |   test(`iconPosition=${value} leaves icon in middle`, async ({
363 |     initTestBed,
364 |     createButtonDriver,
365 |     createIconDriver,
366 |   }) => {
367 |     await initTestBed(`<Button icon="test" iconPosition="${value}" />`, {
368 |       resources: {
369 |         "icon.test": "resources/bell.svg",
370 |       },
371 |     });
372 |     const buttonDriver = await createButtonDriver();
373 |     const iconDriver = await createIconDriver(buttonDriver.getIcons().first());
374 |     const { buttonContentLeft, buttonContentRight, iconLeft, iconRight } =
375 |       await iconPositionCalculation(buttonDriver, iconDriver);
376 | 
377 |     expect(buttonContentLeft).toBeCloseTo(iconLeft, 5);
378 |     expect(buttonContentRight).toBeCloseTo(iconRight, 5);
379 |   });
380 | });
381 | 
382 | // With label
383 | iconPositionCases.forEach(({ position, value }) => {
384 |   test(`iconPosition=${value} places icon on the ${position} of label`, async ({
385 |     initTestBed,
386 |     createButtonDriver,
387 |     createIconDriver,
388 |   }) => {
389 |     await initTestBed(`<Button icon="test" label="hello" iconPosition="${value}" />`, {
390 |       resources: {
391 |         "icon.test": "resources/bell.svg",
392 |       },
393 |     });
394 |     const buttonDriver = await createButtonDriver();
395 |     const iconDriver = await createIconDriver(buttonDriver.getIcons().first());
396 |     const { buttonContentLeft, buttonContentRight, iconLeft, iconRight } =
397 |       await iconPositionCalculation(buttonDriver, iconDriver);
398 | 
399 |     // Depending on orientation, the icon's leftmost and rightmost points fall shorter
400 |     // compared to the button's leftmost and rightmost points because of the label
401 |     if (value === "start") {
402 |       expect(buttonContentLeft).toBeCloseTo(iconLeft, 5);
403 |       expect(buttonContentRight).toBeGreaterThan(iconRight + 1);
404 |     } else {
405 |       expect(buttonContentLeft).toBeLessThan(iconLeft - 1);
406 |       expect(buttonContentRight).toBeCloseTo(iconRight, 5);
407 |     }
408 |   });
409 | });
410 | 
411 | // With children
412 | iconPositionCases.forEach(({ position, value }) => {
413 |   test(`iconPosition=${value} places icon on ${position} of children`, async ({
414 |     initTestBed,
415 |     createButtonDriver,
416 |     createIconDriver,
417 |   }) => {
418 |     await initTestBed(
419 |       `<Button icon="test" iconPosition="${value}">
420 |           <Card title="Test">This is some content</Card>
421 |         </Button>`,
422 |       {
423 |         resources: {
424 |           "icon.test": "resources/bell.svg",
425 |         },
426 |       },
427 |     );
428 |     const buttonDriver = await createButtonDriver();
429 |     const iconDriver = await createIconDriver(buttonDriver.getIcons().first());
430 |     const { buttonContentLeft, buttonContentRight, iconLeft, iconRight } =
431 |       await iconPositionCalculation(buttonDriver, iconDriver);
432 | 
433 |     // Depending on orientation, the icon's leftmost and rightmost points fall shorter
434 |     // compared to the button's leftmost and rightmost points because of the children
435 |     if (value === "start") {
436 |       expect(buttonContentLeft).toBeCloseTo(iconLeft, 5);
437 |       expect(buttonContentRight).toBeGreaterThan(iconRight + 1);
438 |     } else {
439 |       expect(buttonContentLeft).toBeLessThan(iconLeft - 1);
440 |       expect(buttonContentRight).toBeCloseTo(iconRight, 5);
441 |     }
442 |   });
443 | });
444 | 
445 | // --- contentPosition
446 | 
447 | alignmentOptionValues.forEach((pos) => {
448 |   test(`label and icon is positioned to the ${pos}`, async ({
449 |     initTestBed,
450 |     createButtonDriver,
451 |   }) => {
452 |     await initTestBed(
453 |       `<Button width="100%" icon="test" label="hello" contentPosition="${pos}" />`,
454 |       {
455 |         resources: {
456 |           "icon.test": "resources/bell.svg",
457 |         },
458 |       },
459 |     );
460 |     await expect((await createButtonDriver()).component).toHaveCSS("justify-content", pos);
461 |   });
462 | });
463 | 
464 | // --- type
465 | 
466 | buttonTypeValues.forEach((type) => {
467 |   test(`type="${type}" is reflected in html`, async ({ initTestBed, createButtonDriver }) => {
468 |     await initTestBed(`<Button type="${type}" />`);
469 |     await expect((await createButtonDriver()).component).toHaveAttribute("type", type);
470 |   });
471 | });
472 | 
473 | // --- autoFocus
474 | 
475 | test("focuses component if autoFocus is set", async ({ initTestBed, createButtonDriver }) => {
476 |   await initTestBed(`<Button autoFocus="{true}" />`);
477 |   await expect((await createButtonDriver()).component).toBeFocused();
478 | });
479 | 
480 | // --- size
481 | 
482 | // Relative testing is acceptable for now - basis of the test is the default size
483 | test("relative size test", async ({ initTestBed, page }) => {
484 |   const components = sizeValues
485 |     .map((size) => {
486 |       return `<Button testId="${size}" size="${size}" />`;
487 |     })
488 |     .join("\n");
489 | 
490 |   await initTestBed(`<Fragment>${components}</Fragment>`);
491 |   const { width: widthXs, height: heightXs } = await getBounds(page.getByTestId("xs"));
492 |   const { width: widthSm, height: heightSm } = await getBounds(page.getByTestId("sm"));
493 |   const { width: widthMd, height: heightMd } = await getBounds(page.getByTestId("md"));
494 |   const { width: widthLg, height: heightLg } = await getBounds(page.getByTestId("lg"));
495 | 
496 |   expect(widthXs).toBeLessThanOrEqual(widthSm);
497 |   expect(widthSm).toBeLessThanOrEqual(widthMd);
498 |   expect(widthMd).toBeLessThanOrEqual(widthLg);
499 |   expect(heightXs).toBeLessThanOrEqual(heightSm);
500 |   expect(heightSm).toBeLessThanOrEqual(heightMd);
501 |   expect(heightMd).toBeLessThanOrEqual(heightLg);
502 | });
503 | 
504 | test("testState initializes to default value", async ({ initTestBed }) => {
505 |   const getState = (await initTestBed(`<Fragment />`)).testStateDriver.testState;
506 |   await expect.poll(getState).toEqual(null);
507 | });
508 | 
509 | // --- gotFocus
510 | 
511 | test("is focused & gotFocus event fires", async ({ initTestBed, createButtonDriver }) => {
512 |   const { testStateDriver } = await initTestBed(`<Button onGotFocus="testState = true" />`);
513 |   const driver = await createButtonDriver();
514 | 
515 |   await driver.focus();
516 |   await expect(driver.component).toBeFocused();
517 |   await expect.poll(testStateDriver.testState).toEqual(true);
518 | });
519 | 
520 | test("gotFocus event does not fire if disabled", async ({ initTestBed, createButtonDriver }) => {
521 |   const { testStateDriver } = await initTestBed(
522 |     `<Button enabled="false" onGotFocus="testState = true" />`,
523 |   );
524 |   const driver = await createButtonDriver();
525 | 
526 |   await driver.focus();
527 |   // testState remains unchanged
528 |   await expect(driver.component).not.toBeFocused();
529 |   await expect.poll(testStateDriver.testState).toEqual(null);
530 | });
531 | 
532 | // --- lostFocus
533 | 
534 | test("lostFocus event fires & is not focused", async ({ initTestBed, createButtonDriver }) => {
535 |   const { testStateDriver } = await initTestBed(`<Button onLostFocus="testState = true" />`);
536 |   const driver = await createButtonDriver();
537 | 
538 |   await driver.focus();
539 |   await driver.blur();
540 | 
541 |   await expect(driver.component).not.toBeFocused();
542 |   await expect.poll(testStateDriver.testState).toEqual(true);
543 | });
544 | 
545 | test("cannot emit lostFocus event if not focused before", async ({
546 |   initTestBed,
547 |   createButtonDriver,
548 | }) => {
549 |   const { testStateDriver } = await initTestBed(`<Button onLostFocus="testState = true" />`);
550 |   const driver = await createButtonDriver();
551 | 
552 |   await driver.blur();
553 |   await expect.poll(testStateDriver.testState).toEqual(null);
554 | });
555 | 
556 | test("lostFocus event does not fire if disabled", async ({ initTestBed, createButtonDriver }) => {
557 |   const { testStateDriver } = await initTestBed(
558 |     `<Button enabled="false" onLostFocus="testState = true" />`,
559 |   );
560 |   const driver = await createButtonDriver();
561 | 
562 |   await driver.focus();
563 |   await driver.blur();
564 | 
565 |   // testState remains unchanged
566 |   await expect(driver.component).not.toBeFocused();
567 |   await expect.poll(testStateDriver.testState).toEqual(null);
568 | });
569 | 
```

--------------------------------------------------------------------------------
/xmlui/tests/components-core/theming/padding-segments.test.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { describe, expect, it } from "vitest";
  2 | import { generatePaddingSegments } from "../../../src/components-core/theming/transformThemeVars";
  3 | 
  4 | describe("generatePaddingSegments", () => {
  5 |   it("No padding", () => {
  6 |     const newTheme: Record<string, string> = {
  7 |       "borderColor-AppHeader": "xxx",
  8 |     };
  9 | 
 10 |     const result = generatePaddingSegments(newTheme);
 11 | 
 12 |     expect(result).deep.equal({
 13 |       "borderColor-AppHeader": "xxx",
 14 |     });
 15 |   });
 16 | 
 17 |   it("paddingHorizontal only", () => {
 18 |     const newTheme: Record<string, string> = {
 19 |       "paddingHorizontal-AppHeader": "xxx",
 20 |     };
 21 | 
 22 |     const result = generatePaddingSegments(newTheme);
 23 | 
 24 |     expect(result).deep.equal({
 25 |       "paddingHorizontal-AppHeader": "xxx",
 26 |       "paddingLeft-AppHeader": "xxx",
 27 |       "paddingRight-AppHeader": "xxx",
 28 |     });
 29 |   });
 30 | 
 31 |   it("paddingVertical only", () => {
 32 |     const newTheme: Record<string, string> = {
 33 |       "paddingVertical-AppHeader": "xxx",
 34 |     };
 35 | 
 36 |     const result = generatePaddingSegments(newTheme);
 37 | 
 38 |     expect(result).deep.equal({
 39 |       "paddingBottom-AppHeader": "xxx",
 40 |       "paddingTop-AppHeader": "xxx",
 41 |       "paddingVertical-AppHeader": "xxx",
 42 |     });
 43 |   });
 44 | 
 45 |   it("paddingHorizontal and paddingVertical", () => {
 46 |     const newTheme: Record<string, string> = {
 47 |       "paddingHorizontal-AppHeader": "xxx",
 48 |       "paddingVertical-AppHeader": "yyy",
 49 |     };
 50 | 
 51 |     const result = generatePaddingSegments(newTheme);
 52 | 
 53 |     expect(result).deep.equal({
 54 |       "paddingBottom-AppHeader": "yyy",
 55 |       "paddingHorizontal-AppHeader": "xxx",
 56 |       "paddingLeft-AppHeader": "xxx",
 57 |       "paddingRight-AppHeader": "xxx",
 58 |       "paddingTop-AppHeader": "yyy",
 59 |       "paddingVertical-AppHeader": "yyy",
 60 |     });
 61 |   });
 62 | 
 63 |   it("paddingTop only", () => {
 64 |     const newTheme: Record<string, string> = {
 65 |       "paddingTop-AppHeader": "xxx",
 66 |     };
 67 | 
 68 |     const result = generatePaddingSegments(newTheme);
 69 | 
 70 |     expect(result).deep.equal({
 71 |       "paddingTop-AppHeader": "xxx",
 72 |     });
 73 |   });
 74 | 
 75 |   it("paddingRight only", () => {
 76 |     const newTheme: Record<string, string> = {
 77 |       "paddingRight-AppHeader": "xxx",
 78 |     };
 79 | 
 80 |     const result = generatePaddingSegments(newTheme);
 81 | 
 82 |     expect(result).deep.equal({
 83 |       "paddingRight-AppHeader": "xxx",
 84 |     });
 85 |   });
 86 | 
 87 |   it("paddingBottom only", () => {
 88 |     const newTheme: Record<string, string> = {
 89 |       "paddingBottom-AppHeader": "xxx",
 90 |     };
 91 | 
 92 |     const result = generatePaddingSegments(newTheme);
 93 | 
 94 |     expect(result).deep.equal({
 95 |       "paddingBottom-AppHeader": "xxx",
 96 |     });
 97 |   });
 98 | 
 99 |   it("paddingLeft only", () => {
100 |     const newTheme: Record<string, string> = {
101 |       "paddingLeft-AppHeader": "xxx",
102 |     };
103 | 
104 |     const result = generatePaddingSegments(newTheme);
105 | 
106 |     expect(result).deep.equal({
107 |       "paddingLeft-AppHeader": "xxx",
108 |     });
109 |   });
110 | 
111 |   it("padding with one value", () => {
112 |     const newTheme: Record<string, string> = {
113 |       "padding-AppHeader": "4px",
114 |     };
115 | 
116 |     const result = generatePaddingSegments(newTheme);
117 | 
118 |     expect(result).deep.equal({
119 |       "padding-AppHeader": "4px",
120 |       "paddingTop-AppHeader": "4px",
121 |       "paddingRight-AppHeader": "4px",
122 |       "paddingBottom-AppHeader": "4px",
123 |       "paddingLeft-AppHeader": "4px",
124 |     });
125 |   });
126 | 
127 |   it("padding with one value and paddingTop override", () => {
128 |     const newTheme: Record<string, string> = {
129 |       "padding-AppHeader": "4px",
130 |       "paddingTop-AppHeader": "8px",
131 |     };
132 | 
133 |     const result = generatePaddingSegments(newTheme);
134 | 
135 |     expect(result).deep.equal({
136 |       "padding-AppHeader": "4px",
137 |       "paddingTop-AppHeader": "8px",
138 |       "paddingRight-AppHeader": "4px",
139 |       "paddingBottom-AppHeader": "4px",
140 |       "paddingLeft-AppHeader": "4px",
141 |     });
142 |   });
143 | 
144 |   it("padding with one value and paddingRight override", () => {
145 |     const newTheme: Record<string, string> = {
146 |       "padding-AppHeader": "4px",
147 |       "paddingRight-AppHeader": "8px",
148 |     };
149 | 
150 |     const result = generatePaddingSegments(newTheme);
151 | 
152 |     expect(result).deep.equal({
153 |       "padding-AppHeader": "4px",
154 |       "paddingTop-AppHeader": "4px",
155 |       "paddingRight-AppHeader": "8px",
156 |       "paddingBottom-AppHeader": "4px",
157 |       "paddingLeft-AppHeader": "4px",
158 |     });
159 |   });
160 | 
161 |   it("padding with one value and paddingBottom override", () => {
162 |     const newTheme: Record<string, string> = {
163 |       "padding-AppHeader": "4px",
164 |       "paddingBottom-AppHeader": "8px",
165 |     };
166 | 
167 |     const result = generatePaddingSegments(newTheme);
168 | 
169 |     expect(result).deep.equal({
170 |       "padding-AppHeader": "4px",
171 |       "paddingTop-AppHeader": "4px",
172 |       "paddingRight-AppHeader": "4px",
173 |       "paddingBottom-AppHeader": "8px",
174 |       "paddingLeft-AppHeader": "4px",
175 |     });
176 |   });
177 | 
178 |   it("padding with one value and paddingLeft override", () => {
179 |     const newTheme: Record<string, string> = {
180 |       "padding-AppHeader": "4px",
181 |       "paddingLeft-AppHeader": "8px",
182 |     };
183 | 
184 |     const result = generatePaddingSegments(newTheme);
185 | 
186 |     expect(result).deep.equal({
187 |       "padding-AppHeader": "4px",
188 |       "paddingTop-AppHeader": "4px",
189 |       "paddingRight-AppHeader": "4px",
190 |       "paddingBottom-AppHeader": "4px",
191 |       "paddingLeft-AppHeader": "8px",
192 |     });
193 |   });
194 | 
195 |   it("padding with one value and paddingHorizontal override", () => {
196 |     const newTheme: Record<string, string> = {
197 |       "padding-AppHeader": "4px",
198 |       "paddingHorizontal-AppHeader": "8px",
199 |     };
200 | 
201 |     const result = generatePaddingSegments(newTheme);
202 | 
203 |     expect(result).deep.equal({
204 |       "padding-AppHeader": "4px",
205 |       "paddingHorizontal-AppHeader": "8px",
206 |       "paddingTop-AppHeader": "4px",
207 |       "paddingRight-AppHeader": "8px",
208 |       "paddingBottom-AppHeader": "4px",
209 |       "paddingLeft-AppHeader": "8px",
210 |     });
211 |   });
212 | 
213 |   it("padding with one value and paddingHorizontal and paddingLeft override", () => {
214 |     const newTheme: Record<string, string> = {
215 |       "padding-AppHeader": "4px",
216 |       "paddingHorizontal-AppHeader": "8px",
217 |       "paddingLeft-AppHeader": "16px",
218 |     };
219 | 
220 |     const result = generatePaddingSegments(newTheme);
221 | 
222 |     expect(result).deep.equal({
223 |       "padding-AppHeader": "4px",
224 |       "paddingHorizontal-AppHeader": "8px",
225 |       "paddingLeft-AppHeader": "16px",
226 |       "paddingTop-AppHeader": "4px",
227 |       "paddingRight-AppHeader": "8px",
228 |       "paddingBottom-AppHeader": "4px",
229 |     });
230 |   });
231 | 
232 |   it("padding with one value and paddingHorizontal and paddingRight override", () => {
233 |     const newTheme: Record<string, string> = {
234 |       "padding-AppHeader": "4px",
235 |       "paddingHorizontal-AppHeader": "8px",
236 |       "paddingRight-AppHeader": "16px",
237 |     };
238 | 
239 |     const result = generatePaddingSegments(newTheme);
240 | 
241 |     expect(result).deep.equal({
242 |       "padding-AppHeader": "4px",
243 |       "paddingHorizontal-AppHeader": "8px",
244 |       "paddingRight-AppHeader": "16px",
245 |       "paddingTop-AppHeader": "4px",
246 |       "paddingBottom-AppHeader": "4px",
247 |       "paddingLeft-AppHeader": "8px",
248 |     });
249 |   });
250 | 
251 |   it("padding with one value and paddingVertical override", () => {
252 |     const newTheme: Record<string, string> = {
253 |       "padding-AppHeader": "4px",
254 |       "paddingVertical-AppHeader": "8px",
255 |     };
256 | 
257 |     const result = generatePaddingSegments(newTheme);
258 | 
259 |     expect(result).deep.equal({
260 |       "padding-AppHeader": "4px",
261 |       "paddingVertical-AppHeader": "8px",
262 |       "paddingTop-AppHeader": "8px",
263 |       "paddingRight-AppHeader": "4px",
264 |       "paddingBottom-AppHeader": "8px",
265 |       "paddingLeft-AppHeader": "4px",
266 |     });
267 |   });
268 | 
269 |   it("padding with one value and paddingVertical and paddingTop override", () => {
270 |     const newTheme: Record<string, string> = {
271 |       "padding-AppHeader": "4px",
272 |       "paddingVertical-AppHeader": "8px",
273 |       "paddingTop-AppHeader": "16px",
274 |     };
275 | 
276 |     const result = generatePaddingSegments(newTheme);
277 | 
278 |     expect(result).deep.equal({
279 |       "padding-AppHeader": "4px",
280 |       "paddingVertical-AppHeader": "8px",
281 |       "paddingTop-AppHeader": "16px",
282 |       "paddingRight-AppHeader": "4px",
283 |       "paddingBottom-AppHeader": "8px",
284 |       "paddingLeft-AppHeader": "4px",
285 |     });
286 |   });
287 | 
288 |   it("padding with one value and paddingVertical and paddingBottom override", () => {
289 |     const newTheme: Record<string, string> = {
290 |       "padding-AppHeader": "4px",
291 |       "paddingVertical-AppHeader": "8px",
292 |       "paddingBottom-AppHeader": "16px",
293 |     };
294 | 
295 |     const result = generatePaddingSegments(newTheme);
296 | 
297 |     expect(result).deep.equal({
298 |       "padding-AppHeader": "4px",
299 |       "paddingVertical-AppHeader": "8px",
300 |       "paddingTop-AppHeader": "8px",
301 |       "paddingRight-AppHeader": "4px",
302 |       "paddingBottom-AppHeader": "16px",
303 |       "paddingLeft-AppHeader": "4px",
304 |     });
305 |   });
306 | 
307 |   it("padding with two values", () => {
308 |     const newTheme: Record<string, string> = {
309 |       "padding-AppHeader": "4px 8px",
310 |     };
311 | 
312 |     const result = generatePaddingSegments(newTheme);
313 | 
314 |     expect(result).deep.equal({
315 |       "padding-AppHeader": "4px 8px",
316 |       "paddingTop-AppHeader": "4px",
317 |       "paddingRight-AppHeader": "8px",
318 |       "paddingBottom-AppHeader": "4px",
319 |       "paddingLeft-AppHeader": "8px",
320 |     });
321 |   });
322 | 
323 |   it("padding with two values and paddingTop override", () => {
324 |     const newTheme: Record<string, string> = {
325 |       "padding-AppHeader": "4px 8px",
326 |       "paddingTop-AppHeader": "16px",
327 |     };
328 | 
329 |     const result = generatePaddingSegments(newTheme);
330 | 
331 |     expect(result).deep.equal({
332 |       "padding-AppHeader": "4px 8px",
333 |       "paddingTop-AppHeader": "16px",
334 |       "paddingRight-AppHeader": "8px",
335 |       "paddingBottom-AppHeader": "4px",
336 |       "paddingLeft-AppHeader": "8px",
337 |     });
338 |   });
339 | 
340 |   it("padding with two values and paddingRight override", () => {
341 |     const newTheme: Record<string, string> = {
342 |       "padding-AppHeader": "4px 8px",
343 |       "paddingRight-AppHeader": "16px",
344 |     };
345 | 
346 |     const result = generatePaddingSegments(newTheme);
347 | 
348 |     expect(result).deep.equal({
349 |       "padding-AppHeader": "4px 8px",
350 |       "paddingTop-AppHeader": "4px",
351 |       "paddingRight-AppHeader": "16px",
352 |       "paddingBottom-AppHeader": "4px",
353 |       "paddingLeft-AppHeader": "8px",
354 |     });
355 |   });
356 | 
357 |   it("padding with two values and paddingHorizontal override", () => {
358 |     const newTheme: Record<string, string> = {
359 |       "padding-AppHeader": "4px 8px",
360 |       "paddingHorizontal-AppHeader": "16px",
361 |     };
362 | 
363 |     const result = generatePaddingSegments(newTheme);
364 | 
365 |     expect(result).deep.equal({
366 |       "padding-AppHeader": "4px 8px",
367 |       "paddingHorizontal-AppHeader": "16px",
368 |       "paddingTop-AppHeader": "4px",
369 |       "paddingRight-AppHeader": "16px",
370 |       "paddingBottom-AppHeader": "4px",
371 |       "paddingLeft-AppHeader": "16px",
372 |     });
373 |   });
374 | 
375 |   it("padding with two values and paddingBottom override", () => {
376 |     const newTheme: Record<string, string> = {
377 |       "padding-AppHeader": "4px 8px",
378 |       "paddingBottom-AppHeader": "16px",
379 |     };
380 | 
381 |     const result = generatePaddingSegments(newTheme);
382 | 
383 |     expect(result).deep.equal({
384 |       "padding-AppHeader": "4px 8px",
385 |       "paddingTop-AppHeader": "4px",
386 |       "paddingRight-AppHeader": "8px",
387 |       "paddingBottom-AppHeader": "16px",
388 |       "paddingLeft-AppHeader": "8px",
389 |     });
390 |   });
391 | 
392 |   it("padding with two values and paddingLeft override", () => {
393 |     const newTheme: Record<string, string> = {
394 |       "padding-AppHeader": "4px 8px",
395 |       "paddingLeft-AppHeader": "16px",
396 |     };
397 | 
398 |     const result = generatePaddingSegments(newTheme);
399 | 
400 |     expect(result).deep.equal({
401 |       "padding-AppHeader": "4px 8px",
402 |       "paddingTop-AppHeader": "4px",
403 |       "paddingRight-AppHeader": "8px",
404 |       "paddingBottom-AppHeader": "4px",
405 |       "paddingLeft-AppHeader": "16px",
406 |     });
407 |   });
408 | 
409 |   it("padding with two values and paddingVertical override", () => {
410 |     const newTheme: Record<string, string> = {
411 |       "padding-AppHeader": "4px 8px",
412 |       "paddingVertical-AppHeader": "16px",
413 |     };
414 | 
415 |     const result = generatePaddingSegments(newTheme);
416 | 
417 |     expect(result).deep.equal({
418 |       "padding-AppHeader": "4px 8px",
419 |       "paddingVertical-AppHeader": "16px",
420 |       "paddingTop-AppHeader": "16px",
421 |       "paddingRight-AppHeader": "8px",
422 |       "paddingBottom-AppHeader": "16px",
423 |       "paddingLeft-AppHeader": "8px",
424 |     });
425 |   });
426 | 
427 |   it("padding with two values and paddingHorizontal override", () => {
428 |     const newTheme: Record<string, string> = {
429 |       "padding-AppHeader": "4px 8px",
430 |       "paddingHorizontal-AppHeader": "16px",
431 |     };
432 | 
433 |     const result = generatePaddingSegments(newTheme);
434 | 
435 |     expect(result).deep.equal({
436 |       "padding-AppHeader": "4px 8px",
437 |       "paddingHorizontal-AppHeader": "16px",
438 |       "paddingTop-AppHeader": "4px",
439 |       "paddingRight-AppHeader": "16px",
440 |       "paddingBottom-AppHeader": "4px",
441 |       "paddingLeft-AppHeader": "16px",
442 |     });
443 |   });
444 | 
445 |   it("padding with two values and paddingVertical override", () => {
446 |     const newTheme: Record<string, string> = {
447 |       "padding-AppHeader": "4px 8px",
448 |       "paddingVertical-AppHeader": "16px",
449 |     };
450 | 
451 |     const result = generatePaddingSegments(newTheme);
452 | 
453 |     expect(result).deep.equal({
454 |       "padding-AppHeader": "4px 8px",
455 |       "paddingVertical-AppHeader": "16px",
456 |       "paddingTop-AppHeader": "16px",
457 |       "paddingRight-AppHeader": "8px",
458 |       "paddingBottom-AppHeader": "16px",
459 |       "paddingLeft-AppHeader": "8px",
460 |     });
461 |   });
462 | 
463 |   it("padding with three values", () => {
464 |     const newTheme: Record<string, string> = {
465 |       "padding-AppHeader": "4px 8px 16px",
466 |     };
467 | 
468 |     const result = generatePaddingSegments(newTheme);
469 | 
470 |     expect(result).deep.equal({
471 |       "padding-AppHeader": "4px 8px 16px",
472 |       "paddingTop-AppHeader": "4px",
473 |       "paddingRight-AppHeader": "8px",
474 |       "paddingBottom-AppHeader": "16px",
475 |       "paddingLeft-AppHeader": "8px",
476 |     });
477 |   });
478 | 
479 |   it("padding with three values and paddingTop override", () => {
480 |     const newTheme: Record<string, string> = {
481 |       "padding-AppHeader": "4px 8px 16px",
482 |       "paddingTop-AppHeader": "32px",
483 |     };
484 | 
485 |     const result = generatePaddingSegments(newTheme);
486 | 
487 |     expect(result).deep.equal({
488 |       "padding-AppHeader": "4px 8px 16px",
489 |       "paddingTop-AppHeader": "32px",
490 |       "paddingRight-AppHeader": "8px",
491 |       "paddingBottom-AppHeader": "16px",
492 |       "paddingLeft-AppHeader": "8px",
493 |     });
494 |   });
495 | 
496 |   it("padding with three values and paddingRight override", () => {
497 |     const newTheme: Record<string, string> = {
498 |       "padding-AppHeader": "4px 8px 16px",
499 |       "paddingRight-AppHeader": "32px",
500 |     };
501 | 
502 |     const result = generatePaddingSegments(newTheme);
503 | 
504 |     expect(result).deep.equal({
505 |       "padding-AppHeader": "4px 8px 16px",
506 |       "paddingTop-AppHeader": "4px",
507 |       "paddingRight-AppHeader": "32px",
508 |       "paddingBottom-AppHeader": "16px",
509 |       "paddingLeft-AppHeader": "8px",
510 |     });
511 |   });
512 | 
513 |   it("padding with three values and paddingBottom override", () => {
514 |     const newTheme: Record<string, string> = {
515 |       "padding-AppHeader": "4px 8px 16px",
516 |       "paddingBottom-AppHeader": "32px",
517 |     };
518 | 
519 |     const result = generatePaddingSegments(newTheme);
520 | 
521 |     expect(result).deep.equal({
522 |       "padding-AppHeader": "4px 8px 16px",
523 |       "paddingTop-AppHeader": "4px",
524 |       "paddingRight-AppHeader": "8px",
525 |       "paddingBottom-AppHeader": "32px",
526 |       "paddingLeft-AppHeader": "8px",
527 |     });
528 |   });
529 | 
530 |   it("padding with three values and paddingLeft override", () => {
531 |     const newTheme: Record<string, string> = {
532 |       "padding-AppHeader": "4px 8px 16px",
533 |       "paddingLeft-AppHeader": "32px",
534 |     };
535 | 
536 |     const result = generatePaddingSegments(newTheme);
537 | 
538 |     expect(result).deep.equal({
539 |       "padding-AppHeader": "4px 8px 16px",
540 |       "paddingTop-AppHeader": "4px",
541 |       "paddingRight-AppHeader": "8px",
542 |       "paddingBottom-AppHeader": "16px",
543 |       "paddingLeft-AppHeader": "32px",
544 |     });
545 |   });
546 | 
547 |   it("padding with three values and paddingHorizontal override", () => {
548 |     const newTheme: Record<string, string> = {
549 |       "padding-AppHeader": "4px 8px 16px",
550 |       "paddingHorizontal-AppHeader": "32px",
551 |     };
552 | 
553 |     const result = generatePaddingSegments(newTheme);
554 | 
555 |     expect(result).deep.equal({
556 |       "padding-AppHeader": "4px 8px 16px",
557 |       "paddingHorizontal-AppHeader": "32px",
558 |       "paddingTop-AppHeader": "4px",
559 |       "paddingRight-AppHeader": "32px",
560 |       "paddingBottom-AppHeader": "16px",
561 |       "paddingLeft-AppHeader": "32px",
562 |     });
563 |   });
564 | 
565 |   it("padding with three values and paddingVertical override", () => {
566 |     const newTheme: Record<string, string> = {
567 |       "padding-AppHeader": "4px 8px 16px",
568 |       "paddingVertical-AppHeader": "32px",
569 |     };
570 | 
571 |     const result = generatePaddingSegments(newTheme);
572 | 
573 |     expect(result).deep.equal({
574 |       "padding-AppHeader": "4px 8px 16px",
575 |       "paddingVertical-AppHeader": "32px",
576 |       "paddingTop-AppHeader": "32px",
577 |       "paddingRight-AppHeader": "8px",
578 |       "paddingBottom-AppHeader": "32px",
579 |       "paddingLeft-AppHeader": "8px",
580 |     });
581 |   });
582 | 
583 |   it("padding with four values", () => {
584 |     const newTheme: Record<string, string> = {
585 |       "padding-AppHeader": "4px 8px 16px 32px",
586 |     };
587 | 
588 |     const result = generatePaddingSegments(newTheme);
589 | 
590 |     expect(result).deep.equal({
591 |       "padding-AppHeader": "4px 8px 16px 32px",
592 |       "paddingTop-AppHeader": "4px",
593 |       "paddingRight-AppHeader": "8px",
594 |       "paddingBottom-AppHeader": "16px",
595 |       "paddingLeft-AppHeader": "32px",
596 |     });
597 |   });
598 | 
599 |   it("padding with four values and paddingTop override", () => {
600 |     const newTheme: Record<string, string> = {
601 |       "padding-AppHeader": "4px 8px 16px 32px",
602 |       "paddingTop-AppHeader": "64px",
603 |     };
604 | 
605 |     const result = generatePaddingSegments(newTheme);
606 | 
607 |     expect(result).deep.equal({
608 |       "padding-AppHeader": "4px 8px 16px 32px",
609 |       "paddingTop-AppHeader": "64px",
610 |       "paddingRight-AppHeader": "8px",
611 |       "paddingBottom-AppHeader": "16px",
612 |       "paddingLeft-AppHeader": "32px",
613 |     });
614 |   });
615 | 
616 |   it("padding with four values and paddingRight override", () => {
617 |     const newTheme: Record<string, string> = {
618 |       "padding-AppHeader": "4px 8px 16px 32px",
619 |       "paddingRight-AppHeader": "64px",
620 |     };
621 | 
622 |     const result = generatePaddingSegments(newTheme);
623 | 
624 |     expect(result).deep.equal({
625 |       "padding-AppHeader": "4px 8px 16px 32px",
626 |       "paddingTop-AppHeader": "4px",
627 |       "paddingRight-AppHeader": "64px",
628 |       "paddingBottom-AppHeader": "16px",
629 |       "paddingLeft-AppHeader": "32px",
630 |     });
631 |   });
632 | 
633 |   it("padding with four values and paddingBottom override", () => {
634 |     const newTheme: Record<string, string> = {
635 |       "padding-AppHeader": "4px 8px 16px 32px",
636 |       "paddingBottom-AppHeader": "64px",
637 |     };
638 | 
639 |     const result = generatePaddingSegments(newTheme);
640 | 
641 |     expect(result).deep.equal({
642 |       "padding-AppHeader": "4px 8px 16px 32px",
643 |       "paddingTop-AppHeader": "4px",
644 |       "paddingRight-AppHeader": "8px",
645 |       "paddingBottom-AppHeader": "64px",
646 |       "paddingLeft-AppHeader": "32px",
647 |     });
648 |   });
649 | 
650 |   it("padding with four values and paddingLeft override", () => {
651 |     const newTheme: Record<string, string> = {
652 |       "padding-AppHeader": "4px 8px 16px 32px",
653 |       "paddingLeft-AppHeader": "64px",
654 |     };
655 | 
656 |     const result = generatePaddingSegments(newTheme);
657 | 
658 |     expect(result).deep.equal({
659 |       "padding-AppHeader": "4px 8px 16px 32px",
660 |       "paddingTop-AppHeader": "4px",
661 |       "paddingRight-AppHeader": "8px",
662 |       "paddingBottom-AppHeader": "16px",
663 |       "paddingLeft-AppHeader": "64px",
664 |     });
665 |   });
666 | 
667 |   it("padding with four values and paddingHorizontal override", () => {
668 |     const newTheme: Record<string, string> = {
669 |       "padding-AppHeader": "4px 8px 16px 32px",
670 |       "paddingHorizontal-AppHeader": "64px",
671 |     };
672 | 
673 |     const result = generatePaddingSegments(newTheme);
674 | 
675 |     expect(result).deep.equal({
676 |       "padding-AppHeader": "4px 8px 16px 32px",
677 |       "paddingHorizontal-AppHeader": "64px",
678 |       "paddingTop-AppHeader": "4px",
679 |       "paddingRight-AppHeader": "64px",
680 |       "paddingBottom-AppHeader": "16px",
681 |       "paddingLeft-AppHeader": "64px",
682 |     });
683 |   });
684 | 
685 |   it("padding with four values and paddingVertical override", () => {
686 |     const newTheme: Record<string, string> = {
687 |       "padding-AppHeader": "4px 8px 16px 32px",
688 |       "paddingVertical-AppHeader": "64px",
689 |     };
690 | 
691 |     const result = generatePaddingSegments(newTheme);
692 | 
693 |     expect(result).deep.equal({
694 |       "padding-AppHeader": "4px 8px 16px 32px",
695 |       "paddingVertical-AppHeader": "64px",
696 |       "paddingTop-AppHeader": "64px",
697 |       "paddingRight-AppHeader": "8px",
698 |       "paddingBottom-AppHeader": "64px",
699 |       "paddingLeft-AppHeader": "32px",
700 |     });
701 |   });
702 | });
703 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/IconProvider.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import type { ForwardedRef, ReactNode } from "react";
  2 | import type React from "react";
  3 | import { useCallback, useMemo, useRef, useState } from "react";
  4 | import {
  5 |   FiAlertOctagon,
  6 |   FiCheckCircle,
  7 |   FiChevronDown,
  8 |   FiChevronUp,
  9 |   FiClipboard,
 10 |   FiDownload,
 11 |   FiFolder,
 12 |   FiGrid,
 13 |   FiHardDrive,
 14 |   FiHelpCircle,
 15 |   FiKey,
 16 |   FiLock,
 17 |   FiRefreshCcw,
 18 |   FiSlash,
 19 |   FiStar,
 20 |   FiUpload,
 21 |   FiUser,
 22 |   FiUserMinus,
 23 |   FiUserPlus,
 24 |   FiUsers,
 25 |   FiX,
 26 |   FiChevronsRight,
 27 |   FiChevronsLeft,
 28 |   FiChevronsDown,
 29 |   FiChevronsUp,
 30 | } from "react-icons/fi";
 31 | import { AiOutlineLike, AiOutlineMenu, AiOutlinePlusCircle, AiOutlineSend } from "react-icons/ai";
 32 | import {
 33 |   BsArrowDownShort,
 34 |   BsPause,
 35 |   BsPlay,
 36 |   BsArrowLeftShort,
 37 |   BsArrowRightShort,
 38 |   BsArrowUpShort,
 39 |   BsChatDots,
 40 |   BsHash,
 41 |   BsReply,
 42 |   BsSquare,
 43 |   BsSquareFill,
 44 |   BsSquareHalf,
 45 | } from "react-icons/bs";
 46 | import { GrDocumentConfig, GrEmoji, GrNext, GrPrevious } from "react-icons/gr";
 47 | import {
 48 |   IoChatboxOutline,
 49 |   IoCubeOutline,
 50 |   IoEyeOffOutline,
 51 |   IoEyeOutline,
 52 |   IoPencil,
 53 |   IoSwapVertical,
 54 | } from "react-icons/io5";
 55 | import { MdOutlineDriveFileRenameOutline, MdOutlinePalette } from "react-icons/md";
 56 | import { RiAttachment2, RiMessage2Line, RiStickyNoteLine } from "react-icons/ri";
 57 | import { VscDebugStart, VscDebugStop, VscSplitHorizontal, VscSplitVertical } from "react-icons/vsc";
 58 | import { RxExit, RxLightningBolt, RxOpenInNewWindow } from "react-icons/rx";
 59 | import { HiOutlinePaintBrush, HiSun } from "react-icons/hi2";
 60 | import { TfiReload } from "react-icons/tfi";
 61 | import { HiOutlineCog, HiOutlineDuplicate } from "react-icons/hi";
 62 | import { CiCalendarDate } from "react-icons/ci";
 63 | 
 64 | import { IconRegistryContext } from "./IconRegistryContext";
 65 | import type { IconBaseProps } from "./Icon/IconNative";
 66 | import { ApiIcon } from "./Icon/ApiIcon";
 67 | import { AttachmentIcon } from "./Icon/Attach";
 68 | import { BindingIcon } from "./Icon/Binding";
 69 | import { BoardIcon } from "./Icon/BoardIcon";
 70 | import { BoxIcon } from "./Icon/BoxIcon";
 71 | import { CheckIcon } from "./Icon/CheckIcon";
 72 | import { ChevronLeftIcon } from "./Icon/ChevronLeft";
 73 | import { ChevronRightIcon } from "./Icon/ChevronRight";
 74 | import { CodeFileIcon } from "./Icon/CodeFileIcon";
 75 | import { CodeSandboxIcon } from "./Icon/CodeSandbox";
 76 | import { CompactListIcon } from "./Icon/CompactListIcon";
 77 | import { ContentCopyIcon } from "./Icon/ContentCopyIcon";
 78 | import { DatabaseIcon } from "./Icon/DatabaseIcon";
 79 | import { DocFileIcon } from "./Icon/DocFileIcon";
 80 | import { DocIcon } from "./Icon/DocIcon";
 81 | import { DotMenuHorizontalIcon } from "./Icon/DotMenuHorizontalIcon";
 82 | import { DotMenuIcon } from "./Icon/DotMenuIcon";
 83 | import { EmailIcon } from "./Icon/EmailIcon";
 84 | import { EmptyFolderIcon } from "./Icon/EmptyFolderIcon";
 85 | import { ExpressionIcon } from "./Icon/ExpressionIcon";
 86 | import { FillPlusCircleIcon } from "./Icon/FillPlusCricleIcon";
 87 | import { FilterIcon } from "./Icon/FilterIcon";
 88 | import { FolderIcon } from "./Icon/FolderIcon";
 89 | import { GlobeIcon } from "./Icon/GlobeIcon";
 90 | import { HomeIcon } from "./Icon/HomeIcon";
 91 | import { HyperLinkIcon } from "./Icon/HyperLinkIcon";
 92 | import { ImageFileIcon } from "./Icon/ImageFileIcon";
 93 | import { LinkIcon } from "./Icon/LinkIcon";
 94 | import { ListIcon } from "./Icon/ListIcon";
 95 | import { LooseListIcon } from "./Icon/LooseListIcon";
 96 | import { MoreOptionsIcon } from "./Icon/MoreOptionsIcon";
 97 | import { PDFIcon } from "./Icon/PDFIcon";
 98 | import { PenIcon } from "./Icon/PenIcon";
 99 | import { PhoneIcon } from "./Icon/PhoneIcon";
100 | import { PhotoIcon } from "./Icon/PhotoIcon";
101 | import { PlusIcon } from "./Icon/PlusIcon";
102 | import { SearchIcon } from "./Icon/SearchIcon";
103 | import { ShareIcon } from "./Icon/ShareIcon";
104 | import { TrashIcon } from "./Icon/TrashIcon";
105 | import { TxtIcon } from "./Icon/TxtIcon";
106 | import { UnknownFileIcon } from "./Icon/UnknownFileIcon";
107 | import { UnlinkIcon } from "./Icon/UnlinkIcon";
108 | import { UserIcon } from "./Icon/UserIcon";
109 | import { WarningIcon } from "./Icon/WarningIcon";
110 | import { XlsIcon } from "./Icon/XlsIcon";
111 | import { ErrorIcon } from "./Icon/ErrorIcon";
112 | import { TrendingUpIcon } from "./Icon/TrendingUpIcon";
113 | import { TrendingDownIcon } from "./Icon/TrendingDownIcon";
114 | import { SortAscendingIcon } from "./Icon/SortAscendingIcon";
115 | import { SortDescendingIcon } from "./Icon/SortDescendingIcon";
116 | import { NoSortIcon } from "./Icon/NoSortIcon";
117 | import { TrendingLevelIcon } from "./Icon/TrendingLevelIcon";
118 | import { InspectIcon } from "./Icon/Inspect";
119 | import { MoonIcon } from "./Icon/MoonIcon";
120 | import { StarsIcon } from "./Icon/StarsIcon";
121 | import { LightToDarkIcon } from "./Icon/LightToDark";
122 | import { DarkToLightIcon } from "./Icon/DarkToLightIcon";
123 | import { AdmonitionInfoIcon } from "./Icon/AdmonitionInfo";
124 | import { AdmonitionWarningIcon } from "./Icon/AdmonitionWarning";
125 | import { AdmonitionDangerIcon } from "./Icon/AdmonitionDanger";
126 | import { AdmonitionNoteIcon } from "./Icon/AdmonitionNote";
127 | import { AdmonitionTipIcon } from "./Icon/AdmonitionTip";
128 | import TableInsertRowIcon from "./Icon/TableInsertRowIcon";
129 | import TableDeleteRowIcon from "./Icon/TableDeleteRowIcon";
130 | import TableInsertColumnIcon from "./Icon/TableInsertColumnIcon";
131 | import TableDeleteColumnIcon from "./Icon/TableDeleteColumnIcon";
132 | 
133 | type IconRenderer<T extends IconBaseProps> = (props: T, ref: ForwardedRef<HTMLElement>) => React.ReactElement<T>;
134 | 
135 | export type IconRegistryEntry = {
136 |   renderer: IconRenderer<any>;
137 | };
138 | 
139 | type CustomSvgIcon = {
140 |   attributes: Record<string, any>;
141 |   name: string;
142 | };
143 | export type IconRegistry = {
144 |   getRegisteredIconNames: () => Array<string>;
145 |   lookupIconRenderer: (name: string) => IconRegistryEntry | undefined;
146 |   ensureCustomSvgIcon: (resourceName: string) => Promise<void>;
147 |   customSvgs: Record<string, CustomSvgIcon>;
148 | };
149 | 
150 | const pool = new Map<string, IconRegistryEntry>();
151 | 
152 | function registerIconRenderer(name: string | string[], renderer: IconRenderer<any>) {
153 |   if (typeof name === "object") {
154 |     name.forEach((n) => {
155 |       pool.set(n, { renderer });
156 |     });
157 |   } else {
158 |     pool.set(name.toLowerCase(), { renderer });
159 |   }
160 | }
161 | 
162 | registerIconRenderer("assign", (props: IconBaseProps) => <FiUser {...props} />);
163 | registerIconRenderer("arrowup", (props: IconBaseProps) => <BsArrowUpShort {...props} />);
164 | registerIconRenderer("arrowleft", (props: IconBaseProps) => <BsArrowLeftShort {...props} />);
165 | registerIconRenderer("arrowright", (props: IconBaseProps) => <BsArrowRightShort {...props} />);
166 | registerIconRenderer("pause", (props: IconBaseProps) => <BsPause {...props} />);
167 | registerIconRenderer("play", (props: IconBaseProps) => <BsPlay {...props} />);
168 | registerIconRenderer("date", (props: IconBaseProps) => <CiCalendarDate {...props} />);
169 | registerIconRenderer("hamburger", (props: IconBaseProps) => <AiOutlineMenu {...props} />);
170 | registerIconRenderer("send", (props: IconBaseProps) => <AiOutlineSend {...props} />);
171 | registerIconRenderer("users", (props: IconBaseProps) => <FiUsers {...props} />);
172 | registerIconRenderer("refresh", (props: IconBaseProps) => <FiRefreshCcw {...props} />);
173 | registerIconRenderer("chevrondown", (props: IconBaseProps) => <FiChevronDown {...props} />);
174 | registerIconRenderer("chevronup", (props: IconBaseProps) => <FiChevronUp {...props} />);
175 | registerIconRenderer("chevronright", (props: IconBaseProps) => <ChevronRightIcon {...props} />);
176 | registerIconRenderer("chevronleft", (props: IconBaseProps) => <ChevronLeftIcon {...props} />);
177 | registerIconRenderer("doublechevrondown", (props: IconBaseProps) => <FiChevronsDown {...props} />);
178 | registerIconRenderer("doublechevronup", (props: IconBaseProps) => <FiChevronsUp {...props} />);
179 | registerIconRenderer("doublechevronright", (props: IconBaseProps) => <FiChevronsRight {...props} />);
180 | registerIconRenderer("doublechevronleft", (props: IconBaseProps) => <FiChevronsLeft {...props} />);
181 | registerIconRenderer("dotmenu", (props: IconBaseProps) => <DotMenuIcon {...props} />);
182 | registerIconRenderer("dotmenuhorizontal", (props: IconBaseProps) => (
183 |   <DotMenuHorizontalIcon {...props} />
184 | ));
185 | registerIconRenderer("noresult", (props: IconBaseProps) => <FiSlash {...props} />);
186 | registerIconRenderer("crm", (props: IconBaseProps) => <IoChatboxOutline {...props} />);
187 | registerIconRenderer("chat", (props: IconBaseProps) => <IoChatboxOutline {...props} />);
188 | registerIconRenderer("pencil", (props: IconBaseProps) => <IoPencil {...props} />);
189 | registerIconRenderer("cube", (props: IconBaseProps) => <IoCubeOutline {...props} />);
190 | registerIconRenderer("apps", (props: IconBaseProps) => <FiGrid {...props} />);
191 | registerIconRenderer("permissions", (props: IconBaseProps) => <FiKey {...props} />);
192 | registerIconRenderer("close", (props: IconBaseProps) => <FiX {...props} />);
193 | registerIconRenderer("star", (props: IconBaseProps) => <FiStar {...props} />);
194 | registerIconRenderer("help", (props: IconBaseProps) => <FiHelpCircle {...props} />);
195 | registerIconRenderer("compactlist", (props: IconBaseProps) => <CompactListIcon {...props} />);
196 | registerIconRenderer("copy", (props: IconBaseProps) => <ContentCopyIcon {...props} />);
197 | registerIconRenderer("move", (props: IconBaseProps) => <FiClipboard {...props} />);
198 | registerIconRenderer("rename", (props: IconBaseProps) => (
199 |   <MdOutlineDriveFileRenameOutline {...props} />
200 | ));
201 | registerIconRenderer("hyperlink", (props: IconBaseProps) => <HyperLinkIcon {...props} />);
202 | registerIconRenderer("globe", (props: IconBaseProps) => <GlobeIcon {...props} />);
203 | registerIconRenderer("link", (props: IconBaseProps) => <LinkIcon {...props} />);
204 | registerIconRenderer("looseList", (props: IconBaseProps) => <LooseListIcon {...props} />);
205 | registerIconRenderer("options", (props: IconBaseProps) => <MoreOptionsIcon {...props} />);
206 | registerIconRenderer("search", (props: IconBaseProps) => <SearchIcon {...props} />);
207 | registerIconRenderer("filter", (props: IconBaseProps) => <FilterIcon {...props} />);
208 | registerIconRenderer("trash", (props: IconBaseProps) => <TrashIcon {...props} />);
209 | registerIconRenderer("pen", (props: IconBaseProps) => <PenIcon {...props} />);
210 | registerIconRenderer("email", (props: IconBaseProps) => <EmailIcon {...props} />);
211 | registerIconRenderer("phone", (props: IconBaseProps) => <PhoneIcon {...props} />);
212 | registerIconRenderer("home", (props: IconBaseProps) => <HomeIcon {...props} />);
213 | registerIconRenderer("user", (props: IconBaseProps) => <UserIcon {...props} />);
214 | registerIconRenderer("exit", (props: IconBaseProps) => <RxExit {...props} />);
215 | registerIconRenderer("adduser", (props: IconBaseProps) => <FiUserPlus {...props} />);
216 | registerIconRenderer("userminus", (props: IconBaseProps) => <FiUserMinus {...props} />);
217 | registerIconRenderer("plus", (props: IconBaseProps) => <PlusIcon {...props} />);
218 | registerIconRenderer("inspect", (props: IconBaseProps) => <InspectIcon {...props} />);
219 | registerIconRenderer("plus-circle", (props: IconBaseProps) => <AiOutlinePlusCircle {...props} />);
220 | registerIconRenderer("filledplus", (props: IconBaseProps) => <FillPlusCircleIcon {...props} />);
221 | registerIconRenderer("darktolight", (props: IconBaseProps) => <DarkToLightIcon {...props} />);
222 | registerIconRenderer("lighttodark", (props: IconBaseProps) => <LightToDarkIcon {...props} />);
223 | registerIconRenderer("checkmark", (props: IconBaseProps) => <CheckIcon {...props} />);
224 | registerIconRenderer("valid", (props: IconBaseProps) => <FiCheckCircle {...props} />);
225 | registerIconRenderer("info", (props: IconBaseProps) => <FiAlertOctagon {...props} />);
226 | registerIconRenderer("error", (props: IconBaseProps) => <ErrorIcon {...props} />);
227 | registerIconRenderer("warning", (props: IconBaseProps) => <WarningIcon {...props} />);
228 | registerIconRenderer("board", (props: IconBaseProps) => <BoardIcon {...props} />);
229 | registerIconRenderer("list", (props: IconBaseProps) => <ListIcon {...props} />);
230 | registerIconRenderer("folder", (props: IconBaseProps) => <FolderIcon {...props} />);
231 | registerIconRenderer("folder-outline", (props: IconBaseProps) => <FiFolder {...props} />);
232 | registerIconRenderer("emptyfolder", (props: IconBaseProps) => <EmptyFolderIcon {...props} />);
233 | registerIconRenderer("pdf", (props: IconBaseProps) => <PDFIcon {...props} />);
234 | registerIconRenderer("txt", (props: IconBaseProps) => <TxtIcon {...props} />);
235 | registerIconRenderer("doc", (props: IconBaseProps) => <DocIcon {...props} />);
236 | registerIconRenderer("docx", (props: IconBaseProps) => <DocIcon {...props} />);
237 | registerIconRenderer("doc-outline", (props: IconBaseProps) => <DocFileIcon {...props} />);
238 | registerIconRenderer("conf", (props: IconBaseProps) => <GrDocumentConfig {...props} />);
239 | registerIconRenderer("code", (props: IconBaseProps) => <CodeFileIcon {...props} />);
240 | registerIconRenderer("codesandbox", (props: IconBaseProps) => <CodeSandboxIcon {...props} />);
241 | registerIconRenderer("box", (props: IconBaseProps) => <BoxIcon {...props} />);
242 | registerIconRenderer(["xls", "xlsx"], (props: IconBaseProps) => <XlsIcon {...props} />);
243 | registerIconRenderer(
244 |   ["jpg", "jpeg", "png", "webp", "svg", "gif", "tif", "ppt", "pptx"],
245 |   (props: IconBaseProps) => <ImageFileIcon {...props} />,
246 | );
247 | registerIconRenderer("unknownfile", (props: IconBaseProps) => <UnknownFileIcon {...props} />);
248 | registerIconRenderer("photo", (props: IconBaseProps) => <PhotoIcon {...props} />);
249 | registerIconRenderer("previous", (props: IconBaseProps) => <GrPrevious {...props} />);
250 | registerIconRenderer("next", (props: IconBaseProps) => <GrNext {...props} />);
251 | registerIconRenderer("like", (props: IconBaseProps) => <AiOutlineLike {...props} />);
252 | registerIconRenderer("reply", (props: IconBaseProps) => <BsReply {...props} />);
253 | registerIconRenderer("attach", (props: IconBaseProps) => <AttachmentIcon {...props} />);
254 | registerIconRenderer("attach2", (props: IconBaseProps) => <RiAttachment2 {...props} />);
255 | registerIconRenderer("emoji", (props: IconBaseProps) => <GrEmoji {...props} />);
256 | registerIconRenderer("message", (props: IconBaseProps) => <RiMessage2Line {...props} />);
257 | registerIconRenderer("upload", (props: IconBaseProps) => <FiUpload {...props} />);
258 | registerIconRenderer("split-vertical", (props: IconBaseProps) => <VscSplitVertical {...props} />);
259 | registerIconRenderer("split-horizontal", (props: IconBaseProps) => (
260 |   <VscSplitHorizontal {...props} />
261 | ));
262 | registerIconRenderer("swap", (props: IconBaseProps) => <IoSwapVertical {...props} />);
263 | registerIconRenderer("download", (props: IconBaseProps) => <FiDownload {...props} />);
264 | registerIconRenderer("note", (props: IconBaseProps) => <RiStickyNoteLine {...props} />);
265 | registerIconRenderer("binding", (props: IconBaseProps) => <BindingIcon {...props} />);
266 | registerIconRenderer("database", (props: IconBaseProps) => <DatabaseIcon {...props} />);
267 | registerIconRenderer("unlink", (props: IconBaseProps) => <UnlinkIcon {...props} />);
268 | registerIconRenderer("api", (props: IconBaseProps) => <ApiIcon {...props} />);
269 | registerIconRenderer("expression", (props: IconBaseProps) => <ExpressionIcon {...props} />);
270 | registerIconRenderer("chat", (props: IconBaseProps) => <BsChatDots {...props} />);
271 | registerIconRenderer("hash", (props: IconBaseProps) => <BsHash {...props} />);
272 | registerIconRenderer("drive", (props: IconBaseProps) => <FiHardDrive {...props} />);
273 | registerIconRenderer("lock", (props: IconBaseProps) => <FiLock {...props} />);
274 | registerIconRenderer("start", (props: IconBaseProps) => <VscDebugStart {...props} />);
275 | registerIconRenderer("stop", (props: IconBaseProps) => <VscDebugStop {...props} />);
276 | registerIconRenderer("restart", (props: IconBaseProps) => <TfiReload {...props} />);
277 | registerIconRenderer("duplicate", (props: IconBaseProps) => <HiOutlineDuplicate {...props} />);
278 | registerIconRenderer("connect", (props: IconBaseProps) => <RxLightningBolt {...props} />);
279 | registerIconRenderer("cog", (props: IconBaseProps) => <HiOutlineCog {...props} />);
280 | registerIconRenderer("sun", (props: IconBaseProps) => <HiSun {...props} />);
281 | registerIconRenderer("moon", (props: IconBaseProps) => <MoonIcon {...props} />);
282 | registerIconRenderer("stars", (props: IconBaseProps) => <StarsIcon {...props} />);
283 | registerIconRenderer("share", (props: IconBaseProps) => <ShareIcon {...props} />);
284 | registerIconRenderer("new-window", (props: IconBaseProps) => <RxOpenInNewWindow {...props} />);
285 | registerIconRenderer("paint", (props: IconBaseProps) => <HiOutlinePaintBrush {...props} />);
286 | registerIconRenderer("palette", (props: IconBaseProps) => <MdOutlinePalette {...props} />);
287 | registerIconRenderer("trending-up", (props: IconBaseProps) => <TrendingUpIcon {...props} />);
288 | registerIconRenderer("trending-down", (props: IconBaseProps) => <TrendingDownIcon {...props} />);
289 | registerIconRenderer("trending-level", (props: IconBaseProps) => <TrendingLevelIcon {...props} />);
290 | registerIconRenderer("sortasc", (props: IconBaseProps) => <SortAscendingIcon {...props} />);
291 | registerIconRenderer("sortdesc", (props: IconBaseProps) => <SortDescendingIcon {...props} />);
292 | registerIconRenderer("nosort", (props: IconBaseProps) => <NoSortIcon {...props} />);
293 | 
294 | registerIconRenderer("admonition_info", (props: IconBaseProps) => (
295 |   <AdmonitionInfoIcon {...props} />
296 | ));
297 | registerIconRenderer("admonition_warning", (props: IconBaseProps) => (
298 |   <AdmonitionWarningIcon {...props} />
299 | ));
300 | registerIconRenderer("admonition_danger", (props: IconBaseProps) => (
301 |   <AdmonitionDangerIcon {...props} />
302 | ));
303 | registerIconRenderer("admonition_note", (props: IconBaseProps) => (
304 |   <AdmonitionNoteIcon {...props} />
305 | ));
306 | registerIconRenderer("admonition_tip", (props: IconBaseProps) => <AdmonitionTipIcon {...props} />);
307 | 
308 | // --- IDE extras (temporary)
309 | registerIconRenderer("arrowdown", (props: IconBaseProps) => <BsArrowDownShort {...props} />);
310 | registerIconRenderer("square", (props: IconBaseProps) => <BsSquare {...props} />);
311 | registerIconRenderer("squarehalf", (props: IconBaseProps) => <BsSquareHalf {...props} />);
312 | registerIconRenderer("squarefill", (props: IconBaseProps) => <BsSquareFill {...props} />);
313 | 
314 | registerIconRenderer("table-insert-row", (props) => <TableInsertRowIcon {...props} />);
315 | registerIconRenderer("table-delete-row", (props) => <TableDeleteRowIcon {...props} />);
316 | registerIconRenderer("table-insert-column", (props) => <TableInsertColumnIcon {...props} />);
317 | registerIconRenderer("table-delete-column", (props) => <TableDeleteColumnIcon {...props} />);
318 | 
319 | registerIconRenderer("eye", (props) => <IoEyeOutline {...props} />);
320 | registerIconRenderer("eye-off", (props) => <IoEyeOffOutline {...props} />);
321 | 
322 | export function IconProvider({ children }: { children: ReactNode }) {
323 |   const getRegisteredIconNames = useCallback(() => {
324 |     return Array.from(pool.keys());
325 |   }, []);
326 | 
327 |   const lookupIconRenderer = useCallback((name: string): IconRegistryEntry | undefined => {
328 |     return pool.get(name);
329 |   }, []);
330 | 
331 |   const [customSvgs, setCustomSvgs] = useState<
332 |     Record<string, { name: string; attributes: Record<string, any> }>
333 |   >({});
334 |   const attachedResources = useRef<Record<string, boolean>>({});
335 |   const spriteRootRef = useRef<SVGSVGElement>(null);
336 | 
337 |   const ensureCustomSvgIcon = useCallback(async (resourceUrl: string) => {
338 |     if (attachedResources.current[resourceUrl]) {
339 |       return;
340 |     }
341 |     const icon = await (await fetch(resourceUrl)).text();
342 |     const div = document.createElement("div");
343 |     div.style.display = "none";
344 |     div.innerHTML = icon;
345 | 
346 |     const attrs: Record<string, any> = {};
347 |     for (let i = 0; i < div.children[0].attributes.length; i++) {
348 |       const attr = div.children[0].attributes[i];
349 |       if (attr.nodeName !== "class") {
350 |         attrs[attr.nodeName] = attr.nodeValue;
351 |       }
352 |     }
353 | 
354 |     Object.keys(attrs).forEach((key) => {
355 |       div.children[0].removeAttribute(key);
356 |     });
357 | 
358 |     const d = document.createElementNS("http://www.w3.org/2000/svg", "symbol");
359 |     d.innerHTML = div.children[0].innerHTML;
360 |     d.id = resourceUrl;
361 |     d.setAttributeNS(null, "viewBox", attrs["viewBox"]);
362 | 
363 |     if (!attachedResources.current[resourceUrl]) {
364 |       spriteRootRef.current!.appendChild(d);
365 |       attachedResources.current[resourceUrl] = true;
366 |     }
367 |     const customIcon = {
368 |       name: resourceUrl,
369 |       attributes: attrs,
370 |     };
371 |     setCustomSvgs((prev) => {
372 |       return {
373 |         ...prev,
374 |         [resourceUrl]: customIcon,
375 |       };
376 |     });
377 |   }, []);
378 | 
379 |   const contextValue = useMemo(() => {
380 |     return {
381 |       getRegisteredIconNames,
382 |       lookupIconRenderer,
383 |       ensureCustomSvgIcon,
384 |       customSvgs,
385 |     };
386 |   }, [customSvgs, ensureCustomSvgIcon, getRegisteredIconNames, lookupIconRenderer]);
387 | 
388 |   return (
389 |     <IconRegistryContext.Provider value={contextValue}>
390 |       {children}
391 |       <svg style={{ display: "none" }} ref={spriteRootRef}></svg>
392 |     </IconRegistryContext.Provider>
393 |   );
394 | }
395 | 
```
Page 88/186FirstPrevNextLast