#
tokens: 49291/50000 17/1630 files (page 22/181)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 22 of 181. Use http://codebase.md/xmlui-org/xmlui/mockApiDef.js?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   └── cool-queens-look.md
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   └── lorem-ipsum.png
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   └── welcome-to-the-xmlui-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── netlify.toml
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── 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
│   │   │   ├── Debug.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   ├── Main.xmlui.xs
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.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
│   │           ├── HelloMd.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
│   │   │   │   ├── 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
│   ├── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   ├── tsconfig.json
│   │   └── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── hooks
│   │   │   │   ├── usePlayground.ts
│   │   │   │   └── useToast.ts
│   │   │   ├── index.tsx
│   │   │   ├── playground
│   │   │   │   ├── Box.module.scss
│   │   │   │   ├── Box.tsx
│   │   │   │   ├── CodeSelector.tsx
│   │   │   │   ├── ConfirmationDialog.module.scss
│   │   │   │   ├── ConfirmationDialog.tsx
│   │   │   │   ├── Editor.tsx
│   │   │   │   ├── Header.module.scss
│   │   │   │   ├── Header.tsx
│   │   │   │   ├── Playground.tsx
│   │   │   │   ├── PlaygroundContent.module.scss
│   │   │   │   ├── PlaygroundContent.tsx
│   │   │   │   ├── PlaygroundNative.module.scss
│   │   │   │   ├── PlaygroundNative.tsx
│   │   │   │   ├── Preview.module.scss
│   │   │   │   ├── Preview.tsx
│   │   │   │   ├── Select.module.scss
│   │   │   │   ├── StandalonePlayground.tsx
│   │   │   │   ├── StandalonePlaygroundNative.module.scss
│   │   │   │   ├── StandalonePlaygroundNative.tsx
│   │   │   │   ├── ThemeSwitcher.module.scss
│   │   │   │   ├── ThemeSwitcher.tsx
│   │   │   │   ├── ToneSwitcher.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── providers
│   │   │   │   ├── Toast.module.scss
│   │   │   │   └── ToastProvider.tsx
│   │   │   ├── state
│   │   │   │   └── store.ts
│   │   │   ├── themes
│   │   │   │   └── theme.ts
│   │   │   └── utils
│   │   │       └── helpers.ts
│   │   └── tsconfig.json
│   ├── 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
│   │   └── tsconfig.json
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── Spreadsheet.tsx
│   │   │   └── SpreadsheetNative.tsx
│   │   └── tsconfig.json
│   └── 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.tsx
│       │   │   └── HeroSectionNative.tsx
│       │   ├── index.tsx
│       │   ├── ScrollToTop
│       │   │   ├── ScrollToTop.module.scss
│       │   │   ├── ScrollToTop.tsx
│       │   │   └── ScrollToTopNative.tsx
│       │   └── vite-env.d.ts
│       └── tsconfig.json
├── 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.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
    │   ├── containers.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
    │   ├── state-management.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── playwright.config.ts
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.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
    │   ├── get-langserver-metadata.mjs
    │   ├── 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.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   ├── LabelListNative.module.scss
    │   │   │   │   └── 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
    │   │   │   ├── MultiSelectOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   ├── SelectNative.tsx
    │   │   │   ├── SelectOption.tsx
    │   │   │   └── SimpleSelect.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
    │   │   │   ├── 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.mjs
    │   ├── 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
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── infrastructure
    │   │   │   ├── index.html
    │   │   │   ├── main.tsx
    │   │   │   ├── public
    │   │   │   │   ├── mockServiceWorker.js
    │   │   │   │   ├── resources
    │   │   │   │   │   ├── bell.svg
    │   │   │   │   │   ├── box.svg
    │   │   │   │   │   ├── doc.svg
    │   │   │   │   │   ├── eye.svg
    │   │   │   │   │   ├── flower-640x480.jpg
    │   │   │   │   │   ├── sun.svg
    │   │   │   │   │   ├── test-image-100x100.jpg
    │   │   │   │   │   └── txt.svg
    │   │   │   │   └── serve.json
    │   │   │   └── TestBed.tsx
    │   │   └── themed-app-test-helpers.ts
    │   └── vite-env.d.ts
    ├── tests
    │   ├── components
    │   │   ├── CodeBlock
    │   │   │   └── hightlight-code.test.ts
    │   │   ├── playground-pattern.test.ts
    │   │   └── Tree
    │   │       └── Tree-states.test.ts
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   └── treeAbstractions.test.ts
    │   │   ├── container
    │   │   │   └── buildProxy.test.ts
    │   │   ├── interception
    │   │   │   ├── orderBy.test.ts
    │   │   │   ├── ReadOnlyCollection.test.ts
    │   │   │   └── request-param-converter.test.ts
    │   │   ├── scripts-runner
    │   │   │   ├── AttributeValueParser.test.ts
    │   │   │   ├── eval-tree-arrow-async.test.ts
    │   │   │   ├── eval-tree-arrow.test.ts
    │   │   │   ├── eval-tree-func-decl-async.test.ts
    │   │   │   ├── eval-tree-func-decl.test.ts
    │   │   │   ├── eval-tree-pre-post.test.ts
    │   │   │   ├── eval-tree-regression.test.ts
    │   │   │   ├── eval-tree.test.ts
    │   │   │   ├── function-proxy.test.ts
    │   │   │   ├── parser-regression.test.ts
    │   │   │   ├── process-event.test.ts
    │   │   │   ├── process-function.test.ts
    │   │   │   ├── process-implicit-context.test.ts
    │   │   │   ├── process-statement-asgn.test.ts
    │   │   │   ├── process-statement-destruct.test.ts
    │   │   │   ├── process-statement-regs.test.ts
    │   │   │   ├── process-statement-sync.test.ts
    │   │   │   ├── process-statement.test.ts
    │   │   │   ├── process-switch-sync.test.ts
    │   │   │   ├── process-switch.test.ts
    │   │   │   ├── process-try-sync.test.ts
    │   │   │   ├── process-try.test.ts
    │   │   │   └── test-helpers.ts
    │   │   ├── test-metadata-handler.ts
    │   │   ├── theming
    │   │   │   ├── border-segments.test.ts
    │   │   │   ├── component-layout.resolver.test.ts
    │   │   │   ├── layout-property-parser.test.ts
    │   │   │   ├── layout-resolver.test.ts
    │   │   │   ├── layout-resolver2.test.ts
    │   │   │   ├── layout-vp-override.test.ts
    │   │   │   └── padding-segments.test.ts
    │   │   └── utils
    │   │       ├── date-utils.test.ts
    │   │       ├── format-human-elapsed-time.test.ts
    │   │       └── LruCache.test.ts
    │   ├── language-server
    │   │   ├── completion.test.ts
    │   │   ├── format.test.ts
    │   │   ├── hover.test.ts
    │   │   └── mockData.ts
    │   └── parsers
    │       ├── common
    │       │   └── input-stream.test.ts
    │       ├── markdown
    │       │   └── parse-binding-expression.test.ts
    │       ├── parameter-parser.test.ts
    │       ├── paremeter-parser.test.ts
    │       ├── scripting
    │       │   ├── eval-tree-arrow.test.ts
    │       │   ├── eval-tree-pre-post.test.ts
    │       │   ├── eval-tree.test.ts
    │       │   ├── function-proxy.test.ts
    │       │   ├── lexer-literals.test.ts
    │       │   ├── lexer-misc.test.ts
    │       │   ├── module-parse.test.ts
    │       │   ├── parser-arrow.test.ts
    │       │   ├── parser-assignments.test.ts
    │       │   ├── parser-binary.test.ts
    │       │   ├── parser-destructuring.test.ts
    │       │   ├── parser-errors.test.ts
    │       │   ├── parser-expressions.test.ts
    │       │   ├── parser-function.test.ts
    │       │   ├── parser-literals.test.ts
    │       │   ├── parser-primary.test.ts
    │       │   ├── parser-regex.test.ts
    │       │   ├── parser-statements.test.ts
    │       │   ├── parser-unary.test.ts
    │       │   ├── process-event.test.ts
    │       │   ├── process-implicit-context.test.ts
    │       │   ├── process-statement-asgn.test.ts
    │       │   ├── process-statement-destruct.test.ts
    │       │   ├── process-statement-regs.test.ts
    │       │   ├── process-statement-sync.test.ts
    │       │   ├── process-statement.test.ts
    │       │   ├── process-switch-sync.test.ts
    │       │   ├── process-switch.test.ts
    │       │   ├── process-try-sync.test.ts
    │       │   ├── process-try.test.ts
    │       │   ├── simplify-expression.test.ts
    │       │   ├── statement-hooks.test.ts
    │       │   └── test-helpers.ts
    │       ├── style-parser
    │       │   ├── generateHvarChain.test.ts
    │       │   ├── parseHVar.test.ts
    │       │   ├── parser.test.ts
    │       │   └── tokens.test.ts
    │       └── xmlui
    │           ├── lint.test.ts
    │           ├── parser.test.ts
    │           ├── scanner.test.ts
    │           ├── transform.attr.test.ts
    │           ├── transform.circular.test.ts
    │           ├── transform.element.test.ts
    │           ├── transform.errors.test.ts
    │           ├── transform.escape.test.ts
    │           ├── transform.regression.test.ts
    │           ├── transform.script.test.ts
    │           ├── transform.test.ts
    │           └── xmlui.ts
    ├── tests-e2e
    │   ├── api-bound-component-regression.spec.ts
    │   ├── api-call-as-extracted-component.spec.ts
    │   ├── assign-to-object-or-array-regression.spec.ts
    │   ├── binding-regression.spec.ts
    │   ├── children-as-template-context-vars.spec.ts
    │   ├── compound-component.spec.ts
    │   ├── context-vars-regression.spec.ts
    │   ├── data-bindings.spec.ts
    │   ├── datasource-and-api-usage-in-var.spec.ts
    │   ├── datasource-direct-binding.spec.ts
    │   ├── datasource-onLoaded-regression.spec.ts
    │   ├── modify-array-item-regression.spec.ts
    │   ├── namespaces.spec.ts
    │   ├── push-to-array-regression.spec.ts
    │   ├── screen-breakpoints.spec.ts
    │   ├── scripting.spec.ts
    │   ├── state-scope-in-pages.spec.ts
    │   └── state-var-scopes.spec.ts
    ├── tsconfig.bin.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

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

