This is page 37 of 186. Use http://codebase.md/xmlui-org/xmlui/xmlui/mockApiDef.js?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ ├── staticwebapp.config.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── FancyButton.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ │ ├── debounce-with-changelistener.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.module.scss
│ │ │ ├── Preview.tsx
│ │ │ ├── Select.module.scss
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ ├── ToneSwitcher.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-metadata.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── theme-variables-refactoring.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/docs/content/components/NavGroup.md:
--------------------------------------------------------------------------------
```markdown
1 | # NavGroup [#navgroup]
2 |
3 | `NavGroup` creates collapsible containers for organizing related navigation items into hierarchical menu structures. It groups `NavLink` components and other `NavGroup` components, providing expandable submenus with customizable icons and states.
4 |
5 | **Key features:**
6 |
7 | - **Hierarchical organization**: Creates nested menu structures by containing NavLinks and other NavGroups
8 | - **Expand/collapse behavior**: Users can toggle visibility of grouped navigation items
9 | - **Customizable icons**: Different icons for expanded/collapsed states and layout orientations
10 | - **Flexible placement**: Works within NavPanel for app navigation or standalone for custom menus
11 | - **Initial state control**: Configure whether groups start expanded or collapsed
12 |
13 | ## Using `NavGroup` [#using-navgroup]
14 |
15 | The primary use of a `NavGroup` is to create an application menu with submenus, as the following example shows:
16 |
17 | ```xmlui-pg copy display name="Example: NavGroup in App" height="280px"
18 | ---app
19 | <App layout="condensed">
20 | <NavPanel>
21 | <NavLink label="Home" to="/" icon="home"/>
22 | <NavGroup label="Pages">
23 | <NavLink label="Page 1" to="/page/1"/>
24 | <NavGroup label="Page 2-4">
25 | <NavLink label="Page 2" to="/page/2"/>
26 | <NavLink label="Page 3" to="/page/3"/>
27 | <NavLink label="Page 4" to="/page/4"/>
28 | </NavGroup>
29 | <NavLink label="Page 5" to="/page/5"/>
30 | <NavLink label="Page Other" to="/page/Other"/>
31 | </NavGroup>
32 | </NavPanel>
33 | <Pages fallbackPath="/">
34 | <Page url="/">
35 | Home
36 | </Page>
37 | <Page url="/page/:id">
38 | <Text value="Page {$routeParams.id}" />
39 | </Page>
40 | </Pages>
41 | </App>
42 | ---desc
43 | Here, the highlighted `NavGroup` element nests other `NavLink` and `NavGroup` elements to create a hierarchical menu:
44 | ```
45 |
46 | You do not have to use `NavGroup` within `NavPanel`; you can nest it into other components to represent a menu, like in the following example:
47 |
48 | ```xmlui-pg copy display name="Example: NavGroup in a Stack" height="280px"
49 | <App>
50 | <HStack verticalAlignment="center">
51 | <Text>Use this menu:</Text>
52 | <NavGroup label="Pages">
53 | <NavLink label="Page 1" />
54 | <NavGroup label="Page 2-4">
55 | <NavLink label="Page 2" />
56 | <NavLink label="Page 3" />
57 | <NavLink label="Page 4" />
58 | </NavGroup>
59 | <NavLink label="Page 5" />
60 | <NavLink label="Page Other" />
61 | </NavGroup>
62 | </HStack>
63 | </App>
64 | ```
65 |
66 | ### Custom Icons [#custom-icons]
67 |
68 | You can also provide custom icons for a specific NavGroup component via it's respective property:
69 |
70 | - [iconHorizontalCollapsed](#iconHorizontalCollapsed)
71 | - [iconHorizontalExpanded](#iconHorizontalExpanded)
72 | - [iconVerticalCollapsed](#iconVerticalCollapsed)
73 | - [iconVerticalExpanded](#iconVerticalExpanded)
74 |
75 | See the following for an example of all variants:
76 |
77 | ```xmlui-pg copy display name="Example: custom icons in horizontal layout" height="250px"
78 | <App layout="horizontal">
79 | <NavGroup icon="email" label="Send To"
80 | iconVerticalExpanded="arrowup" iconVerticalCollapsed="arrowbottom">
81 | <NavLink icon="arrowup" label="Boss" />
82 | <NavGroup icon="users" label="Team"
83 | iconHorizontalExpanded="arrowleft" iconHorizontalCollapsed="arrowright">
84 | <NavLink label="Jane" />
85 | <NavLink label="Will" />
86 | </NavGroup>
87 | <NavLink icon="cube" label="Support" />
88 | </NavGroup>
89 | </App>
90 | ```
91 |
92 | ## Properties [#properties]
93 |
94 | ### `enabled` (default: true) [#enabled-default-true]
95 |
96 | This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).
97 |
98 | ### `icon` [#icon]
99 |
100 | This property defines an optional icon to display along with the `NavGroup` label.
101 |
102 | Look at this example:
103 |
104 | ```xmlui-pg copy {3, 5} display name="Example: label and icon" height="280px"
105 | <App>
106 | <HStack verticalAlignment="center">
107 | <NavGroup icon="email" label="Send To" >
108 | <NavLink icon="arrowup" label="Boss" />
109 | <NavGroup icon="users" label="Team">
110 | <NavLink label="Jane" />
111 | <NavLink label="Will" />
112 | <NavLink label="Sandra" />
113 | </NavGroup>
114 | <NavLink icon="cube" label="Support" />
115 | </NavGroup>
116 | </HStack>
117 | </App>
118 | ```
119 |
120 | ### `iconHorizontalCollapsed` (default: "chevronright") [#iconhorizontalcollapsed-default-chevronright]
121 |
122 | Set a custom icon to display when the navigation menu is collapsed, is in a **horizontal** app layout, and is in a navigation submenu.
123 |
124 | For an example, see the [Custom Icons section](#custom-icons).
125 |
126 | ### `iconHorizontalExpanded` (default: "chevronright") [#iconhorizontalexpanded-default-chevronright]
127 |
128 | Set a custom icon to display when the navigation menu is expanded, is in a **horizontal** app layout, and is in a navigation submenu.
129 |
130 | For an example, see the [Custom Icons section](#custom-icons).
131 |
132 | ### `iconVerticalCollapsed` (default: "chevronright") [#iconverticalcollapsed-default-chevronright]
133 |
134 | Set a custom icon to display when the navigation menu is collapsed, is in a **vertical** app layout, or is in a **horizontal** layout and is the top-level navigation item in the menu.
135 |
136 | For an example, see the [Custom Icons section](#custom-icons).
137 |
138 | ### `iconVerticalExpanded` (default: "chevrondown") [#iconverticalexpanded-default-chevrondown]
139 |
140 | Set a custom icon to display when the navigation menu is expanded, is in a **vertical** app layout, or is in a **horizontal** layout and is the top-level navigation item in the menu.
141 |
142 | For an example, see the [Custom Icons section](#custom-icons).
143 |
144 | ### `initiallyExpanded` [#initiallyexpanded]
145 |
146 | This property defines whether the group is initially expanded or collapsed. If not defined, the group is collapsed by default.
147 |
148 | ### `label` [#label]
149 |
150 | This property sets the label of the component. If not set, the component will not display a label.
151 |
152 | This property sets the text displayed as the name of the `NavGroup`.
153 |
154 | For an example, see the [section on the icon property](#icon).
155 |
156 | ### `to` [#to]
157 |
158 | This property defines an optional navigation link.
159 |
160 | ## Events [#events]
161 |
162 | This component does not have any events.
163 |
164 | ## Exposed Methods [#exposed-methods]
165 |
166 | This component does not expose any methods.
167 |
168 | ## Styling [#styling]
169 |
170 | ### Theme Variables [#theme-variables]
171 |
172 | | Variable | Default Value (Light) | Default Value (Dark) |
173 | | --- | --- | --- |
174 | | [backgroundColor](../styles-and-themes/common-units/#color)-dropdown-NavGroup | $backgroundColor-primary | $backgroundColor-primary |
175 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-dropdown-NavGroup | $borderRadius | $borderRadius |
176 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-dropdown-NavGroup | $boxShadow-spread | $boxShadow-spread |
177 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Slider/Slider.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import { Slider } from "./SliderNative";
2 | import styles from "./Slider.module.scss";
3 | import { createComponentRenderer } from "../../components-core/renderers";
4 | import { parseScssVar } from "../../components-core/theming/themeVars";
5 | import {
6 | createMetadata,
7 | d,
8 | dAutoFocus,
9 | dDidChange,
10 | dEnabled,
11 | dGotFocus,
12 | dInitialValue,
13 | dLostFocus,
14 | dReadonly,
15 | dRequired,
16 | dValidationStatus,
17 | } from "../metadata-helpers";
18 |
19 | const COMP = "Slider";
20 |
21 | export const SliderMd = createMetadata({
22 | status: "stable",
23 | description:
24 | "`Slider` provides an interactive control for selecting numeric values within " +
25 | "a defined range, supporting both single value selection and range selection with " +
26 | "multiple thumbs. It offers precise control through customizable steps and visual " +
27 | "feedback with formatted value display." +
28 | "\n\n" +
29 | "Hover over the component to see the tooltip with the current value. On mobile, tap the thumb to see the tooltip.",
30 | props: {
31 | initialValue: dInitialValue(),
32 | minValue: {
33 | description: `This property specifies the minimum value of the allowed input range.`,
34 | valueType: "number",
35 | defaultValue: 0,
36 | },
37 | maxValue: {
38 | description: `This property specifies the maximum value of the allowed input range.`,
39 | valueType: "number",
40 | defaultValue: 10,
41 | },
42 | step: {
43 | description: `This property defines the increment value for the slider, determining the allowed intervals between selectable values.`,
44 | defaultValue: 1,
45 | },
46 | minStepsBetweenThumbs: d(
47 | `This property sets the minimum number of steps required between multiple thumbs on the slider, ensuring they maintain a specified distance.`,
48 | undefined,
49 | "number",
50 | 1,
51 | ),
52 | enabled: dEnabled(),
53 | autoFocus: dAutoFocus(),
54 | required: dRequired(),
55 | readOnly: dReadonly(),
56 | validationStatus: {
57 | ...dValidationStatus(),
58 | defaultValue: "none",
59 | },
60 | rangeStyle: d(
61 | `This optional property allows you to apply custom styles to the range element of the slider.`,
62 | ),
63 | thumbStyle: d(
64 | `This optional property allows you to apply custom styles to the thumb elements of the slider.`,
65 | ),
66 | showValues: {
67 | description: `This property controls whether the slider shows the current values of the thumbs.`,
68 | valueType: "boolean",
69 | defaultValue: true,
70 | },
71 | valueFormat: {
72 | description: `This property allows you to customize how the values are displayed.`,
73 | valueType: "any",
74 | defaultValue: "(value) => value.toString()",
75 | },
76 | },
77 | events: {
78 | didChange: dDidChange(COMP),
79 | gotFocus: dGotFocus(COMP),
80 | lostFocus: dLostFocus(COMP),
81 | },
82 | apis: {
83 | focus: {
84 | description: `This method sets the focus on the slider component.`,
85 | signature: "focus(): void",
86 | },
87 | value: {
88 | description: `This API retrieves the current value of the \`${COMP}\`. You can use it to get the value programmatically.`,
89 | signature: "get value(): number | [number, number] | undefined",
90 | },
91 | setValue: {
92 | description: `This API sets the value of the \`${COMP}\`. You can use it to programmatically change the value.`,
93 | signature: "setValue(value: number | [number, number] | undefined): void",
94 | parameters: {
95 | value: "The new value to set. Can be a single value or an array of values for range sliders.",
96 | },
97 | },
98 | },
99 | themeVars: parseScssVar(styles.themeVars),
100 | defaultThemeVars: {
101 | [`backgroundColor-track-${COMP}`]: "$color-surface-200",
102 | [`backgroundColor-range-${COMP}`]: "$color-primary",
103 | [`borderWidth-thumb-${COMP}`]: "2px",
104 | [`borderStyle-thumb-${COMP}`]: "solid",
105 | [`borderColor-thumb-${COMP}`]: "$color-surface-50",
106 | [`backgroundColor-thumb-${COMP}`]: "$color-primary",
107 | [`backgroundColor-thumb-${COMP}--focus`]: "$color-primary",
108 | [`boxShadow-thumb-${COMP}--focus`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
109 | [`backgroundColor-thumb-${COMP}--hover`]: "$color-primary",
110 | [`boxShadow-thumb-${COMP}--hover`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
111 | [`backgroundColor-thumb-${COMP}--active`]: "$color-primary-400",
112 | [`boxShadow-thumb-${COMP}--active`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
113 | [`borderRadius-${COMP}--default`]: "$borderRadius",
114 | [`borderColor-${COMP}--default`]: "transparent",
115 | [`borderWidth-${COMP}--default`]: "0",
116 | [`borderStyle-${COMP}--default`]: "solid",
117 | [`boxShadow-${COMP}--default`]: "none",
118 |
119 | light: {
120 | [`backgroundColor-track-${COMP}--disabled`]: "$color-surface-300",
121 | [`backgroundColor-range-${COMP}--disabled`]: "$color-surface-400",
122 | [`backgroundColor-thumb-${COMP}`]: "$color-primary-500",
123 | [`borderColor-thumb-${COMP}`]: "$color-surface-50",
124 | },
125 | dark: {
126 | [`backgroundColor-track-${COMP}--disabled`]: "$color-surface-600",
127 | [`backgroundColor-range-${COMP}--disabled`]: "$color-surface-800",
128 | [`backgroundColor-thumb-${COMP}`]: "$color-primary-400",
129 | [`borderColor-thumb-${COMP}`]: "$color-surface-950",
130 | },
131 | },
132 | });
133 |
134 | export const sliderComponentRenderer = createComponentRenderer(
135 | COMP,
136 | SliderMd,
137 | ({
138 | node,
139 | extractValue,
140 | lookupEventHandler,
141 | lookupSyncCallback,
142 | className,
143 | updateState,
144 | state,
145 | registerComponentApi,
146 | }) => {
147 | return (
148 | <Slider
149 | validationStatus={extractValue(node.props.validationStatus)}
150 | minStepsBetweenThumbs={extractValue(node.props?.minStepsBetweenThumbs)}
151 | value={state.value}
152 | initialValue={extractValue(node.props.initialValue)}
153 | updateState={updateState}
154 | onDidChange={lookupEventHandler("didChange")}
155 | onFocus={lookupEventHandler("gotFocus")}
156 | onBlur={lookupEventHandler("lostFocus")}
157 | registerComponentApi={registerComponentApi}
158 | className={className}
159 | step={extractValue(node.props?.step)}
160 | min={extractValue(node.props?.minValue)}
161 | max={extractValue(node.props?.maxValue)}
162 | enabled={extractValue.asOptionalBoolean(node.props?.enabled)}
163 | autoFocus={extractValue.asOptionalBoolean(node.props.autoFocus)}
164 | readOnly={extractValue.asOptionalBoolean(node.props.readOnly)}
165 | required={extractValue.asOptionalBoolean(node.props.required)}
166 | rangeStyle={extractValue(node.props?.rangeStyle)}
167 | thumbStyle={extractValue(node.props?.thumbStyle)}
168 | showValues={extractValue.asOptionalBoolean(node.props?.showValues)}
169 | valueFormat={lookupSyncCallback(node.props?.valueFormat)}
170 | />
171 | );
172 | },
173 | );
174 |
```
--------------------------------------------------------------------------------
/xmlui/src/components-core/theming/component-layout-resolver.ts:
--------------------------------------------------------------------------------
```typescript
1 | import type { CSSProperties } from "react";
2 | import type { LayoutContext } from "../../abstractions/RendererDefs";
3 | import { EMPTY_OBJECT } from "../constants";
4 | import { parseLayoutProperty } from "./parse-layout-props";
5 |
6 | export type ResolvedComponentLayout = Record<string, ResolvedPartLayout>;
7 |
8 | export type ResolvedPartLayout = {
9 | baseStyles?: CssPropsWithStates;
10 | responsiveStyles?: Record<string, CssPropsWithStates>;
11 | };
12 |
13 | export type CssPropsWithStates = CSSProperties & {
14 | states?: Record<string, CSSProperties>;
15 | };
16 |
17 | export const THEME_VAR_PREFIX = "xmlui";
18 | export const BASE_COMPONENT_PART = "_base_";
19 | const themeVarCapturesRegex = /(\$[a-zA-Z][a-zA-Z0-9-_]*)/g;
20 | const starSizeRegex = /^\d*\*$/;
21 |
22 | export function resolveComponentLayoutProps(
23 | layoutProps: Record<string, any> = EMPTY_OBJECT,
24 | layoutContext?: LayoutContext,
25 | ): ResolvedComponentLayout {
26 | const result: ResolvedComponentLayout = {};
27 |
28 | for (const [key, value] of Object.entries(layoutProps)) {
29 | const parsed = parseLayoutProperty(key, false);
30 |
31 | if (typeof parsed === "string") {
32 | // --- Ignore failed properties
33 | continue;
34 | }
35 |
36 | // --- Process the properties, resolve theme variables to CSS variables
37 | const cssPropName = parsed.property;
38 | const appliedValue = value
39 | ?.toString()
40 | ?.replace(themeVarCapturesRegex, (match: string) => toCssVar(match.trim()));
41 |
42 | // --- Some properties may need transformation
43 | const cssProps: CSSProperties =
44 | cssPropName in specialResolvers
45 | ? specialResolvers[cssPropName](appliedValue, layoutContext)
46 | : { [cssPropName]: appliedValue };
47 |
48 | // --- Check if the property belongs to one or more states
49 | const stateName = parsed.states && parsed.states.length > 0 ? parsed.states.join("&") : null;
50 |
51 | // --- Prepare the place to store the styles. It belongs to the specified part.
52 | const partName = parsed.part ? parsed.part : BASE_COMPONENT_PART;
53 | let propertyTarget: any = (result[partName] ??= {});
54 | if (parsed.screenSizes && parsed.screenSizes.length > 0) {
55 | const screenSizeKey = parsed.screenSizes.join("&");
56 | propertyTarget.responsiveStyles ??= {};
57 | propertyTarget.responsiveStyles[screenSizeKey] ??= {};
58 | if (stateName) {
59 | propertyTarget.responsiveStyles[screenSizeKey].states ??= {};
60 | propertyTarget.responsiveStyles[screenSizeKey].states = {
61 | ...propertyTarget.responsiveStyles[screenSizeKey].states,
62 | [stateName]: {
63 | ...propertyTarget.responsiveStyles[screenSizeKey].states[stateName],
64 | ...cssProps,
65 | },
66 | };
67 | } else {
68 | propertyTarget.responsiveStyles[screenSizeKey] = {
69 | ...propertyTarget.responsiveStyles[screenSizeKey],
70 | ...cssProps,
71 | };
72 | }
73 | } else {
74 | // --- No screen sizes specified, the property belongs to the base styles
75 | propertyTarget.baseStyles ??= {};
76 | if (stateName) {
77 | propertyTarget.baseStyles.states ??= {};
78 | propertyTarget.baseStyles.states = {
79 | ...propertyTarget.baseStyles.states,
80 | [stateName]: { ...propertyTarget.baseStyles.states[stateName], ...cssProps },
81 | };
82 | } else {
83 | propertyTarget.baseStyles = { ...propertyTarget.baseStyles, ...cssProps };
84 | }
85 | }
86 | }
87 |
88 | // --- Done
89 | return result;
90 | }
91 |
92 | // --- Checks if the specified size is a star size and the orientation is horizontal
93 | function getHorizontalStarSize(
94 | size: string | number,
95 | layoutContext?: LayoutContext,
96 | ): number | null {
97 | if (!size) return null;
98 | const orientation = getOrientation(layoutContext);
99 | return orientation === "horizontal" && starSizeRegex.test(size.toString())
100 | ? getStarSizeNumber(size.toString())
101 | : null;
102 | }
103 |
104 | // --- Checks if the specified size is a star size and the orientation is vertical
105 | function getVerticalStarSize(size: string | number, layoutContext?: LayoutContext): number | null {
106 | if (!size) return null;
107 | const orientation = getOrientation(layoutContext);
108 | return orientation === "vertical" && starSizeRegex.test(size.toString())
109 | ? getStarSizeNumber(size.toString())
110 | : null;
111 | }
112 |
113 | // --- Obtains the integer number from a string that matches the starSizeRegex.
114 | function getStarSizeNumber(input: string): number | null {
115 | if (starSizeRegex.test(input)) {
116 | const numberPart = input.slice(0, -1); // Remove the trailing '*'
117 | return numberPart === "" ? 1 : parseInt(numberPart, 10); // Default to 1 if no number is present
118 | }
119 | return null;
120 | }
121 |
122 | // --- Gets the current orientation from the layout context
123 | function getOrientation(layoutContext?: LayoutContext): string | undefined {
124 | if (!layoutContext) return;
125 | let orientation = layoutContext?.type === "Stack" && layoutContext?.orientation;
126 | return orientation?.toString();
127 | }
128 |
129 | function toCssVar(c: string): string {
130 | return `var(--${THEME_VAR_PREFIX}-${c.substring(1)})`;
131 | }
132 |
133 | type SpecialResolver = (propValue: any, layoutContext?: LayoutContext) => CSSProperties;
134 |
135 | export const specialResolvers: Record<string, SpecialResolver> = {
136 | paddingHorizontal: (propValue) => ({
137 | paddingLeft: propValue,
138 | paddingRight: propValue,
139 | }),
140 | paddingVertical: (propValue) => ({
141 | paddingTop: propValue,
142 | paddingBottom: propValue,
143 | }),
144 | marginHorizontal: (propValue) => ({
145 | marginLeft: propValue,
146 | marginRight: propValue,
147 | }),
148 | marginVertical: (propValue) => ({
149 | marginTop: propValue,
150 | marginBottom: propValue,
151 | }),
152 | borderHorizontal: (propValue) => ({
153 | borderLeft: propValue,
154 | borderRight: propValue,
155 | }),
156 | borderVertical: (propValue) => ({
157 | borderTop: propValue,
158 | borderBottom: propValue,
159 | }),
160 | wrapContent: (propValue) => ({
161 | flexWrap: propValue === "true" ? "wrap" : "nowrap",
162 | }),
163 | canShrink: (propValue) => ({
164 | flexShrink: propValue === "true" ? 1 : 0,
165 | }),
166 | width: (propValue, layoutContext) => {
167 | const horizontalStarSize = getHorizontalStarSize(propValue, layoutContext);
168 | const result: CSSProperties = {};
169 | if (horizontalStarSize !== null) {
170 | // --- We use "flex" when width is in start-size and allow shrinking
171 | result.flex = horizontalStarSize;
172 | result.flexShrink = 1;
173 | } else {
174 | result.width = propValue;
175 | }
176 | return result;
177 | },
178 | height: (propValue, layoutContext) => {
179 | const verticalStarSize = getVerticalStarSize(propValue, layoutContext);
180 | const result: CSSProperties = {};
181 | if (verticalStarSize !== null) {
182 | // --- We use "flex" when height is in start-size and allow shrinking
183 | result.flex = verticalStarSize;
184 | result.flexShrink = 1;
185 | } else {
186 | result.height = propValue;
187 | }
188 | return result;
189 | },
190 | };
191 |
```
--------------------------------------------------------------------------------
/docs/public/resources/files/releases.json:
--------------------------------------------------------------------------------
```json
1 | [
2 | {
3 | "tag_name": "[email protected]",
4 | "published_at": "2025-10-29T08:11:14Z",
5 | "changes": [
6 | {
7 | "description": "Add the debounce function to globals",
8 | "commit_sha": "7bbbb1d"
9 | }
10 | ],
11 | "assets": [
12 | {
13 | "name": "xmlui-0.11.1.js",
14 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.11.1/xmlui-0.11.1.js"
15 | }
16 | ]
17 | },
18 | {
19 | "tag_name": "[email protected]",
20 | "published_at": "2025-10-27T11:31:35Z",
21 | "changes": [
22 | {
23 | "description": "Heading now accepts \"H1\"...\"H6\", \"1\"...\"6\", too. Invalid values fall back to \"h1\".",
24 | "commit_sha": "e1b8d58"
25 | },
26 | {
27 | "description": "Remove the showNavPanelIf property from AppHeader (fix NavPanel's \"when\" usage)",
28 | "commit_sha": "1ad832c"
29 | }
30 | ],
31 | "assets": [
32 | {
33 | "name": "xmlui-0.10.26.js",
34 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.26/xmlui-0.10.26.js"
35 | }
36 | ]
37 | },
38 | {
39 | "tag_name": "[email protected]",
40 | "published_at": "2025-10-22T14:39:36Z",
41 | "changes": [
42 | {
43 | "description": "refactor: Select - remove radix select",
44 | "commit_sha": "e7c503e"
45 | },
46 | {
47 | "description": "Fix the NavGroup click behavior in responsive view",
48 | "commit_sha": "5fe3052"
49 | },
50 | {
51 | "description": "Fix the $item access issue within a ModalDialog inside a Column",
52 | "commit_sha": "5fe3052"
53 | },
54 | {
55 | "description": "Fix the APICall becomes non-functional after first error when used with DataSource + Items + $item context issue",
56 | "commit_sha": "250647b"
57 | }
58 | ],
59 | "assets": [
60 | {
61 | "name": "xmlui-0.10.25.js",
62 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.25/xmlui-0.10.25.js"
63 | }
64 | ]
65 | },
66 | {
67 | "tag_name": "[email protected]",
68 | "published_at": "2025-10-21T13:53:23Z",
69 | "changes": [
70 | {
71 | "description": "The xmlui-pg codefence now accepts emojies",
72 | "commit_sha": "3e361c4"
73 | },
74 | {
75 | "description": "Exend the formatDate, formatDateTime, and formatTime functions with optional format strings",
76 | "commit_sha": "3e361c4"
77 | }
78 | ],
79 | "assets": [
80 | {
81 | "name": "xmlui-0.10.24.js",
82 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.24/xmlui-0.10.24.js"
83 | }
84 | ]
85 | },
86 | {
87 | "tag_name": "[email protected]",
88 | "published_at": "2025-10-21T07:04:42Z",
89 | "changes": [
90 | {
91 | "description": "Experiment with the \"variant\" behavior",
92 | "commit_sha": "bf18444"
93 | },
94 | {
95 | "description": "Form now has a willSubmit event (it can cancel the submit event)",
96 | "commit_sha": "6d3bb89"
97 | },
98 | {
99 | "description": "Fix the boolean conversion issue with showAnchor in Heading",
100 | "commit_sha": "89c69af"
101 | },
102 | {
103 | "description": "Fix loading code-behind files in standalone mode",
104 | "commit_sha": "4cfebf0"
105 | },
106 | {
107 | "description": "fix: pointer-events:none when using sibling Dialog",
108 | "commit_sha": "145cd68"
109 | }
110 | ],
111 | "assets": [
112 | {
113 | "name": "xmlui-0.10.23.js",
114 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.23/xmlui-0.10.23.js"
115 | }
116 | ]
117 | },
118 | {
119 | "tag_name": "[email protected]",
120 | "published_at": "2025-10-17T06:33:28Z",
121 | "changes": [
122 | {
123 | "description": "The behavior infrastructure now uses ComponentProvider and allows adding custom behaviors",
124 | "commit_sha": "501f60a"
125 | },
126 | {
127 | "description": "Extend Tab with the tabAlignment and accordionView properties",
128 | "commit_sha": "1020f1c"
129 | }
130 | ],
131 | "assets": [
132 | {
133 | "name": "xmlui-0.10.22.js",
134 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.22/xmlui-0.10.22.js"
135 | }
136 | ]
137 | },
138 | {
139 | "tag_name": "[email protected]",
140 | "published_at": "2025-10-16T11:53:23Z",
141 | "changes": [
142 | {
143 | "description": "Add custom Text variant styling",
144 | "commit_sha": "6fd4d62"
145 | }
146 | ],
147 | "assets": [
148 | {
149 | "name": "xmlui-0.10.21.js",
150 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.21/xmlui-0.10.21.js"
151 | }
152 | ]
153 | },
154 | {
155 | "tag_name": "[email protected]",
156 | "published_at": "2025-10-15T12:46:33Z",
157 | "changes": [
158 | {
159 | "description": "fix: Autocomplete handles animations correctly",
160 | "commit_sha": "26eac90"
161 | },
162 | {
163 | "description": "Add margin-related theme variables to ContentSeparator",
164 | "commit_sha": "f53edff"
165 | },
166 | {
167 | "description": "Add applyIf property to Theme",
168 | "commit_sha": "1840916"
169 | },
170 | {
171 | "description": "fix: external animation is now correctly applied to ModalDialogs as well",
172 | "commit_sha": "c6be7a3"
173 | },
174 | {
175 | "description": "Added better error text when rendering FormItem outside of a Form.",
176 | "commit_sha": "6aaefaf"
177 | },
178 | {
179 | "description": "refactor: Select and AutoComplete components",
180 | "commit_sha": "28d2585"
181 | },
182 | {
183 | "description": "The itemLabelWidth value of Form now supports theme variables ($space-\\* values).",
184 | "commit_sha": "e29a231"
185 | },
186 | {
187 | "description": "AppState now uses a merge operation to set initialValue",
188 | "commit_sha": "22162c0"
189 | },
190 | {
191 | "description": "fix: itemWithLabel - layout issue",
192 | "commit_sha": "e90232b"
193 | }
194 | ],
195 | "assets": [
196 | {
197 | "name": "xmlui-0.10.20.js",
198 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.20/xmlui-0.10.20.js"
199 | }
200 | ]
201 | },
202 | {
203 | "tag_name": "[email protected]",
204 | "published_at": "2025-10-07T09:22:39Z",
205 | "changes": [
206 | {
207 | "description": "Add checkboxTolerance property to Table",
208 | "commit_sha": "facb257"
209 | },
210 | {
211 | "description": "test: review onFocus, onBlur e2e tests",
212 | "commit_sha": "6084c14"
213 | },
214 | {
215 | "description": "Renamed the following properties in DatePicker: minValue -> startDate, maxValue -> endDate. Also updated component documentation.",
216 | "commit_sha": "e1fa9d7"
217 | }
218 | ],
219 | "assets": [
220 | {
221 | "name": "xmlui-0.10.19.js",
222 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.19/xmlui-0.10.19.js"
223 | }
224 | ]
225 | }
226 | ]
```
--------------------------------------------------------------------------------
/docs/content/components/xmlui-website-blocks/Carousel.md:
--------------------------------------------------------------------------------
```markdown
1 | # Carousel [#carousel]
2 |
3 | This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.
4 |
5 | ## Properties
6 |
7 | ### `autoplay` (default: false)
8 |
9 | Start scrolling the carousel automatically (`true`) or not (`false`).
10 |
11 | ### `autoplayInterval` (default: 5000)
12 |
13 | Specifies the interval between autoplay transitions.
14 |
15 | ### `controls` (default: true)
16 |
17 | Display the previous/next controls (`true`) or not (`false`).
18 |
19 | ### `indicators` (default: true)
20 |
21 | Display the individual slides as buttons (`true`) or not (`false`).
22 |
23 | ### `loop` (default: false)
24 |
25 | Sets whether the carousel should loop back to the start/end when it reaches the last/first slide.
26 |
27 | ### `nextIcon`
28 |
29 | The icon to display for the next control.
30 |
31 | ### `orientation` (default: "horizontal")
32 |
33 | This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.
34 |
35 | Available values: `horizontal` **(default)**, `vertical`
36 |
37 | ### `prevIcon`
38 |
39 | The icon to display for the previous control.
40 |
41 | ### `startIndex` (default: 0)
42 |
43 | The index of the first slide to display.
44 |
45 | ### `stopAutoplayOnInteraction` (default: true)
46 |
47 | This property indicates whether autoplay stops on user interaction.
48 |
49 | ### `transitionDuration` (default: 25)
50 |
51 | The duration of the transition between slides.
52 |
53 | ## Events
54 |
55 | ### `displayDidChange`
56 |
57 | This event is fired when the displayed content of the CarouselNew changes.
58 |
59 | ## Exposed Methods
60 |
61 | ### `canScrollNext`
62 |
63 | This method returns `true` if the carousel can scroll to the next slide.
64 |
65 | **Signature**: `canScrollNext(): boolean`
66 |
67 | ### `canScrollPrev`
68 |
69 | This method returns `true` if the carousel can scroll to the previous slide.
70 |
71 | **Signature**: `canScrollPrev(): boolean`
72 |
73 | ### `scrollNext`
74 |
75 | This method scrolls the carousel to the next slide.
76 |
77 | **Signature**: `scrollNext(): void`
78 |
79 | ### `scrollPrev`
80 |
81 | This method scrolls the carousel to the previous slide.
82 |
83 | **Signature**: `scrollPrev(): void`
84 |
85 | ### `scrollTo`
86 |
87 | This method scrolls the carousel to the specified slide index.
88 |
89 | **Signature**: `scrollTo(index: number): void`
90 |
91 | - `index`: The index of the slide to scroll to.
92 |
93 | ## Styling
94 |
95 | ### Theme Variables
96 |
97 | | Variable | Default Value (Light) | Default Value (Dark) |
98 | | --- | --- | --- |
99 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-active-Carousel | *none* | *none* |
100 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-active-CarouselNew | $color-primary | $color-primary |
101 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-Carousel | *none* | *none* |
102 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-CarouselNew | $color-primary | $color-primary |
103 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-disabled-Carousel | *none* | *none* |
104 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-disabled-CarouselNew | $color-surface-200 | $color-surface-200 |
105 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-hover-Carousel | *none* | *none* |
106 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-hover-CarouselNew | $color-primary | $color-primary |
107 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-active-Carousel | *none* | *none* |
108 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-active-CarouselNew | $color-primary | $color-primary |
109 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-Carousel | *none* | *none* |
110 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-CarouselNew | $color-surface-200 | $color-surface-200 |
111 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-hover-Carousel | *none* | *none* |
112 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-hover-CarouselNew | $color-surface-200 | $color-surface-200 |
113 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-control-Carousel | *none* | *none* |
114 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-control-CarouselNew | 50% | 50% |
115 | | [height](../styles-and-themes/common-units/#size)-Carousel | *none* | *none* |
116 | | [height](../styles-and-themes/common-units/#size)-CarouselNew | 100% | 100% |
117 | | [height](../styles-and-themes/common-units/#size)-control-Carousel | *none* | *none* |
118 | | [height](../styles-and-themes/common-units/#size)-control-CarouselNew | 36px | 36px |
119 | | [height](../styles-and-themes/common-units/#size)-indicator-Carousel | *none* | *none* |
120 | | [height](../styles-and-themes/common-units/#size)-indicator-CarouselNew | 6px | 6px |
121 | | [textColor](../styles-and-themes/common-units/#color)-control-active-Carousel | *none* | *none* |
122 | | [textColor](../styles-and-themes/common-units/#color)-control-active-CarouselNew | $color-primary | $color-primary |
123 | | [textColor](../styles-and-themes/common-units/#color)-control-Carousel | *none* | *none* |
124 | | [textColor](../styles-and-themes/common-units/#color)-control-CarouselNew | $textColor | $textColor |
125 | | [textColor](../styles-and-themes/common-units/#color)-control-disabled-Carousel | *none* | *none* |
126 | | [textColor](../styles-and-themes/common-units/#color)-control-disabled-CarouselNew | $textColor-disabled | $textColor-disabled |
127 | | [textColor](../styles-and-themes/common-units/#color)-control-hover-Carousel | *none* | *none* |
128 | | [textColor](../styles-and-themes/common-units/#color)-control-hover-CarouselNew | $textColor | $textColor |
129 | | [textColor](../styles-and-themes/common-units/#color)-indicator-active-Carousel | *none* | *none* |
130 | | [textColor](../styles-and-themes/common-units/#color)-indicator-active-CarouselNew | $color-primary | $color-primary |
131 | | [textColor](../styles-and-themes/common-units/#color)-indicator-Carousel | *none* | *none* |
132 | | [textColor](../styles-and-themes/common-units/#color)-indicator-CarouselNew | $color-primary | $color-primary |
133 | | [textColor](../styles-and-themes/common-units/#color)-indicator-hover-Carousel | *none* | *none* |
134 | | [textColor](../styles-and-themes/common-units/#color)-indicator-hover-CarouselNew | $color-primary | $color-primary |
135 | | [width](../styles-and-themes/common-units/#size)-Carousel | *none* | *none* |
136 | | [width](../styles-and-themes/common-units/#size)-CarouselNew | 100% | 100% |
137 | | [width](../styles-and-themes/common-units/#size)-control-Carousel | *none* | *none* |
138 | | [width](../styles-and-themes/common-units/#size)-control-CarouselNew | 36px | 36px |
139 | | [width](../styles-and-themes/common-units/#size)-indicator-Carousel | *none* | *none* |
140 | | [width](../styles-and-themes/common-units/#size)-indicator-CarouselNew | 25px | 25px |
141 |
```
--------------------------------------------------------------------------------
/docs/content/extensions/xmlui-website-blocks/Carousel.md:
--------------------------------------------------------------------------------
```markdown
1 | # Carousel [#carousel]
2 |
3 | This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.
4 |
5 | ## Properties
6 |
7 | ### `autoplay` (default: false)
8 |
9 | Start scrolling the carousel automatically (`true`) or not (`false`).
10 |
11 | ### `autoplayInterval` (default: 5000)
12 |
13 | Specifies the interval between autoplay transitions.
14 |
15 | ### `controls` (default: true)
16 |
17 | Display the previous/next controls (`true`) or not (`false`).
18 |
19 | ### `indicators` (default: true)
20 |
21 | Display the individual slides as buttons (`true`) or not (`false`).
22 |
23 | ### `loop` (default: false)
24 |
25 | Sets whether the carousel should loop back to the start/end when it reaches the last/first slide.
26 |
27 | ### `nextIcon`
28 |
29 | The icon to display for the next control.
30 |
31 | ### `orientation` (default: "horizontal")
32 |
33 | This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.
34 |
35 | Available values: `horizontal` **(default)**, `vertical`
36 |
37 | ### `prevIcon`
38 |
39 | The icon to display for the previous control.
40 |
41 | ### `startIndex` (default: 0)
42 |
43 | The index of the first slide to display.
44 |
45 | ### `stopAutoplayOnInteraction` (default: true)
46 |
47 | This property indicates whether autoplay stops on user interaction.
48 |
49 | ### `transitionDuration` (default: 25)
50 |
51 | The duration of the transition between slides.
52 |
53 | ## Events
54 |
55 | ### `displayDidChange`
56 |
57 | This event is fired when the displayed content of the CarouselNew changes.
58 |
59 | ## Exposed Methods
60 |
61 | ### `canScrollNext`
62 |
63 | This method returns `true` if the carousel can scroll to the next slide.
64 |
65 | **Signature**: `canScrollNext(): boolean`
66 |
67 | ### `canScrollPrev`
68 |
69 | This method returns `true` if the carousel can scroll to the previous slide.
70 |
71 | **Signature**: `canScrollPrev(): boolean`
72 |
73 | ### `scrollNext`
74 |
75 | This method scrolls the carousel to the next slide.
76 |
77 | **Signature**: `scrollNext(): void`
78 |
79 | ### `scrollPrev`
80 |
81 | This method scrolls the carousel to the previous slide.
82 |
83 | **Signature**: `scrollPrev(): void`
84 |
85 | ### `scrollTo`
86 |
87 | This method scrolls the carousel to the specified slide index.
88 |
89 | **Signature**: `scrollTo(index: number): void`
90 |
91 | - `index`: The index of the slide to scroll to.
92 |
93 | ## Styling
94 |
95 | ### Theme Variables
96 |
97 | | Variable | Default Value (Light) | Default Value (Dark) |
98 | | --- | --- | --- |
99 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-active-Carousel | *none* | *none* |
100 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-active-CarouselNew | $color-primary | $color-primary |
101 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-Carousel | *none* | *none* |
102 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-CarouselNew | $color-primary | $color-primary |
103 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-disabled-Carousel | *none* | *none* |
104 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-disabled-CarouselNew | $color-surface-200 | $color-surface-200 |
105 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-hover-Carousel | *none* | *none* |
106 | | [backgroundColor](../styles-and-themes/common-units/#color)-control-hover-CarouselNew | $color-primary | $color-primary |
107 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-active-Carousel | *none* | *none* |
108 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-active-CarouselNew | $color-primary | $color-primary |
109 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-Carousel | *none* | *none* |
110 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-CarouselNew | $color-surface-200 | $color-surface-200 |
111 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-hover-Carousel | *none* | *none* |
112 | | [backgroundColor](../styles-and-themes/common-units/#color)-indicator-hover-CarouselNew | $color-surface-200 | $color-surface-200 |
113 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-control-Carousel | *none* | *none* |
114 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-control-CarouselNew | 50% | 50% |
115 | | [height](../styles-and-themes/common-units/#size)-Carousel | *none* | *none* |
116 | | [height](../styles-and-themes/common-units/#size)-CarouselNew | 100% | 100% |
117 | | [height](../styles-and-themes/common-units/#size)-control-Carousel | *none* | *none* |
118 | | [height](../styles-and-themes/common-units/#size)-control-CarouselNew | 36px | 36px |
119 | | [height](../styles-and-themes/common-units/#size)-indicator-Carousel | *none* | *none* |
120 | | [height](../styles-and-themes/common-units/#size)-indicator-CarouselNew | 6px | 6px |
121 | | [textColor](../styles-and-themes/common-units/#color)-control-active-Carousel | *none* | *none* |
122 | | [textColor](../styles-and-themes/common-units/#color)-control-active-CarouselNew | $color-primary | $color-primary |
123 | | [textColor](../styles-and-themes/common-units/#color)-control-Carousel | *none* | *none* |
124 | | [textColor](../styles-and-themes/common-units/#color)-control-CarouselNew | $textColor | $textColor |
125 | | [textColor](../styles-and-themes/common-units/#color)-control-disabled-Carousel | *none* | *none* |
126 | | [textColor](../styles-and-themes/common-units/#color)-control-disabled-CarouselNew | $textColor-disabled | $textColor-disabled |
127 | | [textColor](../styles-and-themes/common-units/#color)-control-hover-Carousel | *none* | *none* |
128 | | [textColor](../styles-and-themes/common-units/#color)-control-hover-CarouselNew | $textColor | $textColor |
129 | | [textColor](../styles-and-themes/common-units/#color)-indicator-active-Carousel | *none* | *none* |
130 | | [textColor](../styles-and-themes/common-units/#color)-indicator-active-CarouselNew | $color-primary | $color-primary |
131 | | [textColor](../styles-and-themes/common-units/#color)-indicator-Carousel | *none* | *none* |
132 | | [textColor](../styles-and-themes/common-units/#color)-indicator-CarouselNew | $color-primary | $color-primary |
133 | | [textColor](../styles-and-themes/common-units/#color)-indicator-hover-Carousel | *none* | *none* |
134 | | [textColor](../styles-and-themes/common-units/#color)-indicator-hover-CarouselNew | $color-primary | $color-primary |
135 | | [width](../styles-and-themes/common-units/#size)-Carousel | *none* | *none* |
136 | | [width](../styles-and-themes/common-units/#size)-CarouselNew | 100% | 100% |
137 | | [width](../styles-and-themes/common-units/#size)-control-Carousel | *none* | *none* |
138 | | [width](../styles-and-themes/common-units/#size)-control-CarouselNew | 36px | 36px |
139 | | [width](../styles-and-themes/common-units/#size)-indicator-Carousel | *none* | *none* |
140 | | [width](../styles-and-themes/common-units/#size)-indicator-CarouselNew | 25px | 25px |
141 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Timer/TimerNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import type { CSSProperties, ForwardedRef } from "react";
2 | import { forwardRef, useEffect, useRef, useState, useCallback, useMemo } from "react";
3 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
4 |
5 | export interface TimerApi {
6 | pause(): void;
7 | resume(): void;
8 | isPaused(): boolean;
9 | isRunning(): boolean;
10 | }
11 |
12 | export const defaultProps = {
13 | enabled: true,
14 | interval: 1000,
15 | once: false,
16 | initialDelay: 0,
17 | };
18 |
19 | type TimerProps = {
20 | enabled?: boolean;
21 | interval?: number;
22 | once?: boolean;
23 | initialDelay?: number;
24 | onTick?: () => void | Promise<void>;
25 | registerComponentApi?: RegisterComponentApiFn;
26 | style?: CSSProperties;
27 | className?: string;
28 | } & React.HTMLAttributes<HTMLDivElement>;
29 |
30 | export const Timer = forwardRef(function Timer(
31 | {
32 | enabled = defaultProps.enabled,
33 | interval = defaultProps.interval,
34 | once = defaultProps.once,
35 | initialDelay = defaultProps.initialDelay,
36 | onTick,
37 | registerComponentApi,
38 | style,
39 | className,
40 | ...rest
41 | }: TimerProps,
42 | forwardedRef: ForwardedRef<HTMLDivElement>,
43 | ) {
44 | const [isPaused, setIsPaused] = useState(false);
45 | const [hasExecutedOnce, setHasExecutedOnce] = useState(false);
46 | const [hasEverStarted, setHasEverStarted] = useState(false);
47 | const intervalRef = useRef<NodeJS.Timeout | null>(null);
48 | const initialDelayRef = useRef<NodeJS.Timeout | null>(null);
49 | const handlerRunningRef = useRef(false);
50 |
51 | // Refs for current values to ensure handleTick has stable dependencies
52 | const enabledRef = useRef(enabled);
53 | const isPausedRef = useRef(isPaused);
54 | const intervalRef2 = useRef(interval);
55 | const onTickRef = useRef(onTick);
56 | const onceRef = useRef(once);
57 | const hasExecutedOnceRef = useRef(hasExecutedOnce);
58 | const hasEverStartedRef = useRef(hasEverStarted);
59 |
60 | // Update refs when values change
61 | enabledRef.current = enabled;
62 | isPausedRef.current = isPaused;
63 | intervalRef2.current = interval;
64 | onTickRef.current = onTick;
65 | onceRef.current = once;
66 | hasExecutedOnceRef.current = hasExecutedOnce;
67 | hasEverStartedRef.current = hasEverStarted;
68 |
69 | // Derived state
70 | const isRunning = enabled && !isPaused && (intervalRef.current !== null || initialDelayRef.current !== null);
71 | const isInInitialDelay = initialDelayRef.current !== null;
72 |
73 | // Timer API methods
74 | const pause = useCallback(() => {
75 | // Pause if timer is enabled and currently running (not already paused)
76 | if (enabled && !isPaused) {
77 | setIsPaused(true);
78 | if (intervalRef.current) {
79 | clearInterval(intervalRef.current);
80 | intervalRef.current = null;
81 | }
82 | if (initialDelayRef.current) {
83 | clearTimeout(initialDelayRef.current);
84 | initialDelayRef.current = null;
85 | }
86 | }
87 | }, [enabled, isPaused]);
88 |
89 | const resume = useCallback(() => {
90 | // Resume if timer is enabled and currently paused
91 | if (enabled && isPaused) {
92 | setIsPaused(false);
93 | // The useEffect will handle restarting the timer
94 | }
95 | }, [enabled, isPaused]);
96 |
97 | // Create API object once
98 | const timerApi = useMemo(() => ({
99 | pause,
100 | resume,
101 | isPaused: () => isPaused,
102 | isRunning: () => isRunning && !isPaused,
103 | }), [pause, resume, isPaused, isRunning]);
104 |
105 | // Register both APIs together
106 | useEffect(() => {
107 | if (registerComponentApi) {
108 | registerComponentApi(timerApi);
109 | }
110 | }, [registerComponentApi, timerApi]);
111 |
112 | const handleTick = useCallback(async () => {
113 | // Check if timer should still be running (enabled, not paused, valid interval)
114 | if (!enabledRef.current || isPausedRef.current || intervalRef2.current <= 0) {
115 | return;
116 | }
117 |
118 | // Prevent re-firing if the previous event hasn't completed yet
119 | if (handlerRunningRef.current) {
120 | return;
121 | }
122 |
123 | if (onTickRef.current) {
124 | handlerRunningRef.current = true;
125 | try {
126 | await onTickRef.current();
127 |
128 | // Mark that the timer has actually started executing (for initial delay logic)
129 | if (!hasEverStartedRef.current) {
130 | setHasEverStarted(true);
131 | }
132 |
133 | // If this is a "once" timer and it's the very first execution, mark it as executed
134 | // After the first execution, the timer becomes a regular timer that can be paused/resumed
135 | if (onceRef.current && !hasExecutedOnceRef.current) {
136 | setHasExecutedOnce(true);
137 | }
138 | } finally {
139 | handlerRunningRef.current = false;
140 | }
141 | }
142 | }, []);
143 |
144 | useEffect(() => {
145 | // Clear any existing timers first
146 | if (intervalRef.current) {
147 | clearInterval(intervalRef.current);
148 | intervalRef.current = null;
149 | }
150 | if (initialDelayRef.current) {
151 | clearTimeout(initialDelayRef.current);
152 | initialDelayRef.current = null;
153 | }
154 |
155 | // If "once" is true and the timer has already executed, don't start the timer
156 | if (once && hasExecutedOnce) {
157 | return;
158 | }
159 |
160 | if (enabled && !isPaused && interval > 0) {
161 | // Helper to start the actual timer
162 | const startTicking = () => {
163 | intervalRef.current = (once && !hasExecutedOnce)
164 | ? setTimeout(handleTick, interval) as any
165 | : setInterval(handleTick, interval);
166 | };
167 |
168 | // Only apply initial delay if timer has never been started before
169 | if (initialDelay > 0 && !hasEverStarted) {
170 | initialDelayRef.current = setTimeout(() => {
171 | initialDelayRef.current = null;
172 | startTicking();
173 | }, initialDelay);
174 | } else {
175 | startTicking();
176 | }
177 | }
178 |
179 | return () => {
180 | if (intervalRef.current) {
181 | clearInterval(intervalRef.current);
182 | intervalRef.current = null;
183 | }
184 | if (initialDelayRef.current) {
185 | clearTimeout(initialDelayRef.current);
186 | initialDelayRef.current = null;
187 | }
188 | };
189 | }, [enabled, interval, once, hasExecutedOnce, isPaused, initialDelay, hasEverStarted]);
190 |
191 | // Reset state when enabled changes
192 | useEffect(() => {
193 | if (enabled && once) {
194 | // Reset hasExecutedOnce when enabled changes from false to true for "once" timers
195 | setHasExecutedOnce(false);
196 | }
197 | if (!enabled) {
198 | // Reset pause state when timer is disabled
199 | setIsPaused(false);
200 | }
201 | }, [enabled, once]);
202 |
203 | // Timer is a non-visual component
204 | return (
205 | <div
206 | ref={forwardedRef}
207 | style={{ display: "none", ...style }}
208 | className={className}
209 | data-timer-enabled={enabled}
210 | data-timer-interval={interval}
211 | data-timer-initial-delay={initialDelay}
212 | data-timer-once={once}
213 | data-timer-running={isRunning}
214 | data-timer-paused={isPaused}
215 | data-timer-in-initial-delay={isInInitialDelay}
216 | data-timer-has-executed={hasExecutedOnce}
217 | {...rest}
218 | />
219 | );
220 | });
221 |
```
--------------------------------------------------------------------------------
/xmlui/src/components-core/theming/StyleRegistry.ts:
--------------------------------------------------------------------------------
```typescript
1 | // app/utils/styleUtils.ts
2 |
3 | import type { CSSProperties } from 'react';
4 |
5 | // --- Type Definitions ---
6 |
7 | // This type definition is now more powerful. It allows a value to be another
8 | // style object, enabling true nesting.
9 | export type StyleObjectType =
10 | CSSProperties & {
11 | [selectorOrAtRule: string]: StyleObjectType | CSSProperties[keyof CSSProperties];
12 | };
13 |
14 | interface StyleCacheEntry {
15 | className: string;
16 | styleHash: string;
17 | css: string;
18 | }
19 |
20 | // --- Helper Functions ---
21 |
22 | function hashString(str: string): string {
23 | let hash = 5381;
24 | let i = str.length;
25 | while (i) {
26 | hash = (hash * 33) ^ str.charCodeAt(--i);
27 | }
28 | let s = (hash >>> 0).toString(36);
29 | // console.log("hashString", str, "->", s);
30 | return s;
31 | }
32 |
33 | /**
34 | * Converts a camelCase string to kebab-case, but ignores CSS Custom Properties.
35 | * @param {string} str The string to convert.
36 | * @returns {string} The formatted string.
37 | */
38 | function toKebabCase(str: string): string {
39 | // NEW: If the string is a CSS Custom Property (starts with '--'),
40 | // return it as-is without any changes.
41 | if (str.startsWith('--')) {
42 | return str;
43 | }
44 | // Otherwise, convert from camelCase to kebab-case as before.
45 | return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
46 | }
47 |
48 |
49 | /**
50 | * Creates a stable, canonical JSON string from an object by sorting keys recursively.
51 | * This ensures that objects with the same content produce the same string regardless of key order.
52 | * @param obj The object to stringify.
53 | * @returns A stable string representation.
54 | */
55 | function stableJSONStringify(obj: any): string {
56 | return JSON.stringify(obj);
57 | // if (obj === null || typeof obj !== 'object') {
58 | // return JSON.stringify(obj);
59 | // }
60 | //
61 | // if (Array.isArray(obj)) {
62 | // const arrayStr = obj.map(item => stableJSONStringify(item)).join(',');
63 | // return `[${arrayStr}]`;
64 | // }
65 | //
66 | // const keys = Object.keys(obj).sort();
67 | // const props = keys.map(key => {
68 | // const value = stableJSONStringify(obj[key]);
69 | // return `"${key}":${value}`;
70 | // });
71 | //
72 | // return `{${props.join(',')}}`;
73 | }
74 |
75 | // --- The StyleRegistry Class (with updated logic) ---
76 |
77 | export class StyleRegistry {
78 | public cache: Map<string, StyleCacheEntry> = new Map();
79 | public rootClasses: Set<string> = new Set();
80 | public injected: Set<string> = new Set();
81 |
82 | // NEW: A map to track how many components are using a style.
83 | public refCounts: Map<string, number> = new Map();
84 |
85 | // NEW: A set to specifically track hashes injected by SSR.
86 | public ssrHashes: Set<string> = new Set();
87 |
88 | public register(styles: StyleObjectType): StyleCacheEntry {
89 | const key = stableJSONStringify(styles);
90 | const styleHash = hashString(key);
91 |
92 | const cachedEntry = this.cache.get(styleHash);
93 | if (cachedEntry) {
94 | return cachedEntry;
95 | }
96 |
97 | // The entry point for our new recursive generator.
98 | const className = `css-${styleHash}`;
99 | const css = this._generateCss(`.${className}`, styles);
100 |
101 | const entry: StyleCacheEntry = { className, styleHash, css };
102 | this.cache.set(styleHash, entry);
103 | return entry;
104 | }
105 |
106 | /**
107 | * [PRIVATE] Recursively generates CSS rules from a style object.
108 | * This is the new, more powerful engine.
109 | * @param selector - The CSS selector for the current context (e.g., '.css-123' or '&:hover').
110 | * @param styles - The style object to process.
111 | * @returns A string of CSS rules.
112 | */
113 | private _generateCss(selector: string, styles: StyleObjectType): string {
114 | const directProps: string[] = [];
115 | const nestedRules: string[] = [];
116 |
117 | // 1. Separate direct CSS properties from nested rules.
118 | for (const key in styles) {
119 | const value = styles[key];
120 | if (typeof value === 'object' && value !== null) {
121 | // It's a nested rule (e.g., '&:hover', '@media').
122 | nestedRules.push(this._processNestedRule(selector, key, value as StyleObjectType));
123 | } else {
124 | // It's a direct CSS property (e.g., 'backgroundColor').
125 | directProps.push(`${toKebabCase(key)}:${value};`);
126 | }
127 | }
128 |
129 | let finalCss = '';
130 |
131 | // 2. Generate the CSS for the direct properties at the current selector level.
132 | if (directProps.length > 0) {
133 | finalCss += `${selector} {${directProps.join('')}}`;
134 | }
135 |
136 | // 3. Append the CSS from all the processed nested rules.
137 | finalCss += nestedRules.join('');
138 |
139 | return finalCss;
140 | }
141 |
142 | private _processNestedRule(parentSelector: string, nestedKey: string, nestedStyles: StyleObjectType): string {
143 | // If the key is an at-rule (@media, @container, @keyframes), wrap the recursive call.
144 | if (nestedKey.startsWith('@')) {
145 | // The inner content is generated relative to the original parent selector.
146 | return `${nestedKey}{${this._generateCss(parentSelector, nestedStyles)}}`;
147 | }
148 |
149 | // If the key is a nested selector, resolve the '&' placeholder.
150 | // e.g., parent='.css-123', nestedKey='&:hover' -> '.css-123:hover'
151 | const newSelector = nestedKey.replace(/&/g, parentSelector);
152 | return this._generateCss(newSelector, nestedStyles);
153 | }
154 |
155 | public getSsrStyles(): string {
156 | const allCss = Array.from(this.cache.values()).map(entry => entry.css).join('');
157 | // Wrap the entire output in our top-most layer.
158 | return `@layer dynamic {${allCss}}`;
159 | }
160 |
161 | /**
162 | * Adds a class name to be applied to the <html> tag.
163 | */
164 | public addRootClasses(classNames: Array<string>): void {
165 | classNames.forEach((className)=>{
166 | this.rootClasses.add(className);
167 | });
168 | }
169 |
170 | /**
171 | * Returns a space-separated string of all collected html classes.
172 | */
173 | public getRootClasses(): string {
174 | return Array.from(this.rootClasses).join(' ');
175 | }
176 |
177 |
178 |
179 | // NEW: A helper to safely get the current reference count.
180 | public getRefCount(styleHash: string): number {
181 | return this.refCounts.get(styleHash) || 0;
182 | }
183 |
184 |
185 | /**
186 | * Increments the reference count for a given style hash.
187 | */
188 | public incrementRef(styleHash: string): void {
189 | const newCount = (this.refCounts.get(styleHash) || 0) + 1;
190 | this.refCounts.set(styleHash, newCount);
191 | // console.log("incrementing ref count for styleHash:", styleHash, "to", newCount);
192 | }
193 |
194 | /**
195 | * Decrements the reference count for a given style hash.
196 | * @returns {number} The new reference count.
197 | */
198 | public decrementRef(styleHash: string): number {
199 | const currentCount = this.refCounts.get(styleHash) || 0;
200 | const newCount = Math.max(0, currentCount - 1);
201 | // console.log("decrementing ref count for styleHash:", styleHash, "from", currentCount, "to", newCount);
202 |
203 | if (newCount > 0) {
204 | this.refCounts.set(styleHash, newCount);
205 | } else {
206 | // If the count is zero, remove it from the map.
207 | this.refCounts.delete(styleHash);
208 | }
209 |
210 | return newCount;
211 | }
212 | }
```
--------------------------------------------------------------------------------
/packages/xmlui-playground/src/utils/helpers.ts:
--------------------------------------------------------------------------------
```typescript
1 | import type { PlaygroundState } from "../state/store";
2 | import JSZip from "jszip";
3 | import { saveAs } from "file-saver";
4 | import {
5 | type ComponentDef,
6 | type CompoundComponentDef,
7 | type ThemeDefinition,
8 | XmlUiHelper,
9 | type XmlUiNode,
10 | } from "xmlui";
11 | import { decompress } from "../playground/utils";
12 | import { base64ToUint8Array } from "../../../../xmlui/src/components-core/utils/base64-utils";
13 |
14 | export function normalizePath(url?: string): string | undefined {
15 | if (!url) {
16 | return undefined;
17 | }
18 | if (url.startsWith("http://") || url.startsWith("https://")) {
19 | return url;
20 | }
21 | if (typeof window === "undefined") {
22 | return url;
23 | }
24 | // @ts-ignore
25 | const prefix = window.__PUBLIC_PATH || "";
26 | if (!prefix) {
27 | return url;
28 | }
29 | const prefixWithoutTrailingSlash = prefix.endsWith("/") ? prefix.slice(0, -1) : prefix;
30 | const urlWithoutLeadingSlash = url.startsWith("/") ? url.slice(1) : url;
31 |
32 | return `${prefixWithoutTrailingSlash}/${urlWithoutLeadingSlash}`;
33 | }
34 |
35 | async function fetchWithoutCache(url: string) {
36 | return fetch(normalizePath(url) as any, {
37 | headers: {
38 | "Cache-Control": "no-cache, no-store",
39 | },
40 | });
41 | }
42 |
43 | export function serialize(component: ComponentDef | CompoundComponentDef): string {
44 | if (component) {
45 | const xh = new XmlUiHelper();
46 | try {
47 | const node = xh.transformComponentDefinition(component) as XmlUiNode;
48 | return xh.serialize(node, { prettify: true });
49 | } catch (e) {
50 | console.log(e);
51 | return "";
52 | }
53 | }
54 | return "";
55 | }
56 |
57 | export async function decompressData(source: string) {
58 | const base64 = decodeURIComponent(source);
59 | const compressed = base64ToUint8Array(base64);
60 | return await decompress(compressed);
61 | }
62 |
63 | export const INITIAL_PLAYGROUND_STATE: PlaygroundState = {
64 | editorStatus: "idle",
65 | status: "idle",
66 | options: {
67 | orientation: "horizontal",
68 | swapped: false,
69 | content: "app",
70 | previewMode: false,
71 | id: 0,
72 | language: "xmlui",
73 | },
74 | text: "",
75 | appDescription: {
76 | config: {
77 | name: "",
78 | appGlobals: {},
79 | resources: {},
80 | themes: [],
81 | },
82 | components: [],
83 | app: "",
84 | },
85 | originalAppDescription: {
86 | config: {
87 | name: "",
88 | appGlobals: {},
89 | resources: {},
90 | themes: [],
91 | },
92 | components: [],
93 | app: "",
94 | },
95 | error: null,
96 | };
97 |
98 | function removeWhitespace(obj: any) {
99 | if (typeof obj === "string") {
100 | return obj.replace(/\s+/g, " ").trim(); // Remove extra whitespaces and newlines
101 | } else if (obj !== null && typeof obj === "object") {
102 | const newObj: any = Array.isArray(obj) ? [] : {};
103 | for (const key in obj) {
104 | newObj[key] = removeWhitespace(obj[key]);
105 | }
106 | return newObj;
107 | }
108 | return obj; // Return the value as is if not a string or object
109 | }
110 |
111 | export const handleDownloadZip = async (appDescription: any) => {
112 | const operatingSystem = getOperatingSystem();
113 |
114 | const zip = new JSZip();
115 |
116 | const xmluiFolder = zip.folder("xmlui");
117 | const xmluiStandalone = await fetchWithoutCache(
118 | "/resources/files/for-download/xmlui/xmlui-standalone.umd.js",
119 | ).then((res) => res.blob());
120 | xmluiFolder?.file("xmlui-standalone.umd.js", xmluiStandalone);
121 |
122 | zip.file("Main.xmlui", appDescription.app);
123 | zip.file("config.json", JSON.stringify(appDescription.config, null, 2));
124 |
125 | if (appDescription.components.length > 0) {
126 | const components = zip.folder("components");
127 | appDescription.components.forEach((component: { name: string; component: string }) => {
128 | components?.file(`${component.name}.xmlui`, component.component);
129 | });
130 | }
131 | if (appDescription.config.themes.length > 0) {
132 | const themes = zip.folder("themes");
133 | appDescription.config.themes.forEach((theme: ThemeDefinition) => {
134 | themes?.file(`${theme.id}.json`, JSON.stringify(theme, null, 2));
135 | });
136 | }
137 |
138 | const emulatedApi = appDescription.api;
139 | if (emulatedApi) {
140 | const indexWithApiHtml = await fetchWithoutCache(
141 | "/resources/files/for-download/index-with-api.html",
142 | ).then((res) => res.blob());
143 | zip.file("index.html", indexWithApiHtml);
144 | xmluiFolder?.file(
145 | "mockApiDef.js",
146 | `window.XMLUI_MOCK_API = ${JSON.stringify(removeWhitespace(emulatedApi), null, 2)};`,
147 | );
148 |
149 | const emulatedApiWorker = await fetchWithoutCache(
150 | "/resources/files/for-download/mockApi.js",
151 | ).then((res) => res.blob());
152 | zip.file("mockApi.js", emulatedApiWorker);
153 | } else {
154 | const indexHtml = await fetchWithoutCache("/resources/files/for-download/index.html").then(
155 | (res) => res.blob(),
156 | );
157 | zip.file("index.html", indexHtml);
158 | }
159 |
160 | const startBat = await fetchWithoutCache("/resources/files/for-download/start.bat").then((res) =>
161 | res.blob(),
162 | );
163 |
164 | if (operatingSystem === "Windows") {
165 | zip.file("start.bat", startBat);
166 | } else {
167 | let fileName = operatingSystem === "Linux" ? "start-linux.sh" : "start-darwin.sh";
168 | const startSh = await fetchWithoutCache(`/resources/files/for-download/${fileName}`).then(
169 | (res) => res.blob(),
170 | );
171 | zip.file("start.sh", startSh, {
172 | unixPermissions: "777",
173 | });
174 | }
175 |
176 | try {
177 | const content = await zip.generateAsync({
178 | type: "blob",
179 | platform: operatingSystem === "Windows" ? "DOS" : "UNIX",
180 | });
181 | saveAs(content, `${(appDescription.config.name || "xmlui-playground-app").trim()}.zip`);
182 | } catch (error) {
183 | console.error("An error occurred while generating the ZIP:", error);
184 | }
185 | };
186 |
187 | export function preprocessCode(code: string): string {
188 | // Split code by newlines
189 | const lines = code.split("\n");
190 |
191 | // Remove whitespace-only lines from the beginning and end
192 | let start = 0;
193 | while (start < lines.length && lines[start].trim() === "") {
194 | start++;
195 | }
196 |
197 | let end = lines.length - 1;
198 | while (end >= 0 && lines[end].trim() === "") {
199 | end--;
200 | }
201 |
202 | const trimmedLines = lines.slice(start, end + 1);
203 |
204 | // Calculate the minimum indentation
205 | const minIndent = Math.min(
206 | ...trimmedLines
207 | .filter((line) => line.trim() !== "") // Ignore empty lines for indentation
208 | .map((line) => line.match(/^\s*/)?.[0].length || 0), // Count leading spaces
209 | );
210 |
211 | // Remove minIndent spaces from the beginning of each line
212 | const result = trimmedLines.map((line) =>
213 | line.startsWith(" ".repeat(minIndent)) ? line.slice(minIndent) : line,
214 | );
215 |
216 | // Join lines back into a single string
217 | return result.join("\n");
218 | }
219 |
220 | function getOperatingSystem() {
221 | const userAgent = window.navigator.userAgent;
222 | const platform = window.navigator.platform;
223 |
224 | if (/Win/.test(platform)) {
225 | return "Windows";
226 | }
227 | if (/Mac/.test(platform)) {
228 | return "MacOS";
229 | }
230 | if (/Linux/.test(platform)) {
231 | return "Linux";
232 | }
233 | if (/Android/.test(userAgent)) {
234 | return "Android";
235 | }
236 | if (/iPhone|iPad|iPod/.test(userAgent)) {
237 | return "iOS";
238 | }
239 | return "Unknown OS";
240 | }
241 |
```
--------------------------------------------------------------------------------
/xmlui/scripts/generate-docs/logging-standards.mjs:
--------------------------------------------------------------------------------
```
1 | import { logger } from "./logger.mjs";
2 |
3 | /**
4 | * Standardized logging utilities for documentation generation scripts
5 | * Provides consistent logging patterns and message formatting
6 | */
7 |
8 | /**
9 | * Log levels in order of severity (lowest to highest)
10 | */
11 | export const LOG_LEVELS = {
12 | INFO: "info",
13 | WARN: "warn",
14 | ERROR: "error"
15 | };
16 |
17 | /**
18 | * Standard logging patterns for common operations
19 | */
20 | export const LOGGING_PATTERNS = {
21 | // Operation start/completion
22 | OPERATION_START: (operation) => `Starting ${operation}...`,
23 | OPERATION_COMPLETE: (operation) => `Completed ${operation}`,
24 | OPERATION_FAILED: (operation, error) => `Failed ${operation}: ${error}`,
25 |
26 | // File operations
27 | FILE_PROCESSING: (filePath) => `Processing file: ${filePath}`,
28 | FILE_WRITTEN: (filePath) => `Written file: ${filePath}`,
29 | FILE_DELETED: (filePath) => `Deleted file: ${filePath}`,
30 | FILE_NOT_FOUND: (filePath) => `File not found: ${filePath}`,
31 |
32 | // Directory operations
33 | DIRECTORY_CREATED: (dirPath) => `Created directory: ${dirPath}`,
34 | DIRECTORY_CLEANED: (dirPath) => `Cleaned directory: ${dirPath}`,
35 |
36 | // Component processing
37 | COMPONENT_PROCESSING: (componentName) => `Processing component: ${componentName}`,
38 | COMPONENT_SKIPPED: (componentName, reason) => `Skipped component ${componentName}: ${reason}`,
39 |
40 | // Package/Extension operations
41 | PACKAGE_LOADING: (packageName) => `Loading package: ${packageName}`,
42 | PACKAGE_LOADED: (packageName) => `Loaded package: ${packageName}`,
43 | PACKAGE_SKIPPED: (packageName, reason) => `Skipped package ${packageName}: ${reason}`,
44 |
45 | // Configuration
46 | CONFIG_LOADING: (configPath) => `Loading configuration from: ${configPath}`,
47 | CONFIG_LOADED: (configPath) => `Configuration loaded from: ${configPath}`,
48 |
49 | // Progress indicators
50 | PROGRESS: (current, total, operation) => `Progress: ${current}/${total} ${operation}`,
51 |
52 | // Validation
53 | VALIDATION_PASSED: (item) => `Validation passed: ${item}`,
54 | VALIDATION_FAILED: (item, reason) => `Validation failed for ${item}: ${reason}`,
55 |
56 | // Generic warnings and errors
57 | DEPRECATION_WARNING: (feature) => `DEPRECATED: ${feature} is deprecated and will be removed in a future version`,
58 | FEATURE_NOT_SUPPORTED: (feature) => `Feature not supported: ${feature}`,
59 | UNEXPECTED_CONDITION: (condition) => `Unexpected condition encountered: ${condition}`
60 | };
61 |
62 | /**
63 | * Standardized logging functions with consistent formatting
64 | */
65 | export const standardLogger = {
66 | /**
67 | * Log an informational message
68 | */
69 | info: (message, ...additionalArgs) => {
70 | if (additionalArgs.length > 0) {
71 | logger.info(message, ...additionalArgs);
72 | } else {
73 | logger.info(message);
74 | }
75 | },
76 |
77 | /**
78 | * Log a warning message
79 | */
80 | warn: (message, ...additionalArgs) => {
81 | if (additionalArgs.length > 0) {
82 | logger.warn(message, ...additionalArgs);
83 | } else {
84 | logger.warn(message);
85 | }
86 | },
87 |
88 | /**
89 | * Log an error message
90 | */
91 | error: (message, ...additionalArgs) => {
92 | if (additionalArgs.length > 0) {
93 | logger.error(message, ...additionalArgs);
94 | } else {
95 | logger.error(message);
96 | }
97 | },
98 |
99 | /**
100 | * Log the start of an operation
101 | */
102 | operationStart: (operation) => {
103 | logger.info(LOGGING_PATTERNS.OPERATION_START(operation));
104 | },
105 |
106 | /**
107 | * Log the completion of an operation
108 | */
109 | operationComplete: (operation) => {
110 | logger.info(LOGGING_PATTERNS.OPERATION_COMPLETE(operation));
111 | },
112 |
113 | /**
114 | * Log a failed operation
115 | */
116 | operationFailed: (operation, error) => {
117 | logger.error(LOGGING_PATTERNS.OPERATION_FAILED(operation, error));
118 | },
119 |
120 | /**
121 | * Log file processing
122 | */
123 | fileProcessing: (filePath) => {
124 | logger.info(LOGGING_PATTERNS.FILE_PROCESSING(filePath));
125 | },
126 |
127 | /**
128 | * Log successful file write
129 | */
130 | fileWritten: (filePath) => {
131 | logger.info(LOGGING_PATTERNS.FILE_WRITTEN(filePath));
132 | },
133 |
134 | /**
135 | * Log component processing
136 | */
137 | componentProcessing: (componentName) => {
138 | logger.info(LOGGING_PATTERNS.COMPONENT_PROCESSING(componentName));
139 | },
140 |
141 | /**
142 | * Log skipped component
143 | */
144 | componentSkipped: (componentName, reason) => {
145 | logger.warn(LOGGING_PATTERNS.COMPONENT_SKIPPED(componentName, reason));
146 | },
147 |
148 | /**
149 | * Log package loading
150 | */
151 | packageLoading: (packageName) => {
152 | logger.info(LOGGING_PATTERNS.PACKAGE_LOADING(packageName));
153 | },
154 |
155 | /**
156 | * Log package loaded
157 | */
158 | packageLoaded: (packageName) => {
159 | logger.info(LOGGING_PATTERNS.PACKAGE_LOADED(packageName));
160 | },
161 |
162 | /**
163 | * Log skipped package
164 | */
165 | packageSkipped: (packageName, reason) => {
166 | logger.warn(LOGGING_PATTERNS.PACKAGE_SKIPPED(packageName, reason));
167 | },
168 |
169 | /**
170 | * Log configuration loading
171 | */
172 | configLoading: (configPath) => {
173 | logger.info(LOGGING_PATTERNS.CONFIG_LOADING(configPath));
174 | },
175 |
176 | /**
177 | * Log progress
178 | */
179 | progress: (current, total, operation) => {
180 | logger.info(LOGGING_PATTERNS.PROGRESS(current, total, operation));
181 | },
182 |
183 | /**
184 | * Log deprecation warning
185 | */
186 | deprecationWarning: (feature) => {
187 | logger.warn(LOGGING_PATTERNS.DEPRECATION_WARNING(feature));
188 | }
189 | };
190 |
191 | /**
192 | * Creates a scoped logger for a specific module/operation
193 | */
194 | export function createScopedLogger(scope) {
195 | return {
196 | info: (message, ...args) => standardLogger.info(`[${scope}] ${message}`, ...args),
197 | warn: (message, ...args) => standardLogger.warn(`[${scope}] ${message}`, ...args),
198 | error: (message, ...args) => standardLogger.error(`[${scope}] ${message}`, ...args),
199 | operationStart: (operation) => standardLogger.operationStart(`${scope}: ${operation}`),
200 | operationComplete: (operation) => standardLogger.operationComplete(`${scope}: ${operation}`),
201 | operationFailed: (operation, error) => standardLogger.operationFailed(`${scope}: ${operation}`, error),
202 |
203 | // File operations
204 | fileProcessing: (filePath) => standardLogger.fileProcessing(filePath),
205 | fileWritten: (filePath) => standardLogger.fileWritten(filePath),
206 |
207 | // Component operations
208 | componentProcessing: (componentName) => standardLogger.componentProcessing(componentName),
209 | componentSkipped: (componentName, reason) => standardLogger.componentSkipped(componentName, reason),
210 |
211 | // Package operations
212 | packageLoading: (packageName) => standardLogger.packageLoading(packageName),
213 | packageLoaded: (packageName) => standardLogger.packageLoaded(packageName),
214 | packageSkipped: (packageName, reason) => standardLogger.packageSkipped(packageName, reason),
215 |
216 | // Configuration
217 | configLoading: (configPath) => standardLogger.configLoading(configPath),
218 |
219 | // Progress
220 | progress: (current, total, operation) => standardLogger.progress(current, total, operation),
221 |
222 | // Warnings
223 | deprecationWarning: (feature) => standardLogger.deprecationWarning(feature)
224 | };
225 | }
226 |
```