This is page 41 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
│ ├── loose-trains-sit.md
│ ├── rare-cooks-write.md
│ ├── silver-llamas-cough.md
│ └── true-jeans-agree.md
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── 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
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.module.scss
│ │ │ ├── Preview.tsx
│ │ │ ├── Select.module.scss
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ ├── ToneSwitcher.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── 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
├── 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.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.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.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/Animation/AnimationNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import { animated, useSpring, useInView } from "@react-spring/web";
2 | import type { ForwardedRef } from "react";
3 | import React, { Children, forwardRef, useEffect, useId, useMemo, useState } from "react";
4 | import { useCallback } from "react";
5 | import { composeRefs } from "@radix-ui/react-compose-refs";
6 |
7 | import type { RegisterComponentApiFn } from "../..";
8 | import { isPlainObject } from "lodash-es";
9 |
10 | export type AnimationProps = {
11 | children?: React.ReactNode;
12 | animation: any;
13 | registerComponentApi?: RegisterComponentApiFn;
14 | onStop?: () => void;
15 | onStart?: () => void;
16 | animateWhenInView?: boolean;
17 | duration?: number;
18 | reverse?: boolean;
19 | loop?: boolean;
20 | once?: boolean;
21 | delay?: number;
22 | };
23 |
24 | const AnimatedComponent = animated(
25 | forwardRef(function InlineComponentDef(props: any, ref: ForwardedRef<any>) {
26 | const { children, ...rest } = props;
27 |
28 | if (!React.isValidElement(children)) {
29 | return children;
30 | }
31 | return React.cloneElement(children, { ...rest, ref });
32 | }),
33 | );
34 |
35 | export const defaultProps: Pick<
36 | AnimationProps,
37 | "delay" | "animateWhenInView" | "reverse" | "loop" | "once"
38 | > = {
39 | delay: 0,
40 | animateWhenInView: false,
41 | reverse: false,
42 | loop: false,
43 | once: false,
44 | };
45 |
46 | export const parseAnimation = (animation: string | object): object => {
47 | if (typeof animation === "object") {
48 | return animation;
49 | }
50 |
51 | const presetAnimations: Record<string, object> = {
52 | fadein: {
53 | from: { opacity: 0 },
54 | to: { opacity: 1 },
55 | },
56 | fadeout: {
57 | from: { opacity: 1 },
58 | to: { opacity: 0 },
59 | },
60 | slidein: {
61 | from: { transform: "translateX(-100%)" },
62 | to: { transform: "translateX(0%)" },
63 | },
64 | slideout: {
65 | from: { transform: "translateX(0%)" },
66 | to: { transform: "translateX(100%)" },
67 | },
68 | popin: {
69 | from: { transform: "scale(0.8)", opacity: 0 },
70 | to: { transform: "scale(1)", opacity: 1 },
71 | },
72 | popout: {
73 | from: { transform: "scale(1)", opacity: 1 },
74 | to: { transform: "scale(0.8)", opacity: 0 },
75 | },
76 | flipin: {
77 | from: { transform: "rotateY(90deg)", opacity: 0 },
78 | to: { transform: "rotateY(0deg)", opacity: 1 },
79 | },
80 | flipout: {
81 | from: { transform: "rotateY(0deg)", opacity: 1 },
82 | to: { transform: "rotateY(90deg)", opacity: 0 },
83 | },
84 | rotatein: {
85 | from: { transform: "rotate(-180deg)", opacity: 0 },
86 | to: { transform: "rotate(0deg)", opacity: 1 },
87 | },
88 | rotateout: {
89 | from: { transform: "rotate(0deg)", opacity: 1 },
90 | to: { transform: "rotate(180deg)", opacity: 0 },
91 | },
92 | zoomin: {
93 | from: { transform: "scale(0)", opacity: 0 },
94 | to: { transform: "scale(1)", opacity: 1 },
95 | },
96 | zoomout: {
97 | from: { transform: "scale(1)", opacity: 1 },
98 | to: { transform: "scale(0)", opacity: 0 },
99 | },
100 | };
101 |
102 | return presetAnimations[animation] || { from: {}, to: {} };
103 | };
104 |
105 | /**
106 | * Helper function to parse a single animation-specific option value.
107 | */
108 | function parseAnimationOptionValue(name: string, value: string): any {
109 | switch (name) {
110 | case "duration":
111 | case "delay":
112 | const num = parseInt(value, 10);
113 | return isNaN(num) ? undefined : num;
114 |
115 | case "animateWhenInView":
116 | case "reverse":
117 | case "loop":
118 | case "once":
119 | const lowerVal = value.toLowerCase();
120 | if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
121 | if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
122 | return undefined;
123 |
124 | default:
125 | return undefined;
126 | }
127 | }
128 |
129 | /**
130 | * Parses animation options from a string or object.
131 | */
132 | export function parseAnimationOptions(input: any): Partial<AnimationProps> {
133 | if (isPlainObject(input)) {
134 | return input as Partial<AnimationProps>;
135 | }
136 |
137 | if (typeof input === "string") {
138 | const options: Partial<AnimationProps> = {};
139 | const values = input
140 | .split(";")
141 | .map((value) => value.trim())
142 | .filter((value) => value.length > 0);
143 |
144 | for (const value of values) {
145 | if (value.includes(":")) {
146 | const [name, val] = value.split(":").map((part) => part.trim());
147 | if (name && val) {
148 | const parsedValue = parseAnimationOptionValue(name, val);
149 | if (parsedValue !== undefined) {
150 | (options as any)[name] = parsedValue;
151 | }
152 | }
153 | } else {
154 | const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
155 | if (booleanOptions.includes(value)) {
156 | (options as any)[value] = true;
157 | } else if (value.startsWith("!") && value.length > 1) {
158 | const optionName = value.substring(1);
159 | if (booleanOptions.includes(optionName)) {
160 | (options as any)[optionName] = false;
161 | }
162 | }
163 | }
164 | }
165 | return options;
166 | }
167 |
168 | return {};
169 | }
170 |
171 | export const Animation = forwardRef(function Animation(
172 | {
173 | children,
174 | registerComponentApi,
175 | animation,
176 | duration,
177 | onStop,
178 | onStart,
179 | delay = defaultProps.delay,
180 | animateWhenInView = defaultProps.animateWhenInView,
181 | reverse = defaultProps.reverse,
182 | loop = defaultProps.loop,
183 | once = defaultProps.once,
184 | ...rest
185 | }: AnimationProps,
186 | forwardedRef: ForwardedRef<HTMLDivElement>,
187 | ) {
188 | const [_animation] = useState(animation);
189 | const [toggle, setToggle] = useState(false);
190 | const [reset, setReset] = useState(false);
191 | const [count, setCount] = useState(0);
192 | const times = 1;
193 | const animationId = useId();
194 |
195 | const animationSettings = useMemo<any>(
196 | () => ({
197 | from: _animation.from,
198 | to: _animation.to,
199 | config: {
200 | ..._animation.config,
201 | duration,
202 | },
203 | delay,
204 | loop,
205 | reset,
206 | reverse: toggle,
207 | onRest: () => {
208 | onStop?.();
209 | if (loop) {
210 | if (reverse) {
211 | setCount(count + 1);
212 | setToggle(!toggle);
213 | }
214 | setReset(true);
215 | } else {
216 | if (reverse && count < times) {
217 | setCount(count + 1);
218 | setToggle(!toggle);
219 | }
220 | }
221 | },
222 | onStart: () => {
223 | onStart?.();
224 | },
225 | }),
226 | [
227 | _animation.config,
228 | _animation.from,
229 | _animation.to,
230 | count,
231 | delay,
232 | duration,
233 | loop,
234 | onStart,
235 | onStop,
236 | reset,
237 | once,
238 | reverse,
239 | toggle,
240 | ],
241 | );
242 |
243 | const [springs, api] = useSpring(
244 | () => ({
245 | ...animationSettings,
246 | }),
247 | [animationSettings],
248 | );
249 |
250 | const [ref, animationStyles] = useInView(() => animationSettings, {
251 | once,
252 | });
253 | const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
254 |
255 | const startAnimation = useCallback(() => {
256 | void api.start(_animation);
257 | return () => {
258 | api.stop();
259 | };
260 | }, [_animation, api]);
261 |
262 | const stopAnimation = useCallback(() => {
263 | api.stop();
264 | }, [api]);
265 |
266 | useEffect(() => {
267 | registerComponentApi?.({
268 | start: startAnimation,
269 | stop: stopAnimation,
270 | });
271 | }, [registerComponentApi, startAnimation, stopAnimation]);
272 |
273 | const content = useMemo(() => {
274 | return Children.map(children, (child, index) =>
275 | animateWhenInView ? (
276 | <AnimatedComponent key={index} {...rest} style={animationStyles} ref={composedRef}>
277 | {child}
278 | </AnimatedComponent>
279 | ) : (
280 | <AnimatedComponent key={index} {...rest} style={springs} ref={forwardedRef}>
281 | {child}
282 | </AnimatedComponent>
283 | ),
284 | );
285 | }, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
286 |
287 | return content;
288 | });
289 |
```
--------------------------------------------------------------------------------
/docs/public/resources/files/releases.json:
--------------------------------------------------------------------------------
```json
1 | [
2 | {
3 | "tag_name": "[email protected]",
4 | "published_at": "2025-10-22T14:39:36Z",
5 | "changes": [
6 | {
7 | "description": "refactor: Select - remove radix select",
8 | "commit_sha": "e7c503e"
9 | },
10 | {
11 | "description": "Fix the NavGroup click behavior in responsive view",
12 | "commit_sha": "5fe3052"
13 | },
14 | {
15 | "description": "Fix the $item access issue within a ModalDialog inside a Column",
16 | "commit_sha": "5fe3052"
17 | },
18 | {
19 | "description": "Fix the APICall becomes non-functional after first error when used with DataSource + Items + $item context issue",
20 | "commit_sha": "250647b"
21 | }
22 | ],
23 | "assets": [
24 | {
25 | "name": "xmlui-0.10.25.js",
26 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.25/xmlui-0.10.25.js"
27 | }
28 | ]
29 | },
30 | {
31 | "tag_name": "[email protected]",
32 | "published_at": "2025-10-21T13:53:23Z",
33 | "changes": [
34 | {
35 | "description": "The xmlui-pg codefence now accepts emojies",
36 | "commit_sha": "3e361c4"
37 | },
38 | {
39 | "description": "Exend the formatDate, formatDateTime, and formatTime functions with optional format strings",
40 | "commit_sha": "3e361c4"
41 | }
42 | ],
43 | "assets": [
44 | {
45 | "name": "xmlui-0.10.24.js",
46 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.24/xmlui-0.10.24.js"
47 | }
48 | ]
49 | },
50 | {
51 | "tag_name": "[email protected]",
52 | "published_at": "2025-10-21T07:04:42Z",
53 | "changes": [
54 | {
55 | "description": "Experiment with the \"variant\" behavior",
56 | "commit_sha": "bf18444"
57 | },
58 | {
59 | "description": "Form now has a willSubmit event (it can cancel the submit event)",
60 | "commit_sha": "6d3bb89"
61 | },
62 | {
63 | "description": "Fix the boolean conversion issue with showAnchor in Heading",
64 | "commit_sha": "89c69af"
65 | },
66 | {
67 | "description": "Fix loading code-behind files in standalone mode",
68 | "commit_sha": "4cfebf0"
69 | },
70 | {
71 | "description": "fix: pointer-events:none when using sibling Dialog",
72 | "commit_sha": "145cd68"
73 | }
74 | ],
75 | "assets": [
76 | {
77 | "name": "xmlui-0.10.23.js",
78 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.23/xmlui-0.10.23.js"
79 | }
80 | ]
81 | },
82 | {
83 | "tag_name": "[email protected]",
84 | "published_at": "2025-10-17T06:33:28Z",
85 | "changes": [
86 | {
87 | "description": "The behavior infrastructure now uses ComponentProvider and allows adding custom behaviors",
88 | "commit_sha": "501f60a"
89 | },
90 | {
91 | "description": "Extend Tab with the tabAlignment and accordionView properties",
92 | "commit_sha": "1020f1c"
93 | }
94 | ],
95 | "assets": [
96 | {
97 | "name": "xmlui-0.10.22.js",
98 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.22/xmlui-0.10.22.js"
99 | }
100 | ]
101 | },
102 | {
103 | "tag_name": "[email protected]",
104 | "published_at": "2025-10-16T11:53:23Z",
105 | "changes": [
106 | {
107 | "description": "Add custom Text variant styling",
108 | "commit_sha": "6fd4d62"
109 | }
110 | ],
111 | "assets": [
112 | {
113 | "name": "xmlui-0.10.21.js",
114 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.21/xmlui-0.10.21.js"
115 | }
116 | ]
117 | },
118 | {
119 | "tag_name": "[email protected]",
120 | "published_at": "2025-10-15T12:46:33Z",
121 | "changes": [
122 | {
123 | "description": "fix: Autocomplete handles animations correctly",
124 | "commit_sha": "26eac90"
125 | },
126 | {
127 | "description": "Add margin-related theme variables to ContentSeparator",
128 | "commit_sha": "f53edff"
129 | },
130 | {
131 | "description": "Add applyIf property to Theme",
132 | "commit_sha": "1840916"
133 | },
134 | {
135 | "description": "fix: external animation is now correctly applied to ModalDialogs as well",
136 | "commit_sha": "c6be7a3"
137 | },
138 | {
139 | "description": "Added better error text when rendering FormItem outside of a Form.",
140 | "commit_sha": "6aaefaf"
141 | },
142 | {
143 | "description": "refactor: Select and AutoComplete components",
144 | "commit_sha": "28d2585"
145 | },
146 | {
147 | "description": "The itemLabelWidth value of Form now supports theme variables ($space-\\* values).",
148 | "commit_sha": "e29a231"
149 | },
150 | {
151 | "description": "AppState now uses a merge operation to set initialValue",
152 | "commit_sha": "22162c0"
153 | },
154 | {
155 | "description": "fix: itemWithLabel - layout issue",
156 | "commit_sha": "e90232b"
157 | }
158 | ],
159 | "assets": [
160 | {
161 | "name": "xmlui-0.10.20.js",
162 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.20/xmlui-0.10.20.js"
163 | }
164 | ]
165 | },
166 | {
167 | "tag_name": "[email protected]",
168 | "published_at": "2025-10-07T09:22:39Z",
169 | "changes": [
170 | {
171 | "description": "Add checkboxTolerance property to Table",
172 | "commit_sha": "facb257"
173 | },
174 | {
175 | "description": "test: review onFocus, onBlur e2e tests",
176 | "commit_sha": "6084c14"
177 | },
178 | {
179 | "description": "Renamed the following properties in DatePicker: minValue -> startDate, maxValue -> endDate. Also updated component documentation.",
180 | "commit_sha": "e1fa9d7"
181 | }
182 | ],
183 | "assets": [
184 | {
185 | "name": "xmlui-0.10.19.js",
186 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.19/xmlui-0.10.19.js"
187 | }
188 | ]
189 | },
190 | {
191 | "tag_name": "[email protected]",
192 | "published_at": "2025-10-06T12:52:25Z",
193 | "changes": [
194 | {
195 | "description": "refactor: use labelBehavior instead of ItemWithLabel",
196 | "commit_sha": "202f2b2"
197 | },
198 | {
199 | "description": "Add back removed RadioItem",
200 | "commit_sha": "6650ee8"
201 | },
202 | {
203 | "description": "Fixed FormItem validation indicators to use a relaxed validation indication strategy.",
204 | "commit_sha": "da98994"
205 | },
206 | {
207 | "description": "fix: labelBehavior, input components - styling issue",
208 | "commit_sha": "8394663"
209 | }
210 | ],
211 | "assets": [
212 | {
213 | "name": "xmlui-0.10.18.js",
214 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.18/xmlui-0.10.18.js"
215 | }
216 | ]
217 | },
218 | {
219 | "tag_name": "[email protected]",
220 | "published_at": "2025-10-03T09:59:22Z",
221 | "changes": [
222 | {
223 | "description": "Undust and improve the Tree component",
224 | "commit_sha": "0ba6612"
225 | },
226 | {
227 | "description": "Fixed Slider ranged version where only the first thumb is interactable.",
228 | "commit_sha": "7b78052"
229 | },
230 | {
231 | "description": "improve: remove cmdk from autocomple, add keywords prop to option",
232 | "commit_sha": "314b429"
233 | },
234 | {
235 | "description": "fix: NumberBox initialValue ignores non-convertible string values, minValue and maxValue now applies to typed-in input as well as to increments / decrements with spinner buttons.",
236 | "commit_sha": "a1dea8f"
237 | },
238 | {
239 | "description": "refactor: move behavior application earlier in ComponentAdapter render flow",
240 | "commit_sha": "cff754c"
241 | }
242 | ],
243 | "assets": [
244 | {
245 | "name": "xmlui-0.10.16.js",
246 | "browser_download_url": "https://github.com/xmlui-org/xmlui/releases/download/xmlui%400.10.16/xmlui-0.10.16.js"
247 | }
248 | ]
249 | }
250 | ]
```
--------------------------------------------------------------------------------
/xmlui/src/components/ChangeListener/ChangeListener.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { test, expect } from "../../testing/fixtures";
2 |
3 | // =============================================================================
4 | // BASIC FUNCTIONALITY TESTS
5 | // =============================================================================
6 |
7 | test("component fires didChange event when listenTo value changes", async ({
8 | page,
9 | initTestBed,
10 | }) => {
11 | await initTestBed(
12 | `<App var.counter="{0}" var.oneBigger="{1}">
13 | <Button label="Increment" onClick="{counter++}" />
14 | <ChangeListener
15 | listenTo="{counter}"
16 | onDidChange="oneBigger = counter + 1" />
17 | <Text testId="counterText">{counter}</Text>
18 | <Text testId="oneBiggerText">{oneBigger}</Text>
19 | </App>`,
20 | );
21 |
22 | const counterText = page.getByTestId("counterText");
23 | const oneBiggerText = page.getByTestId("oneBiggerText");
24 |
25 | await expect(counterText).toHaveText("0");
26 | await expect(oneBiggerText).toHaveText("1");
27 |
28 | await page.getByRole("button", { name: "Increment" }).click();
29 |
30 | await expect(counterText).toHaveText("1");
31 | await expect(oneBiggerText).toHaveText("2");
32 | });
33 |
34 | test("component does not fire event when unrelated values change", async ({
35 | page,
36 | initTestBed,
37 | }) => {
38 | await initTestBed(
39 | `<App var.a="{0}" var.counter="{0}" var.oneBigger="{1}">
40 | <Button label="Increment" onClick="{counter++}" />
41 | <ChangeListener
42 | listenTo="{a}"
43 | onDidChange="oneBigger = counter + 1" />
44 | <Text testId="counterText">{counter}</Text>
45 | <Text testId="oneBiggerText">{oneBigger}</Text>
46 | </App>`,
47 | );
48 |
49 | const counterText = page.getByTestId("counterText");
50 | const oneBiggerText = page.getByTestId("oneBiggerText");
51 |
52 | await expect(counterText).toHaveText("0");
53 | await expect(oneBiggerText).toHaveText("1");
54 |
55 | await page.getByRole("button", { name: "Increment" }).click();
56 |
57 | await expect(counterText).toHaveText("1");
58 | await expect(oneBiggerText).toHaveText("1");
59 | });
60 |
61 | test("component passes both previous and new values to the handler", async ({
62 | page,
63 | initTestBed,
64 | }) => {
65 | await initTestBed(`
66 | <VStack var.counter="{0}" var.clone="{0}">
67 | <Button testId="button" onClick="counter++">Increment</Button>
68 | <Text testId="text">{clone}</Text>
69 | <ChangeListener
70 | listenTo="{counter}"
71 | onDidChange="chg => clone = chg.prevValue + '|' + chg.newValue" />
72 | </VStack>
73 | `);
74 |
75 | // Click the button to change the counter value
76 | await page.locator("button").click();
77 |
78 | // Check that the event fired and testState was updated
79 | await expect(page.getByTestId("text")).toHaveText("0|1");
80 | });
81 |
82 | // =============================================================================
83 | // EDGE CASE TESTS
84 | // =============================================================================
85 |
86 | test("component handles complex data types", async ({ page, initTestBed }) => {
87 | await initTestBed(`
88 | <VStack var.data="{{ a: 1, b: [2, { counter: 10}] }}" var.clone="{0}">
89 | <Button testId="incRelevant" onClick="data.b[1].counter++">Increment</Button>
90 | <Button testId="incIrrelevant" onClick="data.a++">Increment irrelevant</Button>
91 | <Text testId="text">{clone}</Text>
92 | <ChangeListener
93 | listenTo="{data.b[1].counter}"
94 | onDidChange="chg => clone = chg.newValue" />
95 | </VStack>
96 | `);
97 |
98 | await expect(page.getByTestId("text")).toHaveText("10");
99 |
100 | // make sure the irrelevant parts of the data doesn't get listenedTo
101 | await page.getByTestId("incIrrelevant").click();
102 | await expect(page.getByTestId("text")).toHaveText("10");
103 |
104 | await page.getByTestId("incRelevant").click();
105 |
106 | // Check that the event fired and testState was updated
107 | await expect(page.getByTestId("text")).toHaveText("11");
108 | });
109 |
110 | test("component handles undefined and null values", async ({ page, initTestBed }) => {
111 | await initTestBed(`
112 | <VStack var.counter="{0}" var.clone="{0}">
113 | <Button testId="setNull" onClick="counter = null">Set Null</Button>
114 | <Button testId="setUndefined" onClick="counter = undefined">Set Undefined</Button>
115 | <Button testId="setValue" onClick="counter = 3">Set Value</Button>
116 | <Text testId="text">
117 | {clone === undefined ? 'undefined' : JSON.stringify(clone)}
118 | </Text>
119 | <ChangeListener listenTo="{counter}" onDidChange="chg => clone = chg.newValue" />
120 | </VStack>`);
121 |
122 | await page.getByTestId("setNull").click();
123 | await expect(page.getByTestId("text")).toHaveText("null");
124 | await page.getByTestId("setUndefined").click();
125 | await expect(page.getByTestId("text")).toHaveText("undefined");
126 | await page.getByTestId("setValue").click();
127 | await expect(page.getByTestId("text")).toHaveText("3");
128 | });
129 |
130 | test("component doesn't fire on identical primitive values", async ({ page, initTestBed }) => {
131 | await initTestBed(`
132 | <VStack var.counter="{0}" var.clicked="{0}" var.data="{1}">
133 | <Button testId="setToPrimitive" onClick="clicked++; data = data + 1 - 1">
134 | Set The Same Primitive
135 | </Button>
136 | <Text testId="text">{clicked}|{counter}|{data}</Text>
137 | <ChangeListener listenTo="{data}" onDidChange="counter++" />
138 | </VStack>
139 | `);
140 |
141 | await expect(page.getByTestId("text")).toHaveText("0|1|1");
142 | await page.locator("button").click();
143 | await expect(page.getByTestId("text")).toHaveText("1|1|1");
144 | await page.locator("button").click();
145 | await expect(page.getByTestId("text")).toHaveText("2|1|1");
146 | });
147 |
148 | // =============================================================================
149 | // INTEGRATION TESTS
150 | // =============================================================================
151 |
152 | test("component works with multiple listeners on the same value", async ({ page, initTestBed }) => {
153 | await initTestBed(`
154 | <VStack var.counter1="{0}" var.counter2="{0}" var.clicked="{0}">
155 | <Button testId="setToPrimitive" onClick="clicked++;">
156 | Set The Same Primitive
157 | </Button>
158 | <Text testId="text">{clicked}|{counter1}|{counter2}</Text>
159 | <ChangeListener listenTo="{clicked}" onDidChange="counter1++" />
160 | <ChangeListener listenTo="{clicked}" onDidChange="counter2++" />
161 | </VStack>
162 | `);
163 |
164 | await expect(page.getByTestId("text")).toHaveText("0|1|1");
165 | await page.locator("button").click();
166 | await expect(page.getByTestId("text")).toHaveText("1|2|2");
167 | await page.locator("button").click();
168 | await expect(page.getByTestId("text")).toHaveText("2|3|3");
169 | });
170 |
171 | test("component works with conditional rendering", async ({ page, initTestBed }) => {
172 | await initTestBed(`
173 | <VStack var.counter="{0}" var.clone="{0}" var.show="{false}">
174 | <Button testId="button" onClick="counter++">Increment</Button>
175 | <Button testId="showButton" onClick="show = !show">Toggle Show</Button>
176 | <Text testId="text">
177 | {clone}
178 | </Text>
179 | <ChangeListener
180 | when="{show}"
181 | listenTo="{counter}"
182 | onDidChange="clone = counter" />
183 | </VStack>
184 | `);
185 |
186 | // Click the button to change the counter value
187 | await page.getByTestId("button").click();
188 | await expect(page.getByTestId("text")).toHaveText("0");
189 | await page.getByTestId("button").click();
190 | await expect(page.getByTestId("text")).toHaveText("0");
191 | await page.getByTestId("button").click();
192 | await expect(page.getByTestId("text")).toHaveText("0");
193 | await page.getByTestId("showButton").click();
194 | await expect(page.getByTestId("text")).toHaveText("3");
195 | await page.getByTestId("button").click();
196 | await expect(page.getByTestId("text")).toHaveText("4");
197 | await page.getByTestId("showButton").click();
198 | await page.getByTestId("button").click();
199 | await expect(page.getByTestId("text")).toHaveText("4");
200 | });
201 |
```
--------------------------------------------------------------------------------
/docs/content/components/ColorPicker.md:
--------------------------------------------------------------------------------
```markdown
1 | # ColorPicker [#colorpicker]
2 |
3 | `ColorPicker` enables users to choose colors by specifying RGB, HSL, or HEX values.
4 |
5 | ## Using `ColorPicker` [#using-colorpicker]
6 |
7 | This component allows you to edit or select a color using RGB, HSL, or CSS HEX notation. It displays a popup over the UI and lets you use the mouse or keyboard to edit or select a color.
8 |
9 | ```xmlui-pg copy display name="Example: using ColorPicker"
10 | <App>
11 | <ColorPicker id="colorPicker" label="Select your favorite color" />
12 | <Text>Selected color: {colorPicker.value}</Text>
13 | </App>
14 | ```
15 |
16 | ## Properties [#properties]
17 |
18 | ### `autoFocus` (default: false) [#autofocus-default-false]
19 |
20 | If this property is set to `true`, the component gets the focus automatically when displayed.
21 |
22 | ### `enabled` (default: true) [#enabled-default-true]
23 |
24 | This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).
25 |
26 | ### `initialValue` [#initialvalue]
27 |
28 | This property sets the component's initial value.
29 |
30 | ```xmlui-pg copy display name="Example: using ColorPicker"
31 | <App>
32 | <ColorPicker
33 | id="colorPicker"
34 | label="Select your favorite color"
35 | initialValue="#ff0080"
36 | />
37 | <Text>Selected color: {colorPicker.value}</Text>
38 | </App>
39 | ```
40 |
41 | ### `readOnly` (default: false) [#readonly-default-false]
42 |
43 | Set this property to `true` to disallow changing the component value.
44 |
45 | ```xmlui-pg copy display name="Example: readOnly"
46 | <App>
47 | <ColorPicker initialValue="#ffff00" label="Cannot be edited" readOnly />
48 | </App>
49 | ```
50 |
51 | ### `required` (default: false) [#required-default-false]
52 |
53 | Set this property to `true` to indicate it must have a value before submitting the containing form.
54 |
55 | ### `validationStatus` (default: "none") [#validationstatus-default-none]
56 |
57 | This property allows you to set the validation status of the input component.
58 |
59 | Available values:
60 |
61 | | Value | Description |
62 | | --- | --- |
63 | | `valid` | Visual indicator for an input that is accepted |
64 | | `warning` | Visual indicator for an input that produced a warning |
65 | | `error` | Visual indicator for an input that produced an error |
66 |
67 | ```xmlui-pg copy display name="Example: validationStatus"
68 | <App>
69 | <ColorPicker initialValue="#c0c0ff" label="Valid" validationStatus="valid" />
70 | <ColorPicker initialValue="#c0c0ff" label="Warning" validationStatus="warning" />
71 | <ColorPicker initialValue="#c0c0ff" label="Error" validationStatus="error" />
72 | </App>
73 | ```
74 |
75 | ## Events [#events]
76 |
77 | ### `didChange` [#didchange]
78 |
79 | This event is triggered when value of ColorPicker has changed.
80 |
81 | ### `gotFocus` [#gotfocus]
82 |
83 | This event is triggered when the ColorPicker has received the focus.
84 |
85 | ### `lostFocus` [#lostfocus]
86 |
87 | This event is triggered when the ColorPicker has lost the focus.
88 |
89 | ## Exposed Methods [#exposed-methods]
90 |
91 | ### `focus` [#focus]
92 |
93 | Focus the ColorPicker component.
94 |
95 | **Signature**: `focus(): void`
96 |
97 | ### `setValue` [#setvalue]
98 |
99 | This method sets the current value of the ColorPicker.
100 |
101 | **Signature**: `set value(value: string): void`
102 |
103 | - `value`: The new value to set for the color picker.
104 |
105 | ```xmlui-pg copy display name="Example: setValue"
106 | <App>
107 | <App>
108 | <ColorPicker
109 | id="colorPicker"
110 | label="Select your favorite color"
111 | initialValue="#808080" />
112 | <HStack>
113 | <Button
114 | label="Set to red"
115 | onClick="colorPicker.setValue('#ff0000')" />
116 | <Button
117 | label="Set to green"
118 | onClick="colorPicker.setValue('#00c000')" />
119 | <Button
120 | label="Set to blue"
121 | onClick="colorPicker.setValue('#0000ff')" />
122 | </HStack>
123 | </App>
124 | </App>
125 | ```
126 |
127 | ### `value` [#value]
128 |
129 | This method returns the current value of the ColorPicker.
130 |
131 | **Signature**: `get value(): string`
132 |
133 | ## Styling [#styling]
134 |
135 | ### Theme Variables [#theme-variables]
136 |
137 | | Variable | Default Value (Light) | Default Value (Dark) |
138 | | --- | --- | --- |
139 | | [backgroundColor](../styles-and-themes/common-units/#color)-ColorPicker | *none* | *none* |
140 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default | *none* | *none* |
141 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default--focus | *none* | *none* |
142 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-default--hover | *none* | *none* |
143 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error | *none* | *none* |
144 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error--focus | *none* | *none* |
145 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-error--hover | *none* | *none* |
146 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success | *none* | *none* |
147 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success--focus | *none* | *none* |
148 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-success--hover | *none* | *none* |
149 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning | *none* | *none* |
150 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning--focus | *none* | *none* |
151 | | [borderColor](../styles-and-themes/common-units/#color)-ColorPicker-warning--hover | *none* | *none* |
152 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-default | *none* | *none* |
153 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-error | *none* | *none* |
154 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-success | *none* | *none* |
155 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-ColorPicker-warning | *none* | *none* |
156 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-default | *none* | *none* |
157 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-error | *none* | *none* |
158 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-success | *none* | *none* |
159 | | [borderStyle](../styles-and-themes/common-units/#border-style)-ColorPicker-warning | *none* | *none* |
160 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-default | *none* | *none* |
161 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-error | *none* | *none* |
162 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-success | *none* | *none* |
163 | | [borderWidth](../styles-and-themes/common-units/#size)-ColorPicker-warning | *none* | *none* |
164 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default | *none* | *none* |
165 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default--focus | *none* | *none* |
166 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-default--hover | *none* | *none* |
167 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error | *none* | *none* |
168 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error--focus | *none* | *none* |
169 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-error--hover | *none* | *none* |
170 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success | *none* | *none* |
171 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success--focus | *none* | *none* |
172 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-success--hover | *none* | *none* |
173 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning | *none* | *none* |
174 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning--focus | *none* | *none* |
175 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-ColorPicker-warning--hover | *none* | *none* |
176 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Form/Form.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import styles from "./Form.module.scss";
2 |
3 | import { createComponentRenderer } from "../../components-core/renderers";
4 | import { parseScssVar } from "../../components-core/theming/themeVars";
5 | import { createMetadata, d, dComponent, dEnabled, dInternal } from "../metadata-helpers";
6 | import { labelPositionMd } from "../abstractions";
7 | import { FormWithContextVar, defaultProps } from "./FormNative";
8 |
9 | const COMP = "Form";
10 |
11 | export const FormMd = createMetadata({
12 | status: "stable",
13 | description:
14 | "`Form` provides a structured container for collecting and validating user " +
15 | "input, with built-in data binding, validation, and submission handling. It " +
16 | "automatically manages form state and provides context for nested form controls " +
17 | "to work together.",
18 | props: {
19 | buttonRowTemplate: dComponent(
20 | `This property allows defining a custom component to display the buttons at the bottom of the form.`,
21 | ),
22 | itemLabelPosition: {
23 | description:
24 | `This property sets the position of the item labels within the form.` +
25 | `Individual \`FormItem\` instances can override this property.`,
26 | availableValues: labelPositionMd,
27 | type: "string",
28 | defaultValue: defaultProps.itemLabelPosition,
29 | },
30 | itemLabelWidth: {
31 | description:
32 | "This property sets the width of the item labels within the form. Individual " +
33 | "\`FormItem\` instances can override this property. If this property is not set, " +
34 | "each form item nested in the form uses its calculated label width. These widths " +
35 | "may be different for each item.",
36 | type: "string",
37 | },
38 | itemLabelBreak: {
39 | description:
40 | `This boolean value indicates if form item labels can be split into multiple ` +
41 | `lines if it would overflow the available label width. Individual \`FormItem\` ` +
42 | `instances can override this property.`,
43 | type: "boolean",
44 | defaultValue: defaultProps.itemLabelBreak,
45 | },
46 | keepModalOpenOnSubmit: {
47 | description: "This property prevents the modal from closing when the form is submitted.",
48 | type: "boolean",
49 | defaultValue: defaultProps.keepModalOpenOnSubmit,
50 | },
51 | data: {
52 | description:
53 | "This property sets the initial value of the form's data structure. The form infrastructure " +
54 | "uses this value to set the initial state of form items within the form. If this property is" +
55 | "not set, the form does not have an initial value.",
56 | },
57 | cancelLabel: {
58 | description: "This property defines the label of the Cancel button.",
59 | type: "string",
60 | defaultValue: defaultProps.cancelLabel,
61 | },
62 | saveLabel: {
63 | description: `This property defines the label of the Save button.`,
64 | type: "string",
65 | defaultValue: defaultProps.saveLabel,
66 | },
67 | saveInProgressLabel: {
68 | description:
69 | "This property defines the label of the Save button to display during the " +
70 | "form data submit (save) operation.",
71 | type: "string",
72 | defaultValue: defaultProps.saveInProgressLabel,
73 | },
74 | swapCancelAndSave: {
75 | description:
76 | `By default, the Cancel button is to the left of the Save button. Set this property to ` +
77 | `\`true\` to swap them or \`false\` to keep their original location.`,
78 | type: "boolean",
79 | defaultValue: defaultProps.swapCancelAndSave,
80 | },
81 | hideButtonRowUntilDirty: {
82 | description:
83 | `This property hides the button row until the form data is modified (dirty).`,
84 | type: "boolean",
85 | defaultValue: defaultProps.hideButtonRowUntilDirty,
86 | },
87 | hideButtonRow: {
88 | description:
89 | `This property hides the button row entirely when set to true.`,
90 | type: "boolean",
91 | defaultValue: defaultProps.hideButtonRow,
92 | },
93 | submitUrl: d(`URL to submit the form data.`),
94 | submitMethod: {
95 | description:
96 | "This property sets the HTTP method to use when submitting the form data. If not " +
97 | "defined, `put` is used when the form has initial data; otherwise, `post`.",
98 | },
99 | inProgressNotificationMessage: d("This property sets the message to display when the form is being submitted."),
100 | completedNotificationMessage: d("This property sets the message to display when the form is submitted successfully."),
101 | errorNotificationMessage: d("This property sets the message to display when the form submission fails."),
102 | enabled: dEnabled(),
103 | _data_url: dInternal("when we have an api bound data prop, we inject the url here"),
104 | },
105 | events: {
106 | willSubmit: d(
107 | `The form infrastructure fires this event just before the form is submitted. The event argument ` +
108 | `is the current \`data\` value to be submitted. You can cancel the submission by returning ` +
109 | `\`false\` from the event handler.`,
110 | ),
111 | submit: d(
112 | `The form infrastructure fires this event when the form is submitted. The event argument ` +
113 | `is the current \`data\` value to save.`,
114 | ),
115 | success: d("The form infrastructure fires this event when the form is submitted successfully."),
116 | cancel: d(`The form infrastructure fires this event when the form is canceled.`),
117 | reset: d(`The form infrastructure fires this event when the form is reset.`),
118 | },
119 | contextVars: {
120 | $data: d(
121 | `This property represents the value of the form data. You can access the fields of the form ` +
122 | `using the IDs in the \`bindTo\` property of nested \`FormItem\` instances. \`$data\` also ` +
123 | `provides an \`update\` method as a shortcut to the Form's exposed \`update\` method.`,
124 | ),
125 | },
126 | apis: {
127 | reset: {
128 | description: "This method resets the form to its initial state, clearing all user input.",
129 | signature: "reset(): void",
130 | },
131 | update: {
132 | description: "You can pass a data object to update the form data. The properties in the passed data " +
133 | "object are updated to their values accordingly. Other form properties remain intact.",
134 | signature: "update(data: Record<string, any>): void",
135 | parameters: {
136 | data: "An object containing the form data to update.",
137 | },
138 | },
139 | },
140 | themeVars: parseScssVar(styles.themeVars),
141 | defaultThemeVars: {
142 | "gap-Form": "$space-4",
143 | "gap-buttonRow-Form": "$space-4",
144 | "backgroundColor-ValidationDisplay-error": "$color-danger-100",
145 | "backgroundColor-ValidationDisplay-warning": "$color-warn-100",
146 | "backgroundColor-ValidationDisplay-info": "$color-primary-100",
147 | "backgroundColor-ValidationDisplay-valid": "$color-success-100",
148 | "color-accent-ValidationDisplay-error": "$color-error",
149 | "color-accent-ValidationDisplay-warning": "$color-warning",
150 | "color-accent-ValidationDisplay-info": "$color-info",
151 | "color-accent-ValidationDisplay-valid": "$color-valid",
152 | "textColor-ValidationDisplay-error": "$color-error",
153 | "textColor-ValidationDisplay-warning": "$color-warning",
154 | "textColor-ValidationDisplay-info": "$color-info",
155 | "textColor-ValidationDisplay-valid": "$color-valid",
156 | "marginTop-buttonRow-Form": "$space-4"
157 | },
158 | });
159 |
160 | export const formComponentRenderer = createComponentRenderer(
161 | COMP,
162 | FormMd,
163 | ({ node, renderChild, extractValue, className, lookupEventHandler, registerComponentApi }) => {
164 | return (
165 | <FormWithContextVar
166 | node={node as any}
167 | renderChild={renderChild}
168 | extractValue={extractValue}
169 | lookupEventHandler={lookupEventHandler as any}
170 | className={className}
171 | registerComponentApi={registerComponentApi}
172 | />
173 | );
174 | },
175 | );
176 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/TextArea/TextAreaNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import React, {
2 | type ChangeEventHandler,
3 | type CSSProperties,
4 | type ForwardedRef,
5 | forwardRef,
6 | type TextareaHTMLAttributes,
7 | useCallback,
8 | useEffect,
9 | useRef,
10 | useState,
11 | } from "react";
12 | import classnames from "classnames";
13 | import TextareaAutosize from "react-textarea-autosize";
14 | import { isNil } from "lodash-es";
15 |
16 | import styles from "./TextArea.module.scss";
17 |
18 | import type { RegisterComponentApiFn, UpdateStateFn } from "../../abstractions/RendererDefs";
19 | import { noop } from "../../components-core/constants";
20 | import { useEvent } from "../../components-core/utils/misc";
21 | import type { ValidationStatus } from "../abstractions";
22 | import TextAreaResizable from "./TextAreaResizable";
23 | import { PART_INPUT } from "../../components-core/parts";
24 | import { composeRefs } from "@radix-ui/react-compose-refs";
25 |
26 | export const resizeOptionKeys = ["horizontal", "vertical", "both"] as const;
27 | export type ResizeOptions = (typeof resizeOptionKeys)[number];
28 |
29 | type Props = {
30 | id?: string;
31 | value?: string;
32 | placeholder?: string;
33 | required?: boolean;
34 | readOnly?: boolean;
35 | allowCopy?: boolean;
36 | updateState?: UpdateStateFn;
37 | validationStatus?: ValidationStatus;
38 | autoFocus?: boolean;
39 | initialValue?: string;
40 | resize?: ResizeOptions;
41 | enterSubmits?: boolean;
42 | escResets?: boolean;
43 | onDidChange?: (e: any) => void;
44 | onFocus?: () => void;
45 | onBlur?: () => void;
46 | controlled?: boolean;
47 | style?: CSSProperties;
48 | className?: string;
49 | registerComponentApi?: RegisterComponentApiFn;
50 | autoSize?: boolean;
51 | maxRows?: number;
52 | minRows?: number;
53 | maxLength?: number;
54 | rows?: number;
55 | enabled?: boolean;
56 | };
57 |
58 | export const defaultProps = {
59 | value: "",
60 | placeholder: "",
61 | required: false,
62 | readOnly: false,
63 | allowCopy: true,
64 | updateState: noop,
65 | autoFocus: false,
66 | initialValue: "",
67 | onDidChange: noop,
68 | onFocus: noop,
69 | onBlur: noop,
70 | controlled: true,
71 | enterSubmits: true,
72 | rows: 2,
73 | enabled: true,
74 | };
75 |
76 | export const TextArea = forwardRef(function TextArea(
77 | {
78 | id,
79 | value = defaultProps.value,
80 | placeholder = defaultProps.placeholder,
81 | required = defaultProps.required,
82 | readOnly = defaultProps.readOnly,
83 | allowCopy = defaultProps.allowCopy,
84 | updateState = defaultProps.updateState,
85 | validationStatus,
86 | autoFocus = defaultProps.autoFocus,
87 | initialValue = defaultProps.initialValue,
88 | resize,
89 | onDidChange = defaultProps.onDidChange,
90 | onFocus = defaultProps.onFocus,
91 | onBlur = defaultProps.onBlur,
92 | controlled = defaultProps.controlled,
93 | enterSubmits = defaultProps.enterSubmits,
94 | escResets,
95 | style,
96 | className,
97 | registerComponentApi,
98 | autoSize,
99 | maxRows,
100 | minRows,
101 | maxLength,
102 | rows = defaultProps.rows,
103 | enabled = defaultProps.enabled,
104 | ...rest
105 | }: Props,
106 | forwardedRef: ForwardedRef<HTMLTextAreaElement>,
107 | ) {
108 | // --- The component is initially unfocused
109 | const inputRef = useRef<HTMLTextAreaElement>(null);
110 | const ref = forwardRef ? composeRefs(forwardedRef, inputRef) : inputRef;
111 | const [cursorPosition, setCursorPosition] = useState(null);
112 | const [focused, setFocused] = React.useState(false);
113 |
114 | const updateValue = useCallback(
115 | (value: string) => {
116 | updateState({ value: value });
117 | onDidChange(value);
118 | },
119 | [onDidChange, updateState],
120 | );
121 |
122 | const onInputChange: ChangeEventHandler<HTMLTextAreaElement> = useCallback(
123 | (event) => {
124 | updateValue(event.target.value);
125 | },
126 | [updateValue],
127 | );
128 |
129 | useEffect(() => {
130 | updateState({ value: initialValue }, { initial: true });
131 | }, [initialValue, updateState]);
132 |
133 | useEffect(() => {
134 | if (autoFocus) {
135 | setTimeout(() => {
136 | inputRef.current?.focus();
137 | }, 0);
138 | }
139 | }, [autoFocus, inputRef.current]);
140 |
141 | // --- Execute this function when the user copies the value
142 | const handleCopy = (event: React.SyntheticEvent) => {
143 | if (allowCopy) {
144 | return true;
145 | } else {
146 | event.preventDefault();
147 | return false;
148 | }
149 | };
150 |
151 | // --- Manage obtaining and losing the focus
152 | const handleOnFocus = () => {
153 | setFocused(true);
154 | onFocus?.();
155 | };
156 | const handleOnBlur = () => {
157 | setFocused(false);
158 | onBlur?.();
159 | };
160 |
161 | const focus = useCallback(() => {
162 | setTimeout(() => {
163 | inputRef.current?.focus();
164 | }, 0);
165 | }, []);
166 |
167 | const insert = useCallback(
168 | (text: any) => {
169 | const input = inputRef?.current;
170 | if (input && text) {
171 | const start = input.selectionStart;
172 | const value = input.value;
173 | onInputChange({
174 | // @ts-ignore
175 | target: {
176 | value: value.substring(0, start) + text + value.substring(start),
177 | },
178 | });
179 | setCursorPosition(start + text.length);
180 | }
181 | },
182 | [inputRef, onInputChange],
183 | );
184 |
185 | const setValue = useEvent((val: string) => {
186 | updateValue(val);
187 | });
188 |
189 | useEffect(() => {
190 | if (cursorPosition) {
191 | const input = inputRef?.current;
192 | if (input) {
193 | input.setSelectionRange(cursorPosition, cursorPosition);
194 | setCursorPosition(null);
195 | }
196 | }
197 | }, [value, cursorPosition, inputRef]);
198 |
199 | useEffect(() => {
200 | registerComponentApi?.({
201 | focus,
202 | insert,
203 | setValue,
204 | });
205 | }, [focus, insert, registerComponentApi, setValue]);
206 |
207 | // --- Handle the Enter key press
208 | const handleEnter = useCallback(
209 | (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
210 | if (e.currentTarget.form && enterSubmits && e.key.toLowerCase() === "enter" && !e.shiftKey) {
211 | // -- Do not generate a new line
212 | e.preventDefault();
213 | e.currentTarget.form?.requestSubmit();
214 | }
215 | if (e.currentTarget.form && escResets && e.key.toLowerCase() === "escape" && !e.shiftKey) {
216 | e.preventDefault();
217 | e.currentTarget.form?.reset();
218 | }
219 | },
220 | [enterSubmits, escResets],
221 | );
222 |
223 | let classes = classnames(className, styles.textarea, {
224 | [styles.resizeHorizontal]: resize === "horizontal",
225 | [styles.resizeVertical]: resize === "vertical",
226 | [styles.resizeBoth]: resize === "both",
227 | [styles.focused]: focused,
228 | [styles.disabled]: !enabled,
229 | [styles.error]: validationStatus === "error",
230 | [styles.warning]: validationStatus === "warning",
231 | [styles.valid]: validationStatus === "valid",
232 | });
233 | const textareaProps: TextareaHTMLAttributes<HTMLTextAreaElement> &
234 | React.RefAttributes<HTMLTextAreaElement> = {
235 | ...rest,
236 | id,
237 | className: classes,
238 | ref,
239 | style: style as any,
240 | value: controlled ? value || "" : undefined,
241 | disabled: !enabled,
242 | name: id,
243 | placeholder,
244 | required,
245 | maxLength,
246 | "aria-multiline": true,
247 | "aria-readonly": readOnly,
248 | readOnly: readOnly,
249 | onChange: onInputChange,
250 | onCopy: handleCopy,
251 | onFocus: handleOnFocus,
252 | onBlur: handleOnBlur,
253 | onKeyDown: handleEnter,
254 | autoComplete: "off",
255 | };
256 |
257 | if (resize === "both" || resize === "horizontal" || resize === "vertical") {
258 | return (
259 | <TextAreaResizable
260 | {...textareaProps}
261 | data-part-id={PART_INPUT}
262 | style={style as any}
263 | className={classnames(classes)}
264 | maxRows={maxRows}
265 | minRows={minRows}
266 | rows={rows}
267 | />
268 | );
269 | }
270 | if (autoSize || !isNil(maxRows) || !isNil(minRows)) {
271 | return (
272 | <TextareaAutosize
273 | {...textareaProps}
274 | data-part-id={PART_INPUT}
275 | style={style as any}
276 | className={classnames(classes)}
277 | maxRows={maxRows}
278 | minRows={minRows}
279 | rows={rows}
280 | />
281 | );
282 | }
283 |
284 | return (
285 | <textarea
286 | {...textareaProps}
287 | data-part-id={PART_INPUT}
288 | rows={rows}
289 | className={classnames(classes)}
290 | />
291 | );
292 | });
293 |
```
--------------------------------------------------------------------------------
/xmlui/src/components/Splitter/SplitterNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import React, { useEffect, useState, useMemo } from "react";
2 | import classnames from "classnames";
3 |
4 | import styles from "./Splitter.module.scss";
5 |
6 | import { noop } from "../../components-core/constants";
7 | import { parseSize, toPercentage } from "../Splitter/utils";
8 | import type { OrientationOptions } from "../abstractions";
9 |
10 | export const defaultProps = {
11 | initialPrimarySize: "50%",
12 | minPrimarySize: "0%",
13 | maxPrimarySize: "100%",
14 | orientation: "vertical" as OrientationOptions,
15 | swapped: false,
16 | floating: false,
17 | };
18 |
19 | type SplitterProps = {
20 | children: React.ReactNode[] | React.ReactNode;
21 | style?: React.CSSProperties;
22 | className?: string;
23 | splitterTemplate?: React.ReactNode;
24 | orientation?: OrientationOptions;
25 | floating?: boolean;
26 | resize?: (sizes: [number, number]) => void;
27 | swapped?: boolean;
28 | initialPrimarySize?: string;
29 | minPrimarySize?: string;
30 | maxPrimarySize?: string;
31 | };
32 |
33 | export const Splitter = ({
34 | initialPrimarySize = defaultProps.initialPrimarySize,
35 | minPrimarySize = defaultProps.minPrimarySize,
36 | maxPrimarySize = defaultProps.maxPrimarySize,
37 | orientation = defaultProps.orientation,
38 | children,
39 | style,
40 | className,
41 | swapped = defaultProps.swapped,
42 | floating = defaultProps.floating,
43 | splitterTemplate,
44 | resize = noop,
45 | ...rest
46 | }: SplitterProps) => {
47 | const [size, setSize] = useState(0);
48 | const [splitter, setSplitter] = useState<HTMLDivElement | null>(null);
49 | const [resizerVisible, setResizerVisible] = useState(false);
50 | const [resizer, setResizer] = useState<HTMLDivElement | null>(null);
51 | const [floatingResizer, setFloatingResizer] = useState<HTMLDivElement | null>(null);
52 | const resizerElement = useMemo(
53 | () => (floating ? floatingResizer : resizer),
54 | [floating, resizer, floatingResizer],
55 | );
56 |
57 | useEffect(() => {
58 | if (splitter) {
59 | const containerSize =
60 | orientation === "horizontal"
61 | ? splitter.getBoundingClientRect().width
62 | : splitter.getBoundingClientRect().height;
63 | const initialParsedSize = parseSize(initialPrimarySize, containerSize);
64 |
65 | setSize(initialParsedSize);
66 | if (resize) {
67 | resize([
68 | toPercentage(initialParsedSize, containerSize),
69 | toPercentage(containerSize - initialParsedSize, containerSize),
70 | ]);
71 | }
72 | }
73 | }, [initialPrimarySize, orientation, resize, splitter, swapped]);
74 |
75 | useEffect(() => {
76 | const handleMouseMove = (event: MouseEvent) => {
77 | if (splitter && resizerElement) {
78 | const containerSize =
79 | orientation === "horizontal"
80 | ? splitter.getBoundingClientRect().width
81 | : splitter.getBoundingClientRect().height;
82 | const newSize =
83 | orientation === "horizontal"
84 | ? Math.min(
85 | Math.max(
86 | event.clientX - splitter.getBoundingClientRect().left,
87 | parseSize(minPrimarySize, containerSize),
88 | ),
89 | parseSize(maxPrimarySize, containerSize),
90 | )
91 | : Math.min(
92 | Math.max(
93 | event.clientY - splitter.getBoundingClientRect().top,
94 | parseSize(minPrimarySize, containerSize),
95 | ),
96 | parseSize(maxPrimarySize, containerSize),
97 | );
98 |
99 | setSize(newSize);
100 | if (resize) {
101 | resize([
102 | toPercentage(newSize, containerSize),
103 | toPercentage(containerSize - newSize, containerSize),
104 | ]);
105 | }
106 | }
107 | };
108 |
109 | const handleMouseUp = () => {
110 | document.removeEventListener("mousemove", handleMouseMove);
111 | document.removeEventListener("mouseup", handleMouseUp);
112 | };
113 |
114 | const handleMouseDown = () => {
115 | document.addEventListener("mousemove", handleMouseMove);
116 | document.addEventListener("mouseup", handleMouseUp);
117 | };
118 |
119 | if (resizerElement) {
120 | resizerElement.addEventListener("mousedown", handleMouseDown);
121 | }
122 |
123 | return () => {
124 | if (resizerElement) {
125 | resizerElement.removeEventListener("mousedown", handleMouseDown);
126 | }
127 | document.removeEventListener("mousemove", handleMouseMove);
128 | document.removeEventListener("mouseup", handleMouseUp);
129 | };
130 | }, [minPrimarySize, maxPrimarySize, orientation, resize, floating, resizerElement, splitter]);
131 |
132 | useEffect(() => {
133 | const watchResizer = (event: MouseEvent) => {
134 | const cursorPosition = orientation === "horizontal" ? event.clientX : event.clientY;
135 | if (splitter) {
136 | const paneStart =
137 | orientation === "horizontal"
138 | ? splitter.getBoundingClientRect().left
139 | : splitter.getBoundingClientRect().top;
140 | const resizerPosition = paneStart + size;
141 | // Check if the cursor is near the resizer (within 20 pixels)
142 | if (cursorPosition > resizerPosition - 20 && cursorPosition < resizerPosition + 20) {
143 | setResizerVisible(true);
144 | } else {
145 | setResizerVisible(false);
146 | }
147 | }
148 | };
149 |
150 | if (splitter) {
151 | splitter.addEventListener("mousemove", watchResizer);
152 | splitter.addEventListener("mouseleave", () => setResizerVisible(false));
153 | }
154 |
155 | return () => {
156 | if (splitter) {
157 | splitter.removeEventListener("mouseleave", () => setResizerVisible(false));
158 | splitter.removeEventListener("mousemove", watchResizer);
159 | }
160 | };
161 | }, [size, orientation, splitter]);
162 |
163 | useEffect(() => {
164 | if (floatingResizer) {
165 | floatingResizer.style.opacity = resizerVisible ? "1" : "0";
166 | }
167 | }, [floatingResizer, resizerVisible]);
168 |
169 | return (
170 | <div
171 | {...rest}
172 | ref={(s) => setSplitter(s)}
173 | className={classnames(
174 | styles.splitter,
175 | {
176 | [styles.horizontal]: orientation === "horizontal",
177 | [styles.vertical]: orientation === "vertical",
178 | },
179 | className,
180 | )}
181 | style={style}
182 | >
183 | {React.Children.count(children) > 1 ? (
184 | <>
185 | <div
186 | style={!swapped ? { flexBasis: size } : {}}
187 | className={classnames({
188 | [styles.primaryPanel]: !swapped,
189 | [styles.secondaryPanel]: swapped,
190 | })}
191 | >
192 | {React.Children.toArray(children)[0]}
193 | </div>
194 | {!floating && (
195 | <div
196 | className={classnames(styles.resizer, {
197 | [styles.horizontal]: orientation === "horizontal",
198 | [styles.vertical]: orientation === "vertical",
199 | })}
200 | ref={(r) => setResizer(r)}
201 | >
202 | {splitterTemplate}
203 | </div>
204 | )}
205 | <div
206 | className={classnames({
207 | [styles.primaryPanel]: swapped,
208 | [styles.secondaryPanel]: !swapped,
209 | })}
210 | style={swapped ? { flexBasis: size } : {}}
211 | >
212 | {React.Children.toArray(children)[1]}
213 | </div>
214 | {floating && (
215 | <div
216 | ref={(fr) => setFloatingResizer(fr)}
217 | className={classnames(styles.floatingResizer, {
218 | [styles.horizontal]: orientation === "horizontal",
219 | [styles.vertical]: orientation === "vertical",
220 | })}
221 | style={{
222 | top: orientation === "horizontal" ? 0 : size,
223 | left: orientation === "horizontal" ? size : 0,
224 | }}
225 | >
226 | {splitterTemplate}
227 | </div>
228 | )}
229 | </>
230 | ) : (
231 | <>
232 | {React.Children.toArray(children)?.[0] && (
233 | <div className={styles.panel}>{React.Children.toArray(children)[0]}</div>
234 | )}
235 | </>
236 | )}
237 | </div>
238 | );
239 | };
240 |
```
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
```html
1 | <!doctype html>
2 | <html lang="en">
3 |
4 | <head>
5 | <meta charset="UTF-8" />
6 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" />
7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8 | <link rel="alternate" type="application/rss+xml" title="XMLUI Blog" href="/feed.rss" />
9 | <script>window.__PUBLIC_PATH = '/'</script>
10 | <base href="/">
11 | <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-S7NYYDMNPR"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-S7NYYDMNPR'); </script>
12 | </head>
13 |
14 | <body>
15 | <div id="root"></div>
16 | <script type="module" src="/index.ts"></script>
17 | <script type="text/javascript">
18 | window.transformStops = function(stops) {
19 |
20 | return stops.map(function(stop) {
21 |
22 | // Helper to extract a value from additionalProperties by key
23 | function getProp(key) {
24 | if (!stop.additionalProperties) return '';
25 | var propObj = stop.additionalProperties.find(function(p) { return p.key === key; });
26 | return propObj ? propObj.value : '';
27 | }
28 |
29 | return {
30 | name: stop.commonName,
31 | zone: getProp('Zone'),
32 | wifi: getProp('WiFi'),
33 | toilets: getProp('Toilets'),
34 | // A comma-separated list of line names that serve this stop
35 | lines: stop.lines
36 | ? stop.lines.map(function(line) { return line.name; }).join(', ')
37 | : ''
38 | };
39 |
40 | });
41 | }
42 |
43 | window.getComponentsList = function(items) {
44 | const onlyComponents = items.filter(item => item.name === 'components');
45 | return onlyComponents;
46 | }
47 |
48 |
49 | window.sliderValueToDate = function (value) {
50 | // Convert a slider value (representing days from start date) to an actual date string
51 | // value: number of days offset from startDate
52 | // returns: date string in YYYY-MM-DD format
53 |
54 | // Use fixed start date instead of window.startDate
55 | const start = new Date('2022-06-01'); // <-- FIXED: hard-coded instead of window.startDate
56 |
57 | // Create a new date by adding the slider value (days) to the start date
58 | const resultDate = new Date(start);
59 | resultDate.setDate(start.getDate() + value);
60 |
61 | // Format the date as YYYY-MM-DD
62 | const year = resultDate.getFullYear();
63 | const month = String(resultDate.getMonth() + 1).padStart(2, '0'); // +1 because months are 0-indexed
64 | const day = String(resultDate.getDate()).padStart(2, '0');
65 |
66 | const result = `${year}-${month}-${day}`;
67 | return result
68 | }
69 |
70 | window.formatMonth = function (month) {
71 | // Input: '2022-06'
72 | const [year, monthNum] = month.split('-');
73 | const date = new Date(year, monthNum - 1);
74 | return date.toLocaleString('default', { month: 'short', year: '2-digit' });
75 | // Output: 'Jun 22'
76 | }
77 |
78 | window.formatToday = function (plusDays = 0) {
79 | const date = new Date();
80 | if (plusDays !== 0) {
81 | date.setDate(date.getDate() + plusDays);
82 | }
83 | return date.toISOString().slice(0, 10).replace(/-/g, '/');
84 | }
85 |
86 | window.lineItemTotal = function (lineItems) {
87 | if (!lineItems || !Array.isArray(lineItems)) {
88 | return 0;
89 | }
90 |
91 | let total = 0;
92 | for (const item of lineItems) {
93 | if (item && typeof item.amount === 'number') {
94 | total += item.amount;
95 | }
96 | }
97 | return total;
98 | }
99 |
100 | window.sampleInvoice = {
101 | id: 55,
102 | invoice_number: "INV-1003",
103 | client: 'Globex Corporation',
104 | issue_date: "2025-03-13",
105 | due_date: "2025-03-28",
106 | status: "sent",
107 | notes: "Monthly service invoice",
108 | items: "[{\"id\": 14, \"name\": \"API Integration\", \"price\": 105, \"quantity\": 5, \"total\": 525}]",
109 | total: 525,
110 | created_at: "2025-04-19T23:45:47.937465",
111 | paid_date: null
112 | }
113 |
114 | window.filterInvoicesAfter = function (data, dateAfter) {
115 | if (!dateAfter) return data;
116 | return data
117 | .filter(invoice => new Date(invoice.issue_date) >= new Date(dateAfter))
118 | .sort((a, b) => new Date(a.issue_date) - new Date(b.issue_date));
119 | }
120 |
121 | window.formatDate = function (date) {
122 | return date.substring(0, 10)
123 | }
124 |
125 | window.filterSearchResults = function (clients, products, invoices, searchTerm) {
126 | if (!searchTerm) return [];
127 |
128 | const term = searchTerm.toLowerCase();
129 | const results = [];
130 |
131 | // Search clients - access the .value property
132 | if (clients && clients.value) {
133 | clients.value.forEach(client => {
134 | const nameMatch = client.name && client.name.toLowerCase().includes(term);
135 | const emailMatch = client.email && client.email.toLowerCase().includes(term);
136 | const phoneMatch = client.phone && client.phone.toLowerCase().includes(term);
137 | const addressMatch = client.address && client.address.toLowerCase().includes(term);
138 |
139 | if (nameMatch || emailMatch || phoneMatch || addressMatch) {
140 | let snippet = client.name;
141 | if (nameMatch) snippet = `Name: ${client.name}`;
142 | else if (emailMatch) snippet = `Email: ${client.email}`;
143 | else if (phoneMatch) snippet = `Phone: ${client.phone}`;
144 | else if (addressMatch) snippet = `Address: ${client.address}`;
145 |
146 | results.push({
147 | table_name: 'clients',
148 | record_id: client.id,
149 | title: client.name,
150 | snippet: snippet
151 | });
152 | }
153 | });
154 | }
155 |
156 | // Search products
157 | if (products && products.value) {
158 | products.value.forEach(product => {
159 | const nameMatch = product.name && product.name.toLowerCase().includes(term);
160 | const descMatch = product.description && product.description.toLowerCase().includes(term);
161 |
162 | if (nameMatch || descMatch) {
163 | let snippet = product.name;
164 | if (nameMatch) snippet = `Product: ${product.name}`;
165 | else if (descMatch) snippet = `Description: ${product.description}`;
166 |
167 | results.push({
168 | table_name: 'products',
169 | record_id: product.id,
170 | title: product.name,
171 | snippet: snippet
172 | });
173 | }
174 | });
175 | }
176 |
177 | // Search invoices
178 | if (invoices && invoices.value) {
179 | invoices.value.forEach(invoice => {
180 | const numberMatch = invoice.invoice_number && invoice.invoice_number.toLowerCase().includes(term);
181 | const notesMatch = invoice.notes && invoice.notes.toLowerCase().includes(term);
182 | const itemsMatch = invoice.items && invoice.items.toLowerCase().includes(term);
183 |
184 | if (numberMatch || notesMatch || itemsMatch) {
185 | let snippet = `Invoice: ${invoice.invoice_number}`;
186 | if (numberMatch) snippet = `Invoice: ${invoice.invoice_number}`;
187 | else if (notesMatch) snippet = `Notes: ${invoice.notes.substring(0, 100)}...`;
188 | else if (itemsMatch) snippet = `Items: ${invoice.items.substring(0, 100)}...`;
189 |
190 | results.push({
191 | table_name: 'invoices',
192 | record_id: invoice.id,
193 | title: invoice.invoice_number,
194 | snippet: snippet
195 | });
196 | }
197 | });
198 | }
199 |
200 | return results;
201 | }
202 |
203 | window.handleHelloClick = function(event) {
204 | console.log('Hello World clicked!', event);
205 | alert('Button clicked!');
206 | };
207 |
208 | window.handleHelloReset = function(event) {
209 | console.log('Hello World reset!', event);
210 | alert('Counter was reset!');
211 | };
212 |
213 |
214 | </script>
215 | </body>
216 |
217 | </html>
```
--------------------------------------------------------------------------------
/xmlui/src/components/ProgressBar/ProgressBar.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { test, expect } from "../../testing/fixtures";
2 |
3 | // =============================================================================
4 | // BASIC FUNCTIONALITY TESTS
5 | // =============================================================================
6 |
7 | test.describe("Basic Functionality", () => {
8 | test("component renders with basic props", async ({ initTestBed, createProgressBarDriver }) => {
9 | await initTestBed(`<ProgressBar value="{0.5}" />`);
10 | const driver = await createProgressBarDriver();
11 |
12 | await expect(driver.component).toBeVisible();
13 | await expect(driver.bar).toBeVisible();
14 | });
15 |
16 | test("displays progress value correctly", async ({ initTestBed, createProgressBarDriver }) => {
17 | await initTestBed(`<ProgressBar value="{0.7}" />`);
18 | const driver = await createProgressBarDriver();
19 |
20 | const value = await driver.getProgressRatio();
21 | expect(value).toBeCloseTo(0.7, 2);
22 | });
23 |
24 | test("handles zero value", async ({ initTestBed, createProgressBarDriver }) => {
25 | await initTestBed(`<ProgressBar value="{0}" />`);
26 | const driver = await createProgressBarDriver();
27 |
28 | const value = await driver.getProgressRatio();
29 | expect(value).toBe(0);
30 | });
31 |
32 | test("handles maximum value", async ({ initTestBed, createProgressBarDriver }) => {
33 | await initTestBed(`<ProgressBar value="{1}" />`);
34 | const driver = await createProgressBarDriver();
35 |
36 | const value = await driver.getProgressRatio();
37 | expect(value).toBe(1);
38 | });
39 |
40 | test("handles decimal values", async ({ initTestBed, createProgressBarDriver }) => {
41 | await initTestBed(`<ProgressBar value="{0.335}" />`);
42 | const driver = await createProgressBarDriver();
43 |
44 | const value = await driver.getProgressRatio();
45 | expect(value).toBeCloseTo(0.335, 3);
46 | });
47 |
48 | test("handles string value prop", async ({ initTestBed, createProgressBarDriver }) => {
49 | await initTestBed(`<ProgressBar value="0.6" />`);
50 | const driver = await createProgressBarDriver();
51 |
52 | const value = await driver.getProgressRatio();
53 | expect(value).toBeCloseTo(0.6, 2);
54 | });
55 |
56 | test("component renders without value prop", async ({ initTestBed, createProgressBarDriver }) => {
57 | await initTestBed(`<ProgressBar />`);
58 | const driver = await createProgressBarDriver();
59 |
60 | await expect(driver.component).toBeVisible();
61 | const value = await driver.getProgressRatio();
62 | expect(value).toBe(0);
63 | });
64 | });
65 |
66 | // =============================================================================
67 | // ACCESSIBILITY TESTS
68 | // =============================================================================
69 |
70 | test.describe("Accessibility", () => {
71 | test("has proper accessibility roles", async ({ initTestBed, page }) => {
72 | await initTestBed(`<ProgressBar value="{0.6}" />`);
73 |
74 | const bar = page.getByRole("progressbar");
75 | await expect(bar).toHaveAttribute("aria-valuemin", "0");
76 | await expect(bar).toHaveAttribute("aria-valuemax", "100");
77 | await expect(bar).toHaveAttribute("aria-valuenow", "60");
78 | });
79 |
80 | test("maintains accessibility attributes with edge case values", async ({
81 | initTestBed,
82 | page,
83 | }) => {
84 | await initTestBed(`<ProgressBar value="{-5}" />`);
85 |
86 | const bar = page.getByRole("progressbar");
87 | await expect(bar).toHaveAttribute("aria-valuenow", "0");
88 | await expect(bar).toHaveAttribute("aria-valuemin", "0");
89 | await expect(bar).toHaveAttribute("aria-valuemax", "100");
90 | });
91 | });
92 |
93 | // =============================================================================
94 | // EDGE CASES TESTS
95 | // =============================================================================
96 |
97 | test.describe("Edge Cases", () => {
98 | test("handles negative values by clamping to 0", async ({
99 | initTestBed,
100 | createProgressBarDriver,
101 | }) => {
102 | await initTestBed(`<ProgressBar value="{-0.5}" />`);
103 | const driver = await createProgressBarDriver();
104 |
105 | const value = await driver.getProgressRatio();
106 | expect(value).toBe(0);
107 | });
108 |
109 | test("handles values greater than 1 by clamping to 1", async ({
110 | initTestBed,
111 | createProgressBarDriver,
112 | }) => {
113 | await initTestBed(`<ProgressBar value="{1.5}" />`);
114 | const driver = await createProgressBarDriver();
115 |
116 | const value = await driver.getProgressRatio();
117 | expect(value).toBe(1);
118 | });
119 |
120 | test("handles NaN values", async ({ initTestBed, createProgressBarDriver }) => {
121 | await initTestBed(`<ProgressBar value="{NaN}" />`);
122 | const driver = await createProgressBarDriver();
123 |
124 | const value = await driver.getProgressRatio();
125 | expect(value).toBe(0);
126 | });
127 |
128 | test("handles undefined value", async ({ initTestBed, createProgressBarDriver }) => {
129 | await initTestBed(`<ProgressBar value="{undefined}" />`);
130 | const driver = await createProgressBarDriver();
131 |
132 | const value = await driver.getProgressRatio();
133 | expect(value).toBe(0);
134 | });
135 |
136 | test("handles null value", async ({ initTestBed, createProgressBarDriver }) => {
137 | await initTestBed(`<ProgressBar value="{null}" />`);
138 | const driver = await createProgressBarDriver();
139 |
140 | const value = await driver.getProgressRatio();
141 | expect(value).toBe(0);
142 | });
143 |
144 | test("handles very small decimal values", async ({ initTestBed, createProgressBarDriver }) => {
145 | await initTestBed(`<ProgressBar value="{0.001}" />`);
146 | const driver = await createProgressBarDriver();
147 |
148 | const value = await driver.getProgressRatio();
149 | expect(value).toBeCloseTo(0.001, 3);
150 | });
151 |
152 | test("handles string values that are not numbers", async ({
153 | initTestBed,
154 | createProgressBarDriver,
155 | }) => {
156 | await initTestBed(`<ProgressBar value="invalid" />`);
157 | const driver = await createProgressBarDriver();
158 |
159 | const value = await driver.getProgressRatio();
160 | expect(value).toBe(0);
161 | });
162 |
163 | test("handles empty string value", async ({ initTestBed, createProgressBarDriver }) => {
164 | await initTestBed(`<ProgressBar value="" />`);
165 | const driver = await createProgressBarDriver();
166 |
167 | const value = await driver.getProgressRatio();
168 | expect(value).toBe(0);
169 | });
170 |
171 | test("handles 'true' value", async ({ initTestBed, createProgressBarDriver }) => {
172 | await initTestBed(`<ProgressBar value="{true}" />`);
173 | const driver = await createProgressBarDriver();
174 | const value = await driver.getProgressRatio();
175 | expect(value).toBe(1);
176 | });
177 |
178 | test("handles 'false' value", async ({ initTestBed, createProgressBarDriver }) => {
179 | await initTestBed(`<ProgressBar value="{false}" />`);
180 | const driver = await createProgressBarDriver();
181 | const value = await driver.getProgressRatio();
182 | expect(value).toBe(0);
183 | });
184 | });
185 |
186 | // =============================================================================
187 | // THEME VARIABLES TESTS
188 | // =============================================================================
189 |
190 | test.describe("Theme Variables", () => {
191 | test("applies theme variables correctly", async ({ initTestBed, createProgressBarDriver }) => {
192 | await initTestBed(`<ProgressBar value="{0.5}" />`, {
193 | testThemeVars: {
194 | "borderRadius-ProgressBar": "10px",
195 | "borderRadius-indicator-ProgressBar": "5px",
196 | "thickness-ProgressBar": "20px",
197 | "backgroundColor-ProgressBar": "rgb(255, 0, 0)",
198 | "color-indicator-ProgressBar": "rgb(0, 255, 0)",
199 | },
200 | });
201 | const driver = await createProgressBarDriver();
202 |
203 | await expect(driver.component).toHaveCSS("border-radius", "10px");
204 | await expect(driver.bar).toHaveCSS("border-radius", "5px");
205 | await expect(driver.component).toHaveCSS("height", "20px");
206 | await expect(driver.component).toHaveCSS("background-color", "rgb(255, 0, 0)");
207 | await expect(driver.bar).toHaveCSS("background-color", "rgb(0, 255, 0)");
208 | });
209 | });
210 |
```