```typescript
  1 | import styles from "./NestedApp.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import { IndexAwareNestedApp } from "./NestedAppNative";
  6 | import { defaultProps } from "./defaultProps";
  7 | import { createMetadata } from "../metadata-helpers";
  8 | 
  9 | const COMP = "NestedApp";
 10 | 
 11 | export const NestedAppMd = createMetadata({
 12 |   status: "stable",
 13 |   description: `The ${COMP} component allows you to nest an entire xmlui app into another one.
 14 | `,
 15 |   props: {
 16 |     app: {
 17 |       description: "The source markup of the app to be nested",
 18 |     },
 19 |     api: {
 20 |       description: "This property defines an optional emulated API to be used with the nested app.",
 21 |     },
 22 |     components: {
 23 |       description:
 24 |         "This property defines an optional list of components to be used with the nested app.",
 25 |       defaultValue: defaultProps.components,
 26 |     },
 27 |     config: {
 28 |       description: "You can define the nested app's configuration with this property.",
 29 |     },
 30 |     activeTheme: {
 31 |       description:
 32 |         "This property defines the active theme for the nested app. " +
 33 |         "If not set, the default theme is used.",
 34 |     },
 35 |     activeTone: {
 36 |       description:
 37 |         "This property defines the active tone for the nested app. " +
 38 |         "If not set, the default tone is used.",
 39 |     },
 40 |     height: {
 41 |       description:
 42 |         "The height of the nested app. If not set, the height is determined automatically.",
 43 |     },
 44 |   },
 45 |   themeVars: parseScssVar(styles.themeVars),
 46 |   defaultThemeVars: {
 47 |     [`marginTop-${COMP}`]: "$space-3",
 48 |     [`marginBottom-${COMP}`]: "$space-3",
 49 |     [`padding-${COMP}`]: "0",
 50 |     [`paddingTop-${COMP}`]: "0",
 51 |     [`border-${COMP}`]: "0.5px solid $borderColor",
 52 |     [`borderRadius-${COMP}`]: "$space-2",
 53 |     [`backgroundColor-frame-${COMP}`]: "$color-primary-50",
 54 |     [`gap-frame-${COMP}`]: "0",
 55 |     [`fontWeight-header-${COMP}`]: "$fontWeight-bold",
 56 |     [`boxShadow-${COMP}`]: "0px 0px 32px 0px rgba(0, 0, 0, 0.05)",
 57 |     [`backgroundColor-viewControls-${COMP}`]: "$color-primary-100",
 58 |     [`borderRadius-viewControls-${COMP}`]: "5px",
 59 |     [`padding-viewControls-${COMP}`]: "$space-0_5",
 60 |     [`borderBottom-header-${COMP}`]: "0.5px solid $borderColor",
 61 |     [`color-loadingText-${COMP}`]: "$color-surface-600",
 62 |     // --- Split view styles
 63 |     [`padding-button-splitView-${COMP}`]: "1px 6px",
 64 |     [`width-button-splitView-${COMP}`]: "60px",
 65 |     [`height-button-splitView-${COMP}`]: "19px",
 66 |     [`width-logo-splitView-${COMP}`]: "1.5rem",
 67 |     [`height-logo-splitView-${COMP}`]: "2rem",
 68 |     [`backgroundColor-button-splitView-${COMP}--active`]: "$color-surface-0",
 69 |     [`color-button-splitView-${COMP}`]: "$color-surface-600",
 70 |     [`color-button-splitView-${COMP}--active`]: "$color-primary",
 71 |     [`width-controls-${COMP}`]: "80px",
 72 |     [`backgroundColor-code-splitView-${COMP}`]: "$color-surface-0",
 73 |     [`borderRadius-button-splitView-${COMP}`]: "$space-1",
 74 |     [`borderColor-button-splitView-${COMP}`]: "transparent",
 75 |     dark: {
 76 |       [`backgroundColor-frame-${COMP}`]: "$color-surface-50",
 77 |       [`backgroundColor-button-splitView-${COMP}--active`]: "$color-surface-200",
 78 |       [`color-button-splitView-${COMP}`]: "$color-surface-500",
 79 |       [`color-button-splitView-${COMP}--active`]: "$color-surface-1",
 80 |     },
 81 |   },
 82 | });
 83 | 
 84 | export const nestedAppComponentRenderer = createComponentRenderer(
 85 |   COMP,
 86 |   NestedAppMd,
 87 |   ({ node, extractValue, className }) => {
 88 |     return (
 89 |       <IndexAwareNestedApp
 90 |         app={node.props?.app}
 91 |         className={className}
 92 |         api={extractValue(node.props?.api)}
 93 |         components={extractValue(node.props?.components)}
 94 |         config={extractValue(node.props?.config)}
 95 |         activeTheme={extractValue(node.props?.activeTheme)}
 96 |         activeTone={extractValue(node.props?.activeTone)}
 97 |         height={extractValue(node.props?.height)}
 98 |       />
 99 |     );
100 |   },
101 | );
102 | 
```

--------------------------------------------------------------------------------
/xmlui/bin/viteConfig.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { defineConfig } from "vite";
  2 | import type { UserConfig } from "vite";
  3 | import react from "@vitejs/plugin-react";
  4 | import svgr from "vite-plugin-svgr";
  5 | import { default as ViteYaml } from "@modyfi/vite-plugin-yaml";
  6 | import { default as ViteXmlui } from "./vite-xmlui-plugin";
  7 | import * as path from "path";
  8 | 
  9 | type ViteConfigData = {
 10 |   flatDist?: boolean;
 11 |   withRelativeRoot?: boolean;
 12 |   flatDistUiPrefix?: string;
 13 | };
 14 | 
 15 | export async function getViteConfig({
 16 |   flatDist = false,
 17 |   withRelativeRoot = false,
 18 |   flatDistUiPrefix = "",
 19 | }: ViteConfigData = {}) {
 20 |   //TODO finish this (merge smart)
 21 |   let overrides: UserConfig = {};
 22 |   try {
 23 |     const configOverrides = await import(process.cwd() + `/vite.config-overrides`);
 24 |     overrides = configOverrides.default || {};
 25 |   } catch (e) {
 26 |     // console.error(e);
 27 |   }
 28 | 
 29 |   return defineConfig({
 30 |     plugins: [react(), svgr(), ViteYaml(), ViteXmlui({}), ...(overrides.plugins || [])],
 31 |     base: withRelativeRoot ? "" : undefined,
 32 |     // experimental: {
 33 |     //   renderBuiltUrl: (filename, {type, hostType, hostId}) =>{
 34 |     //     if (type === 'asset') {
 35 |     //       // return { runtime: `window.__toCdnUrl(${JSON.stringify(filename)})` }
 36 |     //       return 'https://static.themohoz.com/xmlui/v0.31/' + filename
 37 |     //     } else {
 38 |     //       return { relative: true }
 39 |     //     }
 40 |     //   }
 41 |     // },
 42 |     define: overrides.define,
 43 |     resolve: {
 44 |       alias: overrides.resolve?.alias,
 45 |       extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', '.xmlui', '.xmlui.xs', '.xs', ...(overrides.resolve?.extensions || [])],
 46 |     },
 47 |     css: overrides.css,
 48 |     optimizeDeps: {
 49 |       extensions: ['.xmlui', '.xmlui.xs', '.xs'],
 50 |       ...overrides.optimizeDeps,
 51 |     },
 52 |     build: {
 53 |       rollupOptions: {
 54 |         input: path.resolve(process.cwd(), "index.html"),
 55 |         output: {
 56 |           assetFileNames: (assetInfo) => {
 57 |             const extType = assetInfo.name?.split(".").pop();
 58 |             if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType!)) {
 59 |               return flatDist
 60 |                 ? `${flatDistUiPrefix}internal_img_[name].[hash][extname]`
 61 |                 : `internal/img/[name].[hash][extname]`;
 62 |             }
 63 |             if (assetInfo.name === "index.css") {
 64 |               return flatDist
 65 |                 ? `${flatDistUiPrefix}internal_[name].[hash][extname]`
 66 |                 : `internal/[name].[hash][extname]`;
 67 |             }
 68 |             return flatDist
 69 |               ? `${flatDistUiPrefix}internal_chunks_[name].[hash][extname]`
 70 |               : `internal/chunks/[name].[hash][extname]`;
 71 |           },
 72 |           chunkFileNames: flatDist
 73 |             ? `${flatDistUiPrefix}internal_chunks_[name].[hash].js`
 74 |             : "internal/chunks/[name].[hash].js",
 75 |           entryFileNames: flatDist
 76 |             ? `${flatDistUiPrefix}internal_[name].[hash].js`
 77 |             : "internal/[name].[hash].js",
 78 |         },
 79 |         // treeshake: {
 80 |         //   preset: "recommended",
 81 |         //   moduleSideEffects: (id: string, external: boolean)=>{
 82 |         //     if(id.includes(path.resolve(process.cwd(), 'index.html'))){   //otherwise tree shaking doesn't work
 83 |         //       return true;
 84 |         //     }
 85 |         //     if(id.includes(path.resolve(process.cwd(), "src", 'main.tsx'))){   //otherwise tree shaking doesn't work
 86 |         //       return true;
 87 |         //     }
 88 |         //     return false;
 89 |         //   }
 90 |         // }
 91 |         //   assetFileNames: (assetInfo) => {
 92 |         //     let extType = assetInfo.name?.split(".").pop();
 93 |         //     if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType!)) {
 94 |         //       return `img/[name][extname]`;
 95 |         //     }
 96 |         //     if (assetInfo.name === "index.css") {
 97 |         //       return `[name][extname]`;
 98 |         //     }
 99 |         //     return `chunks/[name][extname]`;
100 |         //   },
101 |         //   chunkFileNames: "chunks/[name].js",
102 |         //   entryFileNames: "[name].js",
103 |         // },
104 |       },
105 |     },
106 |   });
107 | }
108 | 
```

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

```typescript
  1 | import styles from "./Link.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import { createMetadata, d, dEnabled, dLabel } from "../metadata-helpers";
  6 | import { LinkTargetMd } from "../abstractions";
  7 | import { LinkNative, defaultProps } from "./LinkNative";
  8 | 
  9 | const COMP = "Link";
 10 | 
 11 | export const LinkMd = createMetadata({
 12 |   status: "stable",
 13 |   description:
 14 |     "`Link` creates clickable navigation elements for internal app routes or " +
 15 |     "external URLs. You can use the `label` and `icon` properties for simple text " +
 16 |     "links, or embed custom components like buttons, cards, or complex layouts " +
 17 |     "for rich interactive link presentations.",
 18 |   props: {
 19 |     to: d(
 20 |       "This property defines the URL of the link. If the value is not defined, the link cannot be activated.",
 21 |     ),
 22 |     enabled: dEnabled(),
 23 |     active: {
 24 |       description: `Indicates whether this link is active or not. If so, it will have a distinct visual appearance.`,
 25 |       type: "boolean",
 26 |       defaultValue: defaultProps.active,
 27 |     },
 28 |     target: {
 29 |       description:
 30 |         `This property specifies where to open the link represented by the \`${COMP}\`. This ` +
 31 |         `property accepts the following values (in accordance with the HTML standard):`,
 32 |       availableValues: LinkTargetMd,
 33 |       type: "string",
 34 |     },
 35 |     label: dLabel(),
 36 |     icon: d(
 37 |       `This property allows you to add an optional icon (specify the icon's name) to the link.`,
 38 |     ),
 39 |   },
 40 |   events: {
 41 |     click: {
 42 |       description: "This event is triggered when the link is clicked."
 43 |     }
 44 |   },
 45 |   themeVars: parseScssVar(styles.themeVars),
 46 |   themeVarDescriptions: {
 47 |     [`gap-icon-${COMP}`]:
 48 |       "This property defines the size of the gap between the icon and the label.",
 49 |   },
 50 |   defaultThemeVars: {
 51 |     [`border-${COMP}`]: "0px solid $borderColor",
 52 |     [`textColor-${COMP}`]: "$color-primary-500",
 53 |     [`textDecorationColor-${COMP}`]: `textDecorationColor-${COMP}`,
 54 |     [`textColor-${COMP}--hover`]: `$color-primary-400`,
 55 |     [`textDecorationColor-${COMP}--hover`]: `textColor-${COMP}--hover`,
 56 |     [`textColor-${COMP}--active`]: "$color-primary-400",
 57 |     [`textDecorationColor-${COMP}--active`]: `textColor-${COMP}--active`,
 58 |     [`textColor-${COMP}--hover--active`]: `$textColor-${COMP}--active`,
 59 |     [`textUnderlineOffset-${COMP}`]: "$space-1",
 60 |     [`textDecorationLine-${COMP}`]: "underline",
 61 |     [`textDecorationStyle-${COMP}`]: "solid",
 62 |     [`outlineColor-${COMP}--focus`]: "$outlineColor--focus",
 63 |     [`outlineWidth-${COMP}--focus`]: "$outlineWidth--focus",
 64 |     [`outlineStyle-${COMP}--focus`]: "$outlineStyle--focus",
 65 |     [`outlineOffset-${COMP}--focus`]: "$outlineOffset--focus",
 66 |     [`fontSize-${COMP}`]: "inherit",
 67 |     [`fontWeight-${COMP}--active`]: "$fontWeight-bold",
 68 |     [`gap-icon-${COMP}`]: "$gap-tight",
 69 |     [`padding-icon-${COMP}`]: "$space-0_5",
 70 |     dark: {
 71 |       [`textColor-${COMP}`]: "$color-primary-600",
 72 |       [`textColor-${COMP}--hover`]: `$color-primary-500`,
 73 |       [`textColor-${COMP}--active`]: "$color-primary-500",
 74 |     }
 75 |   },
 76 | });
 77 | 
 78 | /**
 79 |  * This function define the renderer for the Limk component.
 80 |  */
 81 | export const localLinkComponentRenderer = createComponentRenderer(
 82 |   COMP,
 83 |   LinkMd,
 84 |   ({ node, extractValue, renderChild, lookupEventHandler, className }) => {
 85 |     return (
 86 |       <LinkNative
 87 |         to={extractValue(node.props.to)}
 88 |         icon={extractValue(node.props.icon)}
 89 |         active={extractValue.asOptionalBoolean(node.props.active, false)}
 90 |         target={extractValue(node.props?.target)}
 91 |         className={className}
 92 |         disabled={!extractValue.asOptionalBoolean(node.props.enabled ?? true)}
 93 |         onClick={lookupEventHandler("click")}
 94 |       >
 95 |         {node.props.label
 96 |           ? extractValue.asDisplayText(node.props.label)
 97 |           : renderChild(node.children)}
 98 |       </LinkNative>
 99 |     );
100 |   },
101 | );
102 | 
```

--------------------------------------------------------------------------------
/docs/public/pages/howto/use-the-same-modaldialog-to-add-or-edit.md:
--------------------------------------------------------------------------------

```markdown
  1 | # Use the same ModalDialog to add or edit
  2 | 
  3 | See also the [refactoring](/refactoring) guide. Briefly: props flow down, events flow up.
  4 | 
  5 | ```xmlui-pg noHeader height="400px"
  6 | ---app
  7 | <App>
  8 |   <Test />
  9 | </App>
 10 | ---comp display
 11 | <Component name="Test" var.editingProductId="{null}" var.showAddModal="{false}">
 12 |   <DataSource id="products" url="/api/products" />
 13 | 
 14 |   <HStack alignItems="center">
 15 |     <Text variant="strong" fontSize="$fontSize-2xl">Product Inventory</Text>
 16 |     <SpaceFiller />
 17 |     <Button
 18 |       label="Add New Product"
 19 |       size="sm"
 20 |       onClick="showAddModal = true"
 21 |     />
 22 |   </HStack>
 23 | 
 24 |   <Table data="{products}">
 25 |     <Column bindTo="name" />
 26 |     <Column bindTo="price" width="120px"/>
 27 |     <Column header="Actions" width="240px">
 28 |       <HStack>
 29 |         <Button label="Edit" icon="pencil" size="sm" variant="outlined"
 30 |           onClick="editingProductId = $item.id"
 31 |         />
 32 |         <Button label="Delete" icon="trash" size="sm" variant="outlined"
 33 |           themeColor="attention">
 34 |           <event name="click">
 35 |             <APICall
 36 |               method="delete"
 37 |               url="/api/products/{$item.id}"
 38 |               confirmMessage="Are you sure you want to delete '{$item.name}'?" />
 39 |           </event>
 40 |         </Button>
 41 |       </HStack>
 42 |     </Column>
 43 |   </Table>
 44 | 
 45 |   <ProductModal
 46 |     when="{showAddModal}"
 47 |     mode="add"
 48 |     onClose="showAddModal = false"
 49 |     onSaved="products.refetch()"
 50 |   />
 51 | 
 52 |   <ProductModal
 53 |     when="{editingProductId}"
 54 |     mode="edit"
 55 |     productId="{editingProductId}"
 56 |     onClose="editingProductId = null"
 57 |     onSaved="products.refetch()"
 58 |   />
 59 | </Component>
 60 | ---comp display
 61 | <Component name="ProductModal">
 62 |   <DataSource
 63 |     id="productDetails"
 64 |     url="/api/products/{$props.productId}"
 65 |     when="{$props.mode === 'edit' && $props.productId}"
 66 |   />
 67 | 
 68 |   <ModalDialog
 69 |     title="{$props.mode === 'edit' ? 'Edit Product' : 'Add Product'}"
 70 |     when="{$props.mode === 'add' || productDetails.loaded}"
 71 |     onClose="emitEvent('close')"
 72 |   >
 73 |     <Form
 74 |       data="{$props.mode === 'edit' ? productDetails.value : {}}"
 75 |       submitUrl="{$props.mode === 'edit' ? '/api/products/' + $props.productId : '/api/products'}"
 76 |       submitMethod="{$props.mode === 'edit' ? 'put' : 'post'}"
 77 |       onSuccess="emitEvent('saved')"
 78 |     >
 79 |       <FormItem bindTo="name" label="Product Name" required="true" />
 80 |       <FormItem bindTo="price" label="Price" type="number" required="true" />
 81 |     </Form>
 82 |   </ModalDialog>
 83 | </Component>
 84 | ---api
 85 | {
 86 |   "apiUrl": "/api",
 87 |   "initialize": "$state.products = [
 88 |     { id: 1, name: 'Laptop Pro', price: 1299 },
 89 |     { id: 2, name: 'Wireless Mouse', price: 29 }
 90 |   ]",
 91 |   "operations": {
 92 |     "get-products": {
 93 |       "url": "/products",
 94 |       "method": "get",
 95 |       "handler": "$state.products"
 96 |     },
 97 |     "get-product": {
 98 |       "url": "/products/:id",
 99 |       "method": "get",
100 |       "pathParamTypes": {
101 |         "id": "integer"
102 |       },
103 |       "handler": "return $state.products.find(p => p.id === $pathParams.id)"
104 |     },
105 |     "insert-product": {
106 |       "url": "/products",
107 |       "method": "post",
108 |       "handler": "
109 |         const newId = $state.products.length > 0 ? Math.max(...$state.products.map(p => p.id)) + 1 : 1;
110 |         $state.products.push({
111 |           id: newId,
112 |           name: $requestBody.name,
113 |           price: Number($requestBody.price)
114 |         });
115 |       "
116 |     },
117 |     "update-product": {
118 |       "url": "/products/:id",
119 |       "method": "put",
120 |       "pathParamTypes": {
121 |         "id": "integer"
122 |       },
123 |       "handler": "
124 |         const oldItem = $state.products.find(p => p.id === $pathParams.id);
125 |         if (oldItem) {
126 |           oldItem.name = $requestBody.name;
127 |           oldItem.price = Number($requestBody.price);
128 |         }
129 |       "
130 |     },
131 |     "delete-product": {
132 |       "url": "/products/:id",
133 |       "method": "delete",
134 |       "pathParamTypes": {
135 |         "id": "integer"
136 |       },
137 |       "handler": "$state.products = $state.products.filter(p => p.id !== $pathParams.id)"
138 |     }
139 |   }
140 | }
141 | ```
142 | 
```

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

```typescript
 1 | import styles from "./AppHeader.module.scss";
 2 | 
 3 | import { createComponentRenderer } from "../../components-core/renderers";
 4 | import { parseScssVar } from "../../components-core/theming/themeVars";
 5 | import { paddingSubject } from "../../components-core/theming/themes/base-utils";
 6 | import { createMetadata, dComponent } from "../../components/metadata-helpers";
 7 | import { SlotItem } from "../../components/SlotItem";
 8 | import { AppContextAwareAppHeader, defaultProps } from "./AppHeaderNative";
 9 | import classnames from "classnames";
