This is page 128 of 141. Use http://codebase.md/xmlui-org/xmlui/0.9.23.js?lines=false&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/TimeInput/TimeInput.spec.ts:
--------------------------------------------------------------------------------
```typescript
import { getBounds, SKIP_REASON } from "../../testing/component-test-helpers";
import { expect, test } from "../../testing/fixtures";
// =============================================================================
// BASIC FUNCTIONALITY TESTS
// =============================================================================
test.describe("Basic Functionality", () => {
test("component renders with default flags", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toBeVisible();
await expect(driver.minuteInput).toBeVisible();
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("component renders with label", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toBeVisible();
await expect(driver.minuteInput).toBeVisible();
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
await expect(driver.label).toContainText("Select time");
});
test.describe("initialValue property", () => {
test("renders with initialValue", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles null initialValue", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{null}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles undefined initialValue", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{undefined}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles invalid time string", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="invalid" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("00");
await expect(driver.minuteInput).toHaveValue("00");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles time with seconds", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="14:30:45" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).toHaveValue("45");
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("falls back to ISO time format when standard parsing fails", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="15:30:00" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("15");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("falls back to ISO time format with seconds", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="09:15:30" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("09");
await expect(driver.minuteInput).toHaveValue("15");
await expect(driver.secondInput).toHaveValue("30");
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles boolean initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{true}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles numeric initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{123}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles array initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{['14', '30']}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles object initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(
`<TimeInput testId="timeInput" initialValue="{{ hour: 14, minute: 30 }}" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles function initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{() => '14:30'}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles Date object initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{getDate()}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles Symbol initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{Symbol('time')}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles BigInt initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{BigInt(1430)}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles zero numeric initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{0}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles negative numeric initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="{-1}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles empty string initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("handles whitespace-only initialValue gracefully", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue=" " />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("00");
await expect(driver.minuteInput).toHaveValue("00");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
});
test.describe("hour24 and seconds properties", () => {
test("displays 24-hour format without seconds", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(
`<TimeInput testId="timeInput" hour24="true" seconds="false" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("displays 24-hour format with seconds", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" hour24="true" seconds="true" initialValue="14:30:15" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).toHaveValue("15");
await expect(driver.amPmInput).not.toBeVisible();
await expect(driver.clearButton).not.toBeVisible();
});
test("displays 12-hour format without seconds", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(
`<TimeInput testId="timeInput" hour24="false" seconds="false" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("02");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).not.toBeVisible();
await expect(driver.amPmInput).toBeVisible();
});
test("displays 12-hour format with seconds", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" hour24="false" seconds="true" initialValue="14:30:15" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("02");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).toHaveValue("15");
await expect(driver.amPmInput).toBeVisible();
});
test("handles null hour24 property", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="{null}" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
// Should default to 24-hour format
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.amPmInput).not.toBeVisible();
});
test("handles null seconds property", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" seconds="{null}" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
// Should default to no seconds
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).not.toBeVisible();
});
});
test.describe("enabled property", () => {
test("renders enabled by default", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toBeEnabled();
});
test("disables component when enabled is false", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" enabled="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toBeDisabled();
await expect(driver.minuteInput).toBeDisabled();
});
test("handles null enabled property", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" enabled="{null}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toBeEnabled();
});
});
test.describe("readOnly property", () => {
test("makes component readonly", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" readOnly="true" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("readonly");
await expect(driver.minuteInput).toHaveAttribute("readonly");
});
test("allows editing when readOnly is false", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" readOnly="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).not.toHaveAttribute("readonly");
await expect(driver.minuteInput).not.toHaveAttribute("readonly");
});
});
test.describe("clearable property", () => {
test("shows clear button when clearable is true", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.clearButton).toBeVisible();
});
test("hides clear button when clearable is false", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" clearable="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.clearButton).not.toBeVisible();
});
test("clears value when clear button is clicked (clearToInitialValue is true)", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.fill("05");
await driver.clearButton.click();
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
test("clears value when clear button is clicked (clearToInitialValue is false)", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`
<TimeInput testId="timeInput" clearable="true"
clearToInitialValue="false" initialValue="14:30" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.fill("05");
await driver.clearButton.click();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
});
});
test.describe("clearIcon property", () => {
test("displays custom clear icon", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" clearable="true" clearIcon="trash" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.clearButton).toBeVisible();
// Icon presence would be tested via the icon's specific attributes
});
});
test.describe("required property", () => {
test("makes component required", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" required="true" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("required");
});
test("component is not required by default", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).not.toHaveAttribute("required");
});
});
test.describe("validationStatus property", () => {
test("displays valid status", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" validationStatus="valid" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("displays warning status", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" validationStatus="warning" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("displays error status", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(
`<TimeInput testId="timeInput" validationStatus="error" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("handles null validationStatus", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" validationStatus="{null}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
});
test.describe("minTime and maxTime properties", () => {
test("accepts minTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" minTime="10:00" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
test("accepts maxTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" maxTime="18:00" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
test("handles null minTime", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" minTime="{null}" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
test("handles null maxTime", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" maxTime="{null}" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
});
test.describe("adornment properties", () => {
test("displays startText", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" startText="Start" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toContainText("Start");
});
test("displays endText", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" endText="End" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toContainText("End");
});
test("displays startIcon", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" startIcon="trash" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component.getByRole("img")).toBeVisible();
});
test("displays endIcon", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" endIcon="trash" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component.getByRole("img")).toBeVisible();
});
test("displays multiple adornments together", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(
`<TimeInput testId="timeInput" startText="Start" endText="End" startIcon="phone" endIcon="email" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toContainText("Start");
await expect(driver.component).toContainText("End");
await expect(driver.component.getByRole("img").first()).toBeVisible();
await expect(driver.component.getByRole("img").last()).toBeVisible();
});
});
test.describe("gap property", () => {
test("applies custom gap", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" gap="20px" startText="Start" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toContainText("Start");
});
test("handles null gap", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" gap="{null}" startText="Start" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toContainText("Start");
});
});
test.describe("autoFocus property", () => {
test("focuses component when autoFocus is true", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" autoFocus="true" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toBeFocused();
});
test("does not focus when autoFocus is false", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" autoFocus="false" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).not.toBeFocused();
});
});
test.describe("emptyCharacter property", () => {
test("uses default '--' placeholder when no emptyCharacter is specified", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
});
test("uses custom emptyCharacter for placeholders", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="*" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "**");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "**");
});
test("applies emptyCharacter to all inputs when seconds enabled", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="•" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "••");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "••");
await expect(driver.secondInput).toHaveAttribute("placeholder", "••");
});
test("uses first character when emptyCharacter is multi-character", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="abc" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "aa");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "aa");
});
test("defaults to dash when emptyCharacter is empty string", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
});
test("handles null emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{null}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
});
test("handles undefined emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{undefined}" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
});
test("works with special characters", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="@" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "@@");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "@@");
});
test("works with unicode characters", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="⏰" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "⏰⏰");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "⏰⏰");
});
test("placeholder visible when fields are empty", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
await expect(driver.hourInput).toHaveAttribute("placeholder", "##");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "##");
});
test("shows values instead of placeholder when initialValue provided", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toHaveValue("30");
});
test("works with 12-hour format", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="○" hour24="false" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("placeholder", "○○");
await expect(driver.minuteInput).toHaveAttribute("placeholder", "○○");
await expect(driver.amPmInput).toBeVisible();
});
});
test.describe("User Interactions", () => {
test("allows typing in hour input", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("15");
await expect(driver.hourInput).toHaveValue("15");
});
test("allows typing in minute input", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.minuteInput.click();
await driver.minuteInput.fill("45");
await expect(driver.minuteInput).toHaveValue("45");
});
test("navigates between inputs with Tab", async ({
initTestBed,
createTimeInputDriver,
page,
}) => {
await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.focus();
await page.keyboard.press("Tab");
await expect(driver.minuteInput).toBeFocused();
await page.keyboard.press("Tab");
await expect(driver.secondInput).toBeFocused();
});
test("navigates between inputs with arrow keys - 24-hour format with seconds", async ({
initTestBed,
createTimeInputDriver,
page,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Start at hour input
await driver.hourInput.focus();
await expect(driver.hourInput).toBeFocused();
// Navigate right: Hour → Minute
await page.keyboard.press("ArrowRight");
await expect(driver.minuteInput).toBeFocused();
// Navigate right: Minute → Second
await page.keyboard.press("ArrowRight");
await expect(driver.secondInput).toBeFocused();
// Navigate left: Second → Minute
await page.keyboard.press("ArrowLeft");
await expect(driver.minuteInput).toBeFocused();
// Navigate left: Minute → Hour
await page.keyboard.press("ArrowLeft");
await expect(driver.hourInput).toBeFocused();
});
test("navigates between inputs with arrow keys - 24-hour format without seconds", async ({
initTestBed,
createTimeInputDriver,
page,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="false" />`);
const driver = await createTimeInputDriver("timeInput");
// Start at hour input
await driver.hourInput.focus();
await expect(driver.hourInput).toBeFocused();
// Navigate right: Hour → Minute (skip seconds since disabled)
await page.keyboard.press("ArrowRight");
await expect(driver.minuteInput).toBeFocused();
// Navigate left: Minute → Hour
await page.keyboard.press("ArrowLeft");
await expect(driver.hourInput).toBeFocused();
});
test("navigates between inputs with arrow keys - 12-hour format with seconds", async ({
initTestBed,
createTimeInputDriver,
page,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Start at hour input
await driver.hourInput.focus();
await expect(driver.hourInput).toBeFocused();
// Navigate right: Hour → Minute
await page.keyboard.press("ArrowRight");
await expect(driver.minuteInput).toBeFocused();
// Navigate right: Minute → Second
await page.keyboard.press("ArrowRight");
await expect(driver.secondInput).toBeFocused();
// Navigate right: Second → AM/PM
await page.keyboard.press("ArrowRight");
await expect(driver.amPmInput).toBeFocused();
// Navigate left: AM/PM → Second
await page.keyboard.press("ArrowLeft");
await expect(driver.secondInput).toBeFocused();
// Navigate left: Second → Minute
await page.keyboard.press("ArrowLeft");
await expect(driver.minuteInput).toBeFocused();
// Navigate left: Minute → Hour
await page.keyboard.press("ArrowLeft");
await expect(driver.hourInput).toBeFocused();
});
test("navigates between inputs with arrow keys - 12-hour format without seconds", async ({
initTestBed,
createTimeInputDriver,
page,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="false" />`);
const driver = await createTimeInputDriver("timeInput");
// Start at hour input
await driver.hourInput.focus();
await expect(driver.hourInput).toBeFocused();
// Navigate right: Hour → Minute
await page.keyboard.press("ArrowRight");
await expect(driver.minuteInput).toBeFocused();
// Navigate right: Minute → AM/PM (skip seconds since disabled)
await page.keyboard.press("ArrowRight");
await expect(driver.amPmInput).toBeFocused();
// Navigate left: AM/PM → Minute
await page.keyboard.press("ArrowLeft");
await expect(driver.minuteInput).toBeFocused();
// Navigate left: Minute → Hour
await page.keyboard.press("ArrowLeft");
await expect(driver.hourInput).toBeFocused();
});
test("changes AM/PM with click", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.amPmInput).toHaveText("PM");
await driver.amPmInput.click();
await expect(driver.amPmInput).toHaveText("AM");
});
test("changes AM/PM with keydown 1", async ({ initTestBed, page, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.amPmInput).toHaveText("PM");
await driver.amPmInput.focus();
await page.keyboard.press("a", { delay: 100 });
await expect(driver.amPmInput).toHaveText("AM");
});
test("changes AM/PM with keydown 2", async ({ initTestBed, page, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="03:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.amPmInput).toHaveText("AM");
await driver.amPmInput.focus();
await page.keyboard.press("p", { delay: 100 });
await expect(driver.amPmInput).toHaveText("PM");
});
test("auto-tabs from hour to minute after typing two digits", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
// Focus on hour input and clear it
await driver.hourInput.focus();
await driver.hourInput.selectText();
// Type two digits - should auto-tab to minute
await page.keyboard.type("14");
// Verify hour input has the value and minute input is now focused
await expect(driver.hourInput).toHaveValue("14");
await expect(driver.minuteInput).toBeFocused();
});
test("auto-tabs from minute to second after typing two digits", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Focus on minute input and clear it
await driver.minuteInput.focus();
await driver.minuteInput.selectText();
// Type two digits - should auto-tab to second
await page.keyboard.type("30");
// Verify minute input has the value and second input is now focused
await expect(driver.minuteInput).toHaveValue("30");
await expect(driver.secondInput).toBeFocused();
});
test("auto-tabs from second to AM/PM after typing two digits in 12-hour format", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Focus on second input and clear it
await driver.secondInput.focus();
await driver.secondInput.selectText();
// Type two digits - should auto-tab to AM/PM
await page.keyboard.type("45");
// Verify second input has the value and AM/PM input is now focused
await expect(driver.secondInput).toHaveValue("45");
await expect(driver.amPmInput).toBeFocused();
});
test("does not auto-tab from second input in 24-hour format", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Focus on second input and clear it
await driver.secondInput.focus();
await driver.secondInput.selectText();
// Type two digits - should stay on second input since there's no AM/PM
await page.keyboard.type("45");
// Verify second input has the value and is still focused
await expect(driver.secondInput).toHaveValue("45");
await expect(driver.secondInput).toBeFocused();
});
});
test.describe("API", () => {
test("isoValue returns null when no time is set", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe(null);
});
test("isoValue returns ISO format for 24-hour time", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="14:30" hour24="true" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("14:30:00");
});
test("isoValue returns ISO format for 24-hour time with seconds", async ({
initTestBed,
page,
}) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="14:30:45" hour24="true" seconds="true" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("14:30:45");
});
test("isoValue converts 12-hour format to ISO format (AM)", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="02:30 AM" hour24="false" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("02:30:00");
});
test("isoValue converts 12-hour format to ISO format (PM)", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="02:30 PM" hour24="false" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("14:30:00");
});
test("isoValue converts 12-hour midnight correctly", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="12:00 AM" hour24="false" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("00:00:00");
});
test("isoValue converts 12-hour noon correctly", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="12:00 PM" hour24="false" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("12:00:00");
});
test("isoValue includes seconds when available in 12-hour format", async ({
initTestBed,
page,
}) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="02:30:15 PM" hour24="false" seconds="true" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("14:30:15");
});
test("isoValue updates when time is changed programmatically", async ({
initTestBed,
page,
}) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" initialValue="14:30" hour24="true" />
<Button testId="setTimeBtn" onClick="timeInput.setValue('09:15')" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
// Change the time programmatically
await page.getByTestId("setTimeBtn").click();
// Get the ISO value
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe("09:15:00");
});
test("isoValue returns null when only hour is set", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput id="timeInput" testId="timeInput" />
<Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
</Fragment>
`);
const driver = await createTimeInputDriver("timeInput");
// Set only hour, leave minute empty
await driver.hourInput.fill("14");
await page.getByTestId("getIsoBtn").click();
await expect.poll(testStateDriver.testState).toBe(null);
});
});
});
// =============================================================================
// ACCESSIBILITY TESTS
// =============================================================================
test.describe("Accessibility", () => {
test("has correct role for main container", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" label="Time Input" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("has correct accessibility attributes for inputs", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("type", "text");
await expect(driver.minuteInput).toHaveAttribute("type", "text");
});
test("associates label with component", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" label="Meeting time" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.label).toBeVisible();
await expect(driver.label).toContainText("Meeting time");
});
test("supports keyboard navigation", async ({ initTestBed, createTimeInputDriver, page }) => {
await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
// Tab through all inputs
await driver.hourInput.focus();
await expect(driver.hourInput).toBeFocused();
await page.keyboard.press("Tab");
await expect(driver.minuteInput).toBeFocused();
await page.keyboard.press("Tab");
await expect(driver.secondInput).toBeFocused();
});
test("supports required attribute for accessibility", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" required="true" label="Required time" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("required");
});
test("has proper ARIA attributes for disabled state", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" enabled="false" label="Disabled time" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toBeDisabled();
await expect(driver.minuteInput).toBeDisabled();
});
test("has proper ARIA attributes for readonly state", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(
`<TimeInput testId="timeInput" readOnly="true" label="Readonly time" initialValue="14:30" />`,
);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveAttribute("readonly");
await expect(driver.minuteInput).toHaveAttribute("readonly");
});
test("clear button has accessible name", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.clearButton).toBeVisible();
});
test("AM/PM select has proper role", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.amPmInput).toBeVisible();
});
});
// =============================================================================
// THEME VARIABLE TESTS
// =============================================================================
test.describe("Theme Variables", () => {
test("applies Input borderRadius theme variable", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="time-input" />`, {
testThemeVars: { "borderRadius-TimeInput-default": "10px" },
});
const driver = await createTimeInputDriver("time-input");
await expect(driver.component).toHaveCSS("border-radius", "10px");
});
test("applies Input borderColor theme variable", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="time-input" />`, {
testThemeVars: { "borderColor-TimeInput-default": "rgb(255, 0, 0)" },
});
const driver = await createTimeInputDriver("time-input");
await expect(driver.component).toHaveCSS("border-color", "rgb(255, 0, 0)");
});
test("applies Input textColor theme variable", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="time-input" />`, {
testThemeVars: { "textColor-TimeInput-default": "rgb(0, 0, 255)" },
});
const driver = await createTimeInputDriver("time-input");
await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
});
});
// =============================================================================
// OTHER EDGE CASE TESTS
// =============================================================================
test.describe("Other Edge Cases", () => {
test("handles no props gracefully", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("handles empty string props", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" label="" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.component).toBeVisible();
});
test("handles very long unicode characters in initialValue", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="👨👩👧👦" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("00");
await expect(driver.minuteInput).toHaveValue("00");
});
test("handles chinese characters in initialValue", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" initialValue="中文时间" />`);
const driver = await createTimeInputDriver("timeInput");
await expect(driver.hourInput).toHaveValue("00");
await expect(driver.minuteInput).toHaveValue("00");
});
test("handles negative values in time inputs", async ({ initTestBed, createTimeInputDriver }) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("-5");
// Component should handle negative values gracefully
await driver.hourInput.blur();
await expect(driver.component).toBeVisible();
});
test("handles very large numbers in time inputs", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" />`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("999");
// Component should handle large values gracefully
await driver.hourInput.blur();
await expect(driver.component).toBeVisible();
});
test("handles multiple rapid clear button clicks", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`
<TimeInput testId="timeInput" clearable="true" clearToInitialValue="false" initialValue="14:30" />
`);
const driver = await createTimeInputDriver("timeInput");
// Rapidly click clear button multiple times
await driver.clearButton.click();
await driver.clearButton.click();
await driver.clearButton.click();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
});
});
// =============================================================================
// EVENT TESTS
// =============================================================================
test.describe("Events", () => {
test("didChange event fires when value changes", async ({
initTestBed,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" initialValue="03:28"
onDidChange="arg => {testState = arg; console.log('arg', arg)}" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("14");
await driver.hourInput.blur();
await expect.poll(testStateDriver.testState).toBeTruthy();
});
test("didChange event receives correct time value", async ({
initTestBed,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" onDidChange="arg => testState = arg" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("14");
await driver.minuteInput.click();
await driver.minuteInput.fill("30");
await driver.minuteInput.blur();
await expect.poll(testStateDriver.testState).toEqual("14:30");
});
test("gotFocus event fires when component receives focus", async ({
initTestBed,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" onGotFocus="testState = 'focused'" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.focus();
await expect.poll(testStateDriver.testState).toEqual("focused");
});
test("gotFocus event fires on label click", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" label="Time" onGotFocus="testState = 'focused'" />
`);
await page.getByText("Time").click();
await expect.poll(testStateDriver.testState).toEqual("focused");
});
test("lostFocus event fires when component loses focus", async ({
initTestBed,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" onLostFocus="testState = 'blurred'" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.focus();
await driver.hourInput.blur();
await expect.poll(testStateDriver.testState).toEqual("blurred");
});
test("invalidTime event fires for invalid input", async ({
initTestBed,
createTimeInputDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<TimeInput testId="timeInput" onInvalidTime="testState = 'invalid'" />
`);
const driver = await createTimeInputDriver("timeInput");
await driver.hourInput.click();
await driver.hourInput.fill("25"); // Invalid hour
await driver.hourInput.blur();
await expect.poll(testStateDriver.testState).toEqual("invalid");
});
});
// =============================================================================
// API TESTS
// =============================================================================
test.describe("API", () => {
test("focus() method focuses the component", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" />
<Button onClick="timeInput.focus()" testId="focusBtn" />
</Fragment>
`);
const driver = await createTimeInputDriver("timeInput");
await page.getByTestId("focusBtn").click();
await expect(driver.hourInput).toBeFocused();
});
test("value property returns current time", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
<Button onClick="testState = timeInput.value" testId="getValueBtn" />
</Fragment>
`);
await page.getByTestId("getValueBtn").click();
await expect.poll(testStateDriver.testState).toEqual("14:30");
});
test("setValue() method updates the time", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" />
<Button onClick="timeInput.setValue('15:45')" testId="setValueBtn" />
</Fragment>
`);
const driver = await createTimeInputDriver("timeInput");
await page.getByTestId("setValueBtn").click();
await expect(driver.hourInput).toHaveValue("15");
await expect(driver.minuteInput).toHaveValue("45");
});
test("setValue() with empty string clears the value", async ({
initTestBed,
page,
createTimeInputDriver,
}) => {
await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
<Button onClick="timeInput.setValue('')" testId="clearBtn" />
</Fragment>
`);
const driver = await createTimeInputDriver("timeInput");
await page.getByTestId("clearBtn").click();
await expect(driver.hourInput).toHaveValue("");
await expect(driver.minuteInput).toHaveValue("");
});
test("value property returns undefined when no value set", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" />
<Button onClick="testState = timeInput.value === undefined ? 'undefined' : 'defined'" testId="checkBtn" />
</Fragment>
`);
await page.getByTestId("checkBtn").click();
await expect.poll(testStateDriver.testState).toEqual("undefined");
});
test("setValue() triggers didChange event", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Fragment>
<TimeInput testId="timeInput" id="timeInput" onDidChange="arg => testState = 'changed:' + arg" />
<Button onClick="timeInput.setValue('16:20')" testId="setBtn" />
</Fragment>
`);
await page.getByTestId("setBtn").click();
await expect.poll(testStateDriver.testState).toEqual("changed:16:20");
});
});
// =============================================================================
// LAYOUT TESTS
// =============================================================================
test.describe("Layout", () => {
test("labelWidth applies custom label width", async ({ initTestBed, createTimeInputDriver }) => {
const expected = 200;
await initTestBed(
`<TimeInput testId="timeInput" label="Select time" labelPosition="left" labelWidth="${expected}px" />`,
);
const driver = await createTimeInputDriver("timeInput");
const { width } = await getBounds(driver.label);
expect(width).toEqual(expected);
});
test("time inputs maintain consistent spacing", async ({
initTestBed,
createTimeInputDriver,
}) => {
await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
const driver = await createTimeInputDriver("timeInput");
const { right: hourRight } = await getBounds(driver.hourInput);
const { left: minuteLeft, right: minuteRight } = await getBounds(driver.minuteInput);
const { left: secondLeft } = await getBounds(driver.secondInput);
// Verify there's consistent spacing between inputs
const hourToMinuteGap = minuteLeft - hourRight;
const minuteToSecondGap = secondLeft - minuteRight;
expect(hourToMinuteGap).toBeGreaterThan(0);
expect(minuteToSecondGap).toBeGreaterThan(0);
expect(Math.abs(hourToMinuteGap - minuteToSecondGap)).toBeLessThan(5); // Allow small differences
});
});
// =============================================================================
// VISUAL STATE TESTS
// =============================================================================
test("input has correct width", async ({ initTestBed, page }) => {
await initTestBed(`
<TimeInput width="200px" testId="test"/>
`);
const { width } = await page.getByTestId("test").boundingBox();
expect(width).toBe(200);
});
test("input with label has correct width", async ({ initTestBed, page }) => {
await initTestBed(`
<TimeInput width="200px" label="test" testId="test"/>
`);
const { width } = await page.getByTestId("test").boundingBox();
expect(width).toBe(200);
});
test("input has correct width in %", async ({ page, initTestBed }) => {
await page.setViewportSize({ width: 400, height: 300 });
await initTestBed(`<TimeInput width="50%" testId="test"/>`, {});
const input = page.getByTestId("test");
const { width } = await input.boundingBox();
expect(width).toBe(200);
});
test("input with label has correct width in %", async ({ page, initTestBed }) => {
await page.setViewportSize({ width: 400, height: 300 });
await initTestBed(`<TimeInput width="50%" label="test" testId="test"/>`, {});
const input = page.getByTestId("test");
const { width } = await input.boundingBox();
expect(width).toBe(200);
});
```