This is page 37 of 181. Use http://codebase.md/xmlui-org/xmlui/mockApiDef.js?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── layout-changes.md
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ └── lorem-ipsum.png
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ └── welcome-to-the-xmlui-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── 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
│ │ └── 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
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Animation.tsx
│ │ │ ├── AnimationNative.tsx
│ │ │ ├── FadeAnimation.tsx
│ │ │ ├── FadeInAnimation.tsx
│ │ │ ├── FadeOutAnimation.tsx
│ │ │ ├── index.tsx
│ │ │ ├── ScaleAnimation.tsx
│ │ │ └── SlideInAnimation.tsx
│ │ └── tsconfig.json
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ ├── tsconfig.json
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── HelloWorld.module.scss
│ │ │ ├── HelloWorld.tsx
│ │ │ ├── HelloWorldNative.tsx
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── IPhoneFrame.module.scss
│ │ │ ├── IPhoneFrame.tsx
│ │ │ ├── MacOSAppFrame.module.scss
│ │ │ ├── MacOSAppFrame.tsx
│ │ │ ├── WindowsAppFrame.module.scss
│ │ │ └── WindowsAppFrame.tsx
│ │ └── tsconfig.json
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── LazyPdfNative.tsx
│ │ │ ├── Pdf.module.scss
│ │ │ └── Pdf.tsx
│ │ └── tsconfig.json
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── hooks
│ │ │ │ ├── usePlayground.ts
│ │ │ │ └── useToast.ts
│ │ │ ├── index.tsx
│ │ │ ├── playground
│ │ │ │ ├── Box.module.scss
│ │ │ │ ├── Box.tsx
│ │ │ │ ├── CodeSelector.tsx
│ │ │ │ ├── ConfirmationDialog.module.scss
│ │ │ │ ├── ConfirmationDialog.tsx
│ │ │ │ ├── Editor.tsx
│ │ │ │ ├── Header.module.scss
│ │ │ │ ├── Header.tsx
│ │ │ │ ├── Playground.tsx
│ │ │ │ ├── PlaygroundContent.module.scss
│ │ │ │ ├── PlaygroundContent.tsx
│ │ │ │ ├── PlaygroundNative.module.scss
│ │ │ │ ├── PlaygroundNative.tsx
│ │ │ │ ├── Preview.module.scss
│ │ │ │ ├── Preview.tsx
│ │ │ │ ├── Select.module.scss
│ │ │ │ ├── StandalonePlayground.tsx
│ │ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ │ ├── ThemeSwitcher.module.scss
│ │ │ │ ├── ThemeSwitcher.tsx
│ │ │ │ ├── ToneSwitcher.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── providers
│ │ │ │ ├── Toast.module.scss
│ │ │ │ └── ToastProvider.tsx
│ │ │ ├── state
│ │ │ │ └── store.ts
│ │ │ ├── themes
│ │ │ │ └── theme.ts
│ │ │ └── utils
│ │ │ └── helpers.ts
│ │ └── tsconfig.json
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Search.module.scss
│ │ │ └── Search.tsx
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ ├── src
│ │ ├── Carousel
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── FancyButton
│ │ │ ├── FancyButton.module.scss
│ │ │ ├── FancyButton.tsx
│ │ │ └── FancyButton.xmlui
│ │ ├── Hello
│ │ │ ├── Hello.tsx
│ │ │ ├── Hello.xmlui
│ │ │ └── Hello.xmlui.xs
│ │ ├── HeroSection
│ │ │ ├── HeroSection.module.scss
│ │ │ ├── HeroSection.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── 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
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.mjs
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── 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.mjs
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/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/TableOfContents/TableOfContents.module.scss:
--------------------------------------------------------------------------------
```scss
1 | @use "../../components-core/theming/themes" as t;
2 |
3 | $themeVars: ();
4 | @function createThemeVar($componentVariable) {
5 | $themeVars: t.appendThemeVar($themeVars, $componentVariable) !global;
6 | @return t.getThemeVar($themeVars, $componentVariable);
7 | }
8 |
9 | $component: "TableOfContents";
10 | $backgroundColor-TableOfContents: createThemeVar("backgroundColor-#{$component}");
11 | $width-TableOfContents: createThemeVar("width-#{$component}");
12 | $height-TableOfContents: createThemeVar("height-#{$component}");
13 | $themeVars: t.composeBorderVars($themeVars, $component);
14 | $themeVars: t.composePaddingVars($themeVars, $component);
15 |
16 | $componentItem: "TableOfContentsItem";
17 | $themeVars: t.composeTextVars($themeVars, $componentItem);
18 | $themeVars: t.composeBorderVars($themeVars, $componentItem);
19 | $themeVars: t.composeBorderVars($themeVars, "#{$componentItem}--hover");
20 | $themeVars: t.composeBorderVars($themeVars, "#{$componentItem}--active");
21 | $themeVars: t.composePaddingVars($themeVars, $componentItem);
22 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-1");
23 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-1");
24 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-2");
25 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-2");
26 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-3");
27 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-3");
28 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-4");
29 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-4");
30 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-5");
31 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-5");
32 | $themeVars: t.composePaddingVars($themeVars, "#{$componentItem}-level-6");
33 | $themeVars: t.composeTextVars($themeVars, "#{$componentItem}-level-6");
34 |
35 | @layer components {
36 | .nav {
37 | border-width: createThemeVar("borderWidth-#{$component}");
38 | border-color: createThemeVar("borderColor-#{$component}");
39 | border-style: createThemeVar("borderStyle-#{$component}");
40 | @include t.borderVars($themeVars, $component);
41 | @include t.paddingVars($themeVars, $component);
42 | background-color: $backgroundColor-TableOfContents;
43 | min-width: 250px;
44 | align-self: flex-start;
45 | width: $width-TableOfContents;
46 | height: $height-TableOfContents;
47 | max-height: calc(100vh - var(--header-abs-height) - var(--footer-abs-height));
48 | overflow-y: auto;
49 | overflow-x: hidden;
50 | z-index: 99;
51 | top: var(--header-height);
52 | position: sticky;
53 | scrollbar-width: thin;
54 | // --- Do not collapse these padding properties; they are intentionally expanded
55 | margin-top: createThemeVar("marginTop-#{$component}");
56 | margin-bottom: createThemeVar("marginBottom-#{$component}");
57 |
58 | .list {
59 | margin: 0;
60 | padding: 0;
61 | list-style: none;
62 |
63 | .listItem {
64 | list-style-type: none;
65 | @include t.borderVars($themeVars, $componentItem);
66 |
67 | .link {
68 | display: block;
69 | overflow-wrap: break-word;
70 | color: createThemeVar("textColor-#{$componentItem}");
71 | @include t.paddingVars($themeVars, $componentItem);
72 | @include t.textVars($themeVars, $componentItem);
73 |
74 | &.head_1 {
75 | @include t.paddingVars($themeVars, "#{$componentItem}-level-1");
76 | @include t.textVars($themeVars, "#{$componentItem}-level-1");
77 | }
78 |
79 | &.head_2 {
80 | @include t.paddingVars($themeVars, "#{$componentItem}-level-2");
81 | @include t.textVars($themeVars, "#{$componentItem}-level-2");
82 | }
83 |
84 | &.head_3 {
85 | @include t.paddingVars($themeVars, "#{$componentItem}-level-3");
86 | @include t.textVars($themeVars, "#{$componentItem}-level-3");
87 | }
88 |
89 | &.head_4 {
90 | @include t.paddingVars($themeVars, "#{$componentItem}-level-4");
91 | @include t.textVars($themeVars, "#{$componentItem}-level-4");
92 | }
93 |
94 | &.head_5 {
95 | @include t.paddingVars($themeVars, "#{$componentItem}-level-5");
96 | @include t.textVars($themeVars, "#{$componentItem}-level-5");
97 | }
98 |
99 | &.head_6 {
100 | @include t.paddingVars($themeVars, "#{$componentItem}-level-6");
101 | @include t.textVars($themeVars, "#{$componentItem}-level-6");
102 | }
103 | }
104 |
105 | &:hover {
106 | @include t.borderVars($themeVars, "#{$componentItem}--hover");
107 | background-color: createThemeVar("backgroundColor-#{$componentItem}--hover");
108 |
109 | .link {
110 | font-weight: createThemeVar("fontWeight-#{$componentItem}--hover");
111 | color: createThemeVar("textColor-#{$componentItem}--hover");
112 |
113 | &.head_1 {
114 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-1--hover");
115 | }
116 | &.head_2 {
117 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-2--hover");
118 | }
119 | &.head_3 {
120 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-3--hover");
121 | }
122 | &.head_4 {
123 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-4--hover");
124 | }
125 | &.head_5 {
126 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-5--hover");
127 | }
128 | &.head_6 {
129 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-6--hover");
130 | }
131 | }
132 | }
133 |
134 | &.active {
135 | @include t.borderVars($themeVars, "#{$componentItem}--active");
136 | background-color: createThemeVar("backgroundColor-#{$componentItem}--active");
137 |
138 | .link {
139 | color: createThemeVar("textColor-#{$componentItem}--active");
140 | font-weight: createThemeVar("fontWeight-#{$componentItem}--active");
141 |
142 | &.head_1 {
143 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-1--active");
144 | }
145 | &.head_2 {
146 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-2--active");
147 | }
148 | &.head_3 {
149 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-3--active");
150 | }
151 | &.head_4 {
152 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-4--active");
153 | }
154 | &.head_5 {
155 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-5--active");
156 | }
157 | &.head_6 {
158 | font-weight: createThemeVar("fontWeight-#{$componentItem}-level-6--active");
159 | }
160 | }
161 | }
162 | }
163 | }
164 | }
165 | }
166 |
167 | :export {
168 | themeVars: t.json-stringify($themeVars);
169 | }
170 |
```
--------------------------------------------------------------------------------
/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 | }
```
--------------------------------------------------------------------------------
/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 |
```
--------------------------------------------------------------------------------
/docs/public/pages/tutorial-09.md:
--------------------------------------------------------------------------------
```markdown
1 | # Invoice Details
2 |
3 | We've seen that the `Invoices` [Table](/components/Table) includes a `Details` [Column](/components/Column) with an icon. Clicking the icon opens a [ModalDialog](/components/ModalDialog) and sends it the current row of the table as `$item`.
4 |
5 | ```xmlui /detailsDialog/
6 | <Table data="{invoices}">
7 | <Column bindTo="invoice_number" />
8 | <Column bindTo="client" />
9 | <Column bindTo="issue_date" />
10 | <Column bindTo="due_date" />
11 | <Column bindTo="paid_date" />
12 | <Column header="total">
13 | ${$item.total}
14 | </Column>
15 | <Column header="Status">
16 | <StatusBadge status="{$item.status}" />
17 | </Column>
18 | <Column canSort="{false}" header="Details">
19 | <Icon name="doc-outline" onClick="detailsDialog.open($item)" />
20 | </Column>
21 | </Table>
22 | ```
23 |
24 | ```xmlui /detailsDialog/
25 | <ModalDialog id="detailsDialog">
26 | <InvoiceDetails details="{$params[0]}" />
27 | </ModalDialog>
28 | ```
29 |
30 | The `ModalDialog` wraps an `InvoiceDetails` component which displays an invoice and enables editing. Click the `Details` icon to open the viewer/editor.
31 |
32 | ```xmlui-pg noHeader height="500px"
33 | ---app
34 | <App>
35 | <Table gap="0" data="{[window.sampleInvoice]}">
36 | <Column canSort="{false}" bindTo="invoice_number" />
37 | <Column canSort="{false}" bindTo="client" />
38 | <Column canSort="{false}" bindTo="issue_date" />
39 | <Column canSort="{false}" bindTo="due_date" />
40 | <Column canSort="{false}" bindTo="paid_date" />
41 | <Column canSort="{false}" header="total">
42 | ${$item.total}
43 | </Column>
44 | <Column canSort="{false}" header="Status">
45 | <StatusBadge status="{$item.status}" />
46 | </Column>
47 | <Column canSort="{false}" header="Details">
48 | <Icon name="doc-outline" onClick="detailsDialog.open($item)" />
49 | </Column>
50 | </Table>
51 |
52 | <Theme
53 | maxWidth-ModalDialog="50%"
54 | backgroundColor-overlay-ModalDialog="rgba(0,0,0,0.5)">
55 | <ModalDialog id="detailsDialog">
56 | <InvoiceDetails details="{$params[0]}" />
57 | </ModalDialog>
58 | </Theme>
59 | </App>
60 | ---comp
61 | <Component
62 | name="StatusBadge"
63 | var.statusColors="{{
64 | draft: { background: '#f59e0b', label: 'white' },
65 | sent: { background: '#3b82f6', label: 'white' },
66 | paid: { background: '#10b981', label: 'white' }
67 | }}"
68 | >
69 | <Badge
70 | value="{$props.status}"
71 | colorMap="{statusColors}"
72 | variant="pill"
73 | />
74 | </Component>
75 | ---comp
76 | <Component name="InvoiceDetails">
77 |
78 | <variable name="details" value="{$props.details}" />
79 |
80 | <Form>
81 |
82 | <Table width="100%" data="{[details]}">
83 | <Column canSort="{false}" bindTo="invoice_number" />
84 | <Column canSort="{false}" bindTo="client" />
85 | <Column canSort="{false}" bindTo="issue_date" />
86 | <Column canSort="{false}" bindTo="due_date" />
87 | <Column canSort="{false}" header="Status">
88 | <StatusBadge status="{$item.status}" />
89 | </Column>
90 | </Table>
91 |
92 |
93 | <VStack gap="0">
94 | <Text>Notes:</Text>
95 | <FormItem bindTo="notes" initialValue="{window.coalesce(details.notes)}" />
96 | </VStack>
97 |
98 | <VStack gap="0">
99 | <Text>Status:</Text>
100 | <FormItem type="select" bindTo="status" initialValue="{details.status}" enabled="{details.status !== 'paid'}">
101 | <Option label="sent" value="sent" />
102 | <Option label="paid" value="paid" />
103 | <Option label="draft" value="draft" />
104 | <Option value="{$item.name}" label="{$item.name}" />
105 | </FormItem>
106 | </VStack>
107 |
108 |
109 | <Table width="100%" data="{JSON.parse(details.items)}">
110 | <Column bindTo="name" />
111 | <Column bindTo="quantity" />
112 | <Column bindTo="total">
113 | ${$item.total}
114 | </Column>
115 | <Column header="price">
116 | ${$item.price}
117 | </Column>
118 | </Table>
119 |
120 | <event name="submit">
121 | <APICall
122 | url="https://httpbin.org/post"
123 | method="POST"
124 | inProgressNotificationMessage="Updating invoice..."
125 | completedNotificationMessage="Invoice updated successfully"
126 | body="{
127 | {
128 | number: details.invoice_number,
129 | status: $param.status,
130 | notes: $param.notes
131 | }
132 | }"
133 | onSuccess="Actions.navigate('/invoices')"
134 | />
135 | </event>
136 |
137 | </Form>
138 |
139 | </Component>
140 | ```
141 |
142 | Here's the `InvoiceDetails` component.
143 |
144 | ```xmlui
145 | <Component name="InvoiceDetails">
146 | <Table width="100%" data="{[$props.details]}">
147 | <Column canSort="{false}" bindTo="invoice_number" />
148 | <Column canSort="{false}" bindTo="client" />
149 | <Column canSort="{false}" bindTo="issue_date" />
150 | <Column canSort="{false}" bindTo="due_date" />
151 | <Column canSort="{false}" header="Status">
152 | <StatusBadge status="{$item.status}" />
153 | </Column>
154 | </Table>
155 | <Form submitUrl="/api/invoices/{$props.details.invoice_number}"
156 | submitMethod="PUT"
157 | >
158 | <FormItem
159 | label="Notes"
160 | bindTo="notes"
161 | initialValue="{window.coalesce($props.details.notes)}" />
162 | <FormItem label="Status" bindTo="status"
163 | initialValue="{$props.details.status}"
164 | type="select"
165 | enabled="{$props.details.status !== 'paid'}"
166 | >
167 | <Option label="sent" value="sent" />
168 | <Option label="paid" value="paid" />
169 | <Option label="draft" value="draft" />
170 | </FormItem>
171 | <Table data="{JSON.parse($props.details.items)}">
172 | <Column bindTo="name" />
173 | <Column bindTo="quantity" />
174 | <Column bindTo="total">
175 | ${$item.total}
176 | </Column>
177 | <Column header="price">
178 | ${$item.price}
179 | </Column>
180 | </Table>
181 | </Form>
182 | </Component>
183 | ```
184 |
185 | There are two `Table`s. The first has only one row to report the top-level details. Since `$props.details` is an object, not an array, we wrap it in square brackets (`[ ]`) to provide the array that `Table` expects.
186 |
187 | The second `Table` reports one row per lineitem. The Invoices app chooses not to make lineitems editable. The editable fields are `notes` and `status`.
188 |
189 | The `status` field uses `FormItem type="select"`. It's disabled for statuses other than `paid`, so the operator can mark a `sent` invoice as `paid` but not vice versa.
190 |
191 | The [APICall](/component/APICall) is triggered by the submit event. Its `onSuccess` handler uses [Actions.navigate](/globals#navigate) to return to the `Invoices` page.
192 |
193 | In other contexts you use `ModalDialog`'s `close()` method, but when a `Form` is wrapped in a `ModalDialog`, the form's submit and cancel buttons both close the dialog.
194 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/DropdownMenu/DropdownMenuNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import { type CSSProperties, forwardRef, type ReactNode } from "react";
2 | import { useEffect, useState, useRef } from "react";
3 | import * as ReactDropdownMenu from "@radix-ui/react-dropdown-menu";
4 | import classnames from "classnames";
5 |
6 | import styles from "./DropdownMenu.module.scss";
7 |
8 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
9 | import { useTheme } from "../../components-core/theming/ThemeContext";
10 | import { noop } from "../../components-core/constants";
11 | import type {
12 | IconPosition,
13 | ButtonVariant,
14 | ButtonThemeColor,
15 | AlignmentOptions,
16 | } from "../abstractions";
17 | import { Button } from "../Button/ButtonNative";
18 | import { Icon } from "../Icon/IconNative";
19 |
20 | type DropdownMenuProps = {
21 | triggerTemplate?: ReactNode;
22 | children?: ReactNode;
23 | label?: string;
24 | registerComponentApi?: RegisterComponentApiFn;
25 | style?: CSSProperties;
26 | className?: string;
27 | alignment?: AlignmentOptions;
28 | onWillOpen?: () => Promise<boolean | undefined>;
29 | disabled?: boolean;
30 | triggerButtonVariant?: string;
31 | triggerButtonThemeColor?: string;
32 | triggerButtonIcon?: string;
33 | triggerButtonIconPosition?: IconPosition;
34 | };
35 |
36 | export const defaultDropdownMenuProps: Pick<
37 | DropdownMenuProps,
38 | | "alignment"
39 | | "triggerButtonVariant"
40 | | "triggerButtonThemeColor"
41 | | "triggerButtonIcon"
42 | | "triggerButtonIconPosition"
43 | > = {
44 | alignment: "start",
45 | triggerButtonVariant: "ghost",
46 | triggerButtonThemeColor: "primary",
47 | triggerButtonIcon: "triggerButton:DropdownMenu", // Use component-specific icon resource pattern
48 | triggerButtonIconPosition: "end",
49 | };
50 |
51 | export const DropdownMenu = forwardRef(function DropdownMenu(
52 | {
53 | triggerTemplate,
54 | children,
55 | label,
56 | registerComponentApi,
57 | style,
58 | className,
59 | onWillOpen,
60 | alignment = defaultDropdownMenuProps.alignment,
61 | disabled = false,
62 | triggerButtonVariant = defaultDropdownMenuProps.triggerButtonVariant,
63 | triggerButtonThemeColor = defaultDropdownMenuProps.triggerButtonThemeColor,
64 | triggerButtonIcon = defaultDropdownMenuProps.triggerButtonIcon,
65 | triggerButtonIconPosition = defaultDropdownMenuProps.triggerButtonIconPosition,
66 | ...rest
67 | }: DropdownMenuProps,
68 | ref,
69 | ) {
70 | const { root } = useTheme();
71 | const [open, setOpen] = useState(false);
72 | const closeTimeoutRef = useRef<NodeJS.Timeout>();
73 |
74 | useEffect(() => {
75 | registerComponentApi?.({
76 | open: () => setOpen(true),
77 | close: () => setOpen(false),
78 | });
79 | }, [registerComponentApi]);
80 |
81 | // Cleanup timeout on unmount
82 | useEffect(() => {
83 | return () => {
84 | if (closeTimeoutRef.current) {
85 | clearTimeout(closeTimeoutRef.current);
86 | }
87 | };
88 | }, []);
89 |
90 | return (
91 | <ReactDropdownMenu.Root
92 | open={open}
93 | onOpenChange={async (isOpen) => {
94 | if (isOpen) {
95 | // Clear any pending close timeout when opening
96 | if (closeTimeoutRef.current) {
97 | clearTimeout(closeTimeoutRef.current);
98 | closeTimeoutRef.current = undefined;
99 | }
100 |
101 | const willOpenResult = await onWillOpen?.();
102 | if (willOpenResult === false) {
103 | return;
104 | }
105 | setOpen(isOpen);
106 | } else {
107 | // When closing, add a small delay to allow child components (like Select)
108 | // to handle their click-outside events first before the DropdownMenu closes
109 | closeTimeoutRef.current = setTimeout(() => {
110 | setOpen(false);
111 | closeTimeoutRef.current = undefined;
112 | }, 0);
113 | }
114 | }}
115 | >
116 | <ReactDropdownMenu.Trigger {...rest} asChild disabled={disabled} ref={ref as any}>
117 | {triggerTemplate ? (
118 | triggerTemplate
119 | ) : (
120 | <Button
121 | icon={<Icon name={triggerButtonIcon} fallback="chevrondown" />}
122 | iconPosition={triggerButtonIconPosition}
123 | type="button"
124 | variant={triggerButtonVariant as ButtonVariant}
125 | themeColor={triggerButtonThemeColor as ButtonThemeColor}
126 | disabled={disabled}
127 | >
128 | {label}
129 | </Button>
130 | )}
131 | </ReactDropdownMenu.Trigger>
132 | <ReactDropdownMenu.Portal container={root}>
133 | <ReactDropdownMenu.Content
134 | align={alignment}
135 | style={style}
136 | className={classnames(styles.DropdownMenuContent, className)}
137 | >
138 | {children}
139 | </ReactDropdownMenu.Content>
140 | </ReactDropdownMenu.Portal>
141 | </ReactDropdownMenu.Root>
142 | );
143 | });
144 |
145 | type MenuItemProps = {
146 | icon?: ReactNode;
147 | iconPosition?: IconPosition;
148 | onClick?: (event: any) => void;
149 | children?: ReactNode;
150 | label?: string;
151 | style?: CSSProperties;
152 | className?: string;
153 | to?: string;
154 | active?: boolean;
155 | enabled?: boolean;
156 | };
157 |
158 | export const defaultMenuItemProps: Pick<MenuItemProps, "iconPosition" | "active"> = {
159 | iconPosition: "start",
160 | active: false,
161 | };
162 |
163 | export const MenuItem = forwardRef(function MenuItem(
164 | {
165 | children,
166 | onClick = noop,
167 | label,
168 | style,
169 | className,
170 | icon,
171 | iconPosition = defaultMenuItemProps.iconPosition,
172 | active = defaultMenuItemProps.active,
173 | enabled = true,
174 | }: MenuItemProps,
175 | ref,
176 | ) {
177 | const iconToStart = iconPosition === "start";
178 |
179 | return (
180 | <ReactDropdownMenu.Item
181 | style={style}
182 | className={classnames(className, styles.DropdownMenuItem, {
183 | [styles.active]: active,
184 | [styles.disabled]: !enabled,
185 | })}
186 | onClick={(event) => {
187 | if (!enabled) {
188 | event.preventDefault();
189 | event.stopPropagation();
190 | return;
191 | }
192 | event.stopPropagation();
193 | if (enabled) {
194 | onClick(event);
195 | }
196 | }}
197 | ref={ref as any}
198 | >
199 | {iconToStart && icon}
200 | <div className={styles.wrapper}>{label ?? children}</div>
201 | {!iconToStart && icon}
202 | </ReactDropdownMenu.Item>
203 | );
204 | });
205 |
206 | type SubMenuItemProps = {
207 | label?: string;
208 | children?: ReactNode;
209 | triggerTemplate?: ReactNode;
210 | };
211 |
212 | export const SubMenuItem = forwardRef<HTMLDivElement, SubMenuItemProps>(
213 | function SubMenuItem({ children, label, triggerTemplate }, ref) {
214 | const { root } = useTheme();
215 |
216 | return (
217 | <ReactDropdownMenu.Sub>
218 | <ReactDropdownMenu.SubTrigger className={styles.DropdownMenuSubTrigger} asChild ref={ref}>
219 | {triggerTemplate ? triggerTemplate : <div>{label}</div>}
220 | </ReactDropdownMenu.SubTrigger>
221 | <ReactDropdownMenu.Portal container={root}>
222 | <ReactDropdownMenu.SubContent className={styles.DropdownMenuSubContent}>
223 | {children}
224 | </ReactDropdownMenu.SubContent>
225 | </ReactDropdownMenu.Portal>
226 | </ReactDropdownMenu.Sub>
227 | );
228 | },
229 | );
230 |
231 | export const MenuSeparator = forwardRef<HTMLDivElement>(function MenuSeparator(props, ref) {
232 | return <ReactDropdownMenu.Separator ref={ref} className={styles.DropdownMenuSeparator} {...props} />;
233 | });
234 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/App/App.module.scss:
--------------------------------------------------------------------------------
```scss
1 | @use "../../components-core/theming/themes" as t;
2 |
3 | // --- This code snippet is required to collect the theme variables used in this module
4 | $themeVars: ();
5 | @function createThemeVar($componentVariable) {
6 | $themeVars: t.appendThemeVar($themeVars, $componentVariable) !global;
7 | @return t.getThemeVar($themeVars, $componentVariable);
8 | }
9 |
10 | $width-navPanel-App: createThemeVar("width-navPanel-App");
11 | $backgroundColor-navPanel-App: createThemeVar("backgroundColor-navPanel-App");
12 | $boxShadow-header-App: createThemeVar("boxShadow-header-App");
13 | $boxShadow-navPanel-App: createThemeVar("boxShadow-navPanel-App");
14 | $backgroundColor-content-App: createThemeVar("backgroundColor-content-App");
15 | $borderLeft-content-App: createThemeVar("borderLeft-content-App");
16 | $maxWidth-content-App: createThemeVar("maxWidth-content-App");
17 | $maxWidth-App: createThemeVar("maxWidth-App");
18 | $backgroundColor-AppHeader: createThemeVar("backgroundColor-AppHeader");
19 | $borderBottom-NavPanel: createThemeVar("borderBottom-AppHeader");
20 | $scrollPaddingBlockPage: createThemeVar("scroll-padding-block-Pages");
21 |
22 | @layer components {
23 | @include t.withMaxScreenSize(2) {
24 | .wrapper.verticalFullHeader{
25 | .navPanelWrapper{
26 | display: none;
27 | }
28 | }
29 | }
30 |
31 |
32 |
33 | .wrapper {
34 | --footer-height: 0px;
35 | --header-height: 0px;
36 | width: 100%;
37 | height: 100%;
38 | position: relative; //leave it here, otherwise there could be double scrollbars because of the absolute positionings (typically radix's visuallyHidden)
39 | display: flex;
40 | flex-direction: column;
41 | isolation: isolate;
42 |
43 | &.vertical {
44 | flex-direction: row;
45 | overflow: initial;
46 |
47 | .contentWrapper {
48 | overflow: auto;
49 | scroll-padding-block: $scrollPaddingBlockPage;
50 | position: relative;
51 | scrollbar-gutter: stable both-edges;
52 | }
53 | &.noScrollbarGutters{
54 | .contentWrapper {
55 | scrollbar-gutter: auto;
56 | }
57 | }
58 | .navPanelWrapper {
59 | width: $width-navPanel-App;
60 | flex-shrink: 0;
61 | }
62 |
63 | .PagesWrapper {
64 | min-height: initial;
65 | flex: 1;
66 | }
67 |
68 | .footerWrapper {
69 | position: static;
70 | }
71 | &.sticky {
72 | .footerWrapper {
73 | position: sticky;
74 | bottom: 0;
75 | }
76 | }
77 | }
78 |
79 | &.horizontal {
80 | overflow: auto;
81 | scroll-padding-block: $scrollPaddingBlockPage;
82 | .PagesWrapper {
83 | min-height: initial;
84 | }
85 | .footerWrapper {
86 | position: static;
87 | }
88 | &.sticky {
89 | min-height: 100%;
90 | .footerWrapper {
91 | position: sticky;
92 | bottom: 0;
93 | }
94 | }
95 | .navPanelWrapper {
96 | border-bottom: $borderBottom-NavPanel;
97 | justify-content: end;
98 | background-color: $backgroundColor-navPanel-App;
99 | }
100 | }
101 |
102 | &.verticalFullHeader {
103 | min-height: 100%;
104 | height: 100%;
105 | overflow: auto;
106 | scroll-padding-block: $scrollPaddingBlockPage;
107 | .navPanelWrapper {
108 | width: $width-navPanel-App;
109 | position: sticky;
110 | height: calc(var(--containerHeight, 100vh) - var(--footer-height) - var(--header-height));
111 | top: var(--header-height);
112 |
113 | &::before {
114 | content: "";
115 | position: absolute;
116 | top: 0;
117 | right: 0;
118 | bottom: 0;
119 | width: 50vw;
120 | z-index: -1;
121 | background-color: $backgroundColor-navPanel-App;
122 | }
123 | }
124 | .PagesWrapper {
125 | overflow: initial;
126 | min-height: calc(var(--containerHeight, 100vh) - var(--header-height) - var(--footer-height));
127 | height: 100%;
128 | }
129 |
130 | .PagesWrapperInner {
131 | height: 100%;
132 | & > :global(.xmlui-page-root) {
133 | height: 100%;
134 | }
135 | }
136 |
137 | .footerWrapper {
138 | position: sticky;
139 | left: 0;
140 | right: 0;
141 | bottom: 0;
142 | }
143 | }
144 |
145 | &.scrollWholePage {
146 | scrollbar-gutter: stable both-edges;
147 |
148 | .headerWrapper {
149 | & > div {
150 | padding-inline: var(--scrollbar-width);
151 | }
152 | margin-inline: calc(-1 * var(--scrollbar-width));
153 | }
154 |
155 | .footerWrapper {
156 | margin-inline: calc(-1 * var(--scrollbar-width));
157 | & > div {
158 | padding-inline: var(--scrollbar-width);
159 | }
160 | }
161 |
162 | &.verticalFullHeader {
163 | .content {
164 | margin-inline: calc(-1 * var(--scrollbar-width));
165 | width: calc(100% + (2 * var(--scrollbar-width)));
166 | }
167 | .contentWrapper {
168 | padding-inline: var(--scrollbar-width);
169 | }
170 | }
171 | }
172 |
173 | &:not(.scrollWholePage) {
174 | overflow: hidden;
175 | .content {
176 | min-height: 0;
177 | height: 100%;
178 | }
179 | .contentWrapper {
180 | overflow: initial;
181 | }
182 | .PagesWrapper {
183 | overflow: auto;
184 | scroll-padding-block: $scrollPaddingBlockPage;
185 | min-height: 0;
186 | height: 100%;
187 | scrollbar-gutter: stable both-edges;
188 | }
189 | .PagesWrapperInner {
190 | min-height: 100%;
191 | height: 0;
192 | }
193 | }
194 |
195 | &.noScrollbarGutters {
196 | scrollbar-gutter: auto;
197 | .PagesWrapper{
198 | scrollbar-gutter: auto;
199 | }
200 | }
201 | }
202 |
203 | .headerWrapper {
204 | z-index: 1;
205 | //position: relative;
206 | min-height: 0;
207 | flex-shrink: 0;
208 | overflow-x: clip;
209 | top: 0;
210 | box-shadow: $boxShadow-header-App;
211 | background-color: $backgroundColor-AppHeader;
212 | &.sticky {
213 | position: sticky;
214 | }
215 | }
216 |
217 | .content {
218 | display: flex;
219 | flex-direction: row;
220 | isolation: isolate;
221 | align-self: center;
222 | width: 100%;
223 | max-width: createThemeVar("maxWidth-App");
224 | }
225 |
226 | .contentWrapper {
227 | position: relative;
228 | min-width: 0;
229 | flex: 1;
230 | display: flex;
231 | flex-direction: column;
232 | box-shadow: $boxShadow-navPanel-App;
233 | background-color: $backgroundColor-content-App;
234 | border-left: $borderLeft-content-App;
235 | }
236 |
237 | .navPanelWrapper {
238 | display: flex;
239 | position: sticky;
240 | top: 0;
241 |
242 | &:empty {
243 | display: none;
244 | }
245 | }
246 |
247 | .PagesWrapper {
248 | flex: 1;
249 | //display: flex;
250 | //flex-direction: column;
251 | //flex: 1;
252 | //min-height: 0;
253 | //width: 100%;
254 | isolation: isolate;
255 | //height: 100%;
256 | //overflow: auto;
257 | }
258 |
259 | .PagesWrapperInner {
260 | max-width: $maxWidth-content-App;
261 | width: 100%;
262 | margin: 0 auto;
263 | //flex: 1;
264 | min-height: 100%;
265 | display: flex;
266 | flex-direction: column;
267 | &.withDefaultContentPadding{
268 | padding-left: t.$space-4;
269 | padding-right: t.$space-4;
270 | padding-top: t.$space-5;
271 | padding-bottom: t.$space-5;
272 | gap: t.$space-5;
273 | }
274 | }
275 |
276 | .footerWrapper {
277 | flex-shrink: 0;
278 | //position: sticky;
279 | //bottom: calc(-1 * var(--footer-height));
280 | //margin-bottom: calc(-1 * var(--footer-height));
281 | }
282 | }
283 |
284 |
285 | // --- We export the theme variables to add them to the component renderer
286 | :export {
287 | themeVars: t.json-stringify($themeVars);
288 | }
```
--------------------------------------------------------------------------------
/xmlui/scripts/generate-docs/utils.mjs:
--------------------------------------------------------------------------------
```
1 | import { existsSync, readdirSync, statSync, unlinkSync } from "fs";
2 | import { posix } from "path";
3 | import { TABLE_CONFIG } from "./constants.mjs";
4 |
5 | /**
6 | * Creates a markdown table.
7 | * The number of headers can be more or less than the number of rows.
8 | * @param {Record<string, string[] | boolean>} data
9 | * @param {string[]} data.headers A list of headers for the table
10 | * @param {string[][]} data.rows A list of rows of the table content,
11 | * each row is an array of strings
12 | * @param {boolean} data.rowNums Toggle to generate row numbers or not
13 | * @returns {string} Generated markdown table
14 | */
15 | export function createTable({ headers = [], rows = [], rowNums = false }) {
16 | let table = "";
17 |
18 | if (headers.length === 0 && rows.length === 0) {
19 | return table;
20 | }
21 |
22 | if (rowNums) {
23 | headers.unshift(TABLE_CONFIG.DEFAULT_ROW_NUM_HEADER);
24 | }
25 |
26 | table +=
27 | "| " +
28 | headers
29 | .map((h) => {
30 | if (typeof h === "string") return h;
31 | if (typeof h === "object") return h.value;
32 | })
33 | .join(" | ") +
34 | " |\n";
35 |
36 | table +=
37 | "| " +
38 | headers
39 | .map((h) => {
40 | if (typeof h === "object" && h.style === TABLE_CONFIG.STYLES.LEFT) return TABLE_CONFIG.MARKDOWN_ALIGNMENTS.LEFT;
41 | if (typeof h === "object" && h.style === TABLE_CONFIG.STYLES.CENTER) return TABLE_CONFIG.MARKDOWN_ALIGNMENTS.CENTER;
42 | if (typeof h === "object" && h.style === TABLE_CONFIG.STYLES.RIGHT) return TABLE_CONFIG.MARKDOWN_ALIGNMENTS.RIGHT;
43 | return TABLE_CONFIG.MARKDOWN_ALIGNMENTS.DEFAULT;
44 | })
45 | .join(" | ") +
46 | " |\n";
47 |
48 | rows.forEach((row) => {
49 | table += "| " + (rowNums ? rows.indexOf(row) + 1 + " | " : "") + row.join(" | ") + " |\n";
50 | });
51 |
52 | return table;
53 | }
54 |
55 | /**
56 | * Multi-liner (commented and compatible with really old javascript versions)
57 | * Source: https://stackoverflow.com/a/62732509
58 | */
59 | export function winPathToPosix(windowsPath) {
60 | // handle the edge-case of Window's long file names
61 | // See: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#short-vs-long-names
62 | windowsPath = windowsPath.replace(/^\\\\\?\\/, "");
63 |
64 | // convert the separators, valid since both \ and / can't be in a windows filename
65 | windowsPath = windowsPath.replace(/\\/g, "/");
66 |
67 | // compress any // or /// to be just /, which is a safe operation under POSIX
68 | // and prevents accidental errors caused by manually doing path1+path2
69 | windowsPath = windowsPath.replace(/\/\/+/g, "/");
70 |
71 | return windowsPath;
72 | }
73 |
74 | /**
75 | * Simple but slow
76 | * @param {string} buffer
77 | */
78 | export function strBufferToLines(buffer) {
79 | if (typeof buffer !== "string") {
80 | throw new Error("Only string buffers are supported.");
81 | }
82 | return buffer.split(/\r?\n/);
83 | }
84 |
85 | /**
86 | * Recursive function that traverses a given folder and applies an optional function on
87 | * each of the folders/files found inside.
88 | */
89 | export function traverseDirectory(node, visitor, level = 0) {
90 | level++;
91 | const dirContents = readdirSync(node.path);
92 | if (!node.children) node.children = dirContents;
93 | for (const itemName of dirContents) {
94 | const itemPath = [winPathToPosix(node.path), itemName].join(posix.sep);
95 | const itemIsDir = statSync(itemPath).isDirectory();
96 | const childNode = {
97 | name: itemName,
98 | path: itemPath,
99 | parent: node,
100 | };
101 | visitor && visitor(childNode, level);
102 | if (itemIsDir) {
103 | traverseDirectory(childNode, visitor, level);
104 | }
105 | }
106 | }
107 |
108 | /**
109 | * Removes duplicate entries from the input array.
110 | */
111 | export function gatherAndRemoveDuplicates(container, byAttribute = "id") {
112 | const idSet = new Set();
113 | const duplicates = [];
114 | container.forEach((item) => {
115 | if (idSet.has(item[byAttribute])) {
116 | duplicates.push(item);
117 | }
118 | idSet.add(item[byAttribute]);
119 | });
120 |
121 | return {
122 | filtered: container.filter((item) => !duplicates.includes(item)),
123 | duplicates,
124 | };
125 | }
126 |
127 | export function toNormalizedUpperCase(rawStr) {
128 | return rawStr
129 | .trim()
130 | .toLocaleUpperCase()
131 | .replaceAll(/[^A-Za-z0-9_]/g, "_")
132 | .replaceAll(/__+/g, "_"); // <- remove duplicate underscores
133 | }
134 |
135 | export function toHeadingPath(rawStr) {
136 | return rawStr
137 | .trim()
138 | .toLocaleLowerCase()
139 | .replaceAll(/[^A-Za-z0-9-]/g, "-")
140 | .replaceAll(/--+/g, "-")
141 | .replace(/^-|-$/, "");
142 | }
143 |
144 | /**
145 | * Converts string from kebab case to space separated string with uppercase starting character
146 | * @param {string} rawStr input in kebab case (e.g. "hello-there-friend")
147 | * @returns {string} camel cased string (e.g. "Hello There Friend")
148 | */
149 | export function fromKebabtoReadable(rawStr) {
150 | return rawStr
151 | .trim()
152 | .split("-")
153 | .map((n) => n[0].toUpperCase() + n.slice(1))
154 | .join(" ");
155 | }
156 |
157 | /**
158 | * Deletes a file if it exists
159 | * @param {string} filePath the full path of the file to delete
160 | */
161 | export function deleteFileIfExists(filePath) {
162 | if (existsSync(filePath)) {
163 | unlinkSync(filePath);
164 | }
165 | }
166 |
167 | /**
168 | * Removes duplicate new line characters adjecent to one another in a list of strings
169 | * @param {string[]} buffer the list of strings
170 | * @returns {string[]} the list of strings without duplicate new line characters
171 | */
172 | export function removeAdjacentNewlines(buffer) {
173 | const result = [];
174 | let prevWasNewline = false;
175 |
176 | for (const item of buffer) {
177 | // Check if the current item is only newline characters
178 | const isNewline = /^\s*$/.test(item);
179 |
180 | if (!isNewline || !prevWasNewline) {
181 | result.push(item);
182 | }
183 | prevWasNewline = isNewline;
184 | }
185 | return result;
186 | }
187 |
188 | /**
189 | * The summary file may contain further sections other than the summary table.
190 | * Thus, we only (re)generate the section that contains the summary table.
191 | * This is done by finding the heading for the start of the summary table section
192 | * and either the end of file or the next section heading.
193 | * @param {string} buffer the string containing the file contents
194 | * @param {string} sectionHeading The section to look for, has to have heading level as well
195 | */
196 | export function getSectionBeforeAndAfter(buffer, sectionHeading) {
197 | if (!sectionHeading) {
198 | return { beforeSection: buffer, afterSection: "" };
199 | }
200 |
201 | const lines = strBufferToLines(buffer);
202 | const sectionStartIdx = lines.findIndex((line) => line.includes(sectionHeading));
203 |
204 | // If sectionHeading isn't found, return the buffer unchanged
205 | if (sectionStartIdx === -1) {
206 | return { beforeSection: buffer, afterSection: "" };
207 | }
208 |
209 | // Find the next heading after the section heading
210 | let nextHeadingIdx = -1;
211 | for (let i = sectionStartIdx + 1; i < lines.length; i++) {
212 | if (/^#+\s/.test(lines[i])) {
213 | nextHeadingIdx = i;
214 | break;
215 | }
216 | }
217 |
218 | // Remove lines after the section heading and before the next heading (or end of file)
219 | const beforeSection = lines.slice(0, sectionStartIdx).join("\n");
220 | const afterSection = (nextHeadingIdx !== -1 ? lines.slice(nextHeadingIdx) : []).join("\n");
221 |
222 | return { beforeSection, afterSection };
223 | }
224 |
```