10 | 
11 | const COMP = "AppHeader";
12 | 
13 | export const AppHeaderMd = createMetadata({
14 |   status: "stable",
15 |   description:
16 |     "`AppHeader` defines the top navigation bar of your application within the " +
17 |     "[`App`](/components/App) component. It automatically handles logo placement, " +
18 |     "application title, and user profile areas with built-in responsive behavior.",
19 |   props: {
20 |     profileMenuTemplate: dComponent(
21 |       `This property makes the profile menu slot of the \`${COMP}\` component customizable.`,
22 |     ),
23 |     logoTemplate: dComponent(
24 |       "This property defines the template to use for the logo. With this property, you can " +
25 |         "construct your custom logo instead of using a single image.",
26 |     ),
27 |     titleTemplate: dComponent(
28 |       "This property defines the template to use for the title. With this property, you can " +
29 |         "construct your custom title instead of using a single image.",
30 |     ),
31 |     title: {
32 |       description: "Title for the application logo",
33 |       valueType: "string",
34 |     },
35 |     showLogo: {
36 |       description: "Show the logo in the header",
37 |       valueType: "boolean",
38 |       defaultValue: defaultProps.showLogo,
39 |     },
40 |   },
41 |   themeVars: parseScssVar(styles.themeVars),
42 |   themeVarDescriptions: {
43 |     [`padding‑logo‑${COMP}`]:
44 |       "This theme variable sets the padding of the logo in the app header (including all " +
45 |       "`padding` variants, such as `paddingLeft-logo-AppHeader` and others).",
46 |     [`width‑logo‑${COMP}`]: "Sets the width of the displayed logo",
47 |   },
48 |   defaultThemeVars: {
49 |     [`padding-drawerToggle-${COMP}`]: "$space-0_5",
50 |     [`height-${COMP}`]: "$space-14",
51 |     [`maxWidth-content-${COMP}`]: "$maxWidth-content-App",
52 |     [`maxWidth-${COMP}`]: "$maxWidth-App",
53 |     [`borderBottom-${COMP}`]: "1px solid $borderColor",
54 |     ...paddingSubject(`logo-${COMP}`, { horizontal: "$space-0", vertical: "$space-0" }),
55 |     ...paddingSubject(COMP, { horizontal: "$space-4", vertical: "$space-0" }),
56 |     [`borderRadius-${COMP}`]: "0px",
57 |     [`backgroundColor-${COMP}`]: "$color-surface-raised",
58 |   },
59 | });
60 | 
61 | export const appHeaderComponentRenderer = createComponentRenderer(
62 |   COMP,
63 |   AppHeaderMd,
64 |   ({ node, renderChild, className, layoutContext, extractValue }) => {
65 |     // --- Convert the plain (text) logo template into component definition
66 |     const logoTemplate = node.props.logoTemplate || node.slots?.logoSlot;
67 |     const titleTemplate = node.props.titleTemplate || node.slots?.titleSlot;
68 |     return (
69 |       <AppContextAwareAppHeader
70 |         profileMenu={renderChild(extractValue(node.props.profileMenuTemplate, true))}
71 |         title={extractValue(node.props.title)}
72 |         showLogo={extractValue.asOptionalBoolean(node.props.showLogo)}
73 |         titleContent={
74 |           titleTemplate && (
75 |             <SlotItem
76 |               node={titleTemplate}
77 |               renderChild={renderChild}
78 |               slotProps={{ title: extractValue(node.props.title) }}
79 |             />
80 |           )
81 |         }
82 |         logoContent={renderChild(logoTemplate, {
83 |           type: "Stack",
84 |           orientation: "horizontal",
85 |         })}
86 |         className={classnames(layoutContext?.themeClassName, className)}
87 |         renderChild={renderChild}
88 |       >
89 |         {renderChild(node.children, {
90 |           // Since the AppHeader is a flex container, it's children should behave the same as in a stack
91 |           type: "Stack",
92 |         })}
93 |       </AppContextAwareAppHeader>
94 |     );
95 |   },
96 | );
97 | 
```

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

```markdown
  1 | # Items [#items]
  2 | 
  3 | `Items` renders data arrays without built-in layout or styling, providing a lightweight alternative to `List`. Unlike `List`, it provides no virtualization, grouping, or visual formatting — just pure data iteration.
  4 | 
  5 | **Key features:**
  6 | - **Simple iteration**: Maps data arrays to components using `$item`, `$itemIndex`, `$isFirst`, and `$isLast` context
  7 | - **Layout agnostic**: No built-in styling or container—children determine the visual presentation
  8 | - **Reverse ordering**: Optional `reverse` property to display data in opposite order
  9 | - **Performance**: Lightweight alternative to `List` when you don't need virtualization or grouping
 10 | 
 11 | >[!INFO]
 12 | > `Items` is not a container! It does not wrap its items into a container; it merely renders its children.
 13 | 
 14 | The `Items` component does not use virtualization; it maps each data item into a component.
 15 | Thus, passing many items to a component instance will use many resources and slow down your app.
 16 | If you plan to work with many items (more than a few dozen), use the [`List`](./List) and [`Table`](./Table) components instead.
 17 | 
 18 | ### Inline Data [#inline-data]
 19 | 
 20 | You can set the list of data to be rendered via the `data` property, as the following sample shows.
 21 | The nested child component describes a template to display each data entry in `Items`.
 22 | In the template, you can refer to a particular entry with the [`$item`](#&item) identifier:
 23 | 
 24 | ```xmlui-pg copy {8} display name="Example: inline data"
 25 | <App>
 26 |   <VStack>
 27 |     <Items data="{[
 28 |       { idx: 1, value: 'One lion' },
 29 |       { idx: 2, value: 'Two monkeys' },
 30 |       { idx: 3, value: 'Three rabbits' },
 31 |     ]}">
 32 |       <Text>{$item.idx} - {$item.value}</Text>
 33 |     </Items>
 34 |   </VStack>
 35 | </App>
 36 | ```
 37 | 
 38 | ### Data Binding [#data-binding]
 39 | 
 40 | You can use also API bindings to display data:
 41 | 
 42 | ```xmlui-pg copy {4-6} display name="Example: data binding"
 43 | <App>
 44 |   <VStack>
 45 |     <Items>
 46 |       <property name="data">
 47 |         <DataSource url="https://api.spacexdata.com/v3/rockets"/>
 48 |       </property>
 49 |       <Image height="80px" width="110px" fit="cover" src="{$item.flickr_images[0]}"/>
 50 |     </Items>
 51 |   </VStack>
 52 | </App>
 53 | ```
 54 | 
 55 | **Context variables available during execution:**
 56 | 
 57 | - `$isFirst`: Boolean indicating if this is the first item
 58 | - `$isLast`: Boolean indicating if this is the last item
 59 | - `$item`: Current data item being rendered
 60 | - `$itemIndex`: Zero-based index of current item
 61 | 
 62 | ## Use children as Content Template [#use-children-as-content-template]
 63 | 
 64 | The [itemTemplate](#itemtemplate) property can be replaced by setting the item template component directly as the Items's child.
 65 | In the following example, the two Items are functionally the same:
 66 | 
 67 | ```xmlui copy
 68 | <App>
 69 |   <!-- This is the same -->
 70 |   <Items>
 71 |     <property name="itemTemplate">
 72 |       <Text>Template</Text>
 73 |     </property>
 74 |   </Items>
 75 |   <!-- As this -->
 76 |   <Items>
 77 |     <Text>Template</Text>
 78 |   </Items>
 79 | </App>
 80 | ```
 81 | 
 82 | ## Properties [#properties]
 83 | 
 84 | ### `data` [#data]
 85 | 
 86 | This property contains the list of data items (obtained from a data source) this component renders.
 87 | 
 88 | ### `itemTemplate` [#itemtemplate]
 89 | 
 90 | The component template to display a single item
 91 | 
 92 | ### `reverse` (default: false) [#reverse-default-false]
 93 | 
 94 | This property reverses the order in which data is mapped to template components.
 95 | 
 96 | ```xmlui-pg copy {4} display name="Example: reverse"
 97 | <App>
 98 |   <VStack>
 99 |     <Items
100 |       reverse="true"
101 |       data="{[
102 |         { idx: 1, value: 'One lion' },
103 |         { idx: 2, value: 'Two monkeys' },
104 |         { idx: 3, value: 'Three rabbits' },
105 |       ]}">
106 |       <Text>{$item.idx} - {$item.value}</Text>
107 |     </Items>
108 |   </VStack>
109 | </App>
110 | ```
111 | 
112 | ## Events [#events]
113 | 
114 | This component does not have any events.
115 | 
116 | ## Exposed Methods [#exposed-methods]
117 | 
118 | This component does not expose any methods.
119 | 
120 | ## Styling [#styling]
121 | 
122 | The `Items` component does not support styling.
123 | You should style the container component that wraps `Items`.
124 | You can also style the individual items via specifying a template component.
125 | 
```

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

```typescript
  1 | import styles from "./RadioGroup.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import {
  6 |   createMetadata,
  7 |   dAutoFocus,
  8 |   dDidChange,
  9 |   dEnabled,
 10 |   dGotFocus,
 11 |   dInitialValue,
 12 |   dInternal,
 13 |   dLostFocus,
 14 |   dReadonly,
 15 |   dRequired,
 16 |   dValidationStatus,
 17 | } from "../metadata-helpers";
 18 | import { RadioGroup, defaultProps } from "./RadioGroupNative";
 19 | 
 20 | const COMP = "RadioGroup";
 21 | const RGOption = `RadioGroupOption`;
 22 | 
 23 | export const RadioGroupMd = createMetadata({
 24 |   status: "stable",
 25 |   description:
 26 |     "`RadioGroup` creates a mutually exclusive selection interface where users can " +
 27 |     "choose only one option from a group of radio buttons. It manages the selection " +
 28 |     "state and ensures that selecting one option automatically deselects all others in " +
 29 |     "the group." +
 30 |     "\n\n" +
 31 |     "Radio options store their values as strings. Numbers and booleans are converted to strings " +
 32 |     "when assigned, while objects, functions and arrays default to an empty string unless resolved " +
 33 |     "via binding expressions.",
 34 |   props: {
 35 |     initialValue: {
 36 |       ...dInitialValue(),
 37 |       defaultValue: defaultProps.initialValue,
 38 |     },
 39 |     autoFocus: dAutoFocus(),
 40 |     required: {
 41 |       ...dRequired(),
 42 |       defaultValue: defaultProps.required,
 43 |     },
 44 |     readOnly: dReadonly(),
 45 |     enabled: {
 46 |       ...dEnabled(),
 47 |       defaultValue: defaultProps.enabled,
 48 |     },
 49 |     validationStatus: {
 50 |       ...dValidationStatus(),
 51 |       defaultValue: defaultProps.validationStatus,
 52 |     },
 53 |     orientation: dInternal(
 54 |       `(*** NOT IMPLEMENTED YET ***) This property sets the orientation of the ` +
 55 |         `options within the radio group.`,
 56 |     ),
 57 |   },
 58 |   events: {
 59 |     gotFocus: dGotFocus(COMP),
 60 |     lostFocus: dLostFocus(COMP),
 61 |     didChange: dDidChange(COMP),
 62 |   },
 63 |   themeVars: parseScssVar(styles.themeVars),
 64 |   defaultThemeVars: {
 65 |     [`gap-${RGOption}`]: "$space-1_5",
 66 |     [`borderWidth-${RGOption}`]: "1px",
 67 |     [`borderWidth-${RGOption}-validation`]: `2px`,
 68 | 
 69 |     [`borderColor-${RGOption}-default`]: "$color-surface-500",
 70 |     [`borderColor-checked-${RGOption}`]: "$color-primary-500",
 71 |     [`borderColor-${RGOption}-default--hover`]: "$color-surface-700",
 72 |     [`borderColor-${RGOption}-default--active`]: "$color-primary-500",
 73 |     [`borderColor-${RGOption}-error`]: `$borderColor-Input-default--error`,
 74 |     [`borderColor-${RGOption}-warning`]: `$borderColor-Input-default--warning`,
 75 |     [`borderColor-${RGOption}-success`]: `$borderColor-Input-default--success`,
 76 | 
 77 |     [`backgroundColor-${RGOption}--disabled`]: "$backgroundColor--disabled",
 78 |     [`backgroundColor-checked-${RGOption}`]: "$color-primary-500",
 79 |     [`backgroundColor-checked-${RGOption}--disabled`]: `$textColor--disabled`,
 80 |     
 81 |     [`fontSize-${RGOption}`]: "$fontSize-sm",
 82 |     [`fontWeight-${RGOption}`]: "$fontWeight-bold",
 83 |   },
 84 | });
 85 | 
 86 | export const radioGroupRenderer = createComponentRenderer(
 87 |   COMP,
 88 |   RadioGroupMd,
 89 |   ({
 90 |     node,
 91 |     extractValue,
 92 |     className,
 93 |     state,
 94 |     updateState,
 95 |     lookupEventHandler,
 96 |     renderChild,
 97 |     registerComponentApi,
 98 |   }) => {
 99 |     return (
100 |       <RadioGroup
101 |         autofocus={extractValue.asOptionalBoolean(node.props.autoFocus)}
102 |         enabled={extractValue.asOptionalBoolean(node.props.enabled)}
103 |         className={className}
104 |         initialValue={extractValue(node.props.initialValue)}
105 |         value={state?.value}
106 |         updateState={updateState}
107 |         validationStatus={extractValue(node.props.validationStatus)}
108 |         onDidChange={lookupEventHandler("didChange")}
109 |         onFocus={lookupEventHandler("gotFocus")}
110 |         onBlur={lookupEventHandler("lostFocus")}
111 |         registerComponentApi={registerComponentApi}
112 |         required={extractValue.asOptionalBoolean(node.props.required)}
113 |         readOnly={extractValue.asOptionalBoolean(node.props.readOnly)}
114 |       >
115 |         {renderChild(node.children)}
116 |       </RadioGroup>
117 |     );
118 |   },
119 | );
120 | 
```

--------------------------------------------------------------------------------
/xmlui/src/parsers/scripting/modules.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type {
  2 |   ScriptModule} from "../../components-core/script-runner/ScriptingSourceTree";
  3 | import {
  4 |   T_FUNCTION_DECLARATION,
  5 |   type FunctionDeclaration,
  6 |   type Statement,
  7 | } from "../../components-core/script-runner/ScriptingSourceTree";
  8 | import type { ErrorCodes, ParserErrorMessage } from "./ParserError";
  9 | import { Parser } from "./Parser";
 10 | import { errorMessages } from "./ParserError";
 11 | import { TokenType } from "./TokenType";
 12 | 
 13 | /**
 14 |  * Represents a module error
 15 |  */
 16 | export type ModuleErrors = Record<string, ParserErrorMessage[]>;
 17 | 
 18 | /**
 19 |  * Checks if the result is a module error
 20 |  * @param result Result to check
 21 |  * @returns True if the result is a module error
 22 |  */
 23 | export function isModuleErrors(result: ScriptModule | ModuleErrors): result is ModuleErrors {
 24 |   return (result as any).type !== "ScriptModule";
 25 | }
 26 | 
 27 | /**
 28 |  * Parses a script module
 29 |  * @param moduleName Name of the module
 30 |  * @param source Source code to parse
 31 |  * @param moduleResolver A function that resolves a module path to the text of the module
 32 |  * @returns The parsed and resolved module
 33 |  */
 34 | export function parseScriptModule(
 35 |   moduleName: string,
 36 |   source: string
 37 | ): ScriptModule | ModuleErrors {
 38 |   // --- Keep track of parsed modules to avoid circular references
 39 |   const parsedModules = new Map<string, ScriptModule>();
 40 |   const moduleErrors: ModuleErrors = {};
 41 | 
 42 |   const parsedModule = doParseModule(moduleName, source);
 43 |   return !parsedModule || Object.keys(moduleErrors).length > 0 ? moduleErrors : parsedModule;
 44 | 
 45 |   // --- Do the parsing, allow recursion
 46 |   function doParseModule(
 47 |     moduleName: string,
 48 |     source: string
 49 |   ): ScriptModule | null | undefined {
 50 |     // --- Do not parse the same module twice
 51 |     if (parsedModules.has(moduleName)) {
 52 |       return parsedModules.get(moduleName);
 53 |     }
 54 | 
 55 |     // --- Parse the source code
 56 |     const parser = new Parser(source);
 57 |     let statements: Statement[] = [];
 58 |     try {
 59 |       statements = parser.parseStatements()!;
 60 |     } catch (error) {
 61 |       moduleErrors[moduleName] = parser.errors;
 62 |       return null;
 63 |     }
 64 | 
 65 |     // --- Check for unparsed tail
 66 |     const lastToken = parser.current;
 67 |     if (lastToken.type !== TokenType.Eof) {
 68 |       moduleErrors[moduleName] ??= [];
 69 |       moduleErrors[moduleName].push({
 70 |         code: "W002",
 71 |         text: errorMessages["W002"].replace(/\{(\d+)}/g, () => lastToken.text),
 72 |         position: lastToken.startLine,
 73 |         line: lastToken.startLine,
 74 |         column: lastToken.startColumn,
 75 |       });
 76 |       return null;
 77 |     }
 78 | 
 79 |     const errors: ParserErrorMessage[] = [];
 80 | 
 81 |     // --- Collect functions
 82 |     const functions: Record<string, FunctionDeclaration> = {};
 83 |     statements
 84 |       .filter((stmt) => stmt.type === T_FUNCTION_DECLARATION)
 85 |       .forEach((stmt) => {
 86 |         const func = stmt as FunctionDeclaration;
 87 |         if (functions[func.id.name]) {
 88 |           addErrorMessage("W020", stmt, func.id.name);
 89 |           return;
 90 |         }
 91 |         functions[func.id.name] = func;
 92 |       });
 93 | 
 94 |     // --- Successful module parsing
 95 |     const parsedModule: ScriptModule = {
 96 |       type: "ScriptModule",
 97 |       name: moduleName,
 98 |       functions,
 99 |       statements: statements,
100 |       sources: new Map(),
101 |     };
102 | 
103 |     // --- Sign this module as parsed
104 |     parsedModules.set(moduleName, parsedModule);
105 | 
106 |     // --- Catch errors
107 |     if (errors.length > 0) {
108 |       moduleErrors[moduleName] = errors;
109 |       return null;
110 |     }
111 | 
112 |     // --- Done.
113 |     return parsedModule;
114 | 
115 |     function addErrorMessage(code: ErrorCodes, stmt: Statement, ...args: any[]): void {
116 |       let errorText = errorMessages[code];
117 |       if (args) {
118 |         args.forEach(
119 |           (o, idx) => (errorText = errorText.replaceAll(`{${idx}}`, args[idx].toString())),
120 |         );
121 |       }
122 |       errors.push({
123 |         code,
124 |         text: errorMessages[code].replace(/\{(\d+)}/g, (_, index) => args[index]),
125 |         position: stmt.startToken?.startPosition,
126 |         line: stmt.startToken?.startLine,
127 |         column: stmt.startToken?.startColumn,
128 |       });
129 |     }
130 |   }
131 | }
132 | 
```

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

```typescript
  1 | import styles from "./Badge.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import {
  6 |   Badge,
  7 |   badgeVariantValues,
  8 |   defaultProps,
  9 |   isBadgeColors,
 10 |   type BadgeColors,
 11 | } from "./BadgeNative";
 12 | import { createMetadata, dInternal } from "../metadata-helpers";
 13 | import { toCssVar } from "../../parsers/style-parser/StyleParser";
 14 | 
 15 | const COMP = "Badge";
 16 | 
 17 | export const BadgeMd = createMetadata({
 18 |   status: "stable",
 19 |   description:
 20 |     "`Badge` displays small text labels with colored backgrounds, commonly used for " +
 21 |     "status indicators, categories, tags, and counts. It supports dynamic color " +
 22 |     "mapping based on content values, useful for status systems and data categorization.",
 23 |   props: {
 24 |     value: {
 25 |       description:
 26 |         "The text that the component displays. If this is not defined, the component renders " +
 27 |         "its children as the content of the badge. If neither text nor any child is defined, " +
 28 |         "the component renders a single frame for the badge with a non-breakable space.",
 29 |       type: "string",
 30 |       isRequired: true,
 31 |     },
 32 |     variant: {
 33 |       description:
 34 |         "Modifies the shape of the component. Comes in the regular \`badge\` variant or the \`pill\` variant " +
 35 |         "with fully rounded corners.",
 36 |       type: "string",
 37 |       availableValues: badgeVariantValues,
 38 |       defaultValue: defaultProps.variant,
 39 |     },
 40 |     colorMap: {
 41 |       description:
 42 |         `The \`${COMP}\` component supports the mapping of a list of colors using the \`value\` prop as the ` +
 43 |         `key. If this property is not set, no color mapping is used.`,
 44 |     },
 45 |     themeColor: dInternal(`(**NOT IMPLEMENTED YET**) The theme color of the component.`),
 46 |     indicatorText: dInternal(
 47 |       `(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not ` +
 48 |         `defined or empty, no indicator is displayed unless the \`forceIndicator\` property is set.`,
 49 |     ),
 50 |     forceIndicator: dInternal(
 51 |       `(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if ` +
 52 |         `the \`indicatorText\` property is not defined or empty.`,
 53 |     ),
 54 |     indicatorThemeColor: dInternal(`(**NOT IMPLEMENTED YET**) The theme color of the indicator.`),
 55 |     indicatorPosition: dInternal(`(**NOT IMPLEMENTED YET**) The position of the indicator.`),
 56 |   },
 57 |   events: {},
 58 |   themeVars: parseScssVar(styles.themeVars),
 59 |   defaultThemeVars: {
 60 |     [`padding-${COMP}`]: `$space-0_5 $space-2`,
 61 |     [`border-${COMP}`]: `0px solid $borderColor`,
 62 |     [`padding-${COMP}-pill`]: `$space-0_5 $space-2`,
 63 |     [`borderRadius-${COMP}`]: "4px",
 64 |     [`fontSize-${COMP}`]: "0.8em",
 65 |     [`fontSize-${COMP}-pill`]: "0.8em",
 66 |     [`backgroundColor-${COMP}`]: "rgb(from $color-secondary-500 r g b / 0.6)",
 67 |     [`textColor-${COMP}`]: "$const-color-surface-0",
 68 |   },
 69 | });
 70 | 
 71 | export const badgeComponentRenderer = createComponentRenderer(
 72 |   COMP,
 73 |   BadgeMd,
 74 |   ({ node, extractValue, renderChild, className }) => {
 75 |     const value = extractValue.asDisplayText(node.props.value);
 76 |     const colorMap: Record<string, string | BadgeColors> | undefined = extractValue(
 77 |       node.props?.colorMap,
 78 |     );
 79 |     let colorValue: string | BadgeColors | undefined;
 80 |     if (colorMap && value) {
 81 |       const resolvedColor = colorMap[value];
 82 |       if (typeof resolvedColor === "string") {
 83 |         colorValue = resolveColor(resolvedColor);
 84 |       } else if (isBadgeColors(resolvedColor)) {
 85 |         colorValue = {
 86 |           label: resolveColor(resolvedColor.label),
 87 |           background: resolveColor(resolvedColor.background),
 88 |         };
 89 |       }
 90 |     }
 91 |     return (
 92 |       <Badge variant={extractValue(node.props.variant)} color={colorValue} className={className}>
 93 |         {value || (node.children && renderChild(node.children)) || String.fromCharCode(0xa0)}
 94 |       </Badge>
 95 |     );
 96 |   },
 97 | );
 98 | 
 99 | function resolveColor(value: string): string {
100 |   return value.startsWith("$") ? toCssVar(value) : value;
101 | }
102 | 
```

--------------------------------------------------------------------------------
/docs/public/pages/tutorial-02.md:
--------------------------------------------------------------------------------

```markdown
  1 | # Main.xmlui
  2 | 
  3 | At the root of every XMLUI app is `Main.xmlui` which declares the [App](/components/App) that defines layout and navigation.
  4 | 
  5 | ## App
  6 | 
  7 | ```xmlui
  8 | <App
  9 |   name="XMLUI Invoice"
 10 |   layout="vertical-full-header"
 11 |   defaultTheme="invoice"
 12 |   loggedInUser="{currentUser.value}"
 13 | >
 14 | ```
 15 | 
 16 | `vertical-full-header` means the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom. There are a half-dozen other flavors, see the [App](/components/App) page for the full story.
 17 | 
 18 | ### Optional default theme
 19 | 
 20 | The `defaultTheme` points to a file called `invoice.json`.
 21 | 
 22 | ```json
 23 | {
 24 |   "name": "Invoice",
 25 |   "id": "invoice",
 26 |   "themeVars": {
 27 | 
 28 |     "color-primary": "hsl(205, 76%, 58%)",
 29 |     "color-secondary": "hsl(210, 30%, 60%)",
 30 |     "color-surface": "hsl(0, 0%, 96%)",
 31 | 
 32 |     "gap-adornment-Input": "2px",
 33 |     "borderRadius-Avatar": "50%"
 34 |   }
 35 | }
 36 | ```
 37 | 
 38 | It's concise but very powerful. The choices for `color-primary`, `color-secondary`,  and `color-surface` define a set of coordinated [palettes](/palettes) that form the core of a [Theme](/themes-intro).
 39 | 
 40 | Then there's a small handful of theme variables. `gap-adornment-Input` adjusts the space between a dollar sign and its value. `borderRadius-Avatar` does what it says on the tin.
 41 | 
 42 | These things are optional. XMLUI's mission is to ensure what you build looks good with little if any explicit styling.
 43 | 
 44 | ## AppState
 45 | 
 46 | ```xmlui
 47 |   <AppState
 48 |     id="settings"
 49 |     bucket="settingsState"
 50 |   />
 51 | ```
 52 | 
 53 | [AppState](/components/AppState) is a blackboard where components can post and read data. In our demo it defines a data structure for the app settings.
 54 | 
 55 | ## AppHeader
 56 | 
 57 | ```xmlui
 58 | <AppHeader>
 59 |   <H1>XMLUI Invoice</H1>
 60 |   <property name="profileMenuTemplate">
 61 |     <HStack
 62 |       verticalAlignment="center"
 63 |       onClick="Actions.navigate('/settings')"
 64 |     >
 65 |       <Avatar url="{loggedInUser.avatar_url}" name="{loggedInUser.display_name}" />
 66 |       <Text>{loggedInUser.display_name}</Text>
 67 |     </HStack>
 68 |   </property>
 69 | </AppHeader>
 70 | ```
 71 | 
 72 | Our demo uses `profileMenuTemplate`, one of the templates [AppHeader](/components/AppHeader) provides so you can compose what goes into common header slots.
 73 | 
 74 | ## NavPanel
 75 | 
 76 | ```xmlui
 77 | 
 78 |   <NavPanel>
 79 |     <NavLink label="Dashboard" to="/" />
 80 |     <NavLink label="Invoices" to="/invoices" />
 81 |     <NavLink label="Clients" to="/clients" />
 82 |     <NavLink label="Products" to="/products" />
 83 |     <NavLink label="Search" to="/search" />
 84 |     <NavLink label="Import" to="/importProducts" />
 85 |     <NavLink label="Settings" to="/settings" />
 86 |   </NavPanel>
 87 | ```
 88 | 
 89 | The [NavPanel](/components/NavPanel) defines [NavLink](/components/NavLink)s which are routes, or local URLs, navigable within and from outside the app.
 90 | 
 91 | ## Pages
 92 | 
 93 | ```xmlui
 94 |   <Pages>
 95 |     <Page url="/">
 96 |       <Dashboard />
 97 |     </Page>
 98 | 
 99 |     <Page url="/invoices">
100 |       <Invoices />
101 |     </Page>
102 | 
103 |     <Page url="/invoices/new">
104 |       <CreateInvoice />
105 |     </Page>
106 | 
107 |     <Page url="/clients">
108 |       <Clients />
109 |     </Page>
110 | 
111 |     <Page url="/clients/new">
112 |       <CreateClient />
113 |     </Page>
114 | 
115 |     <Page url="/products">
116 |       <Products />
117 |     </Page>
118 | 
119 |     <Page url="/search">
120 |       <Search />
121 |     </Page>
122 | 
123 |     <Page url="/search/invoices-after">
124 |       <SearchInvoicesAfter />
125 |     </Page>
126 | 
127 |     <Page url="/search/everything">
128 |       <SearchEverything />
129 |     </Page>
130 | 
131 |     <Page url="/importProducts">
132 |       <ImportProducts />
133 |     </Page>
134 | 
135 |     <Page url="/settings">
136 |       <Settings />
137 |     </Page>
138 | 
139 |     <Page url="/users/new">
140 |       <CreateUser />
141 |     </Page>
142 |   </Pages>
143 | ```
144 | 
145 | Each [Page](/components/Pages) is a container that binds to a route and holds XMLUI markup. Although you can put anything in there, our demo shows what we think is a best practice: use [Components](/components-intro) to encapsulate your business logic.
146 | 
147 | ## Footer
148 | 
149 | ```xmlui-pg display name="Try clicking the ToneSwitch"
150 | <App>
151 |   <Footer>
152 |     Built with XMLUI
153 |     <SpaceFiller />
154 |     <ToneSwitch />
155 |   </Footer>
156 | </App>
157 | ```
158 | 
159 | Our `Main.xmlui` concludes with a [Footer](/components/Footer) that embeds a [ToneSwitch](/components/ToneSwitch).
160 | 
161 | 
162 | 
```

--------------------------------------------------------------------------------
/xmlui/src/abstractions/ActionDefs.ts:
--------------------------------------------------------------------------------

```typescript
 1 | import type { AppContextObject } from "../abstractions/AppContextDefs";
 2 | import type { AsyncFunction, SyncFunction } from "./FunctionDefs";
 3 | import type { ContainerState } from "./ContainerDefs";
 4 | import type { ArrowExpression } from "../components-core/script-runner/ScriptingSourceTree";
 5 | import type { ApiInterceptor } from "../components-core/interception/ApiInterceptor";
 6 | 
 7 | // This type represents the options to use for looking up actions.
 8 | export type LookupActionOptions = {
 9 |   // This property (by default, true) indicates that any error should be signed 
10 |   // while executing an event handler. Set it to `false` to suppress error 
11 |   // indication.
12 |   signError?: boolean;
13 | 
14 |   // We can use the event's name to get info about a particular event's progress.
15 |   // Note: Multiple events can run simultaneously.
16 |   eventName?: string;
17 | 
18 |   // By default, we cache resolved action functions. This property signs that we
19 |   // don't want to cache this function. Use true on one-off handlers, like the 
20 |   // ones in Actions (e.g., `MutateAction`).
21 |   ephemeral?: boolean;
22 | 
23 |   // This property declares the script code to use as a default for a particular
24 |   // event handler.
25 |   defaultHandler?: string;
26 | 
27 |   // extra context to pass to the action
28 |   context?: any;
29 | };
30 | 
31 | // This function resolves an action by its name (within the component node that
32 | // runs the action) with the specified options and returns the action function if
33 | // found. Otherwise, return undefined.
34 | export type LookupAsyncFnInner = (
35 |   action: string | undefined,
36 |   // The unique identifier of the container that the action is executed in.
37 |   uid: symbol,
38 |   actionOptions?: LookupActionOptions
39 | ) => AsyncFunction | undefined;
40 | 
41 | // This function resolves an action by its name with the specified options and
42 | // returns the action function if found. Otherwise, return undefined.
43 | export type LookupAsyncFn = (
44 |   action: string | undefined,
45 |   actionOptions?: LookupActionOptions
46 | ) => AsyncFunction | undefined;
47 | 
48 | // This function resolves a sync action by its name (within the component node
49 | // running it) and returns the action function if found. Otherwise, it returns
50 | // undefined.
51 | export type LookupSyncFnInner = (action: ArrowExpression | undefined, uid: symbol) => SyncFunction | undefined;
52 | 
53 | // This function resolves a sync action by its name and returns the action 
54 | // function if it is found. Otherwise, it returns undefined.
55 | export type LookupSyncFn = (action: string | undefined) => SyncFunction | undefined;
56 | 
57 | // XMLUI keeps a registry of available actions to store information about
58 | // out-of-the-box and custom actions (contributions implemented in external
59 | // packages or files). This type describes the information the registry needs
60 | // about the action to be able to render it.
61 | export interface ActionRendererDef {
62 |   // The name of the action that will be used to reference it in XMLUI.
63 |   actionName: string;
64 |   
65 |   // The function that executes the action.
66 |   actionFn: ActionFunction;
67 | }
68 | 
69 | // This type represents the context in which an action is executed.
70 | export interface ActionExecutionContext {
71 |   // A unique identifier for the container that the action is executed in.
72 |   uid: symbol;
73 | 
74 |   // The state of the container that the action is executed in.
75 |   state: ContainerState;
76 | 
77 |   getCurrentState: ()=>ContainerState;
78 | 
79 |   // The appContext object passed to the current app
80 |   appContext: AppContextObject;
81 |   apiInstance?: ApiInterceptor;
82 | 
83 |   // The lookup function to resolve a sync action by its name.
84 |   lookupAction: LookupAsyncFnInner;
85 |   navigate: any; // TEMPORARY stuff, we could use the one in the appContext, but until
86 |                  // https://github.com/remix-run/react-router/issues/7634 fixed we can't
87 |   location: any; // TEMPORARY stuff, we could use the one in the appContext, but until
88 |                  // https://github.com/remix-run/react-router/issues/7634 fixed we can't
89 | }
90 | 
91 | // This type represents a function that executes a particular action within the
92 | // specified context using the given arguments.
93 | export type ActionFunction = (executionContext: ActionExecutionContext, ...args: any[]) => any;
94 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/RadioGroup/RadioGroup.md:
--------------------------------------------------------------------------------

