#
tokens: 49750/50000 8/1630 files (page 50/186)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 50 of 186. Use http://codebase.md/xmlui-org/xmlui/xmlui/mockApiDef.js?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

--------------------------------------------------------------------------------
/blog/src/config.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type { StandaloneAppDescription } from "xmlui";
  2 | import { createHighlighterCoreSync, type DecorationItem } from "shiki";
  3 | import { createJavaScriptRegexEngine } from "shiki/engine/javascript";
  4 | // @ts-ignore
  5 | import js from "@shikijs/langs/javascript";
  6 | // @ts-ignore
  7 | import scss from "@shikijs/langs/scss";
  8 | // @ts-ignore
  9 | import css from "@shikijs/langs/css";
 10 | // @ts-ignore
 11 | import json from "@shikijs/langs/json";
 12 | 
 13 | // @ts-ignore
 14 | import html from "@shikijs/langs/html";
 15 | 
 16 | import { xmluiGrammar, xmluiThemeLight, xmluiThemeDark } from "xmlui/syntax/textmate";
 17 | 
 18 | import { unified } from "unified";
 19 | import remarkParse from "remark-parse";
 20 | import remarkStringify from "remark-stringify";
 21 | import stripMarkdown from "strip-markdown";
 22 | 
 23 | export function markdownToPlainText(markdown: string): string {
 24 |   const processor = unified()
 25 |     .use(remarkParse)
 26 |     .use(stripMarkdown, { keep: ["code"] })
 27 |     .use(remarkStringify);
 28 | 
 29 |   const file = processor.processSync(markdown);
 30 | 
 31 |   let cleanedText = String(file);
 32 | 
 33 |   // NEW: Remove admonition tags like [!WARNING] or \[!NOTE]
 34 |   // This looks for an optional backslash, then "[!", any word, and "]"
 35 |   cleanedText = cleanedText.replace(/\\?\[!\w+\]\s*/g, "");
 36 |   // 1. Remove the anchor-like tags, e.g., "\[#button]"
 37 |   cleanedText = cleanedText.replace(/\s*\\\[#.*?\]/g, "");
 38 | 
 39 |   // 2. Process each line individually to reformat tables
 40 |   const lines = cleanedText.split("\n");
 41 |   const reformattedLines = lines.map((line) => {
 42 |     const trimmedLine = line.trim();
 43 | 
 44 |     // Check if the line is a table separator like "| --- | --- |"
 45 |     if (trimmedLine.match(/^\|(?:\s*---\s*\|)+$/)) {
 46 |       return null; // Mark this line for removal
 47 |     }
 48 |     // Check if the line is a table row (starts and ends with '|')
 49 |     if (trimmedLine.startsWith("|") && trimmedLine.endsWith("|")) {
 50 |       // Remove leading/trailing pipes, then split into cells
 51 |       return trimmedLine
 52 |         .slice(1, -1)
 53 |         .split("|")
 54 |         .map((cell) => cell.trim()) // Trim whitespace from each cell
 55 |         .join(" - "); // Join cells with a more readable separator
 56 |     }
 57 | 
 58 |     // filter code block header/footers
 59 |     if (trimmedLine.startsWith("```") || trimmedLine.startsWith("---")) {
 60 |       return null;
 61 |     }
 62 |     // If it's not a table line, return it as is
 63 |     return line;
 64 |   });
 65 | 
 66 |   // 3. Filter out the removed separator lines and join back into a string
 67 |   cleanedText = reformattedLines.filter((line) => line !== null).join("\n");
 68 | 
 69 |   // 4. Consolidate multiple consecutive newlines into a maximum of two
 70 |   cleanedText = cleanedText.replace(/(\r\n|\n){3,}/g, "\n\n");
 71 | 
 72 |   // 5. Trim any leading or trailing whitespace from the final result
 73 |   return cleanedText.trim();
 74 | }
 75 | 
 76 | // @ts-ignore
 77 | const contentRuntime: Record<string, any> = import.meta.glob(`/content/**/*.{md,mdx}`, {
 78 |   eager: true,
 79 |   query: "?raw",
 80 | });
 81 | 
 82 | // @ts-ignore
 83 | const metaJsons: Record<string, MetaJson> = import.meta.glob(`/content/**/_meta.json`, {
 84 |   eager: true,
 85 | });
 86 | 
 87 | // @ts-ignore
 88 | const blogSearchData: Record<string, any> = import.meta.glob(`/public/blog-search-data.json`, {
 89 |   eager: true,
 90 |   query: "?raw",
 91 | });
 92 | 
 93 | const content: Record<string, any> = {};
 94 | const plainTextContent: Record<string, string> = {};
 95 | const navPanelContent: any[] = [];
 96 | Object.keys(contentRuntime).map((filePath) => {
 97 |   const urlFragment = filePath.substring("/content/".length).replace(".mdx", "").replace(".md", "");
 98 |   content[omitIndexFromPath(urlFragment)] = contentRuntime[filePath].default;
 99 |   plainTextContent[omitIndexFromPath(urlFragment)] = markdownToPlainText(
100 |     contentRuntime[filePath].default,
101 |   );
102 |   navPanelContent.push(urlFragment);
103 | });
104 | 
105 | // Add blog content to search index
106 | let blogContent: Record<string, string> = {};
107 | try {
108 |   if (blogSearchData["/public/blog-search-data.json"]) {
109 |     blogContent = JSON.parse(blogSearchData["/public/blog-search-data.json"].default);
110 |     console.log(`Loaded ${Object.keys(blogContent).length} blog posts for search indexing`);
111 |   }
112 | } catch (error) {
113 |   console.warn("Could not load blog search data:", error);
114 | }
115 | 
116 | // Merge blog content into plainTextContent
117 | Object.assign(plainTextContent, blogContent);
118 | 
119 | const pagesRuntime: Record<string, any> = import.meta.glob(`/public/pages/**/*.md`, {
120 |   eager: true,
121 |   query: "?raw",
122 | });
123 | 
124 | const prefetchedContent: Record<string, any> = {};
125 | Object.keys(pagesRuntime).map((filePath) => {
126 |   const urlFragment = filePath.substring("/public".length);
127 |   prefetchedContent[urlFragment] = pagesRuntime[filePath].default;
128 | });
129 | 
130 | const shikiHighlighter = createHighlighterCoreSync({
131 |   // @ts-ignore
132 |   langs: [js, json, html, xmluiGrammar, css, scss],
133 |   // @ts-ignore
134 |   themes: [xmluiThemeLight, xmluiThemeDark],
135 |   engine: createJavaScriptRegexEngine(),
136 | });
137 | 
138 | function highlight(
139 |   code: string,
140 |   lang: string,
141 |   meta?: Record<string, any>,
142 |   themeTone: "dark" | "light" = "light",
143 | ) {
144 |   if (!code) return "";
145 |   if (!themeTone) themeTone = "light";
146 |   if (!["dark", "light"].includes(themeTone)) {
147 |     themeTone = "light";
148 |   }
149 | 
150 |   const highlightedRows: DecorationItem[] =
151 |     meta?.highlightRows?.map((row: DecorationItem) => {
152 |       return {
153 |         start: row.start,
154 |         end: row.end,
155 |         properties: row.properties,
156 |       };
157 |     }) ?? [];
158 | 
159 |   const highlightedSubstrings: DecorationItem[] =
160 |     [...(meta?.highlightSubstringsEmphasized ?? []), ...(meta?.highlightSubstrings ?? [])]?.map(
161 |       (str: DecorationItem) => {
162 |         return {
163 |           start: str.start,
164 |           end: str.end,
165 |           properties: str.properties,
166 |         };
167 |       },
168 |     ) ?? [];
169 | 
170 |   const opts = {
171 |     lang,
172 |     theme: `xmlui-${themeTone}`,
173 |     decorations: [...highlightedRows, ...highlightedSubstrings],
174 |   };
175 |   return shikiHighlighter.codeToHtml(code, opts);
176 | }
177 | 
178 | type TreeNode = {
179 |   name: string;
180 |   path: string;
181 |   title?: string;
182 |   type?: string;
183 |   children?: TreeNode[];
184 | };
185 | 
186 | type MetaJson = Record<string, any>;
187 | 
188 | function omitIndexFromPath(path: string) {
189 |   return path.endsWith("index") ? path.substring(0, path.length - "index".length) : path;
190 | }
191 | 
192 | // generated with chatgpt
193 | function buildTreeFromPathsAndMeta(
194 |   paths: string[],
195 |   metaByFolder: Record<string, MetaJson>,
196 | ): TreeNode[] {
197 |   const root: TreeNode[] = [];
198 | 
199 |   paths.forEach((path) => {
200 |     const parts = path.split("/");
201 |     let currentPath = "/content";
202 |     let currentLevel: TreeNode[] | undefined = root;
203 | 
204 |     parts.forEach((part, index) => {
205 |       let existingNode = currentLevel?.find((node) => node.name === part);
206 | 
207 |       if (!existingNode) {
208 |         // --- Look up title/type in meta
209 |         const meta = metaByFolder[currentPath + "/_meta.json"];
210 |         let title, type;
211 | 
212 |         if (meta?.default?.[part]) {
213 |           const metaEntry = meta.default[part];
214 |           if (typeof metaEntry === "string") {
215 |             title = metaEntry;
216 |           } else if (typeof metaEntry === "object") {
217 |             title = metaEntry.title;
218 |             type = metaEntry.type;
219 |           }
220 |         }
221 | 
222 |         existingNode = {
223 |           name: part,
224 |           title: title || part,
225 |           path: omitIndexFromPath(path),
226 |           ...(type && { type }),
227 |         };
228 |         if (existingNode) {
229 |           currentLevel?.push(existingNode);
230 |         }
231 |       }
232 | 
233 |       if (index < parts.length - 1) {
234 |         if (existingNode && !existingNode?.children) {
235 |           existingNode.children = [];
236 |         }
237 |         currentLevel = existingNode?.children;
238 |       }
239 |       currentPath += `/${part}`;
240 |     });
241 |   });
242 | 
243 |   // Function to sort children based on _meta.json order
244 |   function sortChildren(level: TreeNode[], path: string) {
245 |     const meta = metaByFolder[path + "/_meta.json"];
246 |     if (!meta?.default) return;
247 | 
248 |     const order = Object.keys(meta.default);
249 |     order.forEach((orderKey) => {
250 |       if (!level.find((item) => item.name === orderKey)) {
251 |         level.push({
252 |           name: orderKey,
253 |           ...meta.default[orderKey],
254 |         });
255 |       }
256 |     });
257 |     level.sort((a, b) => {
258 |       const aIndex = order.indexOf(a.name);
259 |       const bIndex = order.indexOf(b.name);
260 | 
261 |       if (aIndex === -1 && bIndex === -1) return 0;
262 |       if (aIndex === -1) return 1;
263 |       if (bIndex === -1) return -1;
264 |       return aIndex - bIndex;
265 |     });
266 | 
267 |     level.forEach((node) => {
268 |       if (node.children) {
269 |         sortChildren(node.children, `${path}/${node.name}`);
270 |       }
271 |     });
272 |   }
273 | 
274 |   sortChildren(root, "/content");
275 | 
276 |   return root;
277 | }
278 | 
279 | const groupedNavPanelContent = buildTreeFromPathsAndMeta(navPanelContent, metaJsons);
280 | const App: StandaloneAppDescription = {
281 |   name: "XMLUI Blog",
282 |   defaultTheme: "blog-theme",
283 |   resources: {
284 |     logo: "/resources/logo.svg",
285 |     "logo-dark": "/resources/logo-dark.svg",
286 |     favicon: "/resources/favicon.ico",
287 |     "icon.github": "/resources/github.svg",
288 |     "font.Inter":
289 |       "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
290 |   },
291 |   appGlobals: {
292 |     useHashBasedRouting: false,
293 |     showHeadingAnchors: true,
294 |     searchIndexEnabled: true,
295 |     navPanelContent: groupedNavPanelContent,
296 |     content,
297 |     plainTextContent,
298 |     codeHighlighter: {
299 |       availableLangs: shikiHighlighter.getLoadedLanguages(),
300 |       highlight,
301 |     },
302 |     prefetchedContent,
303 |     lintSeverity: "skip", // Turn off xmlui linting
304 |     popOutUrl: "https://playground.xmlui.org/#/playground",
305 |   },
306 | };
307 | 
308 | export default App;
309 | 
```

--------------------------------------------------------------------------------
/docs/content/components/xmlui-website-blocks/HeroSection.md:
--------------------------------------------------------------------------------

```markdown
  1 | # HeroSection [#herosection]
  2 | 
  3 | HeroSection
  4 | 
  5 | ## Properties
  6 | 
  7 | ### `backgroundTemplate`
  8 | 
  9 | The template for the background of the hero section
 10 | 
 11 | ### `contentAlignment` (default: "center")
 12 | 
 13 | Horizontal alignment of the content within its area
 14 | 
 15 | ### `contentPlacement` (default: "bottom")
 16 | 
 17 | Position of the content area relative to the header
 18 | 
 19 | ### `contentWidth` (default: "$maxWidth-content")
 20 | 
 21 | Width of the hero content (header + content sections)
 22 | 
 23 | ### `ctaButtonIcon`
 24 | 
 25 | The icon for the call-to-action button
 26 | 
 27 | ### `ctaButtonTemplate`
 28 | 
 29 | The template for the call-to-action button
 30 | 
 31 | ### `ctaButtonText`
 32 | 
 33 | The text for the call-to-action button
 34 | 
 35 | ### `fullWidthBackground` (default: true)
 36 | 
 37 | Whether the background should span the full width of the viewport
 38 | 
 39 | ### `gap`
 40 | 
 41 | Gap between header and content sections
 42 | 
 43 | ### `headerAlignment` (default: "center")
 44 | 
 45 | Alignment of the header content
 46 | 
 47 | ### `headerWidth` (default: "50%")
 48 | 
 49 | Width of the header section in horizontal layouts
 50 | 
 51 | ### `headline`
 52 | 
 53 | The headline text for the hero section
 54 | 
 55 | ### `image`
 56 | 
 57 | The image for the hero section
 58 | 
 59 | ### `imageHeight`
 60 | 
 61 | The height of the image
 62 | 
 63 | ### `imageWidth`
 64 | 
 65 | The width of the image
 66 | 
 67 | ### `mainText`
 68 | 
 69 | The main text content for the hero section
 70 | 
 71 | ### `mainTextTemplate`
 72 | 
 73 | The template for the text content in the hero section
 74 | 
 75 | ### `preamble`
 76 | 
 77 | The preamble text for the hero section
 78 | 
 79 | ### `subheadline`
 80 | 
 81 | The subheadline text for the hero section
 82 | 
 83 | ## Events
 84 | 
 85 | ### `ctaClick`
 86 | 
 87 | Triggered when the call-to-action button is clicked
 88 | 
 89 | ## Exposed Methods
 90 | 
 91 | This component does not expose any methods.
 92 | 
 93 | ## Parts
 94 | 
 95 | The component has some parts that can be styled through layout properties and theme variables separately:
 96 | 
 97 | - **`background`**: The background template area of the hero section
 98 | - **`content`**: The content section containing image and children
 99 | - **`ctaButton`**: The call-to-action button for the hero section
100 | - **`header`**: The header section containing all text content and CTA button
101 | - **`headingSection`**: The heading section containing preamble, headline, and subheadline
102 | - **`headline`**: The headline text for the hero section
103 | - **`image`**: The image for the hero section
104 | - **`mainText`**: The main text content for the hero section
105 | - **`preamble`**: The preamble text for the hero section
106 | - **`subheadline`**: The subheadline text for the hero section
107 | 
108 | ## Styling
109 | 
110 | ### Theme Variables
111 | 
112 | | Variable | Default Value (Light) | Default Value (Dark) |
113 | | --- | --- | --- |
114 | | [backgroundColor](../styles-and-themes/common-units/#color)-headline-HeroSection | *none* | *none* |
115 | | [backgroundColor](../styles-and-themes/common-units/#color)-subheadline-HeroSection | *none* | *none* |
116 | | [direction](../styles-and-themes/layout-props#direction)-headline-HeroSection | *none* | *none* |
117 | | [direction](../styles-and-themes/layout-props#direction)-subheadline-HeroSection | *none* | *none* |
118 | | [fontFamily](../styles-and-themes/common-units/#fontFamily)-headline-HeroSection | *none* | *none* |
119 | | [fontFamily](../styles-and-themes/common-units/#fontFamily)-subheadline-HeroSection | *none* | *none* |
120 | | [fontSize](../styles-and-themes/common-units/#size)-headline-HeroSection | 3em | 3em |
121 | | [fontSize](../styles-and-themes/common-units/#size)-mainText-HeroSection | 1.4em | 1.4em |
122 | | [fontSize](../styles-and-themes/common-units/#size)-subheadline-HeroSection | 2em | 2em |
123 | | [fontStretch](../styles-and-themes/common-units/#fontStretch)-headline-HeroSection | *none* | *none* |
124 | | [fontStretch](../styles-and-themes/common-units/#fontStretch)-subheadline-HeroSection | *none* | *none* |
125 | | [fontStyle](../styles-and-themes/common-units/#fontStyle)-headline-HeroSection | *none* | *none* |
126 | | [fontStyle](../styles-and-themes/common-units/#fontStyle)-subheadline-HeroSection | *none* | *none* |
127 | | [fontVariant](../styles-and-themes/common-units/#font-variant)-headline-HeroSection | *none* | *none* |
128 | | [fontVariant](../styles-and-themes/common-units/#font-variant)-subheadline-HeroSection | *none* | *none* |
129 | | [fontWeight](../styles-and-themes/common-units/#fontWeight)-headline-HeroSection | $fontWeight-bold | $fontWeight-bold |
130 | | [fontWeight](../styles-and-themes/common-units/#fontWeight)-subheadline-HeroSection | $fontWeight-bold | $fontWeight-bold |
131 | | [gap](../styles-and-themes/common-units/#size)-headline-HeroSection | $space-8 | $space-8 |
132 | | [gap](../styles-and-themes/common-units/#size)-mainText-HeroSection | $space-4 | $space-4 |
133 | | [gap](../styles-and-themes/common-units/#size)-preamble-HeroSection | *none* | *none* |
134 | | [gap](../styles-and-themes/common-units/#size)-subheadline-HeroSection | $space-4 | $space-4 |
135 | | [letterSpacing](../styles-and-themes/common-units/#size)-headline-HeroSection | *none* | *none* |
136 | | [letterSpacing](../styles-and-themes/common-units/#size)-subheadline-HeroSection | *none* | *none* |
137 | | [lineBreak](../styles-and-themes/common-units/#line-break)-headline-HeroSection | *none* | *none* |
138 | | [lineBreak](../styles-and-themes/common-units/#line-break)-subheadline-HeroSection | *none* | *none* |
139 | | [lineHeight](../styles-and-themes/common-units/#size)-headline-HeroSection | 1.4em | 1.4em |
140 | | [lineHeight](../styles-and-themes/common-units/#size)-mainText-HeroSection | 1.1em | 1.1em |
141 | | [lineHeight](../styles-and-themes/common-units/#size)-subheadline-HeroSection | 1.1em | 1.1em |
142 | | [maxWidth-content](../styles-and-themes/common-units/#size) | *none* | *none* |
143 | | [padding](../styles-and-themes/common-units/#size)-HeroSection | *none* | *none* |
144 | | [paddingBottom](../styles-and-themes/common-units/#size)-HeroSection | $space-12 | $space-12 |
145 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-HeroSection | $space-12 | $space-12 |
146 | | [paddingLeft](../styles-and-themes/common-units/#size)-HeroSection | *none* | *none* |
147 | | [paddingRight](../styles-and-themes/common-units/#size)-HeroSection | *none* | *none* |
148 | | [paddingTop](../styles-and-themes/common-units/#size)-HeroSection | $space-12 | $space-12 |
149 | | [paddingVertical](../styles-and-themes/common-units/#size)-HeroSection | *none* | *none* |
150 | | [textAlign](../styles-and-themes/common-units/#text-align)-headline-HeroSection | *none* | *none* |
151 | | [textAlign](../styles-and-themes/common-units/#text-align)-subheadline-HeroSection | *none* | *none* |
152 | | [textAlignLast](../styles-and-themes/common-units/#text-align)-headline-HeroSection | *none* | *none* |
153 | | [textAlignLast](../styles-and-themes/common-units/#text-align)-subheadline-HeroSection | *none* | *none* |
154 | | [textColor](../styles-and-themes/common-units/#color)-headline-HeroSection | *none* | *none* |
155 | | [textColor](../styles-and-themes/common-units/#color)-subheadline-HeroSection | *none* | *none* |
156 | | [textDecorationColor](../styles-and-themes/common-units/#color)-headline-HeroSection | *none* | *none* |
157 | | [textDecorationColor](../styles-and-themes/common-units/#color)-subheadline-HeroSection | *none* | *none* |
158 | | [textDecorationLine](../styles-and-themes/common-units/#textDecoration)-headline-HeroSection | *none* | *none* |
159 | | [textDecorationLine](../styles-and-themes/common-units/#textDecoration)-subheadline-HeroSection | *none* | *none* |
160 | | [textDecorationStyle](../styles-and-themes/common-units/#textDecoration)-headline-HeroSection | *none* | *none* |
161 | | [textDecorationStyle](../styles-and-themes/common-units/#textDecoration)-subheadline-HeroSection | *none* | *none* |
162 | | [textDecorationThickness](../styles-and-themes/common-units/#textDecoration)-headline-HeroSection | *none* | *none* |
163 | | [textDecorationThickness](../styles-and-themes/common-units/#textDecoration)-subheadline-HeroSection | *none* | *none* |
164 | | [textIndent](../styles-and-themes/common-units/#text-indent)-headline-HeroSection | *none* | *none* |
165 | | [textIndent](../styles-and-themes/common-units/#text-indent)-subheadline-HeroSection | *none* | *none* |
166 | | [textShadow](../styles-and-themes/common-units/#text-shadow)-headline-HeroSection | *none* | *none* |
167 | | [textShadow](../styles-and-themes/common-units/#text-shadow)-subheadline-HeroSection | *none* | *none* |
168 | | [textTransform](../styles-and-themes/common-units/#textTransform)-headline-HeroSection | *none* | *none* |
169 | | [textTransform](../styles-and-themes/common-units/#textTransform)-subheadline-HeroSection | *none* | *none* |
170 | | [textUnderlineOffset](../styles-and-themes/common-units/#size)-headline-HeroSection | *none* | *none* |
171 | | [textUnderlineOffset](../styles-and-themes/common-units/#size)-subheadline-HeroSection | *none* | *none* |
172 | | [wordBreak](../styles-and-themes/common-units/#word-break)-headline-HeroSection | *none* | *none* |
173 | | [wordBreak](../styles-and-themes/common-units/#word-break)-subheadline-HeroSection | *none* | *none* |
174 | | [wordSpacing](../styles-and-themes/common-units/#word-spacing)-headline-HeroSection | *none* | *none* |
175 | | [wordSpacing](../styles-and-themes/common-units/#word-spacing)-subheadline-HeroSection | *none* | *none* |
176 | | [wordWrap](../styles-and-themes/common-units/#word-wrap)-headline-HeroSection | *none* | *none* |
177 | | [wordWrap](../styles-and-themes/common-units/#word-wrap)-subheadline-HeroSection | *none* | *none* |
178 | | [writingMode](../styles-and-themes/common-units/#writing-mode)-headline-HeroSection | *none* | *none* |
179 | | [writingMode](../styles-and-themes/common-units/#writing-mode)-subheadline-HeroSection | *none* | *none* |
180 | 
```

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

```typescript
  1 | import styles from "./Button.module.scss";
  2 | 
  3 | import {
  4 |   buttonThemeMd,
  5 |   alignmentOptionMd,
  6 |   sizeMd,
  7 |   buttonVariantMd,
  8 |   buttonTypesMd,
  9 |   iconPositionMd,
 10 | } from "../abstractions";
 11 | import { createComponentRenderer } from "../../components-core/renderers";
 12 | import { parseScssVar } from "../../components-core/theming/themeVars";
 13 | import {
 14 |   createMetadata,
 15 |   dClick,
 16 |   dGotFocus,
 17 |   dLostFocus,
 18 |   dOrientation,
 19 | } from "../../components/metadata-helpers";
 20 | import { Icon } from "../Icon/IconNative";
 21 | import { Button, defaultProps } from "./ButtonNative";
 22 | import { hasRenderableChildren } from "../../components-core/rendering/nodeUtils";
 23 | 
 24 | const COMP = "Button";
 25 | 
 26 | export const ButtonMd = createMetadata({
 27 |   status: "stable",
 28 |   description:
 29 |     "`Button` is the primary interactive component for triggering actions like " +
 30 |     "form submissions, navigation, opening modals, and API calls. It supports " +
 31 |     "multiple visual styles and sizes to match different UI contexts and importance levels.",
 32 |   props: {
 33 |     autoFocus: {
 34 |       description: "Indicates if the button should receive focus when the page loads.",
 35 |       isRequired: false,
 36 |       type: "boolean",
 37 |       defaultValue: defaultProps.autoFocus,
 38 |     },
 39 |     variant: {
 40 |       description: "The button variant determines the level of emphasis the button should possess.",
 41 |       isRequired: false,
 42 |       type: "string",
 43 |       availableValues: buttonVariantMd,
 44 |       defaultValue: defaultProps.variant,
 45 |     },
 46 |     themeColor: {
 47 |       description: "Sets the button color scheme defined in the application theme.",
 48 |       isRequired: false,
 49 |       type: "string",
 50 |       availableValues: buttonThemeMd,
 51 |       defaultValue: defaultProps.themeColor,
 52 |     },
 53 |     size: {
 54 |       description: "Sets the size of the button.",
 55 |       isRequired: false,
 56 |       type: "string",
 57 |       availableValues: sizeMd,
 58 |       defaultValue: defaultProps.size,
 59 |     },
 60 |     label: {
 61 |       description:
 62 |         `This property is an optional string to set a label for the ${COMP}. If no label is ` +
 63 |         `specified and an icon is set, the ${COMP} will modify its styling to look like a ` +
 64 |         `small icon button. When the ${COMP} has nested children, it will display them and ` +
 65 |         `ignore the value of the \`label\` prop.`,
 66 |       type: "string",
 67 |     },
 68 |     type: {
 69 |       description:
 70 |         `This optional string describes how the ${COMP} appears in an HTML context. You ` +
 71 |         `rarely need to set this property explicitly.`,
 72 |       availableValues: buttonTypesMd,
 73 |       valueType: "string",
 74 |       defaultValue: defaultProps.type,
 75 |     },
 76 |     enabled: {
 77 |       description:
 78 |         `The value of this property indicates whether the button accepts actions (\`true\`) ` +
 79 |         `or does not react to them (\`false\`).`,
 80 |       type: "boolean",
 81 |       defaultValue: true,
 82 |     },
 83 |     orientation: dOrientation(defaultProps.orientation),
 84 |     icon: {
 85 |       description:
 86 |         `This string value denotes an icon name. The framework will render an icon if XMLUI ` +
 87 |         `recognizes the icon by its name. If no label is specified and an icon is set, the ${COMP} ` +
 88 |         `displays only that icon.`,
 89 |       type: "string",
 90 |     },
 91 |     iconPosition: {
 92 |       description: `This optional string determines the location of the icon in the ${COMP}.`,
 93 |       availableValues: iconPositionMd,
 94 |       type: "string",
 95 |       defaultValue: defaultProps.iconPosition,
 96 |     },
 97 |     contentPosition: {
 98 |       description:
 99 |         `This optional value determines how the label and icon (or nested children) should be placed` +
100 |         `inside the ${COMP} component.`,
101 |       availableValues: alignmentOptionMd,
102 |       type: "string",
103 |       defaultValue: defaultProps.contentPosition,
104 |     },
105 |     contextualLabel: {
106 |       description: `This optional value is used to provide an accessible name for the ${COMP} in the context of its usage.`,
107 |       type: "string",
108 |     },
109 |   },
110 |   events: {
111 |     click: dClick(COMP),
112 |     gotFocus: dGotFocus(COMP),
113 |     lostFocus: dLostFocus(COMP),
114 |   },
115 |   themeVars: parseScssVar(styles.themeVars),
116 |   defaultThemeVars: {
117 |     // --- Default styles for supporting "variant" behavior
118 |     [`padding-${COMP}`]: "$space-2 $space-4",
119 |     [`gap-${COMP}`]: "$space-2",
120 |     [`borderColor-${COMP}`]: "transparent",
121 |     [`backgroundColor-${COMP}`]: "transparent",
122 |     [`transition-${COMP}`]: "color 0.2s, background 0.2s",
123 | 
124 |     [`width-${COMP}`]: "fit-content",
125 |     [`height-${COMP}`]: "fit-content",
126 |     [`borderRadius-${COMP}`]: "$borderRadius",
127 |     [`fontSize-${COMP}`]: "$fontSize-sm",
128 |     [`fontWeight-${COMP}`]: "$fontWeight-medium",
129 |     [`fontStyle-${COMP}`]: "$fontStyle-normal",
130 |     [`backgroundColor-${COMP}-primary`]: "$color-primary-500",
131 |     [`backgroundColor-${COMP}-attention`]: "$backgroundColor-attention",
132 |     [`borderColor-${COMP}-attention`]: "$color-attention",
133 |     [`backgroundColor-${COMP}--disabled`]: "$backgroundColor--disabled",
134 |     [`borderColor-${COMP}--disabled`]: "$borderColor--disabled",
135 |     [`borderStyle-${COMP}`]: "solid",
136 |     [`textColor-${COMP}--disabled`]: "$textColor--disabled",
137 |     [`outlineColor-${COMP}--focus`]: "$outlineColor--focus",
138 |     [`borderWidth-${COMP}`]: "1px",
139 |     [`outlineWidth-${COMP}--focus`]: "$outlineWidth--focus",
140 |     [`outlineStyle-${COMP}--focus`]: "$outlineStyle--focus",
141 |     [`outlineOffset-${COMP}--focus`]: "$outlineOffset--focus",
142 |     [`paddingHorizontal-${COMP}-xs`]: "$space-1",
143 |     [`paddingVertical-${COMP}-xs`]: "$space-0_5",
144 |     [`paddingHorizontal-${COMP}-sm`]: "$space-4",
145 |     [`paddingVertical-${COMP}-sm`]: "$space-2",
146 |     [`paddingHorizontal-${COMP}-md`]: "$space-4",
147 |     [`paddingVertical-${COMP}-md`]: "$space-3",
148 |     [`paddingHorizontal-${COMP}-lg`]: "$space-5",
149 |     [`paddingVertical-${COMP}-lg`]: "$space-4",
150 | 
151 |     [`textColor-${COMP}`]: "$color-surface-950",
152 |     [`textColor-${COMP}-solid`]: "$const-color-surface-50",
153 |     [`borderColor-${COMP}-primary`]: "$color-primary-500",
154 |     [`backgroundColor-${COMP}-primary--hover`]: "$color-primary-400",
155 |     [`backgroundColor-${COMP}-primary--active`]: "$color-primary-500",
156 |     [`backgroundColor-${COMP}-primary-outlined--hover`]: "$color-primary-50",
157 |     [`backgroundColor-${COMP}-primary-outlined--active`]: "$color-primary-100",
158 |     [`borderColor-${COMP}-primary-outlined`]: "$color-primary-600",
159 |     [`borderColor-${COMP}-primary-outlined--hover`]: "$color-primary-500",
160 |     [`textColor-${COMP}-primary-outlined`]: "$color-primary-900",
161 |     [`textColor-${COMP}-primary-outlined--hover`]: "$color-primary-950",
162 |     [`textColor-${COMP}-primary-outlined--active`]: "$color-primary-900",
163 |     [`backgroundColor-${COMP}-primary-ghost--hover`]: "$color-primary-50",
164 |     [`backgroundColor-${COMP}-primary-ghost--active`]: "$color-primary-100",
165 |     [`borderColor-${COMP}-secondary`]: "$color-secondary-100",
166 |     [`backgroundColor-${COMP}-secondary`]: "$color-secondary-500",
167 |     [`backgroundColor-${COMP}-secondary--hover`]: "$color-secondary-400",
168 |     [`backgroundColor-${COMP}-secondary--active`]: "$color-secondary-500",
169 |     [`backgroundColor-${COMP}-secondary-outlined--hover`]: "$color-secondary-50",
170 |     [`backgroundColor-${COMP}-secondary-outlined--active`]: "$color-secondary-100",
171 |     [`backgroundColor-${COMP}-secondary-ghost--hover`]: "$color-secondary-100",
172 |     [`backgroundColor-${COMP}-secondary-ghost--active`]: "$color-secondary-100",
173 |     [`backgroundColor-${COMP}-attention--hover`]: "$color-danger-400",
174 |     [`backgroundColor-${COMP}-attention--active`]: "$color-danger-500",
175 |     [`backgroundColor-${COMP}-attention-outlined--hover`]: "$color-danger-50",
176 |     [`backgroundColor-${COMP}-attention-outlined--active`]: "$color-danger-100",
177 |     [`backgroundColor-${COMP}-attention-ghost--hover`]: "$color-danger-50",
178 |     [`backgroundColor-${COMP}-attention-ghost--active`]: "$color-danger-100",
179 |   },
180 | });
181 | 
182 | export const buttonComponentRenderer = createComponentRenderer(
183 |   "Button",
184 |   ButtonMd,
185 |   ({ node, extractValue, renderChild, lookupEventHandler, className }) => {
186 |     const iconName = extractValue.asString(node.props.icon);
187 |     const label = extractValue.asDisplayText(node.props.label);
188 |     const renderedChildren = hasRenderableChildren(node.children)
189 |       ? renderChild(node.children, { type: "Stack", orientation: "horizontal" })
190 |       : label;
191 |     return (
192 |       <Button
193 |         type={extractValue.asOptionalString(node.props.type)}
194 |         variant={extractValue.asOptionalString(node.props.variant)}
195 |         themeColor={extractValue.asOptionalString(node.props.themeColor)}
196 |         autoFocus={extractValue.asOptionalBoolean(node.props.autoFocus)}
197 |         size={extractValue.asOptionalString(node.props.size)}
198 |         icon={iconName && <Icon name={iconName} aria-hidden />}
199 |         iconPosition={extractValue.asOptionalString(node.props.iconPosition)}
200 |         orientation={extractValue.asOptionalString(node.props.orientation)}
201 |         contentPosition={extractValue.asOptionalString(node.props.contentPosition)}
202 |         disabled={!extractValue.asOptionalBoolean(node.props.enabled, true)}
203 |         onClick={lookupEventHandler("click")}
204 |         onFocus={lookupEventHandler("gotFocus")}
205 |         onBlur={lookupEventHandler("lostFocus")}
206 |         className={className}
207 |         contextualLabel={extractValue.asOptionalString(node.props.contextualLabel)}
208 |       >
209 |         {renderedChildren}
210 |       </Button>
211 |     );
212 |   },
213 | );
214 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/Tabs/TabsNative.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import type { ForwardedRef } from "react";
  2 | import {
  3 |   type CSSProperties,
  4 |   forwardRef,
  5 |   type ReactNode,
  6 |   useEffect,
  7 |   useId,
  8 |   useMemo,
  9 |   useState,
 10 | } from "react";
 11 | import {
 12 |   Root as RTabsRoot,
 13 |   List as RTabsList,
 14 |   Trigger as RTabsTrigger,
 15 | } from "@radix-ui/react-tabs";
 16 | 
 17 | import styles from "./Tabs.module.scss";
 18 | 
 19 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
 20 | import { useEvent } from "../../components-core/utils/misc";
 21 | import { TabContext, useTabContextValue } from "./TabContext";
 22 | import classnames from "classnames";
 23 | import { noop } from "../../components-core/constants";
 24 | 
 25 | type Props = {
 26 |   id?: string;
 27 |   activeTab?: number;
 28 |   orientation?: "horizontal" | "vertical";
 29 |   tabAlignment?: "start" | "end" | "center" | "stretch";
 30 |   accordionView?: boolean;
 31 |   headerRenderer?: (item: {
 32 |     id?: string;
 33 |     index: number;
 34 |     label: string;
 35 |     isActive: boolean;
 36 |   }) => ReactNode;
 37 |   style?: CSSProperties;
 38 |   children?: ReactNode;
 39 |   registerComponentApi?: RegisterComponentApiFn;
 40 |   className?: string;
 41 |   distributeEvenly?: boolean;
 42 |   onDidChange?: (index: number, id: string, label: string) => void;
 43 | };
 44 | 
 45 | export const defaultProps = {
 46 |   activeTab: 0,
 47 |   orientation: "horizontal" as "horizontal" | "vertical",
 48 |   tabAlignment: "start" as "start" | "end" | "center" | "stretch",
 49 |   accordionView: false,
 50 |   distributeEvenly: false,
 51 | };
 52 | 
 53 | export const Tabs = forwardRef(function Tabs(
 54 |   {
 55 |     activeTab = defaultProps.activeTab,
 56 |     orientation = defaultProps.orientation,
 57 |     tabAlignment = defaultProps.tabAlignment,
 58 |     accordionView = defaultProps.accordionView,
 59 |     headerRenderer,
 60 |     style,
 61 |     children,
 62 |     id,
 63 |     registerComponentApi,
 64 |     className,
 65 |     distributeEvenly = defaultProps.distributeEvenly,
 66 |     onDidChange = noop,
 67 |     ...rest
 68 |   }: Props,
 69 |   forwardedRef: ForwardedRef<HTMLDivElement>,
 70 | ) {
 71 |   const { tabItems, tabContextValue } = useTabContextValue();
 72 |   const _id = useId();
 73 |   const tabsId = id || _id;
 74 | 
 75 |   // Ensure activeTab is within valid bounds
 76 |   const validActiveTab = useMemo(() => {
 77 |     if (tabItems.length === 0) return 0;
 78 |     if (activeTab < 0) return 0;
 79 |     if (activeTab >= tabItems.length) return 0; // Default to first tab if out of bounds
 80 |     return activeTab;
 81 |   }, [activeTab, tabItems.length]);
 82 | 
 83 |   const [activeIndex, setActiveIndex] = useState(validActiveTab);
 84 |   const currentTab = useMemo(() => {
 85 |     return tabItems[activeIndex]?.innerId;
 86 |   }, [activeIndex, tabItems]);
 87 | 
 88 |   useEffect(() => {
 89 |     tabContextValue.setActiveTabId(currentTab);
 90 |   }, [currentTab, tabContextValue]);
 91 | 
 92 |   useEffect(() => {
 93 |     if (activeTab !== undefined) {
 94 |       setActiveIndex(() => {
 95 |         const maxIndex = tabItems.length - 1;
 96 |         const newIndex = activeTab; // activeTab should be 0-based index
 97 |         return newIndex < 0 ? 0 : newIndex > maxIndex ? 0 : newIndex; // Default to first tab (0) when out of bounds
 98 |       });
 99 |     }
100 |   }, [activeTab, tabItems.length]);
101 | 
102 |   const next = useEvent(() => {
103 |     setActiveIndex((prevIndex) => {
104 |       const maxIndex = tabItems.length - 1;
105 |       return prevIndex >= maxIndex ? 0 : prevIndex + 1;
106 |     });
107 |   });
108 | 
109 |   const prev = useEvent(() => {
110 |     setActiveIndex((prevIndex) => {
111 |       const maxIndex = tabItems.length - 1;
112 |       return prevIndex <= 0 ? maxIndex : prevIndex - 1;
113 |     });
114 |   });
115 | 
116 |   const setActiveTabIndex = useEvent((index: number) => {
117 |     if (index >= 0 && index < tabItems.length) {
118 |       setActiveIndex(index);
119 |     }
120 |   });
121 | 
122 |   const setActiveTabById = useEvent((tabId: string) => {
123 |     // First try to find by external id, then by innerId
124 |     let index = tabItems.findIndex((item) => item.id === tabId);
125 |     if (index === -1) {
126 |       index = tabItems.findIndex((item) => item.innerId === tabId);
127 |     }
128 |     if (index !== -1) {
129 |       setActiveIndex(index);
130 |     }
131 |   });
132 | 
133 |   useEffect(() => {
134 |     registerComponentApi?.({
135 |       next,
136 |       prev,
137 |       setActiveTabIndex,
138 |       setActiveTabById,
139 |     });
140 |   }, [next, prev, setActiveTabIndex, setActiveTabById, registerComponentApi]);
141 | 
142 |   // Accordion view: render tabs with interleaved headers and content
143 |   if (accordionView) {
144 |     return (
145 |       <TabContext.Provider value={tabContextValue}>
146 |         <div
147 |           {...rest}
148 |           id={tabsId}
149 |           ref={forwardedRef}
150 |           className={classnames(className, styles.tabs, styles.accordionView)}
151 |           style={style}
152 |         >
153 |           <RTabsRoot
154 |             value={`${currentTab}`}
155 |             onValueChange={(tab) => {
156 |               const tabItem = tabItems.find((item) => item.innerId === tab);
157 |               const newIndex = tabItems.findIndex((item) => item.innerId === tab);
158 |               if (newIndex !== activeIndex) {
159 |                 tabContextValue.setActiveTabId(tab);
160 |                 setActiveIndex(newIndex);
161 |                 onDidChange?.(newIndex, tabItem.id || tabItem.innerId, tabItem?.label);
162 |               }
163 |             }}
164 |             orientation="vertical"
165 |             className={styles.accordionRoot}
166 |           >
167 |             <div className={styles.accordionInterleaved}>
168 |               <RTabsList className={styles.accordionList}>
169 |                 {tabItems.map((tab, index) => (
170 |                   <RTabsTrigger 
171 |                     key={tab.innerId} 
172 |                     value={tab.innerId} 
173 |                     asChild
174 |                     style={{ order: index * 2 }}
175 |                   >
176 |                     <div
177 |                       role="tab"
178 |                       aria-label={tab.label}
179 |                       className={classnames(styles.tabTrigger, styles.accordionTrigger)}
180 |                     >
181 |                       {tab.headerRenderer
182 |                         ? tab.headerRenderer({
183 |                             ...(tab.id !== undefined && { id: tab.id }),
184 |                             index,
185 |                             label: tab.label,
186 |                             isActive: tab.innerId === currentTab,
187 |                           })
188 |                         : headerRenderer
189 |                           ? headerRenderer({
190 |                               ...(tab.id !== undefined && { id: tab.id }),
191 |                               index,
192 |                               label: tab.label,
193 |                               isActive: tab.innerId === currentTab,
194 |                             })
195 |                           : tab.label}
196 |                     </div>
197 |                   </RTabsTrigger>
198 |                 ))}
199 |               </RTabsList>
200 |               {children}
201 |             </div>
202 |           </RTabsRoot>
203 |         </div>
204 |       </TabContext.Provider>
205 |     );
206 |   }
207 | 
208 |   // Standard tabs view
209 |   return (
210 |     <TabContext.Provider value={tabContextValue}>
211 |       <RTabsRoot
212 |         {...rest}
213 |         id={tabsId}
214 |         ref={forwardedRef}
215 |         className={classnames(className, styles.tabs)}
216 |         value={`${currentTab}`}
217 |         onValueChange={(tab) => {
218 |           const tabItem = tabItems.find((item) => item.innerId === tab);
219 |           const newIndex = tabItems.findIndex((item) => item.innerId === tab);
220 |           if (newIndex !== activeIndex) {
221 |             tabContextValue.setActiveTabId(tab);
222 |             setActiveIndex(newIndex);
223 |             onDidChange?.(newIndex, tabItem.id || tabItem.innerId, tabItem?.label);
224 |           }
225 |         }}
226 |         orientation={orientation}
227 |         style={style}
228 |       >
229 |         <RTabsList
230 |           className={classnames(styles.tabsList, {
231 |             [styles.alignStart]: tabAlignment === "start",
232 |             [styles.alignEnd]: tabAlignment === "end",
233 |             [styles.alignCenter]: tabAlignment === "center",
234 |             [styles.alignStretch]: tabAlignment === "stretch",
235 |           })}
236 |           role="tablist"
237 |         >
238 |           {!distributeEvenly && !headerRenderer && tabAlignment === "end" && (
239 |             <div className={styles.filler} data-orientation={orientation} />
240 |           )}
241 |           {!distributeEvenly && !headerRenderer && tabAlignment === "center" && (
242 |             <div className={styles.filler} data-orientation={orientation} />
243 |           )}
244 |           {tabItems.map((tab, index) => (
245 |             <RTabsTrigger key={tab.innerId} value={tab.innerId} asChild>
246 |               <div
247 |                 role="tab"
248 |                 aria-label={tab.label}
249 |                 className={classnames(styles.tabTrigger, {
250 |                   [styles.distributeEvenly]: distributeEvenly || tabAlignment === "stretch",
251 |                 })}
252 |               >
253 |                 {tab.headerRenderer
254 |                   ? tab.headerRenderer({
255 |                       ...(tab.id !== undefined && { id: tab.id }),
256 |                       index,
257 |                       label: tab.label,
258 |                       isActive: tab.innerId === currentTab,
259 |                     })
260 |                   : headerRenderer
261 |                     ? headerRenderer({
262 |                         ...(tab.id !== undefined && { id: tab.id }),
263 |                         index,
264 |                         label: tab.label,
265 |                         isActive: tab.innerId === currentTab,
266 |                       })
267 |                     : tab.label}
268 |               </div>
269 |             </RTabsTrigger>
270 |           ))}
271 |           {!distributeEvenly && !headerRenderer && tabAlignment !== "stretch" && (tabAlignment === "start" || tabAlignment === "center") && (
272 |             <div className={styles.filler} data-orientation={orientation} />
273 |           )}
274 |         </RTabsList>
275 |         {children}
276 |       </RTabsRoot>
277 |     </TabContext.Provider>
278 |   );
279 | });
280 | 
```

--------------------------------------------------------------------------------
/xmlui/tests/language-server/completion.test.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { describe, expect, it } from "vitest";
  2 | import {
  3 |   handleCompletion,
  4 |   handleCompletionResolve,
  5 | } from "../../src/language-server/services/completion";
  6 | import { mockMetadata, mockMetadataProvider } from "./mockData";
  7 | import type { CompletionItem, MarkupContent } from "vscode-languageserver";
  8 | import { CompletionItemKind } from "vscode-languageserver";
  9 | import { layoutOptionKeys } from "../../src/components-core/descriptorHelper";
 10 | import { capitalizeFirstLetter } from "../../src/components-core/utils/misc";
 11 | import { createXmlUiParser } from "../../src/parsers/xmlui-parser";
 12 | import { createDocumentCursor } from "../../src/components-core/xmlui-parser";
 13 | 
 14 | describe("Completion", () => {
 15 |   it("lists all component names after '<'", () => {
 16 |     const suggestions = completeAtPoundSign("<#").map(({ label }) => label);
 17 |     const expected = Object.keys(mockMetadata);
 18 | 
 19 |     expectToContainExactly(suggestions, expected);
 20 |   });
 21 | 
 22 |   it("lists all attribute names inside attribute key", () => {
 23 |     const attrNames = completeAtPoundSign("<Button a#b />").map(({ label }) => label);
 24 |     expectToContainExactly(attrNames, allButtonProps);
 25 |   });
 26 | 
 27 |   it("lists all attribute names after last attribute key", () => {
 28 |     const attrNames = completeAtPoundSign("<Button ab# />").map(({ label }) => label);
 29 |     expectToContainExactly(attrNames, allButtonProps);
 30 |   });
 31 | 
 32 |   it("lists all attribute names after component name", () => {
 33 |     const attrNames = completeAtPoundSign("<Button #/>").map(({ label }) => label);
 34 |     expectToContainExactly(attrNames, allButtonProps);
 35 |   });
 36 | 
 37 |   it("lists all attribute names after attribute", () => {
 38 |     const attrNames = completeAtPoundSign('<Button label="hi" #/>').map(({ label }) => label);
 39 |     expectToContainExactly(attrNames, allButtonProps);
 40 |   });
 41 | 
 42 |   it("list only matching closing tag name", () => {
 43 |     const completionLabels = completeAtPoundSign("<Button>ha</#>").map(({ label }) => label);
 44 |     expectToContainExactly(completionLabels, ["Button"]);
 45 |   });
 46 | 
 47 |   it("list all attribute names with missing '>' token", () => {
 48 |     const attrNames = completeAtPoundSign("<Button #</Button>").map(({ label }) => label);
 49 |     expectToContainExactly(attrNames, allButtonProps);
 50 |   });
 51 | 
 52 |   it("list all attribute names between tag name and eof", () => {
 53 |     const attrNames = completeAtPoundSign("<Button #").map(({ label }) => label);
 54 |     expectToContainExactly(attrNames, allButtonProps);
 55 |   });
 56 | 
 57 |   it("don't list anything after matching closing tag name", { todo: true }, () => {
 58 |     const completionLabels = completeAtPoundSign("<Button>ha</Button #>").map(({ label }) => label);
 59 |     expect(completionLabels).toBeNull();
 60 |   });
 61 | 
 62 |   it("resolves component name", () => {
 63 |     const item = completeAtPoundSign("<Butto# />").find(({ label }) => label === "Button");
 64 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
 65 |     const docs = (resolvedItem.documentation as MarkupContent).value;
 66 | 
 67 |     const expected: CompletionItem = { label: "Button", kind: CompletionItemKind.Constructor };
 68 | 
 69 |     expect(resolvedItem).toMatchObject(expected);
 70 |     expect(docs).toContain(mockMetadata.Button.description);
 71 |     expect(docs).toContain(mockMetadata.Button.events.click.description);
 72 |     expect(docs).toContain(mockMetadata.Button.props.label.description);
 73 |   });
 74 | 
 75 |   it("resolves closing component name", () => {
 76 |     const item = completeAtPoundSign("<Button><#").find(({ label }) => label === "/Button");
 77 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
 78 |     const docs = (resolvedItem.documentation as MarkupContent).value;
 79 | 
 80 |     expect(docs).toContain(mockMetadata.Button.description);
 81 |     expect(docs).toContain(mockMetadata.Button.events.click.description);
 82 |     expect(docs).toContain(mockMetadata.Button.props.label.description);
 83 |   });
 84 | 
 85 |   it("resolves prop", () => {
 86 |     const item = completeAtPoundSign("<Button labe#l />").find(({ label }) => label === "label");
 87 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
 88 |     const docs = (resolvedItem.documentation as MarkupContent).value;
 89 | 
 90 |     const expected: CompletionItem = { label: "label", kind: CompletionItemKind.Property };
 91 | 
 92 |     expect(resolvedItem).toMatchObject(expected);
 93 |     expect(docs).toContain(mockMetadata.Button.props.label.description);
 94 |   });
 95 | 
 96 |   it("resolves event", () => {
 97 |     const item = completeAtPoundSign("<Button onClic#k />").find(
 98 |       ({ label }) => label === "onClick",
 99 |     );
100 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
101 |     const docs = (resolvedItem.documentation as MarkupContent).value;
102 | 
103 |     const expected: CompletionItem = { label: "onClick", kind: CompletionItemKind.Event };
104 | 
105 |     expect(resolvedItem).toMatchObject(expected);
106 |     expect(docs).toContain(mockMetadata.Button.events.click.description);
107 |   });
108 | 
109 |   it("resolves implicit prop", () => {
110 |     const item = completeAtPoundSign("<Button dat#a />").find(({ label }) => label === "data");
111 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
112 |     const docs = (resolvedItem.documentation as MarkupContent).value;
113 |     const dataDescription = mockMetadataProvider.getComponent("Button").getAttr("data").description;
114 | 
115 |     const expected: CompletionItem = { label: "data", kind: CompletionItemKind.Property };
116 | 
117 |     expect(resolvedItem).toMatchObject(expected);
118 |     expect(docs).toContain(dataDescription);
119 |   });
120 | 
121 |   it("resolves layout prop", () => {
122 |     const item = completeAtPoundSign("<Button widt#h />").find(({ label }) => label === "width");
123 |     const resolvedItem = handleCompletionResolve({ item, metaByComp: mockMetadataProvider });
124 |     const docs = (resolvedItem.documentation as MarkupContent).value;
125 |     const widthDescription = mockMetadataProvider
126 |       .getComponent("Button")
127 |       .getAttr("width").description;
128 | 
129 |     const expected: CompletionItem = { label: "width", kind: CompletionItemKind.Unit };
130 | 
131 |     expect(resolvedItem).toMatchObject(expected);
132 |     expect(docs).toContain(widthDescription);
133 |   });
134 | 
135 |   it("closing element 1st after opening tag & element creation", () => {
136 |     const suggestions = completeAtPoundSign("<Button><#").map(({ label }) => label);
137 |     expect(suggestions).toStrictEqual(["/Button", ...Object.keys(mockMetadata)]);
138 |   });
139 | 
140 |   it("closing element 1st after opening tag & element creation, cursor not at end", () => {
141 |     const suggestions = completeAtPoundSign("<Button><#A").map(({ label }) => label);
142 |     expect(suggestions).toStrictEqual(["/Button", ...Object.keys(mockMetadata)]);
143 |   });
144 | 
145 |   it("closing element 1st after opening tag & element creation, malformed attr", () => {
146 |     const suggestions = completeAtPoundSign("<Button attr=><#").map(({ label }) => label);
147 |     expect(suggestions).toStrictEqual(["/Button", ...Object.keys(mockMetadata)]);
148 |   });
149 | 
150 |   it("closing element 1st after opening tag & element creation, malformed attr list", () => {
151 |     const suggestions = completeAtPoundSign("<Button attr=' :><#").map(({ label }) => label);
152 |     expect(suggestions).toStrictEqual(["/Button", ...Object.keys(mockMetadata)]);
153 |   });
154 | 
155 |   it("suggest all components if no identifier provided", () => {
156 |     const suggestions = completeAtPoundSign("<><#").map(({ label }) => label);
157 |     expect(suggestions).toStrictEqual(Object.keys(mockMetadata));
158 |   });
159 | 
160 |   it("places closing tag after accepting code completion of opened component", () => {
161 |     const item = completeAtPoundSign("<Button><#").find(({ label }) => label === "/Button");
162 | 
163 |     const expected: CompletionItem = {
164 |       kind: CompletionItemKind.Constructor,
165 |       data: { metadataAccessInfo: { componentName: "Button" } },
166 |       label: "/Button",
167 |       textEdit: {
168 |         newText: "/Button>",
169 |         range: {
170 |           start: { line: 0, character: "<Button><".length },
171 |           end: { line: 0, character: "<Button><".length },
172 |         },
173 |       },
174 |     };
175 | 
176 |     expect(item).toMatchObject(expected);
177 |   });
178 | 
179 |   it("don't suggest closing tag if completion item is not the one that has an opened tag", () => {
180 |     const items = completeAtPoundSign("<Button><#").filter(({ label }) => label !== "/Button");
181 |     for (const item of items) {
182 |       expect(item.textEdit).toBeUndefined();
183 |     }
184 |   });
185 | });
186 | 
187 | function completeAtPoundSign(source: string) {
188 |   const cursorIndicator = "#";
189 |   const position = source.indexOf(cursorIndicator);
190 |   if (position === -1) {
191 |     throw new Error(
192 |       `No '${cursorIndicator}' found in the tested source to denote the position of the cursor.`,
193 |     );
194 |   }
195 |   source = source.replace(cursorIndicator, "");
196 |   const parser = createXmlUiParser(source);
197 | 
198 |   return handleCompletion(
199 |     {
200 |       getText: parser.getText,
201 |       parseResult: parser.parse(),
202 |       metaByComp: mockMetadataProvider,
203 |       offsetToPos: createDocumentCursor(source).offsetToPos,
204 |     },
205 |     position,
206 |   );
207 | }
208 | 
209 | function expectToContainExactly<T>(actual: T[], expected: T[]) {
210 |   expect(actual).toHaveLength(expected.length);
211 |   expect(new Set(actual)).toEqual(new Set(expected));
212 | }
213 | 
214 | const allButtonProps = Object.keys(mockMetadata.Button.props);
215 | allButtonProps.push(
216 |   ...Object.keys(mockMetadata.Button.events).map((key) => "on" + capitalizeFirstLetter(key)),
217 | );
218 | allButtonProps.push("inspect");
219 | allButtonProps.push("data");
220 | allButtonProps.push("when");
221 | allButtonProps.push(...layoutOptionKeys);
222 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components-core/interception/ApiInterceptor.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { delay, HttpResponse, matchRequestUrl } from "msw";
  2 | import type { PathParams, StrictRequest } from "msw";
  3 | import { isObject } from "lodash-es";
  4 | 
  5 | import { Backend, CookieService, HeaderService } from "../interception/Backend";
  6 | import { IndexedDb } from "../interception/IndexedDb";
  7 | import { convertRequestParamPart } from "../utils/request-params";
  8 | import { HttpError, HttpStatusCode } from "../interception/Errors";
  9 | import { ThrowStatementError } from "../EngineError";
 10 | import { InMemoryDb } from "../interception/InMemoryDb";
 11 | import type {
 12 |   ApiInterceptorDefinition,
 13 |   AuthDefinition,
 14 |   IDatabase,
 15 |   InterceptorOperationDef,
 16 |   RequestParams,
 17 | } from "./abstractions";
 18 | 
 19 | function mergeHeaders(...sources: HeadersInit[]) {
 20 |   const result: Record<string, string> = {};
 21 | 
 22 |   for (const source of sources) {
 23 |     if (!isObject(source)) {
 24 |       throw new TypeError("All arguments must be of type object");
 25 |     }
 26 | 
 27 |     const headers: Headers = new Headers(source);
 28 | 
 29 |     for (const [key, value] of headers.entries()) {
 30 |       if (value === undefined || value === "undefined") {
 31 |         delete result[key];
 32 |       } else {
 33 |         result[key] = value;
 34 |       }
 35 |     }
 36 |   }
 37 | 
 38 |   return new Headers(result);
 39 | }
 40 | 
 41 | // Represents the authentication service used within an API interceptor
 42 | export class AuthService {
 43 |   private loggedInUser: any;
 44 | 
 45 |   constructor(auth?: AuthDefinition) {
 46 |     const cachedLoggedInUser = JSON.parse(sessionStorage.getItem("session-logged-in-user") as any);
 47 |     this.loggedInUser = cachedLoggedInUser || auth?.defaultLoggedInUser;
 48 |   }
 49 | 
 50 |   login(newLoggedInUser: any) {
 51 |     this.loggedInUser = newLoggedInUser;
 52 |     sessionStorage.setItem("session-logged-in-user", JSON.stringify(newLoggedInUser));
 53 |   }
 54 | 
 55 |   logout() {
 56 |     this.loggedInUser = null;
 57 |     sessionStorage.removeItem("session-logged-in-user");
 58 |   }
 59 | 
 60 |   getCookieToken() {
 61 |     return sessionStorage.getItem("session-anonymous-token");
 62 |   }
 63 | 
 64 |   setCookieToken(token: string) {
 65 |     sessionStorage.setItem("session-anonymous-token", token);
 66 |   }
 67 | 
 68 |   getLoggedInUser() {
 69 |     return this.loggedInUser;
 70 |   }
 71 | }
 72 | 
 73 | async function initDb(apiDef: ApiInterceptorDefinition) {
 74 |   switch (apiDef.type) {
 75 |     case "in-memory":
 76 |       return new InMemoryDb(apiDef.schemaDescriptor?.tables, apiDef.initialData, apiDef.config);
 77 |     default:
 78 |       const indexedDb = new IndexedDb(
 79 |         apiDef.schemaDescriptor?.tables,
 80 |         apiDef.initialData,
 81 |         apiDef.config,
 82 |       );
 83 |       await indexedDb.initialize();
 84 |       return indexedDb;
 85 |   }
 86 | }
 87 | 
 88 | // An API interceptor implementation
 89 | export class ApiInterceptor {
 90 |   private backend: Backend | null = null;
 91 |   // public id = crypto.randomUUID();
 92 | 
 93 |   constructor(private readonly apiDef: ApiInterceptorDefinition) {}
 94 | 
 95 |   public async initialize() {
 96 |     // --- Transfer the handlers of API operations to the backend implementation
 97 |     const backendOperations: Record<string, string> = {};
 98 |     Object.entries(this.apiDef.operations || {}).forEach(([key, value]) => {
 99 |       backendOperations[key] = value.handler;
100 |     });
101 |     const db: IDatabase = await initDb(this.apiDef);
102 |     const authService = new AuthService(this.apiDef.auth);
103 |     const definition = {
104 |       operations: backendOperations,
105 |       initialize: this.apiDef.initialize,
106 |       helpers: this.apiDef.helpers,
107 |     };
108 |     this.backend = new Backend(definition, db, authService);
109 |   }
110 | 
111 |   public getOperations() {
112 |     return this.apiDef.operations || {};
113 |   }
114 | 
115 |   public getApiUrl() {
116 |     return this.apiDef.apiUrl || "";
117 |   }
118 | 
119 |   // Use the "msw" package to execute the interceptor operation
120 |   async executeOperation(
121 |     operationId: string,
122 |     req: StrictRequest<any> | null,
123 |     cookies: Record<string, string | Array<string>>,
124 |     params: PathParams<string>,
125 |   ) {
126 |     if (this.backend === null) {
127 |       throw new Error("Interceptor not initialized");
128 |     }
129 |     const operation = this.apiDef.operations?.[operationId];
130 |     if (!operation) {
131 |       throw new Error(`Unknown API interceptor operation: ${operationId}`);
132 |     }
133 |     let reqBody;
134 |     try {
135 |       if (operation.requestShape === "formData") {
136 |         const formData = await req.formData();
137 |         const obj: any = {};
138 |         for (const key of formData.keys()) {
139 |           const all = formData.getAll(key);
140 |           if (all.length === 1) {
141 |             obj[key] = all[0];
142 |           } else {
143 |             obj[key] = all;
144 |           }
145 |         }
146 |         reqBody = obj;
147 |       } else if (operation.requestShape === "blob") {
148 |         reqBody = await req.blob();
149 |       } else {
150 |         reqBody = await req.json();
151 |       }
152 |     } catch (e) {}
153 |     // --- Map path parameters
154 |     const mappedParams = this.convertRequestParams(
155 |       {
156 |         pathParams: params,
157 |         queryParams: Object.fromEntries(new URL(req.url).searchParams),
158 |         requestBody: reqBody,
159 |         cookies: cookies,
160 |         requestHeaders: Object.fromEntries(req.headers.entries()) || {},
161 |       },
162 |       operation,
163 |     );
164 | 
165 |     //artificial delay for http requests
166 |     if (this.apiDef.artificialDelay === undefined) {
167 |       await delay("real");
168 |     } else if (this.apiDef.artificialDelay !== 0) {
169 |       await delay(this.apiDef.artificialDelay);
170 |     }
171 |     const cookieService = new CookieService();
172 |     const headerService = new HeaderService();
173 |     try {
174 |       const ret = await this.backend.executeOperation(
175 |         operationId,
176 |         mappedParams,
177 |         cookieService,
178 |         headerService,
179 |       );
180 |       const emptyBody = ret === undefined || ret === null;
181 |       const successStatusCode =
182 |         operation.successStatusCode ?? (emptyBody ? HttpStatusCode.NoContent : HttpStatusCode.Ok);
183 | 
184 |       const headers = mergeHeaders(cookieService.getCookieHeader(), headerService.getHeaders());
185 |       if (ret instanceof File) {
186 |         headers.append("Content-type", ret.type);
187 |         headers.append("Content-Length", ret.size + "");
188 |         
189 |         // Properly encode filename for Content-Disposition header
190 |         // Use percent-encoding for non-ASCII characters in filename*
191 |         const encodedFilename = encodeURIComponent(ret.name);
192 |         headers.append("Content-Disposition", `attachment; filename*=UTF-8''${encodedFilename}`);
193 |         return HttpResponse.arrayBuffer(await ret.arrayBuffer(), {
194 |           headers: headers,
195 |           status: successStatusCode,
196 |         });
197 |       }
198 |       if (emptyBody) {
199 |         return new HttpResponse(null, {
200 |           headers: headers,
201 |           status: successStatusCode,
202 |         });
203 |       }
204 |       // console.log(operationId, ret)
205 |       return HttpResponse.json(ret, {
206 |         headers: headers,
207 |         status: successStatusCode,
208 |       });
209 |     } catch (e) {
210 |       console.error(e);
211 |       if (e instanceof ThrowStatementError && e.errorObject instanceof HttpError) {
212 |         return HttpResponse.json(e.errorObject.details, {
213 |           headers: cookieService.getCookieHeader(),
214 |           status: e.errorObject.status,
215 |         });
216 |       }
217 |       return HttpResponse.json(
218 |         { message: (e as Error)?.message },
219 |         {
220 |           headers: cookieService.getCookieHeader(),
221 |           status: HttpStatusCode.InternalServerError,
222 |         },
223 |       );
224 |     }
225 |   }
226 | 
227 |   // Ensures that type path and query params are converted according to the operation definition
228 |   private convertRequestParams(
229 |     params: RequestParams,
230 |     operation: InterceptorOperationDef,
231 |   ): RequestParams {
232 |     return {
233 |       ...params,
234 |       pathParams: convertRequestParamPart(params.pathParams, operation.pathParamTypes),
235 |       queryParams: convertRequestParamPart(params.queryParams, operation.queryParamTypes),
236 |     };
237 |   }
238 | 
239 |   hasMockForRequest(url: string, options: RequestInit) {
240 |     return this.getMockForRequest(url, options) !== undefined;
241 |   }
242 | 
243 |   private getMockForRequest(url: string, options: RequestInit) {
244 |     return Object.entries(this.getOperations()).find(([operationId, operationDef]) => {
245 |       if (
246 |         matchRequestUrl(
247 |           new URL(url, window.location.href),
248 |           `${this.getApiUrl()}${operationDef.url}`,
249 |           `${window.location.href}`,
250 |         ).matches &&
251 |         (options.method || "get").toLowerCase() === operationDef.method.toLowerCase()
252 |       ) {
253 |         return true;
254 |       }
255 |       return false;
256 |     });
257 |   }
258 | 
259 |   executeMockedFetch(url: string, options: RequestInit) {
260 |     const mockForRequest = this.getMockForRequest(url, options);
261 |     if (!mockForRequest) {
262 |       throw new Error(`No mock found for request: ${url} with options: ${JSON.stringify(options)}`);
263 |     }
264 |     const [operationId, operationDef] = mockForRequest;
265 |     const match = matchRequestUrl(
266 |       new URL(url, window.location.href),
267 |       `${this.getApiUrl()}${operationDef.url}`,
268 |       `${window.location.href}`,
269 |     );
270 |     return this.executeOperation(
271 |       operationId,
272 |       new Request(url, options),
273 |       getCookiesAsObject(),
274 |       match.params as PathParams,
275 |     );
276 |   }
277 | }
278 | 
279 | function getCookiesAsObject() {
280 |   // 1. Get the cookie string
281 |   const cookieString = document.cookie;
282 | 
283 |   // 2. Handle the case of no cookies
284 |   if (cookieString === "") {
285 |     return {};
286 |   }
287 | 
288 |   // 3. Split into individual "key=value" pairs
289 |   const cookiePairs = cookieString.split("; ");
290 | 
291 |   // 4. Use reduce to build the final object
292 |   const cookieObject = cookiePairs.reduce((acc, currentPair) => {
293 |     const [key, value] = currentPair.split("=");
294 |     // Decode the key and value to handle special characters
295 |     acc[decodeURIComponent(key)] = decodeURIComponent(value);
296 |     return acc;
297 |   }, {});
298 | 
299 |   return cookieObject;
300 | }
301 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/Slider/Slider.module.scss:
--------------------------------------------------------------------------------

```scss
  1 | 
  2 | @use "../../components-core/theming/themes" as t;
  3 | 
  4 | // --- This code snippet is required to collect the theme variables used in this module
  5 | $themeVars: ();
  6 | @function createThemeVar($componentVariable) {
  7 |   $themeVars: t.appendThemeVar($themeVars, $componentVariable) !global;
  8 |   @return t.getThemeVar($themeVars, $componentVariable);
  9 | }
 10 | 
 11 | $componentName: "Slider";
 12 | 
 13 | // Variables for default variant
 14 | $borderRadius-Slider--default: createThemeVar("Input:borderRadius-#{$componentName}--default");
 15 | $borderColor-Slider--default: createThemeVar("Input:borderColor-#{$componentName}--default");
 16 | $borderWidth-Slider--default: createThemeVar("Input:borderWidth-#{$componentName}--default");
 17 | $borderStyle-Slider--default: createThemeVar("Input:borderStyle-#{$componentName}--default");
 18 | $boxShadow-Slider--default: createThemeVar("Input:boxShadow-#{$componentName}--default");
 19 | $borderColor-Slider--default--hover: createThemeVar("Input:borderColor-#{$componentName}--default--hover");
 20 | $boxShadow-Slider--default--hover: createThemeVar("Input:boxShadow-#{$componentName}--default--hover");
 21 | $borderColor-Slider--default--focus: createThemeVar("Input:borderColor-#{$componentName}--default--focus");
 22 | $boxShadow-Slider--default--focus: createThemeVar("Input:boxShadow-#{$componentName}--default--focus");
 23 | 
 24 | // Variables for error variant
 25 | $borderRadius-Slider--error: createThemeVar("Input:borderRadius-#{$componentName}--error");
 26 | $borderColor-Slider--error: createThemeVar("Input:borderColor-#{$componentName}--error");
 27 | $borderWidth-Slider--error: createThemeVar("Input:borderWidth-#{$componentName}--error");
 28 | $borderStyle-Slider--error: createThemeVar("Input:borderStyle-#{$componentName}--error");
 29 | $boxShadow-Slider--error: createThemeVar("Input:boxShadow-#{$componentName}--error");
 30 | $borderColor-Slider--error--hover: createThemeVar("Input:borderColor-#{$componentName}--error--hover");
 31 | $boxShadow-Slider--error--hover: createThemeVar("Input:boxShadow-#{$componentName}--error--hover");
 32 | $borderColor-Slider--error--focus: createThemeVar("Input:borderColor-#{$componentName}--error--focus");
 33 | $boxShadow-Slider--error--focus: createThemeVar("Input:boxShadow-#{$componentName}--error--focus");
 34 | 
 35 | // Variables for warning variant
 36 | $borderRadius-Slider--warning: createThemeVar("Input:borderRadius-#{$componentName}--warning");
 37 | $borderColor-Slider--warning: createThemeVar("Input:borderColor-#{$componentName}--warning");
 38 | $borderWidth-Slider--warning: createThemeVar("Input:borderWidth-#{$componentName}--warning");
 39 | $borderStyle-Slider--warning: createThemeVar("Input:borderStyle-#{$componentName}--warning");
 40 | $boxShadow-Slider--warning: createThemeVar("Input:boxShadow-#{$componentName}--warning");
 41 | $borderColor-Slider--warning--hover: createThemeVar("Input:borderColor-#{$componentName}--warning--hover");
 42 | $boxShadow-Slider--warning--hover: createThemeVar("Input:boxShadow-#{$componentName}--warning--hover");
 43 | $borderColor-Slider--warning--focus: createThemeVar("Input:borderColor-#{$componentName}--warning--focus");
 44 | $boxShadow-Slider--warning--focus: createThemeVar("Input:boxShadow-#{$componentName}--warning--focus");
 45 | 
 46 | // Variables for success variant
 47 | $borderRadius-Slider--success: createThemeVar("Input:borderRadius-#{$componentName}--success");
 48 | $borderColor-Slider--success: createThemeVar("Input:borderColor-#{$componentName}--success");
 49 | $borderWidth-Slider--success: createThemeVar("Input:borderWidth-#{$componentName}--success");
 50 | $borderStyle-Slider--success: createThemeVar("Input:borderStyle-#{$componentName}--success");
 51 | $boxShadow-Slider--success: createThemeVar("Input:boxShadow-#{$componentName}--success");
 52 | $borderColor-Slider--success--hover: createThemeVar("Input:borderColor-#{$componentName}--success--hover");
 53 | $boxShadow-Slider--success--hover: createThemeVar("Input:boxShadow-#{$componentName}--success--hover");
 54 | $borderColor-Slider--success--focus: createThemeVar("Input:borderColor-#{$componentName}--success--focus");
 55 | $boxShadow-Slider--success--focus: createThemeVar("Input:boxShadow-#{$componentName}--success--focus");
 56 | 
 57 | // Variables for @layer section
 58 | $backgroundColor-track-Slider: createThemeVar("Input:backgroundColor-track-#{$componentName}");
 59 | $backgroundColor-track-Slider--disabled: createThemeVar("Input:backgroundColor-track-#{$componentName}--disabled");
 60 | $backgroundColor-range-Slider: createThemeVar("Input:backgroundColor-range-#{$componentName}");
 61 | $backgroundColor-range-Slider--disabled: createThemeVar("Input:backgroundColor-range-#{$componentName}--disabled");
 62 | $borderWidth-thumb-Slider: createThemeVar("Input:borderWidth-thumb-#{$componentName}");
 63 | $borderStyle-thumb-Slider: createThemeVar("Input:borderStyle-thumb-#{$componentName}");
 64 | $borderColor-thumb-Slider: createThemeVar("Input:borderColor-thumb-#{$componentName}");
 65 | $backgroundColor-thumb-Slider: createThemeVar("Input:backgroundColor-thumb-#{$componentName}");
 66 | $boxShadow-thumb-Slider: createThemeVar("Input:boxShadow-thumb-#{$componentName}");
 67 | $backgroundColor-thumb-Slider--focus: createThemeVar("Input:backgroundColor-thumb-#{$componentName}--focus");
 68 | $boxShadow-thumb-Slider--focus: createThemeVar("Input:boxShadow-thumb-#{$componentName}--focus");
 69 | $backgroundColor-thumb-Slider--hover: createThemeVar("Input:backgroundColor-thumb-#{$componentName}--hover");
 70 | $boxShadow-thumb-Slider--hover: createThemeVar("Input:boxShadow-thumb-#{$componentName}--hover");
 71 | $backgroundColor-thumb-Slider--active: createThemeVar("Input:backgroundColor-thumb-#{$componentName}--active");
 72 | $boxShadow-thumb-Slider--active: createThemeVar("Input:boxShadow-thumb-#{$componentName}--active");
 73 | $borderColor-Slider--error: createThemeVar("Input:borderColor-#{$componentName}--error");
 74 | $borderColor-Slider--warning: createThemeVar("Input:borderColor-#{$componentName}--warning");
 75 | $borderColor-Slider--success: createThemeVar("Input:borderColor-#{$componentName}--success");
 76 | 
 77 | // Basic variant mixin for consistent theming
 78 | @mixin variant($variantName) {
 79 |   border-radius: createThemeVar("Input:borderRadius-#{$componentName}--#{$variantName}");
 80 |   border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}");
 81 |   border-width: createThemeVar("Input:borderWidth-#{$componentName}--#{$variantName}");
 82 |   border-style: createThemeVar("Input:borderStyle-#{$componentName}--#{$variantName}");
 83 |   box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}");
 84 | 
 85 |   &:hover {
 86 |     border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}--hover");
 87 |     box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}--hover");
 88 |   }
 89 | 
 90 |   &:focus-within {
 91 |     border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}--focus");
 92 |     box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}--focus");
 93 |   }
 94 | }
 95 | 
 96 | @layer components {
 97 |   // Container for the slider
 98 |   .sliderContainer {
 99 |     width: 100%;
100 |     position: relative;
101 |     padding: t.$space-2 0;
102 |   }
103 | 
104 |   // Root element
105 |   .sliderRoot {
106 |     position: relative;
107 |     display: flex;
108 |     width: 100%;
109 |     touch-action: none;
110 |     user-select: none;
111 |     align-items: center;
112 |     height: 20px;
113 |   }
114 | 
115 |   // Track element
116 |   .sliderTrack {
117 |     position: relative;
118 |     height: 8px;
119 |     width: 100%;
120 |     flex-grow: 1;
121 |     overflow: hidden;
122 |     border-radius: 9999px;
123 |     background-color: $backgroundColor-track-Slider;
124 | 
125 |     @include variant("default");
126 | 
127 |     &.error {
128 |       @include variant("error");
129 |     }
130 |     &.warning {
131 |       @include variant("warning");
132 |     }
133 |     &.valid {
134 |       @include variant("success");
135 |     }
136 | 
137 |     &.disabled, &[data-disabled] {
138 |       background-color: $backgroundColor-track-Slider--disabled;
139 |     }
140 | 
141 |     &:not(.disabled):not([data-disabled]):hover {
142 |       cursor: pointer;
143 |     }
144 |   }
145 | 
146 |   // Range element
147 |   .sliderRange {
148 |     position: absolute;
149 |     height: 100%;
150 |     background-color: $backgroundColor-range-Slider;
151 |     border-radius: 9999px;
152 | 
153 |     &.disabled, &[data-disabled] {
154 |       background-color: $backgroundColor-range-Slider--disabled;
155 |     }
156 |   }
157 | 
158 |   // Thumb element
159 |   .sliderThumb {
160 |     cursor: pointer;
161 |     display: block;
162 |     width: 20px;
163 |     height: 20px;
164 |     border-radius: 50%;
165 |     border: $borderWidth-thumb-Slider
166 |     $borderStyle-thumb-Slider
167 |     $borderColor-thumb-Slider;
168 |     background-color: $backgroundColor-thumb-Slider;
169 |     box-shadow: $boxShadow-thumb-Slider;
170 |     position: relative;
171 |     transition: background-color 0.2s, box-shadow 0.2s;
172 |     outline: none;
173 | 
174 |     &.disabled, &[data-disabled] {
175 |       pointer-events: none;
176 |       opacity: 0.5;
177 |     }
178 | 
179 |     &:focus-visible, &[data-focus] {
180 |       background-color: $backgroundColor-thumb-Slider--focus;
181 |       box-shadow: $boxShadow-thumb-Slider--focus;
182 |     }
183 |     &:hover, &[data-hover] {
184 |       background-color: $backgroundColor-thumb-Slider--hover;
185 |       box-shadow: $boxShadow-thumb-Slider--hover;
186 |     }
187 |     &:active, &[data-active] {
188 |       background-color: $backgroundColor-thumb-Slider--active;
189 |       box-shadow: $boxShadow-thumb-Slider--active;
190 |     }
191 |   }
192 | 
193 |   /* States */
194 |   .disabled {
195 |     opacity: 0.5;
196 |     cursor: not-allowed;
197 |   }
198 | 
199 |   .readOnly {
200 |     opacity: 0.7;
201 |     cursor: default;
202 |   }
203 | 
204 |   .error {
205 |     border-color: $borderColor-Slider--error;
206 |   }
207 | 
208 |   .warning {
209 |     border-color: $borderColor-Slider--warning;
210 |   }
211 | 
212 |   .valid {
213 |     border-color: $borderColor-Slider--success;
214 |   }
215 | }
216 | 
217 | // --- We export the theme variables to add them to the component renderer
218 | :export {
219 |   themeVars: t.json-stringify($themeVars);
220 | }
221 | 
```

--------------------------------------------------------------------------------
/docs/content/components/Card.md:
--------------------------------------------------------------------------------

```markdown
  1 | # Card [#card]
  2 | 
  3 | `Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.
  4 | 
  5 | **Key features:**
  6 | - **Pre-styled elements**: Built-in support for `title`, `subtitle`, and `avatarUrl` properties
  7 | - **Flexible layout**: Choose `vertical` (default) or `horizontal` orientation
  8 | - **Visual grouping**: Automatic styling with background, borders, and spacing
  9 | - **Clickable areas**: Supports click events for interactive cards
 10 | ## Using Card [#using-card]
 11 | 
 12 | `Card` is a container; it does not have any explicit properties.
 13 | You can nest the card's content into the `<Card>` tag:
 14 | 
 15 | ```xmlui-pg copy display name="Example: using Card"
 16 | <App>
 17 |   <Card maxWidth="200px">
 18 |     <HStack verticalAlignment="center">
 19 |       <Icon name="info" />
 20 |       <Text value="Information" variant="strong" />
 21 |     </HStack>
 22 |     <Text value="This is an example text" />
 23 |   </Card>
 24 | </App>
 25 | ```
 26 | 
 27 | There are also prestyled properties one can make use of, detailed in the [Properties section](#properties).
 28 | Prestyled elements always appear above other children.
 29 | 
 30 | ```xmlui-pg copy display name="Example: using Card with prestyled elements"
 31 | <App>
 32 |   <Card
 33 |     avatarUrl="https://i.pravatar.cc/100"
 34 |     title="Example Title"
 35 |     subtitle="Predefined subtitle"
 36 |     maxWidth="300px">
 37 |     <HStack verticalAlignment="center">
 38 |       <Icon name="info"/>
 39 |       This is a card
 40 |     </HStack>
 41 |   </Card>
 42 | </App>
 43 | ```
 44 | 
 45 | ## Properties [#properties]
 46 | 
 47 | ### `avatarSize` [#avatarsize]
 48 | 
 49 | This prop sets the size of the avatar. The default value is `sm`.
 50 | 
 51 | Available values: `xs`, `sm`, `md`, `lg`
 52 | 
 53 | ### `avatarUrl` [#avatarurl]
 54 | 
 55 | The url for an avarar image. If not specified, but [`showAvatar`](#showAvatar) is true, Card will show the first letters of the [`title`](#title).
 56 | 
 57 | ### `linkTo` [#linkto]
 58 | 
 59 | This optional property wraps the title in a `Link` component that is clickable to navigate.
 60 | 
 61 | ### `orientation` (default: "vertical") [#orientation-default-vertical]
 62 | 
 63 | An optional property that governs the Card's orientation (whether the Card lays out its children in a row or a column). If the orientation is set to `horizontal`, the Card will display its children in a row, except for its [`title`](#title) and [`subtitle`](#subtitle).
 64 | 
 65 | Available values:
 66 | 
 67 | | Value | Description |
 68 | | --- | --- |
 69 | | `horizontal` | The component will fill the available space horizontally |
 70 | | `vertical` | The component will fill the available space vertically **(default)** |
 71 | 
 72 | ```xmlui-pg copy display name="Example: orientation"
 73 | <App>
 74 |   <Card title="Example Title" subtitle="Example Subtitle" orientation="horizontal">
 75 |     <SpaceFiller />
 76 |     <Text>Text child #1</Text>
 77 |     <Text>Text child #2</Text>
 78 |     <Button label="Button Child" />
 79 |   </Card>
 80 | </App>
 81 | ```
 82 | 
 83 | ### `showAvatar` (default: false) [#showavatar-default-false]
 84 | 
 85 | Indicates whether the avatar should be displayed
 86 | 
 87 | Note that in the demo below if the `avatarUrl` is specified, `showAvatar` is automatically set to true but can still be hidden.
 88 | 
 89 | ```xmlui-pg copy display name="Example: showAvatar"
 90 | <App>
 91 |   <Card maxWidth="300px" avatarUrl="https://i.pravatar.cc/100" />
 92 |   <Card maxWidth="300px" showAvatar="true" title="Example Card" />
 93 |   <Card maxWidth="300px" showAvatar="true" />
 94 | </App>
 95 | ```
 96 | 
 97 | ### `subtitle` [#subtitle]
 98 | 
 99 | This prop sets the pre-styled subtitle. If the property is not set, no subtitle is displayed in the Card.
100 | 
101 | This prop sets the prestyled subtitle.
102 | 
103 | ```xmlui-pg copy display name="Example: subtitle"
104 | <App>
105 |   <Card maxWidth="300px" subtitle="Example Subtitle" />
106 | </App>
107 | ```
108 | 
109 | ### `title` [#title]
110 | 
111 | This prop sets the pre-styled title. If the property is not set, no title is displayed in the Card.
112 | 
113 | This prop sets the prestyled title.
114 | 
115 | ```xmlui-pg copy display name="Example: title"
116 | <App>
117 |   <Card maxWidth="300px" title="Example Title" />
118 | </App>
119 | ```
120 | 
121 | ## Events [#events]
122 | 
123 | ### `click` [#click]
124 | 
125 | This event is triggered when the Card is clicked.
126 | 
127 | This event is triggered when the `Card` is clicked.
128 | 
129 | ```xmlui-pg copy display name="Example: click"
130 | <App>
131 |   <Card maxWidth="300px" onClick="toast('Clicked!')">
132 |     <HStack verticalAlignment="center">
133 |       <Icon name="info" />
134 |       <Text value="Information" variant="strong" />
135 |     </HStack>
136 |     <Text value="This is an example text" />
137 |   </Card>
138 | </App>
139 | ```
140 | 
141 | ## Exposed Methods [#exposed-methods]
142 | 
143 | This component does not expose any methods.
144 | 
145 | ## Styling [#styling]
146 | 
147 | ### Theme Variables [#theme-variables]
148 | 
149 | | Variable | Default Value (Light) | Default Value (Dark) |
150 | | --- | --- | --- |
151 | | [backgroundColor](../styles-and-themes/common-units/#color)-Card | $color-surface-raised | $color-surface-raised |
152 | | [border](../styles-and-themes/common-units/#border)-Card | 1px solid $borderColor | 1px solid $borderColor |
153 | | [borderBottom](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
154 | | [borderBottomColor](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
155 | | [borderBottomStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
156 | | [borderBottomWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
157 | | [borderColor](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
158 | | [borderEndEndRadius](../styles-and-themes/common-units/#border-rounding)-Card | *none* | *none* |
159 | | [borderEndStartRadius](../styles-and-themes/common-units/#border-rounding)-Card | *none* | *none* |
160 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
161 | | [borderHorizontalColor](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
162 | | [borderHorizontalStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
163 | | [borderHorizontalWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
164 | | [borderLeft](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
165 | | [color](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
166 | | [borderLeftStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
167 | | [borderLeftWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
168 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Card | $borderRadius | $borderRadius |
169 | | [borderRight](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
170 | | [color](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
171 | | [borderRightStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
172 | | [borderRightWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
173 | | [borderStartEndRadius](../styles-and-themes/common-units/#border-rounding)-Card | *none* | *none* |
174 | | [borderStartStartRadius](../styles-and-themes/common-units/#border-rounding)-Card | *none* | *none* |
175 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
176 | | [borderTop](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
177 | | [borderTopColor](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
178 | | [borderTopStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
179 | | [borderTopWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
180 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Card | *none* | *none* |
181 | | [borderVerticalColor](../styles-and-themes/common-units/#color)-Card | *none* | *none* |
182 | | [borderVerticalStyle](../styles-and-themes/common-units/#border-style)-Card | *none* | *none* |
183 | | [borderVerticalWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
184 | | [borderWidth](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
185 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Card | none | none |
186 | | [gap](../styles-and-themes/common-units/#size)-avatar-Card | $gap-normal | $gap-normal |
187 | | [gap](../styles-and-themes/common-units/#size)-Card | var(--stack-gap-default) | var(--stack-gap-default) |
188 | | [gap](../styles-and-themes/common-units/#size)-title-Card | $gap-none | $gap-none |
189 | | [horizontalAlignment](../styles-and-themes/common-units/#alignment)-title-Card | *none* | *none* |
190 | | [padding](../styles-and-themes/common-units/#size)-Card | $space-4 | $space-4 |
191 | | [paddingBottom](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
192 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
193 | | [paddingLeft](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
194 | | [paddingRight](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
195 | | [paddingTop](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
196 | | [paddingVertical](../styles-and-themes/common-units/#size)-Card | *none* | *none* |
197 | | [verticalAlignment](../styles-and-themes/common-units/#alignment)-title-Card | center | center |
198 | 
199 | ### Variable Explanations [#variable-explanations]
200 | 
201 | | Theme Variable | Description |
202 | | --- | --- |
203 | | **`gap-Card`** | The gap between the component's children. |
204 | | **`gap-title-Card`** | The gap between the title and the subtitle |
205 | | **`gap-avatar-Card`** | The gap between the avatar and the title panel |
206 | | **`horizontalAlignment-title-Card`** | The horizontal alignment of panel with the title and subtitle |
207 | | **`verticalAlignment-title-Card`** | The vertical alignment of the title and subtitle to the avatar |
208 | 
```
Page 50/186FirstPrevNextLast