This is page 153 of 181. Use http://codebase.md/xmlui-org/xmlui/cantFindIt.jpg?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── layout-changes.md
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ └── lorem-ipsum.png
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ └── welcome-to-the-xmlui-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Animation.tsx
│ │ │ ├── AnimationNative.tsx
│ │ │ ├── FadeAnimation.tsx
│ │ │ ├── FadeInAnimation.tsx
│ │ │ ├── FadeOutAnimation.tsx
│ │ │ ├── index.tsx
│ │ │ ├── ScaleAnimation.tsx
│ │ │ └── SlideInAnimation.tsx
│ │ └── tsconfig.json
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ ├── tsconfig.json
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── HelloWorld.module.scss
│ │ │ ├── HelloWorld.tsx
│ │ │ ├── HelloWorldNative.tsx
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── IPhoneFrame.module.scss
│ │ │ ├── IPhoneFrame.tsx
│ │ │ ├── MacOSAppFrame.module.scss
│ │ │ ├── MacOSAppFrame.tsx
│ │ │ ├── WindowsAppFrame.module.scss
│ │ │ └── WindowsAppFrame.tsx
│ │ └── tsconfig.json
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── LazyPdfNative.tsx
│ │ │ ├── Pdf.module.scss
│ │ │ └── Pdf.tsx
│ │ └── tsconfig.json
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── hooks
│ │ │ │ ├── usePlayground.ts
│ │ │ │ └── useToast.ts
│ │ │ ├── index.tsx
│ │ │ ├── playground
│ │ │ │ ├── Box.module.scss
│ │ │ │ ├── Box.tsx
│ │ │ │ ├── CodeSelector.tsx
│ │ │ │ ├── ConfirmationDialog.module.scss
│ │ │ │ ├── ConfirmationDialog.tsx
│ │ │ │ ├── Editor.tsx
│ │ │ │ ├── Header.module.scss
│ │ │ │ ├── Header.tsx
│ │ │ │ ├── Playground.tsx
│ │ │ │ ├── PlaygroundContent.module.scss
│ │ │ │ ├── PlaygroundContent.tsx
│ │ │ │ ├── PlaygroundNative.module.scss
│ │ │ │ ├── PlaygroundNative.tsx
│ │ │ │ ├── Preview.module.scss
│ │ │ │ ├── Preview.tsx
│ │ │ │ ├── Select.module.scss
│ │ │ │ ├── StandalonePlayground.tsx
│ │ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ │ ├── ThemeSwitcher.module.scss
│ │ │ │ ├── ThemeSwitcher.tsx
│ │ │ │ ├── ToneSwitcher.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── providers
│ │ │ │ ├── Toast.module.scss
│ │ │ │ └── ToastProvider.tsx
│ │ │ ├── state
│ │ │ │ └── store.ts
│ │ │ ├── themes
│ │ │ │ └── theme.ts
│ │ │ └── utils
│ │ │ └── helpers.ts
│ │ └── tsconfig.json
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Search.module.scss
│ │ │ └── Search.tsx
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ ├── src
│ │ ├── Carousel
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── FancyButton
│ │ │ ├── FancyButton.module.scss
│ │ │ ├── FancyButton.tsx
│ │ │ └── FancyButton.xmlui
│ │ ├── Hello
│ │ │ ├── Hello.tsx
│ │ │ ├── Hello.xmlui
│ │ │ └── Hello.xmlui.xs
│ │ ├── HeroSection
│ │ │ ├── HeroSection.module.scss
│ │ │ ├── HeroSection.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.mjs
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.mjs
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/NumberBox/NumberBox.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds, SKIP_REASON } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 |
4 | // =============================================================================
5 | // BASIC FUNCTIONALITY TESTS
6 | // =============================================================================
7 |
8 | test.describe("Basic Functionality", () => {
9 | test("component renders", async ({ initTestBed, page }) => {
10 | await initTestBed(`<NumberBox />`);
11 | await expect(page.getByRole("textbox")).toBeVisible();
12 | });
13 |
14 | test("component renders with label", async ({ initTestBed, page }) => {
15 | await initTestBed(`<NumberBox label="Amount" />`);
16 | await expect(page.getByText("Amount")).toBeVisible();
17 | });
18 |
19 | // --- initialValue prop
20 |
21 | test("initialValue sets field value", async ({ initTestBed, page }) => {
22 | await initTestBed(`<NumberBox initialValue="123" />`);
23 | await expect(page.getByRole("textbox")).toHaveValue("123");
24 | });
25 |
26 | test("initialValue ignores non-numeric string", async ({ initTestBed, page }) => {
27 | await initTestBed(`
28 | <NumberBox initialValue="can't be this" />
29 | `);
30 |
31 | await expect(page.getByRole("textbox")).toHaveValue("");
32 | });
33 |
34 | test("initialValue accepts various types", async ({ initTestBed, page }) => {
35 | await initTestBed(`
36 | <Stack>
37 | <NumberBox testId="integer" initialValue="{1}" />
38 | <NumberBox testId="float" initialValue="{1.2}" />
39 | <NumberBox testId="undefined" initialValue="{undefined}" />
40 | <NumberBox testId="null" initialValue="{null}" />
41 | <NumberBox testId="empty-string" initialValue="" />
42 | <NumberBox testId="string-integer" initialValue="1" />
43 | <NumberBox testId="string-float" initialValue="1.2" />
44 | </Stack>
45 | `);
46 |
47 | await expect(page.getByTestId("integer").getByRole("textbox")).toHaveValue("1");
48 | await expect(page.getByTestId("float").getByRole("textbox")).toHaveValue("1.2");
49 | await expect(page.getByTestId("undefined").getByRole("textbox")).toHaveValue("");
50 | await expect(page.getByTestId("null").getByRole("textbox")).toHaveValue("");
51 | await expect(page.getByTestId("empty-string").getByRole("textbox")).toHaveValue("");
52 | await expect(page.getByTestId("string-integer").getByRole("textbox")).toHaveValue("1");
53 | await expect(page.getByTestId("string-float").getByRole("textbox")).toHaveValue("1.2");
54 | });
55 |
56 | // --- enabled prop
57 |
58 | test("enabled=false disables control", async ({ initTestBed, page }) => {
59 | await initTestBed(`<NumberBox enabled="false" />`);
60 | await expect(page.getByRole("textbox")).toBeDisabled();
61 | });
62 |
63 | test("enabled=true enables control", async ({ initTestBed, page }) => {
64 | await initTestBed(`<NumberBox enabled="true" />`);
65 | await expect(page.getByRole("textbox")).not.toBeDisabled();
66 | });
67 |
68 | test("disabled input field stops user interaction for spinbox", async ({
69 | initTestBed,
70 | createNumberBoxDriver,
71 | }) => {
72 | await initTestBed(`<NumberBox enabled="false" initialValue="5" />`);
73 | const driver = await createNumberBoxDriver();
74 |
75 | await driver.increment();
76 | await expect(driver.input).toHaveValue("5");
77 | await expect(driver.spinnerUp).toBeDisabled();
78 |
79 | await driver.decrement();
80 | await expect(driver.input).toHaveValue("5");
81 | await expect(driver.spinnerDown).toBeDisabled();
82 | });
83 |
84 | // --- readOnly prop
85 |
86 | test("readOnly adds readonly attribute", async ({ initTestBed, page }) => {
87 | await initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
88 | const input = page.getByRole("textbox");
89 | await expect(input).toHaveAttribute("readonly");
90 | });
91 |
92 | test("readOnly input is not editable", async ({ initTestBed, page }) => {
93 | await initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
94 | const input = page.getByRole("textbox");
95 | await expect(input).not.toBeEditable();
96 | });
97 |
98 | test("readOnly input has value and can be focused", async ({ initTestBed, page }) => {
99 | await initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
100 | const input = page.getByRole("textbox");
101 | await expect(input).toHaveValue("123");
102 | await input.focus();
103 | await expect(input).toBeFocused();
104 | });
105 |
106 | // --- required prop
107 |
108 | test("required prop adds required attribute", async ({ initTestBed, page }) => {
109 | await initTestBed(`<NumberBox required="true" />`);
110 | await expect(page.getByRole("textbox")).toHaveAttribute("required");
111 | });
112 |
113 | test("empty required NumberBox shows visual indicator", async ({ initTestBed, page }) => {
114 | await initTestBed(`<NumberBox label="test" required="{true}" />`);
115 | await expect(page.getByText("test")).toContainText("*");
116 | });
117 |
118 | // --- autoFocus prop
119 |
120 | test("autoFocus focuses input on mount", async ({ initTestBed, createNumberBoxDriver }) => {
121 | await initTestBed(`<NumberBox autoFocus="true" />`);
122 | const driver = await createNumberBoxDriver();
123 | await expect(driver.input).toBeFocused();
124 | });
125 |
126 | // --- placeholder prop
127 |
128 | test("placeholder shows when input is empty", async ({ initTestBed, page }) => {
129 | await initTestBed(`<NumberBox placeholder="Enter number..." />`);
130 | await expect(page.getByRole("textbox")).toHaveAttribute("placeholder", "Enter number...");
131 | });
132 |
133 | test("placeholder does not appear if input is filled", async ({ initTestBed, page }) => {
134 | await initTestBed(`<NumberBox placeholder="placeholder text" initialValue="123" />`);
135 | await expect(page.getByText("placeholder text")).not.toBeVisible();
136 | });
137 |
138 | // --- maxLength prop
139 |
140 | test("maxLength limits input length", async ({ initTestBed, page }) => {
141 | await initTestBed(`<NumberBox maxLength="3" />`);
142 | await page.getByRole("textbox").fill("12345");
143 | await expect(page.getByRole("textbox")).toHaveValue("123");
144 | });
145 |
146 | // --- User input testing
147 |
148 | test("component accepts user input", async ({ initTestBed, page }) => {
149 | await initTestBed(`<NumberBox />`);
150 | await page.getByRole("textbox").fill("456");
151 | await expect(page.getByRole("textbox")).toHaveValue("456");
152 | });
153 |
154 | test("component clears input correctly", async ({ initTestBed, page }) => {
155 | await initTestBed(`<NumberBox initialValue="123" />`);
156 | const input = page.getByRole("textbox");
157 | await expect(input).toHaveValue("123");
158 | await input.clear();
159 | await expect(input).toHaveValue("");
160 | });
161 |
162 | // --- hasSpinBox prop
163 |
164 | test("hasSpinBox=true renders spinbox", async ({ initTestBed, page }) => {
165 | await initTestBed(`<NumberBox hasSpinBox="true" />`);
166 | // Look for spinner container or buttons
167 | const spinnerContainer = page.locator(".spinnerBox, .spinner, [class*='spin']").first();
168 | const spinButtons = page.locator("button");
169 |
170 | const hasSpinnerContainer = await spinnerContainer.isVisible().catch(() => false);
171 | const hasSpinButtons = (await spinButtons.count()) > 0;
172 |
173 | expect(hasSpinnerContainer || hasSpinButtons).toBe(true);
174 | });
175 |
176 | test("hasSpinBox=false hides spinbox", async ({ initTestBed, page }) => {
177 | await initTestBed(`<NumberBox hasSpinBox="false" />`);
178 | // When hasSpinBox is false, spinner should not be visible
179 | const spinnerContainer = page.locator(".spinnerBox, .spinner, [class*='spin']").first();
180 | const spinButtons = page.locator("button");
181 |
182 | const hasSpinnerContainer = await spinnerContainer.isVisible().catch(() => false);
183 | const spinButtonCount = await spinButtons.count();
184 |
185 | expect(hasSpinnerContainer).toBe(false);
186 | expect(spinButtonCount).toBe(0);
187 | });
188 |
189 | // --- step prop with spinbox
190 |
191 | test("clicking spinbox up-arrow adds step value", async ({
192 | initTestBed,
193 | createNumberBoxDriver,
194 | }) => {
195 | await initTestBed(`<NumberBox initialValue="5" step="2" />`);
196 | const driver = await createNumberBoxDriver();
197 |
198 | await driver.increment();
199 | await expect(driver.input).toHaveValue("7");
200 | });
201 |
202 | test("clicking spinbox down-arrow subtracts step value", async ({
203 | initTestBed,
204 | createNumberBoxDriver,
205 | }) => {
206 | await initTestBed(`<NumberBox initialValue="5" step="2" />`);
207 | const driver = await createNumberBoxDriver();
208 |
209 | await driver.decrement();
210 | await expect(driver.input).toHaveValue("3");
211 | });
212 |
213 | test("invalid step values use default step", async ({ initTestBed, createNumberBoxDriver }) => {
214 | await initTestBed(`<NumberBox initialValue="10" step="3.5" />`);
215 | const driver = await createNumberBoxDriver();
216 | await driver.increment();
217 | await expect(driver.input).toHaveValue("11");
218 | });
219 |
220 | // --- Arrow key navigation
221 |
222 | test("pressing up arrow adds step value", async ({ initTestBed, page }) => {
223 | await initTestBed(`<NumberBox initialValue="5" />`);
224 | const input = page.getByRole("textbox");
225 | await input.focus();
226 | await page.keyboard.press("ArrowUp");
227 | await expect(input).toHaveValue("6");
228 | });
229 |
230 | test("pressing down arrow subtracts step value", async ({ initTestBed, page }) => {
231 | await initTestBed(`<NumberBox initialValue="5" />`);
232 | const input = page.getByRole("textbox");
233 | await input.focus();
234 | await page.keyboard.press("ArrowDown");
235 | await expect(input).toHaveValue("4");
236 | });
237 |
238 | // --- integersOnly prop
239 |
240 | test("integersOnly=true prevents decimal input", async ({ initTestBed, page }) => {
241 | await initTestBed(`<NumberBox integersOnly="true" />`);
242 | const input = page.getByRole("textbox");
243 | await input.fill("123.45");
244 | // Should not allow decimal point
245 | await expect(input).not.toHaveValue("123.45");
246 | });
247 |
248 | // --- zeroOrPositive prop
249 |
250 | test("zeroOrPositive=true prevents negative values", async ({
251 | initTestBed,
252 | createNumberBoxDriver,
253 | }) => {
254 | await initTestBed(`<NumberBox zeroOrPositive="true" initialValue="1" />`);
255 | const driver = await createNumberBoxDriver();
256 |
257 | await driver.decrement();
258 | await expect(driver.input).toHaveValue("0");
259 |
260 | await driver.decrement();
261 | await expect(driver.input).toHaveValue("0");
262 | });
263 |
264 | // --- Range validation (min/max)
265 |
266 | test("minValue prevents values below minimum spinner button", async ({
267 | initTestBed,
268 | createNumberBoxDriver,
269 | }) => {
270 | await initTestBed(`<NumberBox minValue="10" initialValue="11" />`);
271 | const driver = await createNumberBoxDriver();
272 |
273 | await driver.decrement();
274 | await expect(driver.input).toHaveValue("10");
275 |
276 | await driver.decrement();
277 | await expect(driver.input).toHaveValue("10");
278 | });
279 |
280 | test("minValue prevents typing values below minimum", async ({ initTestBed, page }) => {
281 | await initTestBed(`<NumberBox minValue="10" initialValue="11" />`);
282 |
283 | const textbox = page.getByRole("textbox");
284 |
285 | await textbox.fill("2");
286 | await textbox.blur();
287 | await expect(textbox).toHaveValue("10");
288 | });
289 |
290 | test("maxValue prevents values above maximum spinner button", async ({
291 | initTestBed,
292 | createNumberBoxDriver,
293 | }) => {
294 | await initTestBed(`<NumberBox maxValue="11" initialValue="10" />`);
295 | const driver = await createNumberBoxDriver();
296 |
297 | await driver.increment();
298 | await expect(driver.input).toHaveValue("11");
299 |
300 | await driver.increment();
301 | await expect(driver.input).toHaveValue("11");
302 | });
303 |
304 | test("maxValue prevents typing values above maximum", async ({ initTestBed, page }) => {
305 | await initTestBed(`<NumberBox maxValue="11" initialValue="10" />`);
306 |
307 | const textbox = page.getByRole("textbox");
308 |
309 | await textbox.fill("200");
310 | await textbox.blur();
311 | await expect(textbox).toHaveValue("11");
312 | });
313 | });
314 |
315 | // =============================================================================
316 | // ACCESSIBILITY TESTS
317 | // =============================================================================
318 |
319 | test.describe("Accessibility", () => {
320 | test("has correct role", async ({ initTestBed, page }) => {
321 | await initTestBed(`<NumberBox testId="input" hasSpinBox="true" />`);
322 | await expect(page.getByRole("spinbutton")).toHaveCount(2);
323 | await expect(page.getByRole("textbox")).toBeVisible();
324 | });
325 |
326 | test("component supports keyboard navigation", async ({ initTestBed, page }) => {
327 | await initTestBed(`<NumberBox label="Amount" />`);
328 | await page.keyboard.press("Tab");
329 | await expect(page.getByRole("textbox")).toBeFocused();
330 | });
331 |
332 | test("required has proper ARIA attributes", async ({ initTestBed, page }) => {
333 | await initTestBed(`<NumberBox required="true" label="Required field" />`);
334 | await expect(page.getByRole("textbox")).toHaveAttribute("required");
335 | });
336 | });
337 |
338 | // =============================================================================
339 | // LABEL POSITIONING TESTS
340 | // =============================================================================
341 |
342 | test.describe("Label", () => {
343 | test("component handles invalid labelPosition gracefully", async ({ initTestBed, page }) => {
344 | await initTestBed(`<NumberBox label="Label" labelPosition="invalid" />`);
345 | await expect(page.getByText("Label")).toBeVisible();
346 | await expect(page.getByRole("textbox")).toBeVisible();
347 | });
348 |
349 | test("empty string label is not rendered", async ({ initTestBed, page }) => {
350 | await initTestBed(`<NumberBox label="" initialValue="" />`);
351 | // No specific label should be visible, just the input
352 | await expect(page.getByRole("textbox")).toBeVisible();
353 | });
354 |
355 | test("clicking on the label focuses input field", async ({ initTestBed, page }) => {
356 | await initTestBed(`<NumberBox label="Input Field Label" />`);
357 | await page.getByText("Input Field Label").click();
358 | await expect(page.getByRole("textbox")).toBeFocused();
359 | });
360 |
361 | test("labelPosition=start positions label before input", async ({ initTestBed, page }) => {
362 | await initTestBed(`<NumberBox direction="ltr" label="Label" labelPosition="start" />`);
363 | const labelBox = await getBounds(page.getByText("Label"));
364 | const inputBox = await getBounds(page.getByRole("textbox"));
365 |
366 | expect(labelBox.right).toBeLessThan(inputBox.left);
367 | });
368 |
369 | test("labelPosition=end positions label after input", async ({ initTestBed, page }) => {
370 | await initTestBed(`<NumberBox direction="ltr" label="Label" labelPosition="end" />`);
371 | const labelBox = await getBounds(page.getByText("Label"));
372 | const inputBox = await getBounds(page.getByRole("textbox"));
373 |
374 | expect(labelBox.left).toBeGreaterThan(inputBox.right);
375 | });
376 |
377 | test("labelPosition=start positions label before input (rtl)", async ({ initTestBed, page }) => {
378 | await initTestBed(`<NumberBox direction="rtl" label="Label" labelPosition="start" />`);
379 | const labelBox = await getBounds(page.getByText("Label"));
380 | const inputBox = await getBounds(page.getByRole("textbox"));
381 |
382 | expect(labelBox.left).toBeGreaterThan(inputBox.right);
383 | });
384 |
385 | test("labelPosition=end positions label after input (rtl)", async ({ initTestBed, page }) => {
386 | await initTestBed(`<NumberBox direction="rtl" label="Label" labelPosition="end" />`);
387 | const labelBox = await getBounds(page.getByText("Label"));
388 | const inputBox = await getBounds(page.getByRole("textbox"));
389 |
390 | expect(labelBox.right).toBeLessThan(inputBox.left);
391 | });
392 |
393 | test("labelPosition=top positions label above input", async ({ initTestBed, page }) => {
394 | await initTestBed(`<NumberBox label="Label" labelPosition="top" />`);
395 | const labelBox = await getBounds(page.getByText("Label"));
396 | const inputBox = await getBounds(page.getByRole("textbox"));
397 |
398 | expect(labelBox.bottom).toBeLessThan(inputBox.top);
399 | });
400 |
401 | test("labelPosition=bottom positions label below input", async ({ initTestBed, page }) => {
402 | await initTestBed(`<NumberBox label="Label" labelPosition="bottom" />`);
403 | const labelBox = await getBounds(page.getByText("Label"));
404 | const inputBox = await getBounds(page.getByRole("textbox"));
405 |
406 | expect(labelBox.top).toBeGreaterThan(inputBox.bottom);
407 | });
408 |
409 | test("labelWidth applies custom label width", async ({ initTestBed, page }) => {
410 | await initTestBed(`<NumberBox label="Label" labelWidth="200px" />`);
411 | const label = page.getByText("Label");
412 | await expect(label).toBeVisible();
413 | await expect(label).toHaveCSS("width", "200px");
414 | });
415 |
416 | test("labelBreak enables label line breaks", async ({ initTestBed, page }) => {
417 | await initTestBed(
418 | `<NumberBox label="Very long label text" labelBreak="true" labelWidth="50px" />`,
419 | );
420 | const label = page.getByText("Very long label text");
421 | await expect(label).toBeVisible();
422 | });
423 | });
424 |
425 | // =============================================================================
426 | // EVENT HANDLING TESTS
427 | // =============================================================================
428 |
429 | test.describe("Event Handling", () => {
430 | test("didChange event fires on input change", async ({ initTestBed, page }) => {
431 | const { testStateDriver } = await initTestBed(
432 | `<NumberBox onDidChange="testState = 'changed'" />`,
433 | );
434 | await page.getByRole("textbox").fill("123");
435 | await expect.poll(testStateDriver.testState).toBe("changed");
436 | });
437 |
438 | test("didChange event passes new value", async ({ initTestBed, page }) => {
439 | const { testStateDriver } = await initTestBed(
440 | `<NumberBox onDidChange="arg => testState = arg" />`,
441 | );
442 | await page.getByRole("textbox").fill("123");
443 | await expect.poll(testStateDriver.testState).toBe("123");
444 | });
445 |
446 | test("gotFocus event fires on focus", async ({ initTestBed, page }) => {
447 | const { testStateDriver } = await initTestBed(
448 | `<NumberBox onGotFocus="testState = 'focused'" />`,
449 | );
450 | await page.getByRole("textbox").focus();
451 | await expect.poll(testStateDriver.testState).toBe("focused");
452 | });
453 |
454 | test("gotFocus event fires on label focus", async ({ initTestBed, page }) => {
455 | const { testStateDriver } = await initTestBed(
456 | `<NumberBox onGotFocus="testState = 'focused'" label="test" />`,
457 | );
458 | await page.getByText("test").click();
459 | await expect.poll(testStateDriver.testState).toBe("focused");
460 | });
461 |
462 | test("lostFocus event fires on blur", async ({ initTestBed, page }) => {
463 | const { testStateDriver } = await initTestBed(
464 | `<NumberBox onLostFocus="testState = 'blurred'" />`,
465 | );
466 | const input = page.getByRole("textbox");
467 | await input.focus();
468 | await input.blur();
469 | await expect.poll(testStateDriver.testState).toBe("blurred");
470 | });
471 |
472 | test("events do not fire when component is disabled", async ({ initTestBed, page }) => {
473 | const { testStateDriver } = await initTestBed(`
474 | <NumberBox enabled="false" onDidChange="testState = 'changed'" onGotFocus="testState = 'focused'" />
475 | `);
476 |
477 | const input = page.getByRole("textbox");
478 | await input.focus();
479 | await input.fill("123", { force: true }); // Should not allow input
480 |
481 | await expect.poll(testStateDriver.testState).toBe(null);
482 | });
483 | });
484 |
485 | // =============================================================================
486 | // API TESTS
487 | // =============================================================================
488 |
489 | test.describe("API", () => {
490 | test("value API returns current state", async ({ initTestBed, page }) => {
491 | const { testStateDriver } = await initTestBed(`
492 | <Fragment>
493 | <NumberBox id="numberbox" initialValue="123" />
494 | <Button label="test" onClick="testState = numberbox.value" />
495 | </Fragment>
496 | `);
497 |
498 | await page.getByRole("button", { name: "test" }).click();
499 | await expect.poll(testStateDriver.testState).toBe(123);
500 | });
501 |
502 | test("value API returns state after change", async ({ initTestBed, page }) => {
503 | const { testStateDriver } = await initTestBed(`
504 | <Fragment>
505 | <NumberBox id="numberbox" />
506 | <Button label="test" onClick="testState = numberbox.value" />
507 | </Fragment>
508 | `);
509 |
510 | await page.getByRole("textbox").fill("456");
511 | await page.getByRole("button", { name: "test" }).click();
512 | await expect.poll(testStateDriver.testState).toBe("456");
513 | });
514 |
515 | test("setValue API updates state", async ({ initTestBed, page }) => {
516 | await initTestBed(`
517 | <Fragment>
518 | <NumberBox id="numberbox" />
519 | <Button label="test" onClick="numberbox.setValue(789)" />
520 | </Fragment>
521 | `);
522 |
523 | await page.getByRole("button", { name: "test" }).click();
524 | await expect(page.getByRole("textbox")).toHaveValue("789");
525 | });
526 |
527 | test("setValue API triggers events", async ({ initTestBed, page }) => {
528 | const { testStateDriver } = await initTestBed(`
529 | <Fragment>
530 | <NumberBox id="numberbox" onDidChange="testState = 'changed'" />
531 | <Button label="test" onClick="numberbox.setValue(123)" />
532 | </Fragment>
533 | `);
534 |
535 | await page.getByRole("button", { name: "test" }).click();
536 | await expect.poll(testStateDriver.testState).toBe("changed");
537 | });
538 |
539 | test("focus API focuses the input", async ({ initTestBed, page }) => {
540 | await initTestBed(`
541 | <Fragment>
542 | <NumberBox id="numberbox" />
543 | <Button label="test" onClick="numberbox.focus()" />
544 | </Fragment>
545 | `);
546 |
547 | await page.getByRole("button", { name: "test" }).click();
548 | await expect(page.getByRole("textbox")).toBeFocused();
549 | });
550 |
551 | test("focus API does nothing when component is disabled", async ({ initTestBed, page }) => {
552 | await initTestBed(`
553 | <Fragment>
554 | <NumberBox id="numberbox" enabled="false" />
555 | <Button label="test" onClick="numberbox.focus()" />
556 | </Fragment>
557 | `);
558 |
559 | await page.getByRole("button", { name: "test" }).click();
560 | await expect(page.getByRole("textbox")).not.toBeFocused();
561 | });
562 | });
563 |
564 | // =============================================================================
565 | // INPUT ADORNMENTS TESTS (From TextBox pattern)
566 | // =============================================================================
567 |
568 | test.describe("Input Adornments", () => {
569 | test("startText displays at beginning of input", async ({ initTestBed, page }) => {
570 | await initTestBed(`<NumberBox testId="input" direction="ltr" startText="$" />`);
571 |
572 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
573 | const { left: textLeft, right: textRight } = await getBounds(page.getByText("$"));
574 |
575 | await expect(page.getByTestId("input")).toContainText("$");
576 | expect(textRight - compLeft).toBeLessThanOrEqual(compRight - textLeft);
577 | });
578 |
579 | test("startText displays at beginning of input (rtl)", async ({ initTestBed, page }) => {
580 | await initTestBed(`<NumberBox testId="input" direction="rtl" startText="$" />`);
581 |
582 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
583 | const { left: textLeft, right: textRight } = await getBounds(page.getByText("$"));
584 |
585 | await expect(page.getByTestId("input")).toContainText("$");
586 | expect(textRight - compLeft).toBeLessThanOrEqual(compRight - textLeft);
587 | });
588 |
589 | test("endText displays at end of input", async ({ initTestBed, page }) => {
590 | await initTestBed(`<NumberBox testId="input" direction="ltr" endText="USD" />`);
591 |
592 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
593 | const { left: textLeft, right: textRight } = await getBounds(page.getByText("USD"));
594 |
595 | await expect(page.getByTestId("input")).toContainText("USD");
596 | expect(textRight - compLeft).toBeGreaterThanOrEqual(compRight - textLeft);
597 | });
598 |
599 | test("endText displays at end of input (rtl)", async ({ initTestBed, page }) => {
600 | await initTestBed(`<NumberBox testId="input" direction="rtl" endText="USD" />`);
601 |
602 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
603 | const { left: textLeft, right: textRight } = await getBounds(page.getByText("USD"));
604 |
605 | await expect(page.getByTestId("input")).toContainText("USD");
606 | expect(textRight - compLeft).toBeGreaterThanOrEqual(compRight - textLeft);
607 | });
608 |
609 | test("startIcon displays at beginning of input", async ({ initTestBed, page }) => {
610 | await initTestBed(`<NumberBox testId="input" direction="ltr" startIcon="search" />`);
611 |
612 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
613 | const { left: iconLeft, right: iconRight } = await getBounds(page.getByRole("img").first());
614 |
615 | expect(iconRight - compLeft).toBeLessThanOrEqual(compRight - iconLeft);
616 | });
617 |
618 | test("startIcon displays at beginning of input (rtl)", async ({ initTestBed, page }) => {
619 | await initTestBed(`<NumberBox testId="input" direction="rtl" startIcon="search" />`);
620 |
621 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
622 | const { left: iconLeft, right: iconRight } = await getBounds(page.getByRole("img").first());
623 |
624 | expect(iconRight - compLeft).toBeLessThanOrEqual(compRight - iconLeft);
625 | });
626 |
627 | test("endIcon displays at end of input", async ({ initTestBed, page }) => {
628 | await initTestBed(`<NumberBox testId="input" endIcon="search" />`);
629 |
630 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
631 | const { left: iconLeft, right: iconRight } = await getBounds(page.getByRole("img").first());
632 |
633 | expect(iconRight - compLeft).toBeGreaterThanOrEqual(compRight - iconLeft);
634 | });
635 |
636 | test("endIcon displays at end of input (rtl)", async ({ initTestBed, page }) => {
637 | await initTestBed(`<NumberBox testId="input" direction="rtl" endIcon="search" />`);
638 |
639 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
640 | const { left: iconLeft, right: iconRight } = await getBounds(page.getByRole("img").first());
641 |
642 | expect(iconRight - compLeft).toBeGreaterThanOrEqual(compRight - iconLeft);
643 | });
644 |
645 | test("multiple adornments can be combined", async ({ initTestBed, page }) => {
646 | await initTestBed(`
647 | <NumberBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" />
648 | `);
649 | await expect(page.getByTestId("input")).toContainText("$");
650 | await expect(page.getByTestId("input")).toContainText("USD");
651 | await expect(page.getByRole("img").first()).toBeVisible();
652 | await expect(page.getByRole("img").nth(1)).toBeVisible();
653 | });
654 |
655 | test("all adornments appear in the right place", async ({ initTestBed, page }) => {
656 | await initTestBed(`
657 | <NumberBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" direction="ltr" />
658 | `);
659 | const { left: compLeft, right: compRight } = await getBounds(page.getByTestId("input"));
660 | const { left: startTextLeft, right: startTextRight } = await getBounds(page.getByText("$"));
661 | const { left: endTextLeft, right: endTextRight } = await getBounds(page.getByText("USD"));
662 | const { left: startIconLeft, right: startIconRight } = await getBounds(
663 | page.getByRole("img").first(),
664 | );
665 | const { left: endIconLeft, right: endIconRight } = await getBounds(
666 | page.getByRole("img").nth(1),
667 | );
668 |
669 | // Check order of adornments
670 | expect(startTextRight - compLeft).toBeLessThanOrEqual(compRight - startTextLeft);
671 | expect(startIconRight - compLeft).toBeLessThanOrEqual(compRight - startIconLeft);
672 | expect(endTextRight - compLeft).toBeGreaterThanOrEqual(compRight - endTextLeft);
673 | expect(endIconRight - compLeft).toBeGreaterThanOrEqual(compRight - endIconLeft);
674 | });
675 | });
676 |
677 | // =============================================================================
678 | // THEME VARIABLE TESTS
679 | // =============================================================================
680 |
681 | test.describe("Theme Variables", () => {
682 | test("backgroundColor applies correctly", async ({ initTestBed, page }) => {
683 | await initTestBed(`<NumberBox testId="input" />`, {
684 | testThemeVars: { "backgroundColor-NumberBox-default": "rgb(255, 0, 0)" },
685 | });
686 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 0, 0)");
687 | });
688 |
689 | test("borderColor applies correctly", async ({ initTestBed, page }) => {
690 | await initTestBed(`<NumberBox testId="input" />`, {
691 | testThemeVars: { "borderColor-NumberBox-default": "rgb(0, 255, 0)" },
692 | });
693 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 255, 0)");
694 | });
695 |
696 | test("textColor applies correctly", async ({ initTestBed, page }) => {
697 | await initTestBed(`<NumberBox testId="input" />`, {
698 | testThemeVars: { "textColor-NumberBox-default": "rgb(0, 0, 255)" },
699 | });
700 | await expect(page.getByTestId("input")).toHaveCSS("color", "rgb(0, 0, 255)");
701 | });
702 |
703 | test("focus borderColor applies on focus", async ({ initTestBed, page }) => {
704 | await initTestBed(`<NumberBox testId="input" />`, {
705 | testThemeVars: { "borderColor-NumberBox-default--focus": "rgb(255, 255, 0)" },
706 | });
707 | await page.getByRole("textbox").focus();
708 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 255, 0)");
709 | });
710 |
711 | test("disabled backgroundColor applies when disabled", async ({ initTestBed, page }) => {
712 | await initTestBed(`<NumberBox testId="input" enabled="false" />`, {
713 | testThemeVars: { "backgroundColor-NumberBox--disabled": "rgb(128, 128, 128)" },
714 | });
715 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(128, 128, 128)");
716 | });
717 |
718 | test("borderRadius applies correctly", async ({ initTestBed, page }) => {
719 | await initTestBed(`<NumberBox testId="input" />`, {
720 | testThemeVars: { "borderRadius-NumberBox-default": "10px" },
721 | });
722 | await expect(page.getByTestId("input")).toHaveCSS("border-radius", "10px");
723 | });
724 |
725 | test("padding applies correctly", async ({ initTestBed, page }) => {
726 | await initTestBed(`<NumberBox testId="input" />`, {
727 | testThemeVars: { "padding-NumberBox": "15px" },
728 | });
729 | await expect(page.getByTestId("input")).toHaveCSS("padding", "15px");
730 | });
731 |
732 | // Additional variant mixin theme variable tests
733 | test("borderWidth applies correctly", async ({ initTestBed, page }) => {
734 | await initTestBed(`<NumberBox testId="input" />`, {
735 | testThemeVars: { "borderWidth-NumberBox-default": "3px" },
736 | });
737 | await expect(page.getByTestId("input")).toHaveCSS("border-width", "3px");
738 | });
739 |
740 | test("borderStyle applies correctly", async ({ initTestBed, page }) => {
741 | await initTestBed(`<NumberBox testId="input" />`, {
742 | testThemeVars: { "borderStyle-NumberBox-default": "dashed" },
743 | });
744 | await expect(page.getByTestId("input")).toHaveCSS("border-style", "dashed");
745 | });
746 |
747 | test("fontSize applies correctly", async ({ initTestBed, page }) => {
748 | await initTestBed(`<NumberBox testId="input" />`, {
749 | testThemeVars: { "fontSize-NumberBox-default": "18px" },
750 | });
751 | await expect(page.getByTestId("input")).toHaveCSS("font-size", "18px");
752 | });
753 |
754 | test("boxShadow applies correctly", async ({ initTestBed, page }) => {
755 | await initTestBed(`<NumberBox testId="input" />`, {
756 | testThemeVars: { "boxShadow-NumberBox-default": "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px" },
757 | });
758 | await expect(page.getByTestId("input")).toHaveCSS(
759 | "box-shadow",
760 | "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px",
761 | );
762 | });
763 |
764 | test("hover borderColor applies on hover", async ({ initTestBed, page }) => {
765 | await initTestBed(`<NumberBox testId="input" />`, {
766 | testThemeVars: { "borderColor-NumberBox-default--hover": "rgb(255, 100, 100)" },
767 | });
768 | await page.getByTestId("input").hover();
769 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 100, 100)");
770 | });
771 |
772 | test("hover backgroundColor applies on hover", async ({ initTestBed, page }) => {
773 | await initTestBed(`<NumberBox testId="input" />`, {
774 | testThemeVars: { "backgroundColor-NumberBox-default--hover": "rgb(240, 240, 240)" },
775 | });
776 | await page.getByTestId("input").hover();
777 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 240, 240)");
778 | });
779 |
780 | test("hover boxShadow applies on hover", async ({ initTestBed, page }) => {
781 | await initTestBed(`<NumberBox testId="input" />`, {
782 | testThemeVars: { "boxShadow-NumberBox-default--hover": "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px" },
783 | });
784 | await page.getByTestId("input").hover();
785 | await expect(page.getByTestId("input")).toHaveCSS(
786 | "box-shadow",
787 | "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px",
788 | );
789 | });
790 |
791 | test("hover textColor applies on hover", async ({ initTestBed, page }) => {
792 | await initTestBed(`<NumberBox testId="input" />`, {
793 | testThemeVars: { "textColor-NumberBox-default--hover": "rgb(50, 50, 50)" },
794 | });
795 | await page.getByTestId("input").hover();
796 | await expect(page.getByTestId("input")).toHaveCSS("color", "rgb(50, 50, 50)");
797 | });
798 |
799 | test("focus backgroundColor applies on focus", async ({ initTestBed, page }) => {
800 | await initTestBed(`<NumberBox testId="input" />`, {
801 | testThemeVars: { "backgroundColor-NumberBox-default--focus": "rgb(250, 250, 250)" },
802 | });
803 | await page.getByRole("textbox").focus();
804 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(250, 250, 250)");
805 | });
806 |
807 | test("focus boxShadow applies on focus", async ({ initTestBed, page }) => {
808 | await initTestBed(`<NumberBox testId="input" />`, {
809 | testThemeVars: {
810 | "boxShadow-NumberBox-default--focus": "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px",
811 | },
812 | });
813 | await page.getByRole("textbox").focus();
814 | await expect(page.getByTestId("input")).toHaveCSS(
815 | "box-shadow",
816 | "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px",
817 | );
818 | });
819 |
820 | test("focus textColor applies on focus", async ({ initTestBed, page }) => {
821 | await initTestBed(`<NumberBox testId="input" />`, {
822 | testThemeVars: { "textColor-NumberBox-default--focus": "rgb(20, 20, 20)" },
823 | });
824 | await page.getByRole("textbox").focus();
825 | await expect(page.getByTestId("input")).toHaveCSS("color", "rgb(20, 20, 20)");
826 | });
827 |
828 | test("focus outline properties apply on focus", async ({ initTestBed, page }) => {
829 | await initTestBed(`<NumberBox testId="input" />`, {
830 | testThemeVars: {
831 | "outlineWidth-NumberBox-default--focus": "2px",
832 | "outlineColor-NumberBox-default--focus": "rgb(0, 123, 255)",
833 | "outlineStyle-NumberBox-default--focus": "solid",
834 | "outlineOffset-NumberBox-default--focus": "2px",
835 | },
836 | });
837 | await page.getByRole("textbox").focus();
838 | await expect(page.getByTestId("input")).toHaveCSS("outline-width", "2px");
839 | await expect(page.getByTestId("input")).toHaveCSS("outline-color", "rgb(0, 123, 255)");
840 | await expect(page.getByTestId("input")).toHaveCSS("outline-style", "solid");
841 | await expect(page.getByTestId("input")).toHaveCSS("outline-offset", "2px");
842 | });
843 |
844 | test("placeholder textColor applies correctly", async ({ initTestBed, page }) => {
845 | await initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
846 | testThemeVars: { "textColor-placeholder-NumberBox-default": "rgb(150, 150, 150)" },
847 | });
848 | const input = page.getByRole("textbox");
849 | const placeholderColor = await input.evaluate((el: HTMLInputElement) => {
850 | return window.getComputedStyle(el, "::placeholder").color;
851 | });
852 | expect(placeholderColor).toBe("rgb(150, 150, 150)");
853 | });
854 |
855 | test("placeholder fontSize applies correctly", async ({ initTestBed, page }) => {
856 | await initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
857 | testThemeVars: { "fontSize-placeholder-NumberBox-default": "14px" },
858 | });
859 | const input = page.getByRole("textbox");
860 | const placeholderFontSize = await input.evaluate((el: HTMLInputElement) => {
861 | return window.getComputedStyle(el, "::placeholder").fontSize;
862 | });
863 | expect(placeholderFontSize).toBe("14px");
864 | });
865 |
866 | test("gap between adornments applies correctly", async ({ initTestBed, page }) => {
867 | await initTestBed(`<NumberBox testId="input" startText="$" endText="USD" />`, {
868 | testThemeVars: { "gap-adornment-NumberBox": "8px" },
869 | });
870 | await expect(page.getByTestId("input")).toHaveCSS("gap", "8px");
871 | });
872 |
873 | test("disabled textColor applies when disabled", async ({ initTestBed, page }) => {
874 | await initTestBed(`<NumberBox testId="input" enabled="false" />`, {
875 | testThemeVars: { "textColor-NumberBox--disabled": "rgb(160, 160, 160)" },
876 | });
877 | await expect(page.getByTestId("input")).toHaveCSS("color", "rgb(160, 160, 160)");
878 | });
879 |
880 | test("disabled borderColor applies when disabled", async ({ initTestBed, page }) => {
881 | await initTestBed(`<NumberBox testId="input" enabled="false" />`, {
882 | testThemeVars: { "borderColor-NumberBox--disabled": "rgb(200, 200, 200)" },
883 | });
884 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(200, 200, 200)");
885 | });
886 |
887 | // Error variant theme variables
888 | test("error variant borderRadius applies correctly", async ({ initTestBed, page }) => {
889 | await initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
890 | testThemeVars: { "borderRadius-NumberBox-error": "8px" },
891 | });
892 | await expect(page.getByTestId("input")).toHaveCSS("border-radius", "8px");
893 | });
894 |
895 | test("error variant fontSize applies correctly", async ({ initTestBed, page }) => {
896 | await initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
897 | testThemeVars: { "fontSize-NumberBox-error": "16px" },
898 | });
899 | await expect(page.getByTestId("input")).toHaveCSS("font-size", "16px");
900 | });
901 |
902 | test("error variant backgroundColor applies correctly", async ({ initTestBed, page }) => {
903 | await initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
904 | testThemeVars: { "backgroundColor-NumberBox-error": "rgb(255, 240, 240)" },
905 | });
906 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 240, 240)");
907 | });
908 |
909 | test("warning variant textColor applies correctly", async ({ initTestBed, page }) => {
910 | await initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
911 | testThemeVars: { "textColor-NumberBox-warning": "rgb(133, 100, 4)" },
912 | });
913 | await expect(page.getByTestId("input")).toHaveCSS("color", "rgb(133, 100, 4)");
914 | });
915 |
916 | test("success variant backgroundColor applies correctly", async ({ initTestBed, page }) => {
917 | await initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
918 | testThemeVars: { "backgroundColor-NumberBox-success": "rgb(240, 255, 240)" },
919 | });
920 | await expect(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 255, 240)");
921 | });
922 |
923 | test("input text adornment colors apply correctly", async ({ initTestBed, page }) => {
924 | await initTestBed(`<NumberBox testId="input" startText="$" endText="€" />`, {
925 | testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
926 | });
927 | await expect(page.getByText("$")).toHaveCSS("color", "rgb(0, 123, 255)");
928 | await expect(page.getByText("€")).toHaveCSS("color", "rgb(0, 123, 255)");
929 | });
930 |
931 | test("input icon adornment colors apply correctly", async ({ initTestBed, page }) => {
932 | await initTestBed(`<NumberBox testId="input" startIcon="search" endIcon="search" />`, {
933 | testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
934 | });
935 | await expect(page.getByRole("img").first()).toHaveCSS("color", "rgb(0, 123, 255)");
936 | await expect(page.getByRole("img").nth(1)).toHaveCSS("color", "rgb(0, 123, 255)");
937 | });
938 | });
939 |
940 | // =============================================================================
941 | // VALIDATION STATUS TESTS
942 | // =============================================================================
943 |
944 | test.describe("Validation", () => {
945 | test("error borderColor applies with error validation", async ({ initTestBed, page }) => {
946 | await initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
947 | testThemeVars: { "borderColor-NumberBox-error": "rgb(255, 0, 0)" },
948 | });
949 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 0, 0)");
950 | });
951 |
952 | test("warning borderColor applies with warning validation", async ({ initTestBed, page }) => {
953 | await initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
954 | testThemeVars: { "borderColor-NumberBox-warning": "rgb(255, 165, 0)" },
955 | });
956 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 165, 0)");
957 | });
958 |
959 | test("success borderColor applies with valid validation", async ({ initTestBed, page }) => {
960 | await initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
961 | testThemeVars: { "borderColor-NumberBox-success": "rgb(0, 128, 0)" },
962 | });
963 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 128, 0)");
964 | });
965 |
966 | test("handles invalid validationStatus gracefully", async ({ initTestBed, page }) => {
967 | await initTestBed(`<NumberBox testId="input" validationStatus="invalid-status" />`, {
968 | testThemeVars: {
969 | "borderColor-NumberBox": "rgb(0, 0, 0)",
970 | },
971 | });
972 | await expect(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 0, 0)");
973 | });
974 | });
975 |
976 | // =============================================================================
977 | // OTHER EDGE CASE TESTS
978 | // =============================================================================
979 |
980 | test.describe("Other Edge Cases", () => {
981 | test("placeholder is hidden if input field is filled", async ({ initTestBed, page }) => {
982 | await initTestBed(`<NumberBox placeholder="123" />`);
983 | const input = page.getByRole("textbox");
984 | await input.fill("456");
985 | await expect(input).toHaveValue("456");
986 | await expect(input).toHaveAttribute("placeholder", "123");
987 | });
988 |
989 | test("invalid initialValue types are handled gracefully", async ({ initTestBed, page }) => {
990 | // Test various invalid types
991 | await initTestBed(`<NumberBox initialValue="{true}" />`);
992 | await expect(page.getByRole("textbox")).toHaveValue("");
993 | });
994 |
995 | // Complex edge cases
996 | test("handle special characters in input", async ({ initTestBed, page }) => {
997 | await initTestBed(`<NumberBox />`);
998 | const input = page.getByRole("textbox");
999 |
1000 | // Should filter out special characters
1001 | await input.fill("!@#$123%^&");
1002 | await expect(input).not.toHaveValue("!@#$123%^&");
1003 | });
1004 |
1005 | test("handle Unicode characters in input", async ({ initTestBed, page }) => {
1006 | await initTestBed(`<NumberBox />`);
1007 | const input = page.getByRole("textbox");
1008 |
1009 | // Should filter out Unicode characters
1010 | await input.fill("👨👩👧👦123");
1011 | await expect(input).not.toHaveValue("👨👩👧👦123");
1012 | });
1013 |
1014 | test("component handles very long input text", async ({ initTestBed, page }) => {
1015 | await initTestBed(`<NumberBox />`);
1016 | const input = page.getByRole("textbox");
1017 |
1018 | const longNumber = "1".repeat(100);
1019 | await input.fill(longNumber);
1020 | // Should handle or truncate appropriately
1021 | await expect(input).toBeVisible();
1022 | });
1023 |
1024 | test("component handles rapid input changes", async ({ initTestBed, page }) => {
1025 | await initTestBed(`<NumberBox />`);
1026 | const input = page.getByRole("textbox");
1027 |
1028 | await input.pressSequentially("123", { delay: 50 });
1029 | await expect(input).toHaveValue("123");
1030 |
1031 | await input.clear();
1032 | await input.pressSequentially("456", { delay: 25 });
1033 | await expect(input).toHaveValue("456");
1034 | });
1035 |
1036 | test("component works with conditional rendering", async ({ initTestBed, page }) => {
1037 | await initTestBed(`
1038 | <Fragment>
1039 | <NumberBox when="{testState}" />
1040 | <Button label="test" onClick="testState = true" />
1041 | </Fragment>
1042 | `);
1043 |
1044 | // Initially not visible
1045 | await expect(page.getByRole("textbox")).not.toBeVisible();
1046 |
1047 | // Click to show
1048 | await page.getByRole("button", { name: "test" }).click();
1049 | await expect(page.getByRole("textbox")).toBeVisible();
1050 | });
1051 |
1052 | test("spinner buttons work with long press", async ({
1053 | initTestBed,
1054 | createNumberBoxDriver,
1055 | page,
1056 | }) => {
1057 | await initTestBed(`<NumberBox initialValue="0" />`);
1058 | const driver = await createNumberBoxDriver();
1059 |
1060 | // Hold down the button (simulate long press)
1061 | await driver.spinnerUp.hover();
1062 | await page.mouse.down();
1063 | await page.waitForTimeout(600); // Wait longer than initial delay
1064 | await page.mouse.up();
1065 |
1066 | // Should have incremented multiple times
1067 | await expect(driver.input).not.toHaveValue("0");
1068 | });
1069 |
1070 | test("integersOnly with zeroOrPositive combination works", async ({
1071 | initTestBed,
1072 | createNumberBoxDriver,
1073 | page,
1074 | }) => {
1075 | await initTestBed(`<NumberBox integersOnly="true" zeroOrPositive="true" initialValue="1" />`);
1076 |
1077 | const driver = await createNumberBoxDriver();
1078 |
1079 | await driver.decrement();
1080 | await expect(driver.input).toHaveValue("0");
1081 |
1082 | await driver.decrement();
1083 | await expect(driver.input).toHaveValue("0");
1084 |
1085 | await driver.input.type(".5");
1086 | await expect(driver.input).toHaveValue("5");
1087 | });
1088 |
1089 | // Special numeric formats
1090 | test("handle special numeric input formats", async ({ initTestBed, page }) => {
1091 | await initTestBed(`<NumberBox />`);
1092 | const input = page.getByRole("textbox");
1093 |
1094 | // Test scientific notation
1095 | await input.fill("1e5");
1096 | await expect(input).toHaveValue("1e5");
1097 |
1098 | // Test negative numbers
1099 | await input.clear();
1100 | await input.fill("-123");
1101 | await expect(input).toHaveValue("-123");
1102 | });
1103 |
1104 | test("entering multiple 0s only results in one 0", async ({ initTestBed, page }) => {
1105 | await initTestBed(`<NumberBox />`);
1106 | await page.getByRole("textbox").pressSequentially("0000000000000000");
1107 | await page.getByRole("textbox").blur();
1108 | await expect(page.getByRole("textbox")).toHaveValue("0");
1109 | });
1110 |
1111 | test("copying multiple 0s only results in one 0", async ({ initTestBed, page }) => {
1112 | const { clipboard } = await initTestBed(`<NumberBox />`);
1113 | await clipboard.write("0000000000000000");
1114 | await clipboard.paste(page.getByRole("textbox"));
1115 | await page.getByRole("textbox").blur();
1116 | await expect(page.getByRole("textbox")).toHaveValue("0");
1117 | });
1118 |
1119 | test("standalone minus sign is permitted if field is not blurred yet", async ({
1120 | initTestBed,
1121 | page,
1122 | }) => {
1123 | await initTestBed(`<NumberBox />`);
1124 | await page.getByRole("textbox").fill("-");
1125 | await expect(page.getByRole("textbox")).toHaveValue("-");
1126 | });
1127 |
1128 | test("minus sign is applied correctly if it comes after number", async ({
1129 | initTestBed,
1130 | page,
1131 | }) => {
1132 | await initTestBed(`<NumberBox />`);
1133 | await page.getByRole("textbox").pressSequentially("123-");
1134 | await expect(page.getByRole("textbox")).toHaveValue("-123");
1135 | });
1136 |
1137 | test("placing decimal separator between the numbers of an integer results in a float", async ({
1138 | initTestBed,
1139 | page,
1140 | }) => {
1141 | await initTestBed(`<NumberBox />`);
1142 | const input = page.getByRole("textbox");
1143 |
1144 | await input.fill("123456");
1145 | await input.press("ArrowLeft");
1146 | await input.press("ArrowLeft");
1147 | await input.press("ArrowLeft");
1148 | await input.press(".");
1149 |
1150 | await expect(input).toHaveValue("123.456");
1151 | });
1152 |
1153 | test("placing second decimal separator is not permitted", async ({ initTestBed, page }) => {
1154 | await initTestBed(`<NumberBox />`);
1155 | const input = page.getByRole("textbox");
1156 |
1157 | await input.fill("1.23456");
1158 | await input.press("ArrowLeft");
1159 | await input.press(".");
1160 |
1161 | await expect(input).toHaveValue("1.23456");
1162 | });
1163 |
1164 | test("placing decimal separator before an integer adds a leading 0 (#1)", async ({
1165 | initTestBed,
1166 | page,
1167 | }) => {
1168 | await initTestBed(`<NumberBox />`);
1169 | const input = page.getByRole("textbox");
1170 |
1171 | await input.fill("12");
1172 | await input.press("ArrowLeft");
1173 | await input.press("ArrowLeft");
1174 | await input.press(".");
1175 |
1176 | await expect(input).toHaveValue("0.12");
1177 | });
1178 |
1179 | test("placing decimal separator before an integer adds a leading 0 (#2)", async ({
1180 | initTestBed,
1181 | page,
1182 | }) => {
1183 | await initTestBed(`<NumberBox />`);
1184 | const input = page.getByRole("textbox");
1185 |
1186 | await input.fill("");
1187 | await input.press(".");
1188 |
1189 | await expect(input).toHaveValue("0.");
1190 | });
1191 |
1192 | test("adding floating point to the end adds a trailing 0 when blurred", async ({
1193 | initTestBed,
1194 | page,
1195 | }) => {
1196 | await initTestBed(`<NumberBox />`);
1197 | const input = page.getByRole("textbox");
1198 |
1199 | await input.pressSequentially("123.");
1200 | await input.blur();
1201 | await expect(input).toHaveValue("123.0");
1202 | });
1203 | });
1204 |
1205 | // =============================================================================
1206 | // VISUAL STATE TESTS
1207 | // =============================================================================
1208 |
1209 | test("input has correct width in px", async ({ page, initTestBed }) => {
1210 | await initTestBed(`<NumberBox width="200px" testId="test"/>`, {});
1211 |
1212 | const input = page.getByTestId("test");
1213 | const { width } = await input.boundingBox();
1214 | expect(width).toBe(200);
1215 | });
1216 |
1217 | test("input with label has correct width in px", async ({ page, initTestBed }) => {
1218 | await initTestBed(`<NumberBox width="200px" label="test" testId="test"/>`, {});
1219 |
1220 | const input = page.getByTestId("test");
1221 | const { width } = await input.boundingBox();
1222 | expect(width).toBe(200);
1223 | });
1224 |
1225 | test("input has correct width in %", async ({ page, initTestBed }) => {
1226 | await page.setViewportSize({ width: 400, height: 300 });
1227 | await initTestBed(`<NumberBox width="50%" testId="test"/>`, {});
1228 |
1229 | const input = page.getByTestId("test");
1230 | const { width } = await input.boundingBox();
1231 | expect(width).toBe(200);
1232 | });
1233 |
1234 | test("input with label has correct width in %", async ({ page, initTestBed }) => {
1235 | await page.setViewportSize({ width: 400, height: 300 });
1236 | await initTestBed(`<NumberBox width="50%" label="test" testId="test"/>`, {});
1237 |
1238 | const input = page.getByTestId("test");
1239 | const { width } = await input.boundingBox();
1240 | expect(width).toBe(200);
1241 | });
1242 |
```