```markdown
  1 | %-DESC-START
  2 | 
  3 | **Key features:**
  4 | - **Exclusive selection**: Only one option can be selected at a time within the group
  5 | - **Form integration**: Built-in validation states and seamless form compatibility
  6 | - **Flexible layout**: Contains [Option](/components/Option) that can be arranged in any layout structure
  7 | - **State management**: Automatically handles selection state and change events
  8 | - **Accessibility support**: Proper keyboard navigation and screen reader compatibility
  9 | - **Validation indicators**: Visual feedback for error, warning, and valid states
 10 | 
 11 | `RadioGroup` is often used in forms. See [this guide](/forms) for details.
 12 | 
 13 | %-DESC-END
 14 | 
 15 | %-PROP-START initialValue
 16 | 
 17 | This property defines the initial value of the selected option within the group.
 18 | 
 19 | ```xmlui-pg copy display name="Example: initialValue"
 20 | <App>
 21 |   <RadioGroup initialValue="first">
 22 |     <HStack padding="$space-normal">
 23 |       <Option label="First Item" value="first"/>
 24 |       <Option label="Second Item" value="second"/>
 25 |       <Option label="Third Item" value="third"/>
 26 |     </HStack>
 27 |   </RadioGroup>
 28 | </App>
 29 | ```
 30 | 
 31 | %-PROP-END
 32 | 
 33 | %-PROP-START enabled
 34 | 
 35 | This property indicates whether the input accepts user actions (`true`) or not (`false`). The default value is `true`.
 36 | 
 37 | ```xmlui-pg copy display name="Example: enabled"
 38 | <App>
 39 |   <RadioGroup initialValue="first" enabled="false">
 40 |     <HStack padding="$space-normal">
 41 |       <Option label="First Item" value="first"/>
 42 |       <Option label="Second Item" value="second"/>
 43 |       <Option label="Third Item" value="third"/>
 44 |     </HStack>
 45 |   </RadioGroup>
 46 | </App>
 47 | ```
 48 | 
 49 | %-PROP-END
 50 | 
 51 | %-PROP-START validationStatus
 52 | 
 53 | This prop is used to visually indicate status changes reacting to form field validation.
 54 | 
 55 | | Value     | Description                                           |
 56 | | :-------- | :---------------------------------------------------- |
 57 | | `valid`   | Visual indicator for an input that is accepted        |
 58 | | `warning` | Visual indicator for an input that produced a warning |
 59 | | `error`   | Visual indicator for an input that produced an error  |
 60 | 
 61 | ```xmlui-pg copy display name="Example: validationStatus"
 62 | <App>
 63 |   <HStack>
 64 |     <RadioGroup initialValue="first" validationStatus="error">
 65 |       <Option label="First Item" value="first"/>
 66 |       <Option label="Second Item" value="second"/>
 67 |     </RadioGroup>
 68 |     <RadioGroup initialValue="first" validationStatus="warning">
 69 |       <Option label="First Item" value="first"/>
 70 |       <Option label="Second Item" value="second"/>
 71 |     </RadioGroup>
 72 |     <RadioGroup initialValue="first" validationStatus="valid">
 73 |       <Option label="First Item" value="first"/>
 74 |       <Option label="Second Item" value="second"/>
 75 |     </RadioGroup>
 76 |   </HStack>
 77 | </App>
 78 | ```
 79 | 
 80 | %-PROP-END
 81 | 
 82 | %-API-START setValue
 83 | 
 84 | You can use this method to set the component's current value programmatically.
 85 | 
 86 | ```xmlui-pg copy {2, 7-8} display name="Example: value and setValue"
 87 | <App>
 88 |   <RadioGroup id="radio">
 89 |     <Option label="First Item" value="first"/>
 90 |     <Option label="Second Item" value="second"/>
 91 |   </RadioGroup>
 92 |   <HStack>
 93 |     <Button label="Set First" onClick="radio.setValue('first')" />
 94 |     <Button label="Set Second" onClick="radio.setValue('second')" />
 95 |   </HStack>
 96 | </App>
 97 | ```
 98 | 
 99 | %-API-END
100 | 
101 | %-EVENT-START didChange
102 | 
103 | This event is triggered after the user has changed the field value. The following example uses this event to display the selected option's value:
104 | 
105 | ```xmlui-pg
106 | ---app copy display name="Example: didChange"
107 | <App var.field="">
108 |   <RadioGroup initialValue="{field}" onDidChange="(val) => field = val">
109 |     <Option label="First Item" value="first"/>
110 |     <Option label="Second Item" value="second"/>
111 |   </RadioGroup>
112 |   <Text value="{field}" />
113 | </App>
114 | ---desc
115 | Select one of the available options and see how the `Text` underneath it is updated in parallel:
116 | ```
117 | 
118 | %-EVENT-END
119 | 
120 | %-STYLE-START
121 | 
122 | `RadioGroup` is a component that governs its children and stores the selected value. It does not support styling; however, you can style the options within the group. When you set the theme variables for the group's options, use the `RadioGroupOption` name.
123 | 
124 | %-STYLE-END
125 | 
```

--------------------------------------------------------------------------------
/xmlui/tests/parsers/scripting/parser-binary.test.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { describe, expect, it } from "vitest";
  2 | 
  3 | import { Parser } from "../../../src/parsers/scripting/Parser";
  4 | import {
  5 |   BinaryExpression,
  6 |   T_BINARY_EXPRESSION,
  7 |   T_CALCULATED_MEMBER_ACCESS_EXPRESSION,
  8 |   T_CONDITIONAL_EXPRESSION,
  9 |   T_FUNCTION_INVOCATION_EXPRESSION,
 10 |   T_IDENTIFIER,
 11 |   T_LITERAL,
 12 |   T_MEMBER_ACCESS_EXPRESSION,
 13 |   T_SEQUENCE_EXPRESSION,
 14 |   T_UNARY_EXPRESSION,
 15 | } from "../../../src/components-core/script-runner/ScriptingSourceTree";
 16 | 
 17 | describe("Parser - Binary operations", () => {
 18 |   const binaryOpCases = [
 19 |     { src: "a**b", op: "**" },
 20 |     { src: "a+b", op: "+" },
 21 |     { src: "a-b", op: "-" },
 22 |     { src: "a*b", op: "*" },
 23 |     { src: "a/b", op: "/" },
 24 |     { src: "a%b", op: "%" },
 25 |     { src: "a>>b", op: ">>" },
 26 |     { src: "a<<b", op: "<<" },
 27 |     { src: "a>>>b", op: ">>>" },
 28 |     { src: "a == b", op: "==" },
 29 |     { src: "a != b", op: "!=" },
 30 |     { src: "a < b", op: "<" },
 31 |     { src: "a <= b", op: "<=" },
 32 |     { src: "a>b", op: ">" },
 33 |     { src: "a>=b", op: ">=" },
 34 |     { src: "a ?? b", op: "??" },
 35 |     { src: "a | b", op: "|" },
 36 |     { src: "a & b", op: "&" },
 37 |     { src: "a ^ b", op: "^" },
 38 |     { src: "a || b", op: "||" },
 39 |     { src: "a && b", op: "&&" },
 40 |     { src: "a in b", op: "in" },
 41 |   ];
 42 |   binaryOpCases.forEach((c) => {
 43 |     it(`Binary (operator): ${c.src}`, () => {
 44 |       // --- Arrange
 45 |       const wParser = new Parser(c.src);
 46 | 
 47 |       // --- Act
 48 |       const expr = wParser.parseExpr();
 49 | 
 50 |       // --- Assert
 51 |       expect(expr).not.equal(null);
 52 |       if (!expr) return;
 53 |       expect(expr.type).equal(T_BINARY_EXPRESSION);
 54 |       const binary = expr as BinaryExpression;
 55 |       expect(binary.op).equal(c.op);
 56 |     });
 57 |   });
 58 | 
 59 |   const binaryLeftOperandCases = [
 60 |     { src: "a+b", op: "+", exp: T_IDENTIFIER },
 61 |     { src: "a+(b+c)", op: "+", exp: T_IDENTIFIER },
 62 |     { src: "a+b+c", op: "+", exp: T_BINARY_EXPRESSION },
 63 |     { src: "a+b*c", op: "+", exp: T_IDENTIFIER },
 64 |     { src: "!a+b", op: "+", exp: T_UNARY_EXPRESSION },
 65 |     { src: "a.c+b", op: "+", exp: T_MEMBER_ACCESS_EXPRESSION },
 66 |     { src: "a[c]+b", op: "+", exp: T_CALCULATED_MEMBER_ACCESS_EXPRESSION },
 67 |     { src: "(a ? b : c)+b", op: "+", exp: T_CONDITIONAL_EXPRESSION },
 68 |     { src: "123+b", op: "+", exp: T_LITERAL },
 69 |     { src: "a(b,c)+b", op: "+", exp: T_FUNCTION_INVOCATION_EXPRESSION },
 70 |     { src: "(123, 1+c)+b", op: "+", exp: T_SEQUENCE_EXPRESSION },
 71 |   ];
 72 |   binaryLeftOperandCases.forEach((c) => {
 73 |     it(`Binary (left operand): ${c.src}`, () => {
 74 |       // --- Arrange
 75 |       const wParser = new Parser(c.src);
 76 | 
 77 |       // --- Act
 78 |       const expr = wParser.parseExpr();
 79 | 
 80 |       // --- Assert
 81 |       expect(expr).not.equal(null);
 82 |       if (!expr) return;
 83 |       expect(expr.type).equal(T_BINARY_EXPRESSION);
 84 |       const binary = expr as BinaryExpression;
 85 |       expect(binary.op).equal(c.op);
 86 |       expect(binary.left.type).equal(c.exp);
 87 |     });
 88 |   });
 89 | 
 90 |   const binaryRightOperandCases = [
 91 |     { src: "a+b", op: "+", exp: T_IDENTIFIER },
 92 |     { src: "a+(b+c)", op: "+", exp: T_BINARY_EXPRESSION },
 93 |     { src: "a+b+c", op: "+", exp: T_IDENTIFIER },
 94 |     { src: "a+b*c", op: "+", exp: T_BINARY_EXPRESSION },
 95 |     { src: "a*b+c", op: "+", exp: T_IDENTIFIER },
 96 |     { src: "a+!b", op: "+", exp: T_UNARY_EXPRESSION },
 97 |     { src: "a+b.c", op: "+", exp: T_MEMBER_ACCESS_EXPRESSION },
 98 |     { src: "a+b[c]", op: "+", exp: T_CALCULATED_MEMBER_ACCESS_EXPRESSION },
 99 |     { src: "a +(a ? b : c)", op: "+", exp: T_CONDITIONAL_EXPRESSION },
100 |     { src: "b+123", op: "+", exp: T_LITERAL },
101 |     { src: "b+a(b,c)", op: "+", exp: T_FUNCTION_INVOCATION_EXPRESSION },
102 |     { src: "b+(123, 1+c)", op: "+", exp: T_SEQUENCE_EXPRESSION },
103 |   ];
104 |   binaryRightOperandCases.forEach((c) => {
105 |     it(`Binary (left operand): ${c.src}`, () => {
106 |       // --- Arrange
107 |       const wParser = new Parser(c.src);
108 | 
109 |       // --- Act
110 |       const expr = wParser.parseExpr();
111 | 
112 |       // --- Assert
113 |       expect(expr).not.equal(null);
114 |       if (!expr) return;
115 |       expect(expr.type).equal(T_BINARY_EXPRESSION);
116 |       const binary = expr as BinaryExpression;
117 |       expect(binary.op).equal(c.op);
118 |       expect(binary.right.type).equal(c.exp);
119 |     });
120 |   });
121 | });
122 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/NestedApp/AppWithCodeView.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import styles from "./AppWithCodeView.module.scss";
  2 | 
  3 | import { createComponentRenderer } from "../../components-core/renderers";
  4 | import { parseScssVar } from "../../components-core/theming/themeVars";
  5 | import { AppWithCodeViewNative } from "./AppWithCodeViewNative";
  6 | import { defaultProps } from "./defaultProps";
  7 | import { createMetadata } from "../metadata-helpers";
  8 | 
  9 | const COMP = "AppWithCodeView";
 10 | 
 11 | export const AppWithCodeViewMd = createMetadata({
 12 |   status: "stable",
 13 |   description: `The ${COMP} component displays a combination of markdown content and a nested xmlui app. 
 14 | It supports both side-by-side and stacked layouts.`,
 15 |   props: {
 16 |     markdown: {
 17 |       description: "The markdown content to be displayed alongside the app",
 18 |       valueType: "string",
 19 |     },
 20 |     splitView: {
 21 |       description: "Whether to render the markdown and app side by side or stacked vertically",
 22 |       valueType: "boolean",
 23 |     },
 24 |     app: {
 25 |       description: "The source markup of the app to be nested",
 26 |     },
 27 |     api: {
 28 |       description: "This property defines an optional emulated API to be used with the nested app.",
 29 |     },
 30 |     components: {
 31 |       description:
 32 |         "This property defines an optional list of components to be used with the nested app.",
 33 |       defaultValue: defaultProps.components,
 34 |     },
 35 |     config: {
 36 |       description: "You can define the nested app's configuration with this property.",
 37 |     },
 38 |     activeTheme: {
 39 |       description:
 40 |         "This property defines the active theme for the nested app. " +
 41 |         "If not set, the default theme is used.",
 42 |     },
 43 |     activeTone: {
 44 |       description:
 45 |         "This property defines the active tone for the nested app. " +
 46 |         "If not set, the default tone is used.",
 47 |     },
 48 |     title: {
 49 |       description: "The optional title of the nested app. If not set, no title is displayed.",
 50 |     },
 51 |     height: {
 52 |       description:
 53 |         "The height of the nested app. If not set, the height is determined automatically.",
 54 |     },
 55 |     allowPlaygroundPopup: {
 56 |       description:
 57 |         "This property defines whether the nested app can be opened in the xmlui playground.",
 58 |       valueType: "boolean",
 59 |       defaultValue: defaultProps.allowPlaygroundPopup,
 60 |     },
 61 |     withFrame: {
 62 |       description: "This property defines whether the nested app should be displayed with a frame.",
 63 |       valueType: "boolean",
 64 |       defaultValue: defaultProps.withFrame,
 65 |     },
 66 |   },
 67 |   themeVars: parseScssVar(styles.themeVars),
 68 |   defaultThemeVars: {},
 69 | });
 70 | 
 71 | export const appWithCodeViewComponentRenderer = createComponentRenderer(
 72 |   COMP,
 73 |   AppWithCodeViewMd,
 74 |   ({ node, extractValue, renderChild }) => {
 75 |     let renderedChildren = "";
 76 | 
 77 |     // 1. Static content prop fallback
 78 |     if (!renderedChildren) {
 79 |       renderedChildren = extractValue.asString(node.props.markdown);
 80 |     }
 81 | 
 82 |     // 2. "data" property fallback
 83 |     if (!renderedChildren && typeof (node.props as any).data === "string") {
 84 |       renderedChildren = extractValue.asString((node.props as any).data);
 85 |     }
 86 | 
 87 |     // 3. Children fallback
 88 |     if (!renderedChildren) {
 89 |       (node.children ?? []).forEach((child) => {
 90 |         const renderedChild = renderChild(child);
 91 |         console.log("renderedChild", renderedChild);
 92 |         if (typeof renderedChild === "string") {
 93 |           renderedChildren += renderedChild;
 94 |         }
 95 |       });
 96 |     }
 97 | 
 98 |     return (
 99 |       <AppWithCodeViewNative
100 |         markdown={renderedChildren}
101 |         splitView={extractValue.asOptionalBoolean(node.props?.splitView)}
102 |         app={node.props?.app}
103 |         api={extractValue(node.props?.api)}
104 |         components={extractValue(node.props?.components)}
105 |         config={extractValue(node.props?.config)}
106 |         activeTheme={extractValue(node.props?.activeTheme)}
107 |         activeTone={extractValue(node.props?.activeTone)}
108 |         title={extractValue(node.props?.title)}
109 |         height={extractValue(node.props?.height)}
110 |         allowPlaygroundPopup={extractValue.asOptionalBoolean(node.props?.allowPlaygroundPopup)}
111 |         withFrame={extractValue.asOptionalBoolean(node.props?.withFrame)}
112 |       />
113 |     );
114 |   },
115 | );
116 | 
```

--------------------------------------------------------------------------------
/xmlui/src/language-server/services/common/syntax-node-utilities.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type { Node, GetText} from "../../../parsers/xmlui-parser";
  2 | import { SyntaxKind } from "../../../parsers/xmlui-parser";
  3 | 
  4 | export function findTagNameNodeInStack(nodeStack: Node[]): Node{
  5 | 
  6 |   const elementNode = nodeStack.findLast(n => n.kind === SyntaxKind.ElementNode);
  7 |   if (!elementNode){
  8 |     return null;
  9 |   }
 10 | 
 11 |   const tagNameNode =  elementNode.children!.find(n => n.kind === SyntaxKind.TagNameNode);
 12 |   return tagNameNode;
 13 | }
 14 | 
 15 | export function compNameForTagNameNode(tagNameNode: Node, getText: GetText): string | null {
 16 |   const colonIdx = tagNameNode.children!.findIndex((n) => n.kind === SyntaxKind.Colon);
 17 |     const hasNs = colonIdx === -1 ? false : tagNameNode.children!.slice(0, colonIdx).findIndex((n:Node) => n.kind === SyntaxKind.Identifier) !== -1;
 18 |     if(hasNs){
 19 |       return null;
 20 |     }
 21 |     const nameNode = tagNameNode.children!.findLast(c => c.kind === SyntaxKind.Identifier)
 22 |     return getText(nameNode);
 23 | }
 24 | 
 25 | /**
 26 | *
 27 | * @param pathToElementNode nodes from the inner most node to the closest ElementNode
 28 | * @returns
 29 | */
 30 | export function insideClosingTag(pathToElementNode:Node[]): boolean {
 31 |   if(pathToElementNode === null){
 32 |     return false;
 33 |   }
 34 | 
 35 |   const elementNode = pathToElementNode.at(-1)!;
 36 |   const nodeBeforeElementNode = pathToElementNode.at(-2);
 37 |   const inputWasOnlyAnElementNode = !nodeBeforeElementNode
 38 | 
 39 |   if (inputWasOnlyAnElementNode){
 40 |     return false;
 41 |   }
 42 | 
 43 |   const idxClosingStartToken = elementNode.children!.findIndex((n) => n.kind === SyntaxKind.CloseNodeStart);
 44 |   if(idxClosingStartToken === -1){
 45 |     return false;
 46 |   }
 47 | 
 48 |   const idxElementNodeChild = elementNode.children!.findIndex((n) => n === nodeBeforeElementNode)
 49 |   if(idxClosingStartToken <= idxElementNodeChild ){
 50 |     return true;
 51 |   }
 52 | 
 53 |   // just in case the guard statements missed a case
 54 |   return false;
 55 | }
 56 | 
 57 | /**
 58 | * Visits ancestors in the chain from the innermost to the outermost node.
 59 | * @param chain The chain of nodes to visit.
 60 | * @param predicate A function that takes a node and returns a boolean.
 61 | * @returns An array of nodes from the innermost to the node that satisfies the predicate, or null if no such node is found.
 62 | */
 63 | export function visitAncestorsInChain(chain: Node[], predicate: (node: Node) => boolean): Node[] | null {
 64 |   let currentIdx = -1;
 65 |   let current = chain.at(currentIdx);
 66 |   let path = [current];
 67 | 
 68 |   while(current) {
 69 |     if(predicate(current)) {
 70 |       return path;
 71 |     }
 72 |     currentIdx--;
 73 |     current = chain.at(currentIdx);
 74 |     path.push(current)
 75 |   }
 76 |   return null;
 77 | }
 78 | 
 79 | /**
 80 |  * Finds the first ancestor node of a specific kind in a chain of nodes.
 81 |  * @param chain The chain of nodes to search through.
 82 |  * @param kind The SyntaxKind to look for.
 83 |  * @returns The first ancestor node of the specified kind, or null if not found.
 84 |  */
 85 | export function getFirstNodeFromAncestorChain(chain: Node[], kind: SyntaxKind): Node | null {
 86 |   for (let i = chain.length - 1; i >= 0; i--) {
 87 |     if (chain[i].kind === kind) {
 88 |       return chain[i];
 89 |     }
 90 |   }
 91 |   return null;
 92 | }
 93 | 
 94 | /**
 95 |  * Finds all ancestor nodes of a specific kind in a chain of nodes.
 96 |  * @param chain The chain of nodes to search through.
 97 |  * @param kind The SyntaxKind to look for.
 98 |  * @returns An array of ancestor nodes of the specified kind.
 99 |  */
100 | export function getAllRelevantNodesFromAncestorChain(chain: Node[], kind: SyntaxKind): Node[] {
101 |   const relevantNodes: Node[] = [];
102 |   for (let i = chain.length - 1; i >= 0; i--) {
103 |     if (chain[i].kind === kind) {
104 |       relevantNodes.push(chain[i]);
105 |     }
106 |   }
107 |   return relevantNodes;
108 | }
109 | 
110 | /**
111 | *
112 | * @param node an ElementNode
113 | */
114 | function isPairedNode(node: Node): boolean{
115 |   for (const c of node.children){
116 |     if (c.kind === SyntaxKind.CloseNodeStart){
117 |       return true;
118 |     } else if (c.kind === SyntaxKind.NodeClose){
119 |       return false;
120 |     }
121 |   }
122 |   return true;
123 | }
124 | 
125 | /**
126 | *
127 | * @param node an ElementNode
128 | */
129 | function isSelfClosingNode(node: Node): boolean{
130 |   return !isPairedNode(node);
131 | }
132 | 
133 | export function getTriviaNodes(node: Node): Node[] {
134 |   if (node.pos === node.start){
135 |     return [];
136 |   } else if (node.triviaBefore){
137 |     return node.triviaBefore;
138 |   } else {
139 |     return getTriviaNodes(node.children[0]);
140 |   }
141 | }
142 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/ModalDialog/ConfirmationModalContextProvider.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import React, {
  2 |   type ReactNode,
  3 |   useCallback,
  4 |   useContext,
  5 |   useEffect,
  6 |   useMemo,
  7 |   useRef,
  8 |   useState,
  9 | } from "react";
 10 | 
 11 | import type { ButtonVariant, ButtonThemeColor } from "../abstractions";
 12 | import { Button } from "../Button/ButtonNative";
 13 | import { Stack } from "../Stack/StackNative";
 14 | import { Dialog } from "./Dialog";
 15 | 
 16 | const ConfirmationModalContext = React.createContext({
 17 |   confirm: (title: string, message?: string, actionLabel?: string) => Promise.resolve(false),
 18 | });
 19 | 
 20 | export const useConfirm = () => useContext(ConfirmationModalContext);
 21 | 
 22 | type Props = {
 23 |   children: ReactNode;
 24 | };
 25 | 
 26 | type ConfirmButtonParams = {
 27 |   variant?: ButtonVariant;
 28 |   themeColor?: ButtonThemeColor;
 29 |   label: string;
 30 |   value: any;
 31 | };
 32 | 
 33 | type ConfirmParams = {
 34 |   message?: string;
 35 |   title: string;
 36 |   buttons: Array<ConfirmButtonParams>;
 37 | };
 38 | 
 39 | export const ConfirmationModalContextProvider = ({ children }: Props) => {
 40 |   // State
 41 |   const [showConfirmationModal, setShowConfirmationModal] = useState(false);
 42 |   const [title, setTitle] = useState<string>("Are you sure?");
 43 |   const [message, setMessage] = useState<string | undefined>();
 44 |   const [buttons, setButtons] = useState<Array<ConfirmButtonParams>>([]);
 45 |   // Refs and other
 46 |   const resolver = useRef<((confirmationResult: boolean) => void) | null>(null);
 47 |   const buttonsRef = useRef<HTMLDivElement>(null);
 48 | 
 49 |   useEffect(() => {
 50 |     if (showConfirmationModal) {
 51 |       setTimeout(() => {
 52 |         const focusable: NodeListOf<HTMLButtonElement> | undefined =
 53 |           buttonsRef.current?.querySelectorAll("button");
 54 |         if (focusable) {
 55 |           focusable[focusable.length - 1].focus();
 56 |         }
 57 |       }, 0);
 58 |     }
 59 |   }, [showConfirmationModal]);
 60 | 
 61 |   const handleShow = useCallback(
 62 |     (title: string | ConfirmParams, message?: string, actionLabel?: string) => {
 63 |       if (typeof title === "string") {
 64 |         setTitle(title);
 65 |         setButtons([
 66 |           {
 67 |             label: actionLabel || "Ok",
 68 |             value: true,
 69 |           },
 70 |         ]);
 71 |         setMessage(message);
 72 |       } else {
 73 |         setTitle(title.title);
 74 |         setButtons(title.buttons);
 75 |         setMessage(title.message);
 76 |       }
 77 |       setShowConfirmationModal(true);
 78 |       return new Promise<boolean>(function (resolve) {
 79 |         resolver.current = resolve;
 80 |       });
 81 |     },
 82 |     [],
 83 |   );
 84 | 
 85 |   const handleOk = useCallback((value: any) => {
 86 |     if (resolver.current) {
 87 |       resolver.current(value);
 88 |     }
 89 |     setShowConfirmationModal(false);
 90 |   }, []);
 91 | 
 92 |   const handleCancel = useCallback(() => {
 93 |     if (resolver.current) {
 94 |       resolver.current(false);
 95 |     }
 96 |     setShowConfirmationModal(false);
 97 |   }, []);
 98 | 
 99 |   const contextValue = useMemo(() => {
100 |     return {
101 |       confirm: handleShow,
102 |     };
103 |   }, [handleShow]);
104 | 
105 |   return (
106 |     <ConfirmationModalContext.Provider value={contextValue}>
107 |       {children}
108 | 
109 |       {showConfirmationModal && (
110 |         <Dialog
111 |           title={title}
112 |           description={message}
113 |           isOpen={true}
114 |           onClose={handleCancel}
115 |           buttons={
116 |             <Stack
117 |               orientation="horizontal"
118 |               horizontalAlignment="end"
119 |               style={{ width: "100%", gap: "1em" }}
120 |               ref={buttonsRef}
121 |             >
122 |               <Button variant="ghost" themeColor="secondary" size="sm" onClick={handleCancel}>
123 |                 Cancel
124 |               </Button>
125 |               {buttons.length > 1 ? <div style={{ flex: 1 }} /> : undefined}
126 |               {buttons.map(
127 |                 ({ label, value, variant = "solid", themeColor = "attention" }, index) => {
128 |                   return (
129 |                     <Button
130 |                       key={index}
131 |                       variant={variant}
132 |                       themeColor={themeColor}
133 |                       size="sm"
134 |                       type="submit"
135 |                       onClick={() => {
136 |                         handleOk(value);
137 |                       }}
138 |                     >
139 |                       {label}
140 |                     </Button>
141 |                   );
142 |                 },
143 |               )}
144 |             </Stack>
145 |           }
146 |         />
147 |       )}
148 |     </ConfirmationModalContext.Provider>
149 |   );
150 | };
151 | 
```

--------------------------------------------------------------------------------
/xmlui/dev-docs/next/error-handling-standardization-summary.md:
--------------------------------------------------------------------------------

```markdown
  1 | # Error Handling Standardization - Implementation Summary
  2 | 
  3 | ## Overview
  4 | Successfully implemented standardized error handling across the XMLUI documentation generation scripts to improve consistency, maintainability, and debugging capabilities.
  5 | 
  6 | ## Changes Made
  7 | 
  8 | ### 1. Created New Error Handling Infrastructure
  9 | 
 10 | #### `error-handling.mjs` - New Utility Module
 11 | - **`handleFatalError()`** - Standardized fatal error handling with appropriate exit codes
 12 | - **`handleNonFatalError()`** - Consistent non-fatal error logging
 13 | - **`validateDependencies()`** - Centralized dependency validation
 14 | - **`withErrorHandling()`** - Wrapper for async operations with error handling
 15 | - **`withFileErrorHandling()`** - Specialized file operation error handling
 16 | - **`createMetadataError()`** - Standardized metadata error creation
 17 | 
 18 | #### Enhanced `constants.mjs`
 19 | - Added `ERROR_HANDLING.EXIT_CODES` for consistent exit code usage
 20 | - Expanded `ERROR_MESSAGES` with comprehensive error message constants
 21 | 
 22 | ### 2. Updated Scripts to Use Standardized Error Handling
 23 | 
 24 | #### `create-theme-files.mjs`
 25 | - **Before**: Used `console.log()` + `process.exit(1)` for errors
 26 | - **After**: 
 27 |   - Wrapped in async function with try-catch
 28 |   - Uses `validateDependencies()` for checking required metadata
 29 |   - Uses `withFileErrorHandling()` for file write operations
 30 |   - Uses `handleFatalError()` for graceful error handling and exit
 31 |   - Uses centralized logger instead of console.log
 32 | 
 33 | #### `input-handler.mjs`
 34 | - **Before**: Basic error handling with minimal validation
 35 | - **After**:
 36 |   - Enhanced error handling with specific error types (ENOENT, SyntaxError)
 37 |   - Uses `ErrorWithSeverity` for consistent error classification
 38 |   - Improved error messages using centralized constants
 39 | 
 40 | #### `get-docs.mjs`
 41 | - **Before**: Mixed error handling patterns with try-catch blocks
 42 | - **After**:
 43 |   - Replaced manual try-catch blocks with `withErrorHandling()` wrapper
 44 |   - Uses `handleNonFatalError()` for non-critical errors
 45 |   - Imports and uses standardized `loadConfig()` from input-handler
 46 |   - Removed duplicate loadConfig function
 47 | 
 48 | ### 3. Key Benefits Achieved
 49 | 
 50 | #### Consistency
 51 | - All scripts now use the same error handling patterns
 52 | - Standardized error messages and exit codes
 53 | - Consistent logging approach across all scripts
 54 | 
 55 | #### Maintainability
 56 | - Centralized error handling logic in reusable utilities
 57 | - Easy to modify error behavior in one place
 58 | - Clear separation between fatal and non-fatal errors
 59 | 
 60 | #### Debugging
 61 | - Better error context with operation names
 62 | - Structured error information
 63 | - Appropriate exit codes for different error types
 64 | 
 65 | #### Robustness
 66 | - Proper dependency validation
 67 | - Enhanced file operation error handling
 68 | - Graceful error recovery where appropriate
 69 | 
 70 | ## Usage Examples
 71 | 
 72 | ### Fatal Error Handling
 73 | ```javascript
 74 | // Before
 75 | console.log("Error occurred");
 76 | process.exit(1);
 77 | 
 78 | // After
 79 | handleFatalError(error, ERROR_HANDLING.EXIT_CODES.METADATA_ERROR, "theme generation");
 80 | ```
 81 | 
 82 | ### Async Operation Wrapping
 83 | ```javascript
 84 | // Before
 85 | try {
 86 |   await someOperation();
 87 | } catch (error) {
 88 |   logger.error("Failed:", error);
 89 | }
 90 | 
 91 | // After
 92 | await withErrorHandling(
 93 |   () => someOperation(),
 94 |   "operation description",
 95 |   ERROR_HANDLING.EXIT_CODES.GENERAL_ERROR
 96 | );
 97 | ```
 98 | 
 99 | ### Dependency Validation
100 | ```javascript
101 | // Before
102 | if (!data) {
103 |   console.log("Missing data");
104 |   process.exit(1);
105 | }
106 | 
107 | // After
108 | validateDependencies({
109 |   DATA: data,
110 |   CONFIG: config
111 | });
112 | ```
113 | 
114 | ## Files Modified
115 | - ✅ `scripts/generate-docs/error-handling.mjs` (new)
116 | - ✅ `scripts/generate-docs/constants.mjs` (enhanced)
117 | - ✅ `scripts/generate-docs/create-theme-files.mjs` (refactored)
118 | - ✅ `scripts/generate-docs/input-handler.mjs` (enhanced)
119 | - ✅ `scripts/generate-docs/get-docs.mjs` (standardized)
120 | 
121 | ## Next Steps
122 | This standardization provides a solid foundation for:
123 | 1. Applying similar error handling patterns to remaining scripts
124 | 2. Adding more sophisticated error recovery mechanisms
125 | 3. Implementing structured logging and monitoring
126 | 4. Adding automated error reporting and debugging tools
127 | 
128 | The error handling infrastructure is now consistent, maintainable, and provides better debugging capabilities across the documentation generation pipeline.
129 | 
```
Page 22/181FirstPrevNextLast