This is page 131 of 181. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/%7BimageSrc%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── layout-changes.md
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ └── lorem-ipsum.png
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ └── welcome-to-the-xmlui-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Animation.tsx
│ │ │ ├── AnimationNative.tsx
│ │ │ ├── FadeAnimation.tsx
│ │ │ ├── FadeInAnimation.tsx
│ │ │ ├── FadeOutAnimation.tsx
│ │ │ ├── index.tsx
│ │ │ ├── ScaleAnimation.tsx
│ │ │ └── SlideInAnimation.tsx
│ │ └── tsconfig.json
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ ├── tsconfig.json
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── HelloWorld.module.scss
│ │ │ ├── HelloWorld.tsx
│ │ │ ├── HelloWorldNative.tsx
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── IPhoneFrame.module.scss
│ │ │ ├── IPhoneFrame.tsx
│ │ │ ├── MacOSAppFrame.module.scss
│ │ │ ├── MacOSAppFrame.tsx
│ │ │ ├── WindowsAppFrame.module.scss
│ │ │ └── WindowsAppFrame.tsx
│ │ └── tsconfig.json
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── LazyPdfNative.tsx
│ │ │ ├── Pdf.module.scss
│ │ │ └── Pdf.tsx
│ │ └── tsconfig.json
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── hooks
│ │ │ │ ├── usePlayground.ts
│ │ │ │ └── useToast.ts
│ │ │ ├── index.tsx
│ │ │ ├── playground
│ │ │ │ ├── Box.module.scss
│ │ │ │ ├── Box.tsx
│ │ │ │ ├── CodeSelector.tsx
│ │ │ │ ├── ConfirmationDialog.module.scss
│ │ │ │ ├── ConfirmationDialog.tsx
│ │ │ │ ├── Editor.tsx
│ │ │ │ ├── Header.module.scss
│ │ │ │ ├── Header.tsx
│ │ │ │ ├── Playground.tsx
│ │ │ │ ├── PlaygroundContent.module.scss
│ │ │ │ ├── PlaygroundContent.tsx
│ │ │ │ ├── PlaygroundNative.module.scss
│ │ │ │ ├── PlaygroundNative.tsx
│ │ │ │ ├── Preview.module.scss
│ │ │ │ ├── Preview.tsx
│ │ │ │ ├── Select.module.scss
│ │ │ │ ├── StandalonePlayground.tsx
│ │ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ │ ├── ThemeSwitcher.module.scss
│ │ │ │ ├── ThemeSwitcher.tsx
│ │ │ │ ├── ToneSwitcher.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── providers
│ │ │ │ ├── Toast.module.scss
│ │ │ │ └── ToastProvider.tsx
│ │ │ ├── state
│ │ │ │ └── store.ts
│ │ │ ├── themes
│ │ │ │ └── theme.ts
│ │ │ └── utils
│ │ │ └── helpers.ts
│ │ └── tsconfig.json
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Search.module.scss
│ │ │ └── Search.tsx
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ ├── src
│ │ ├── Carousel
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── FancyButton
│ │ │ ├── FancyButton.module.scss
│ │ │ ├── FancyButton.tsx
│ │ │ └── FancyButton.xmlui
│ │ ├── Hello
│ │ │ ├── Hello.tsx
│ │ │ ├── Hello.xmlui
│ │ │ └── Hello.xmlui.xs
│ │ ├── HeroSection
│ │ │ ├── HeroSection.module.scss
│ │ │ ├── HeroSection.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.mjs
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.mjs
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/DateInput/DateInputNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import React, { type CSSProperties } from "react";
2 | import {
3 | forwardRef,
4 | useCallback,
5 | useEffect,
6 | useMemo,
7 | useRef,
8 | useState,
9 | } from "react";
10 | import classnames from "classnames";
11 | import styles from "./DateInput.module.scss";
12 | import { format, parse, isValid } from "date-fns";
13 | import { PartialInput, type BlurDirection } from "../Input/PartialInput";
14 | import { InputDivider } from "../Input/InputDivider";
15 |
16 | import type { RegisterComponentApiFn, UpdateStateFn } from "../../abstractions/RendererDefs";
17 | import { useEvent } from "../../components-core/utils/misc";
18 | import type { ValidationStatus } from "../abstractions";
19 | import { Adornment } from "../Input/InputAdornment";
20 | import Icon from "../Icon/IconNative";
21 |
22 | // Component part names
23 | const PART_DAY = "day";
24 | const PART_MONTH = "month";
25 | const PART_YEAR = "year";
26 | const PART_CLEAR_BUTTON = "clearButton";
27 |
28 | // Date validation constants
29 | const MIN_YEAR = 1900;
30 | const MAX_YEAR = 2100;
31 |
32 | // Browser compatibility checks
33 | const isIEOrEdgeLegacy =
34 | typeof window !== "undefined" && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent);
35 |
36 | // Date format types
37 | export const dateFormats = [
38 | "MM/dd/yyyy",
39 | "MM-dd-yyyy",
40 | "yyyy/MM/dd",
41 | "yyyy-MM-dd",
42 | "dd/MM/yyyy",
43 | "dd-MM-yyyy",
44 | "yyyyMMdd",
45 | "MMddyyyy",
46 | ] as const;
47 |
48 | type DateFormat = (typeof dateFormats)[number];
49 |
50 | export const DateInputModeValues = ["single", "range"] as const;
51 | type DateInputMode = (typeof DateInputModeValues)[number];
52 |
53 | export const enum WeekDays {
54 | Sunday = 0,
55 | Monday = 1,
56 | Tuesday = 2,
57 | Wednesday = 3,
58 | Thursday = 4,
59 | Friday = 5,
60 | Saturday = 6,
61 | }
62 |
63 | type Props = {
64 | id?: string;
65 | initialValue?: string;
66 | value?: string;
67 | enabled?: boolean;
68 | updateState?: UpdateStateFn;
69 | style?: CSSProperties;
70 | className?: string;
71 | onDidChange?: (newValue: string | null) => void;
72 | onFocus?: (ev: React.FocusEvent<HTMLDivElement>) => void;
73 | onBlur?: (ev: React.FocusEvent<HTMLDivElement>) => void;
74 | onInvalidChange?: () => void;
75 | validationStatus?: ValidationStatus;
76 | registerComponentApi?: RegisterComponentApiFn;
77 | mode?: DateInputMode;
78 | dateFormat?: DateFormat;
79 | showWeekNumber?: boolean;
80 | weekStartsOn?: WeekDays;
81 | minValue?: string;
82 | maxValue?: string;
83 | disabledDates?: any;
84 | inline?: boolean;
85 | clearable?: boolean;
86 | clearIcon?: string;
87 | clearToInitialValue?: boolean;
88 | required?: boolean;
89 | startText?: string;
90 | startIcon?: string;
91 | endText?: string;
92 | endIcon?: string;
93 | gap?: string;
94 | readOnly?: boolean;
95 | autoFocus?: boolean;
96 | emptyCharacter?: string;
97 | };
98 |
99 | export const defaultProps = {
100 | enabled: true,
101 | validationStatus: "none" as ValidationStatus,
102 | mode: "single" as DateInputMode,
103 | dateFormat: "MM/dd/yyyy" as DateFormat,
104 | showWeekNumber: false,
105 | weekStartsOn: WeekDays.Sunday,
106 | inline: true,
107 | clearable: false,
108 | clearToInitialValue: true,
109 | required: false,
110 | labelPosition: "top",
111 | readOnly: false,
112 | autoFocus: false,
113 | labelBreak: false,
114 | emptyCharacter: "-",
115 | };
116 |
117 | export const DateInput = forwardRef<HTMLDivElement, Props>(function DateInputNative(
118 | {
119 | id,
120 | initialValue,
121 | value: controlledValue,
122 | enabled = defaultProps.enabled,
123 | updateState,
124 | style,
125 | className,
126 | onDidChange,
127 | onFocus,
128 | onBlur,
129 | onInvalidChange,
130 | validationStatus = defaultProps.validationStatus,
131 | registerComponentApi,
132 | mode = defaultProps.mode,
133 | dateFormat = defaultProps.dateFormat,
134 | showWeekNumber = defaultProps.showWeekNumber,
135 | weekStartsOn = defaultProps.weekStartsOn,
136 | minValue,
137 | maxValue,
138 | disabledDates,
139 | inline = defaultProps.inline,
140 | clearable = defaultProps.clearable,
141 | clearIcon,
142 | clearToInitialValue = defaultProps.clearToInitialValue,
143 | required = defaultProps.required,
144 | startText,
145 | startIcon,
146 | endText,
147 | endIcon,
148 | gap,
149 | readOnly = defaultProps.readOnly,
150 | autoFocus = defaultProps.autoFocus,
151 | emptyCharacter = defaultProps.emptyCharacter,
152 | ...rest
153 | },
154 | ref,
155 | ) {
156 | const dateInputRef = useRef<HTMLDivElement>(null);
157 |
158 | // Refs for auto-tabbing between inputs
159 | const dayInputRef = useRef<HTMLInputElement>(null);
160 | const monthInputRef = useRef<HTMLInputElement>(null);
161 | const yearInputRef = useRef<HTMLInputElement>(null);
162 |
163 | // Process emptyCharacter according to requirements
164 | const processedEmptyCharacter = useMemo(() => {
165 | if (!emptyCharacter || emptyCharacter.length === 0) {
166 | return "-";
167 | }
168 | if (emptyCharacter.length > 1) {
169 | // Use proper unicode-aware character extraction
170 | const firstChar = [...emptyCharacter][0];
171 | return firstChar;
172 | }
173 | return emptyCharacter;
174 | }, [emptyCharacter]);
175 |
176 | // Stabilize initialValue to prevent unnecessary re-renders
177 | const stableInitialValue = useMemo(() => {
178 | return initialValue;
179 | }, [initialValue]);
180 |
181 | // Local state management - sync with value prop
182 | const [localValue, setLocalValue] = useState<string | null>(() => {
183 | const initial = controlledValue || stableInitialValue || null;
184 | return initial;
185 | });
186 |
187 | // Parse current value into individual components
188 | const [day, setDay] = useState<string | null>(null);
189 | const [month, setMonth] = useState<string | null>(null);
190 | const [year, setYear] = useState<string | null>(null);
191 |
192 | // Track whether the component currently has focus
193 | const [componentHasFocus, setComponentHasFocus] = useState(false);
194 |
195 | // State to track invalid status for visual feedback
196 | const [isDayCurrentlyInvalid, setIsDayCurrentlyInvalid] = useState(false);
197 | const [isMonthCurrentlyInvalid, setIsMonthCurrentlyInvalid] = useState(false);
198 | const [isYearCurrentlyInvalid, setIsYearCurrentlyInvalid] = useState(false);
199 |
200 | useEffect(() => {
201 | // Initialize XMLUI state with initial value on first mount
202 | if (updateState && stableInitialValue !== undefined && controlledValue === undefined) {
203 | updateState({ value: stableInitialValue }, { initial: true });
204 | return; // Don't sync on this first run, let the state update trigger a re-render
205 | }
206 |
207 | // Sync with controlled value - always sync when controlledValue changes
208 | const newLocalValue = controlledValue || null;
209 | setLocalValue(newLocalValue);
210 | }, [controlledValue, stableInitialValue, updateState]);
211 |
212 | // Get the order of date inputs based on the format
213 | const dateOrder = useMemo(() => {
214 | const format = dateFormat.toLowerCase();
215 |
216 | // Determine the order based on the format pattern
217 | if (format.startsWith("mm") || format.startsWith("m")) {
218 | if (format.includes("/dd/yyyy") || format.includes("-dd-yyyy")) {
219 | return ["month", "day", "year"]; // MM/dd/yyyy or MM-dd-yyyy
220 | } else {
221 | return ["month", "day", "year"]; // MMddyyyy
222 | }
223 | } else if (format.startsWith("yyyy")) {
224 | return ["year", "month", "day"]; // yyyy/MM/dd or yyyy-MM-dd
225 | } else if (format.startsWith("dd")) {
226 | return ["day", "month", "year"]; // dd/MM/yyyy or dd-MM-yyyy
227 | } else {
228 | return ["month", "day", "year"]; // fallback
229 | }
230 | }, [dateFormat]);
231 |
232 | // Parse value into individual components
233 | useEffect(() => {
234 | if (localValue) {
235 | const parsedValues = parseDateString(localValue, dateFormat);
236 | if (parsedValues) {
237 | setDay(parsedValues.day);
238 | setMonth(parsedValues.month);
239 | setYear(parsedValues.year);
240 | } else {
241 | setDay(null);
242 | setMonth(null);
243 | setYear(null);
244 | }
245 | } else {
246 | setDay(null);
247 | setMonth(null);
248 | setYear(null);
249 | }
250 | }, [localValue, dateFormat]);
251 |
252 | // Event handlers
253 | const handleChange = useEvent((newValue: string | null) => {
254 | // Update local state immediately for immediate UI feedback
255 | setLocalValue(newValue);
256 |
257 | // Also update the XMLUI state
258 | if (updateState) {
259 | updateState({ value: newValue });
260 | }
261 | onDidChange?.(newValue);
262 | });
263 |
264 | // Helper function to format the complete date value
265 | const formatDateValue = useCallback(
266 | (d: string | null, m: string | null, y: string | null): string | null => {
267 | if (!d || !m || !y) {
268 | return null;
269 | }
270 |
271 | // Create a date object and format it according to the dateFormat
272 | const dayNum = parseInt(d, 10);
273 | const monthNum = parseInt(m, 10);
274 | const yearNum = parseInt(y, 10);
275 |
276 | if (isNaN(dayNum) || isNaN(monthNum) || isNaN(yearNum)) {
277 | return null;
278 | }
279 |
280 | try {
281 | // Create date object (month is 0-indexed in Date constructor)
282 | const date = new Date(yearNum, monthNum - 1, dayNum);
283 |
284 | // Validate the date
285 | if (
286 | date.getFullYear() !== yearNum ||
287 | date.getMonth() !== monthNum - 1 ||
288 | date.getDate() !== dayNum
289 | ) {
290 | return null;
291 | }
292 |
293 | // Format using the specified format
294 | return format(date, dateFormat);
295 | } catch (error) {
296 | return null;
297 | }
298 | },
299 | [dateFormat],
300 | );
301 |
302 | // Generic handlers for input change and blur
303 | const createInputChangeHandler = useCallback(
304 | (
305 | field: "day" | "month" | "year",
306 | setValue: (value: string) => void,
307 | setInvalid: (invalid: boolean) => void,
308 | validateFn: (value: string) => boolean,
309 | ) =>
310 | (event: React.ChangeEvent<HTMLInputElement>) => {
311 | const newValue = event.target.value;
312 | setValue(newValue);
313 | // Update invalid state immediately for visual feedback
314 | const isInvalid = validateFn(newValue);
315 | setInvalid(isInvalid);
316 |
317 | // Clear day invalid state when any field changes, as the date combination might become valid
318 | if (!isInvalid) {
319 | setIsDayCurrentlyInvalid(false);
320 | }
321 |
322 | // Fire invalid event if the value is invalid
323 | if (isInvalid) {
324 | onInvalidChange?.();
325 | }
326 | // Don't format/normalize during typing - only on blur
327 | },
328 | [onInvalidChange],
329 | );
330 |
331 | const createInputBlurHandler = useCallback(
332 | (
333 | field: "day" | "month" | "year",
334 | setValue: (value: string) => void,
335 | setInvalid: (invalid: boolean) => void,
336 | normalizeFn: (value: string) => string | null,
337 | ) =>
338 | (direction: BlurDirection, event: React.FocusEvent<HTMLInputElement>) => {
339 | const currentValue = event.target.value;
340 | const normalizedValue = normalizeFn(currentValue);
341 |
342 | // Check if the current value was invalid (needed normalization or couldn't be normalized)
343 | const wasInvalid =
344 | currentValue !== "" && (normalizedValue === null || normalizedValue !== currentValue);
345 |
346 | if (normalizedValue !== null && normalizedValue !== currentValue) {
347 | setValue(normalizedValue);
348 | setInvalid(false); // Clear invalid state after normalization
349 |
350 | // Check if the complete date would be valid
351 | const dateValues = { day, month, year };
352 | dateValues[field] = normalizedValue;
353 | const dateString = formatDateValue(dateValues.day, dateValues.month, dateValues.year);
354 |
355 | if (dateString !== null) {
356 | // Valid complete date - update normally
357 | handleChange(dateString);
358 | } else {
359 | // Invalid date combination - mark the day as invalid if all fields are present
360 | if (dateValues.day && dateValues.month && dateValues.year) {
361 | setIsDayCurrentlyInvalid(true);
362 | onInvalidChange?.();
363 | // Don't call handleChange with null to avoid clearing the fields
364 | } else {
365 | // Incomplete date - call handleChange as normal (will be null)
366 | handleChange(dateString);
367 | }
368 | }
369 | } else if (normalizedValue === null && currentValue !== "") {
370 | // Reset to previous valid value or clear
371 | setValue("");
372 | setInvalid(false); // Clear invalid state
373 | // Always call handleChange to update the date value (likely to null)
374 | const dateValues = { day, month, year };
375 | dateValues[field] = "";
376 | const dateString = formatDateValue(dateValues.day, dateValues.month, dateValues.year);
377 | handleChange(dateString);
378 | } else if (normalizedValue !== null) {
379 | // Value didn't need normalization, but still update the complete date
380 | const dateValues = { day, month, year };
381 | dateValues[field] = normalizedValue;
382 | const dateString = formatDateValue(dateValues.day, dateValues.month, dateValues.year);
383 |
384 | if (dateString !== null) {
385 | // Valid complete date - update normally
386 | handleChange(dateString);
387 | } else {
388 | // Invalid date combination - mark the day as invalid if all fields are present
389 | if (dateValues.day && dateValues.month && dateValues.year) {
390 | setIsDayCurrentlyInvalid(true);
391 | onInvalidChange?.();
392 | // Don't call handleChange with null to avoid clearing the fields
393 | } else {
394 | // Incomplete date - call handleChange as normal (will be null)
395 | handleChange(dateString);
396 | }
397 | }
398 | }
399 | },
400 | [day, month, year, handleChange, onInvalidChange],
401 | );
402 |
403 | // Handle changes from individual inputs
404 | const handleDayChange = useMemo(
405 | () =>
406 | createInputChangeHandler("day", setDay, setIsDayCurrentlyInvalid, (value) =>
407 | isDayInvalid(value, month, year),
408 | ),
409 | [createInputChangeHandler, month, year],
410 | );
411 |
412 | const handleDayBlur = useMemo(
413 | () =>
414 | createInputBlurHandler("day", setDay, setIsDayCurrentlyInvalid, (value) =>
415 | normalizeDay(value, month, year),
416 | ),
417 | [createInputBlurHandler, month, year],
418 | );
419 |
420 | const handleMonthChange = useMemo(
421 | () => createInputChangeHandler("month", setMonth, setIsMonthCurrentlyInvalid, isMonthInvalid),
422 | [createInputChangeHandler],
423 | );
424 |
425 | const handleMonthBlur = useMemo(
426 | () => createInputBlurHandler("month", setMonth, setIsMonthCurrentlyInvalid, normalizeMonth),
427 | [createInputBlurHandler],
428 | );
429 |
430 | const handleYearChange = useMemo(
431 | () => createInputChangeHandler("year", setYear, setIsYearCurrentlyInvalid, isYearInvalid),
432 | [createInputChangeHandler],
433 | );
434 |
435 | const handleYearBlur = useMemo(
436 | () => createInputBlurHandler("year", setYear, setIsYearCurrentlyInvalid, normalizeYear),
437 | [createInputBlurHandler],
438 | );
439 |
440 | // Focus method
441 | const focus = useCallback(() => {
442 | const firstInput = dateInputRef.current?.querySelector("input") as HTMLInputElement;
443 | firstInput?.focus();
444 | }, []);
445 |
446 | // Custom focus handler that fires gotFocus when component gains focus
447 | const handleComponentFocus = useCallback(
448 | (event: React.FocusEvent<HTMLDivElement>) => {
449 | // If component didn't have focus before, fire gotFocus
450 | if (!componentHasFocus) {
451 | setComponentHasFocus(true);
452 | onFocus?.(event);
453 | }
454 | },
455 | [componentHasFocus, onFocus],
456 | );
457 |
458 | // Custom blur handler that only fires lostFocus when focus leaves the entire component
459 | const handleComponentBlur = useCallback(
460 | (event: React.FocusEvent<HTMLDivElement>) => {
461 | // Check if the new focus target is still within this DateInput component
462 | const relatedTarget = event.relatedTarget as HTMLElement;
463 | const currentTarget = event.currentTarget;
464 |
465 | // If there's no related target, or the related target is not within this component, fire lostFocus
466 | if (!relatedTarget || !currentTarget.contains(relatedTarget)) {
467 | setComponentHasFocus(false);
468 | onBlur?.(event);
469 | }
470 | },
471 | [onBlur],
472 | );
473 |
474 | // Arrow key navigation handler
475 | const createArrowKeyHandler = useCallback(() => {
476 | return (event: React.KeyboardEvent<HTMLInputElement>) => {
477 | const { key } = event;
478 |
479 | if (key === "ArrowRight") {
480 | event.preventDefault();
481 | const currentTarget = event.target as HTMLInputElement;
482 |
483 | // Determine next input based on current input
484 | if (currentTarget === monthInputRef.current && dayInputRef.current) {
485 | dayInputRef.current.focus();
486 | dayInputRef.current.select();
487 | } else if (currentTarget === dayInputRef.current && yearInputRef.current) {
488 | yearInputRef.current.focus();
489 | yearInputRef.current.select();
490 | }
491 | } else if (key === "ArrowLeft") {
492 | event.preventDefault();
493 | const currentTarget = event.target as HTMLInputElement;
494 |
495 | // Determine previous input based on current input
496 | if (currentTarget === dayInputRef.current && monthInputRef.current) {
497 | monthInputRef.current.focus();
498 | monthInputRef.current.select();
499 | } else if (currentTarget === yearInputRef.current && dayInputRef.current) {
500 | dayInputRef.current.focus();
501 | dayInputRef.current.select();
502 | }
503 | }
504 | };
505 | }, []);
506 |
507 | // Create the arrow key handler instance
508 | const handleArrowKeys = createArrowKeyHandler();
509 |
510 | const clear = useCallback(() => {
511 | // Reset to initial value if provided, otherwise null
512 | let valueToReset = clearToInitialValue
513 | ? stableInitialValue !== undefined
514 | ? stableInitialValue
515 | : null
516 | : null;
517 |
518 | if (valueToReset) {
519 | const parsedValues = parseDateString(valueToReset, dateFormat);
520 | if (parsedValues) {
521 | setDay(parsedValues.day);
522 | setMonth(parsedValues.month);
523 | setYear(parsedValues.year);
524 | } else {
525 | setDay(null);
526 | setMonth(null);
527 | setYear(null);
528 | }
529 | } else {
530 | // Clear all fields
531 | setDay(null);
532 | setMonth(null);
533 | setYear(null);
534 | }
535 |
536 | handleChange(valueToReset);
537 |
538 | // Focus the component after clearing
539 | setTimeout(() => {
540 | focus();
541 | }, 0);
542 | }, [stableInitialValue, handleChange, dateFormat, clearToInitialValue, focus]);
543 |
544 | function stopPropagation(event: React.FocusEvent) {
545 | event.stopPropagation();
546 | }
547 |
548 | const setValue = useEvent((newValue: string | null) => {
549 | handleChange(newValue);
550 | });
551 |
552 | // Function to get ISO formatted date value (YYYY-MM-DD)
553 | const getIsoValue = useCallback((): string | null => {
554 | if (!day || !month || !year) {
555 | return null;
556 | }
557 |
558 | // Convert to numbers
559 | const dayNum = parseInt(day, 10);
560 | const monthNum = parseInt(month, 10);
561 | const yearNum = parseInt(year, 10);
562 |
563 | if (isNaN(dayNum) || isNaN(monthNum) || isNaN(yearNum)) {
564 | return null;
565 | }
566 |
567 | try {
568 | // Create date object (month is 0-indexed in Date constructor)
569 | const date = new Date(yearNum, monthNum - 1, dayNum);
570 |
571 | // Validate the date
572 | if (
573 | date.getFullYear() !== yearNum ||
574 | date.getMonth() !== monthNum - 1 ||
575 | date.getDate() !== dayNum
576 | ) {
577 | return null;
578 | }
579 |
580 | // Format as ISO date string (YYYY-MM-DD)
581 | const year4 = yearNum.toString().padStart(4, "0");
582 | const month2 = monthNum.toString().padStart(2, "0");
583 | const day2 = dayNum.toString().padStart(2, "0");
584 |
585 | return `${year4}-${month2}-${day2}`;
586 | } catch (error) {
587 | return null;
588 | }
589 | }, [day, month, year]);
590 |
591 | // Component API registration
592 | useEffect(() => {
593 | if (registerComponentApi) {
594 | registerComponentApi({
595 | focus,
596 | setValue,
597 | isoValue: getIsoValue,
598 | });
599 | }
600 | }, [registerComponentApi, focus, setValue, getIsoValue]);
601 |
602 | // Custom clear icon
603 | const clearIconElement = useMemo(() => {
604 | if (clearIcon === null || clearIcon === "null") return null;
605 | if (clearIcon) return <Icon name={clearIcon} />;
606 | // Default clear icon
607 | return (
608 | <svg
609 | xmlns="http://www.w3.org/2000/svg"
610 | width={19}
611 | height={19}
612 | viewBox="0 0 19 19"
613 | stroke="currentColor"
614 | strokeWidth={2}
615 | aria-hidden="true"
616 | className={classnames(styles.clearButtonIcon, styles.buttonIcon)}
617 | >
618 | <line x1="4" x2="15" y1="4" y2="15" />
619 | <line x1="15" x2="4" y1="4" y2="15" />
620 | </svg>
621 | );
622 | }, [clearIcon]);
623 |
624 | // Adornments
625 | const startAdornment = useMemo(() => {
626 | if (startIcon || startText) {
627 | return <Adornment iconName={startIcon} text={startText} className={styles.adornment} />;
628 | }
629 | return null;
630 | }, [startIcon, startText]);
631 |
632 | const endAdornment = useMemo(() => {
633 | if (endIcon || endText) {
634 | return <Adornment iconName={endIcon} text={endText} className={styles.adornment} />;
635 | }
636 | return null;
637 | }, [endIcon, endText]);
638 |
639 | // Helper function to get input refs based on order
640 | const getInputRefs = useCallback(() => {
641 | const refs = {
642 | day: dayInputRef,
643 | month: monthInputRef,
644 | year: yearInputRef,
645 | };
646 | return dateOrder.map((field) => refs[field as keyof typeof refs]);
647 | }, [dateOrder]);
648 |
649 | // Helper function to create input components in the right order
650 | const createDateInputs = () => {
651 | const inputRefs = getInputRefs();
652 |
653 | return dateOrder.map((field, index) => {
654 | const nextRef = index < inputRefs.length - 1 ? inputRefs[index + 1] : undefined;
655 | // Pass id to the first input field only
656 | const inputId = index === 0 ? id : undefined;
657 |
658 | const getSeparator = () => {
659 | if (index === dateOrder.length - 1) return null;
660 |
661 | // Get separator based on format
662 | if (dateFormat.includes("/")) return "/";
663 | if (dateFormat.includes("-")) return "-";
664 | return "";
665 | };
666 |
667 | switch (field) {
668 | case "day":
669 | return (
670 | <React.Fragment key="day">
671 | <DayInput
672 | id={inputId}
673 | autoFocus={autoFocus && index === 0}
674 | disabled={!enabled}
675 | inputRef={dayInputRef}
676 | nextInputRef={nextRef}
677 | minValue={minValue}
678 | maxValue={maxValue}
679 | onChange={handleDayChange}
680 | onBlur={handleDayBlur}
681 | onKeyDown={handleArrowKeys}
682 | readOnly={readOnly}
683 | required={required}
684 | value={day}
685 | isInvalid={isDayCurrentlyInvalid}
686 | month={month}
687 | year={year}
688 | emptyCharacter={processedEmptyCharacter}
689 | />
690 | {getSeparator() && <InputDivider separator={getSeparator()} />}
691 | </React.Fragment>
692 | );
693 | case "month":
694 | return (
695 | <React.Fragment key="month">
696 | <MonthInput
697 | id={inputId}
698 | autoFocus={autoFocus && index === 0}
699 | disabled={!enabled}
700 | inputRef={monthInputRef}
701 | nextInputRef={nextRef}
702 | minValue={minValue}
703 | maxValue={maxValue}
704 | onChange={handleMonthChange}
705 | onBlur={handleMonthBlur}
706 | onKeyDown={handleArrowKeys}
707 | readOnly={readOnly}
708 | required={required}
709 | value={month}
710 | isInvalid={isMonthCurrentlyInvalid}
711 | emptyCharacter={processedEmptyCharacter}
712 | />
713 | {getSeparator() && <InputDivider separator={getSeparator()} />}
714 | </React.Fragment>
715 | );
716 | case "year":
717 | return (
718 | <React.Fragment key="year">
719 | <YearInput
720 | id={inputId}
721 | autoFocus={autoFocus && index === 0}
722 | disabled={!enabled}
723 | inputRef={yearInputRef}
724 | nextInputRef={nextRef}
725 | minValue={minValue}
726 | maxValue={maxValue}
727 | onChange={handleYearChange}
728 | onBlur={handleYearBlur}
729 | onKeyDown={handleArrowKeys}
730 | readOnly={readOnly}
731 | required={required}
732 | value={year}
733 | isInvalid={isYearCurrentlyInvalid}
734 | dateFormat={dateFormat}
735 | emptyCharacter={processedEmptyCharacter}
736 | />
737 | {getSeparator() && <InputDivider separator={getSeparator()} />}
738 | </React.Fragment>
739 | );
740 | default:
741 | return null;
742 | }
743 | });
744 | };
745 |
746 | return (
747 | <div
748 | ref={dateInputRef}
749 | className={classnames(
750 | styles.dateInputWrapper,
751 | {
752 | [styles.error]: validationStatus === "error",
753 | [styles.warning]: validationStatus === "warning",
754 | [styles.valid]: validationStatus === "valid",
755 | [styles.disabled]: !enabled,
756 | [styles.readOnly]: readOnly,
757 | },
758 | className,
759 | )}
760 | style={{ ...style, gap }}
761 | onFocusCapture={handleComponentFocus}
762 | onBlur={handleComponentBlur}
763 | data-validation-status={validationStatus}
764 | {...rest}
765 | >
766 | {startAdornment}
767 | <div className={styles.wrapper}>
768 | <div className={styles.inputGroup}>{createDateInputs()}</div>
769 | {clearable && (
770 | <button
771 | data-part-id={PART_CLEAR_BUTTON}
772 | className={classnames(
773 | styles.clearButton,
774 | styles.button,
775 | )}
776 | disabled={!enabled}
777 | onClick={clear}
778 | onFocus={stopPropagation}
779 | type="button"
780 | >
781 | {clearIconElement}
782 | </button>
783 | )}
784 | </div>
785 | {endAdornment}
786 | </div>
787 | );
788 | });
789 |
790 | // Input component types
791 | type InputProps = {
792 | id?: string;
793 | ariaLabel?: string;
794 | autoFocus?: boolean;
795 | className?: string;
796 | disabled?: boolean;
797 | inputRef?: React.RefObject<HTMLInputElement | null>;
798 | max: number;
799 | min: number;
800 | name: string;
801 | nextInputRef?: React.RefObject<HTMLInputElement | null>; // For auto-tabbing to next input
802 | onChange?: (event: React.ChangeEvent<HTMLInputElement> & { target: HTMLInputElement }) => void;
803 | onBlur?: (event: React.FocusEvent<HTMLInputElement> & { target: HTMLInputElement }) => void;
804 | onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement> & { target: HTMLInputElement }) => void;
805 | onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement> & { target: HTMLInputElement }) => void;
806 | placeholder?: string;
807 | readOnly?: boolean;
808 | required?: boolean;
809 | step?: number;
810 | value?: string | null;
811 | maxLength?: number;
812 | isInvalid?: boolean; // To prevent auto-tabbing when value is invalid
813 | validateFn?: (value: string) => boolean; // Function to validate the current input value
814 | onBeep?: () => void; // Function to handle beep sound and event
815 | };
816 |
817 | // Input component
818 | function Input({
819 | id,
820 | ariaLabel,
821 | autoFocus,
822 | className,
823 | disabled,
824 | inputRef,
825 | max,
826 | min,
827 | name,
828 | nextInputRef, // For auto-tabbing to next input
829 | onChange,
830 | onBlur,
831 | onKeyDown,
832 | onKeyUp,
833 | placeholder,
834 | readOnly,
835 | required,
836 | step,
837 | value,
838 | maxLength = 2,
839 | isInvalid = false, // To prevent auto-tabbing when value is invalid
840 | validateFn, // Function to validate the current input value
841 | onBeep, // Function to handle beep sound and event
842 | }: InputProps): React.ReactElement {
843 | // Handle input changes with auto-tabbing logic
844 | const handleInputChange = useCallback(
845 | (event: React.ChangeEvent<HTMLInputElement>) => {
846 | const newValue = event.target.value;
847 |
848 | // Call the original onChange handler
849 | if (onChange) {
850 | onChange(event);
851 | }
852 |
853 | // Auto-tab to next input if we have reached max length, value is numeric, and value is valid
854 | if (newValue.length === maxLength && /^\d+$/.test(newValue)) {
855 | // Check if the new value is valid before auto-tabbing
856 | const isValueInvalid = validateFn ? validateFn(newValue) : false;
857 |
858 | if (!isValueInvalid) {
859 | // Small delay to ensure the current input is properly updated
860 | setTimeout(() => {
861 | if (nextInputRef?.current) {
862 | // Tab to next input field
863 | nextInputRef.current.focus();
864 | nextInputRef.current.select();
865 | }
866 | }, 0);
867 | } else {
868 | // Input is ready for auto-tab but invalid - play beep sound and fire event
869 | onBeep?.();
870 | }
871 | }
872 | },
873 | [onChange, nextInputRef, maxLength, validateFn, onBeep],
874 | );
875 |
876 | return (
877 | <>
878 | <input
879 | id={id}
880 | aria-label={ariaLabel}
881 | autoComplete="off"
882 | // biome-ignore lint/a11y/noAutofocus: This is up to developers' decision
883 | autoFocus={autoFocus}
884 | className={classnames(styles.input, className)}
885 | data-input="true"
886 | disabled={disabled}
887 | inputMode="numeric"
888 | max={max}
889 | maxLength={maxLength}
890 | min={min}
891 | name={name}
892 | onChange={handleInputChange}
893 | onBlur={onBlur}
894 | onFocus={onFocus}
895 | onKeyDown={onKeyDown}
896 | onKeyUp={onKeyUp}
897 | placeholder={placeholder || "--"}
898 | readOnly={readOnly}
899 | // Assertion is needed for React 18 compatibility
900 | ref={inputRef as React.RefObject<HTMLInputElement>}
901 | required={required}
902 | step={step}
903 | type="text"
904 | value={value !== null ? value : ""}
905 | />
906 | </>
907 | );
908 | }
909 |
910 | // DayInput component
911 | type DayInputProps = {
912 | minValue?: string;
913 | maxValue?: string;
914 | value?: string | null;
915 | isInvalid?: boolean;
916 | month?: string | null;
917 | year?: string | null;
918 | onBeep?: () => void;
919 | emptyCharacter?: string;
920 | } & Omit<
921 | React.ComponentProps<typeof PartialInput>,
922 | | "max"
923 | | "min"
924 | | "name"
925 | | "value"
926 | | "maxLength"
927 | | "validateFn"
928 | | "emptyCharacter"
929 | | "placeholderLength"
930 | >;
931 |
932 | function DayInput({
933 | minValue,
934 | maxValue,
935 | value,
936 | isInvalid = false,
937 | month,
938 | year,
939 | onBeep,
940 | emptyCharacter = "-",
941 | ...otherProps
942 | }: DayInputProps): React.ReactElement {
943 | // Calculate max days for the current month/year
944 | const maxDay = useMemo(() => {
945 | if (month && year) {
946 | const monthNum = parseInt(month, 10);
947 | const yearNum = parseInt(year, 10);
948 | if (!isNaN(monthNum) && !isNaN(yearNum)) {
949 | return new Date(yearNum, monthNum, 0).getDate();
950 | }
951 | }
952 | return 31; // Default to 31 if month/year not available
953 | }, [month, year]);
954 |
955 | return (
956 | <PartialInput
957 | data-part-id={PART_DAY}
958 | id={otherProps.id}
959 | value={value}
960 | emptyCharacter={emptyCharacter}
961 | placeholderLength={2}
962 | max={Math.min(maxDay, 31)}
963 | min={1}
964 | maxLength={2}
965 | validateFn={(val) => isDayInvalid(val, month, year)}
966 | onBeep={onBeep}
967 | onChange={otherProps.onChange}
968 | onBlur={(direction, event) => {
969 | // PartialInput provides direction, but current onBlur expects just event
970 | if (otherProps.onBlur) {
971 | // Provide both direction and event to match the expected signature
972 | otherProps.onBlur(direction, event);
973 | }
974 | }}
975 | onKeyDown={otherProps.onKeyDown}
976 | className={classnames(styles.input, styles.day)}
977 | invalidClassName={styles.invalid}
978 | disabled={otherProps.disabled}
979 | readOnly={otherProps.readOnly}
980 | required={otherProps.required}
981 | autoFocus={otherProps.autoFocus}
982 | inputRef={otherProps.inputRef}
983 | nextInputRef={otherProps.nextInputRef}
984 | name="day"
985 | ariaLabel={otherProps.ariaLabel}
986 | isInvalid={isInvalid}
987 | />
988 | );
989 | }
990 |
991 | // MonthInput component
992 | type MonthInputProps = {
993 | minValue?: string;
994 | maxValue?: string;
995 | value?: string | null;
996 | isInvalid?: boolean;
997 | onBeep?: () => void;
998 | emptyCharacter?: string;
999 | } & Omit<React.ComponentProps<typeof PartialInput>, "max" | "min" | "name" | "value" | "maxLength">;
1000 |
1001 | function MonthInput({
1002 | minValue,
1003 | maxValue,
1004 | value,
1005 | isInvalid = false,
1006 | onBeep,
1007 | emptyCharacter = "-",
1008 | ...otherProps
1009 | }: MonthInputProps): React.ReactElement {
1010 | return (
1011 | <PartialInput
1012 | data-part-id={PART_MONTH}
1013 | id={otherProps.id}
1014 | max={12}
1015 | min={1}
1016 | name="month"
1017 | value={value}
1018 | invalidClassName={styles.invalid}
1019 | isInvalid={isInvalid}
1020 | validateFn={isMonthInvalid}
1021 | onBeep={onBeep}
1022 | onChange={otherProps.onChange}
1023 | emptyCharacter={emptyCharacter}
1024 | placeholderLength={2}
1025 | className={classnames(styles.input, styles.month)}
1026 | maxLength={2}
1027 | disabled={otherProps.disabled}
1028 | required={otherProps.required}
1029 | onBlur={(direction, event) => {
1030 | // PartialInput provides direction, but current onBlur expects just event
1031 | if (otherProps.onBlur) {
1032 | // Provide both direction and event to match the expected signature
1033 | otherProps.onBlur(direction, event);
1034 | }
1035 | }}
1036 | onKeyDown={otherProps.onKeyDown}
1037 | readOnly={otherProps.readOnly}
1038 | autoFocus={otherProps.autoFocus}
1039 | inputRef={otherProps.inputRef}
1040 | nextInputRef={otherProps.nextInputRef}
1041 | ariaLabel={otherProps.ariaLabel}
1042 | />
1043 | );
1044 | }
1045 |
1046 | // YearInput component
1047 | type YearInputProps = {
1048 | minValue?: string;
1049 | maxValue?: string;
1050 | value?: string | null;
1051 | isInvalid?: boolean;
1052 | dateFormat?: DateFormat;
1053 | onBeep?: () => void;
1054 | emptyCharacter?: string;
1055 | } & Omit<React.ComponentProps<typeof PartialInput>, "max" | "min" | "name" | "value" | "maxLength">;
1056 |
1057 | function YearInput({
1058 | minValue,
1059 | maxValue,
1060 | value,
1061 | isInvalid = false,
1062 | dateFormat = "MM/dd/yyyy",
1063 | onBeep,
1064 | emptyCharacter = "-",
1065 | ...otherProps
1066 | }: YearInputProps): React.ReactElement {
1067 | // Always use 4-digit year format
1068 | const maxLength = 4;
1069 |
1070 | const currentYear = new Date().getFullYear();
1071 | const min = 1900;
1072 | const max = currentYear + 100;
1073 |
1074 | const { className: originalClassName, ...restProps } = otherProps;
1075 |
1076 | return (
1077 | <PartialInput
1078 | data-part-id={PART_YEAR}
1079 | id={otherProps.id}
1080 | max={max}
1081 | min={min}
1082 | name="year"
1083 | value={value}
1084 | isInvalid={isInvalid}
1085 | invalidClassName={styles.invalid}
1086 | validateFn={isYearInvalid}
1087 | onBeep={onBeep}
1088 | emptyCharacter={emptyCharacter}
1089 | placeholderLength={4}
1090 | className={classnames(styles.input, styles.year, originalClassName)}
1091 | maxLength={maxLength}
1092 | onBlur={(direction, event) => {
1093 | // PartialInput provides direction, but current onBlur expects just event
1094 | if (otherProps.onBlur) {
1095 | // Provide both direction and event to match the expected signature
1096 | otherProps.onBlur(direction, event);
1097 | }
1098 | }}
1099 | {...restProps}
1100 | />
1101 | );
1102 | }
1103 |
1104 | // Input helper functions
1105 | function onFocus(event: React.FocusEvent<HTMLInputElement>) {
1106 | const { target } = event;
1107 |
1108 | if (isIEOrEdgeLegacy) {
1109 | requestAnimationFrame(() => target.select());
1110 | } else {
1111 | target.select();
1112 | }
1113 | }
1114 |
1115 | // Utility function to parse date string into components
1116 | function parseDateString(dateString: string, dateFormat: DateFormat) {
1117 | // Handle non-string values gracefully by returning null (empty fields)
1118 | if (typeof dateString !== 'string' || dateString === null || dateString === undefined) {
1119 | return null;
1120 | }
1121 |
1122 | try {
1123 | // Try to parse the date using the specified format
1124 | const parsedDate = parse(dateString, dateFormat, new Date());
1125 |
1126 | if (isValid(parsedDate)) {
1127 | return {
1128 | day: parsedDate.getDate().toString().padStart(2, "0"),
1129 | month: (parsedDate.getMonth() + 1).toString().padStart(2, "0"),
1130 | year: parsedDate.getFullYear().toString(),
1131 | };
1132 | }
1133 |
1134 | // Fallback: Try to parse as ISO date string
1135 | const isoDate = new Date(dateString);
1136 | if (!isNaN(isoDate.getTime())) {
1137 | return {
1138 | day: isoDate.getDate().toString().padStart(2, "0"),
1139 | month: (isoDate.getMonth() + 1).toString().padStart(2, "0"),
1140 | year: isoDate.getFullYear().toString(),
1141 | };
1142 | }
1143 |
1144 | return null;
1145 | } catch (error) {
1146 | return null;
1147 | }
1148 | }
1149 |
1150 | // Normalize functions
1151 | function normalizeDay(
1152 | value: string | null,
1153 | month: string | null,
1154 | year: string | null,
1155 | ): string | null {
1156 | if (!value || value === "") return null;
1157 |
1158 | const num = parseInt(value, 10);
1159 | if (isNaN(num)) return null;
1160 |
1161 | // Calculate max days for the current month/year
1162 | let maxDay = 31;
1163 | if (month && year) {
1164 | const monthNum = parseInt(month, 10);
1165 | const yearNum = parseInt(year, 10);
1166 | if (!isNaN(monthNum) && !isNaN(yearNum)) {
1167 | maxDay = new Date(yearNum, monthNum, 0).getDate();
1168 | }
1169 | }
1170 |
1171 | if (num >= 1 && num <= maxDay) {
1172 | return num.toString().padStart(2, "0");
1173 | } else {
1174 | // Keep value % 10. In case of "0" use "01"
1175 | const normalizedValue = num % 10;
1176 | if (normalizedValue === 0) {
1177 | return "01";
1178 | } else {
1179 | return normalizedValue.toString().padStart(2, "0");
1180 | }
1181 | }
1182 | }
1183 |
1184 | function normalizeMonth(value: string | null): string | null {
1185 | if (!value || value === "") return null;
1186 |
1187 | const num = parseInt(value, 10);
1188 | if (isNaN(num)) return null;
1189 |
1190 | if (num >= 1 && num <= 12) {
1191 | return num.toString().padStart(2, "0");
1192 | } else {
1193 | // Keep the last digit. Use "0" as the first digit. In case of "0" use "01"
1194 | const lastDigit = num % 10;
1195 | if (lastDigit === 0) {
1196 | return "01";
1197 | } else {
1198 | return `0${lastDigit}`;
1199 | }
1200 | }
1201 | }
1202 |
1203 | function normalizeYear(value: string | null): string | null {
1204 | if (!value || value === "") return null;
1205 |
1206 | const num = parseInt(value, 10);
1207 | if (isNaN(num)) return null;
1208 |
1209 | if (num >= MIN_YEAR && num <= MAX_YEAR) {
1210 | return num.toString();
1211 | } else {
1212 | // Keep the last two year digits and use "20" as the first two digits if the resulting year is not in the future; otherwise, use "19" as the first two digits
1213 | const lastTwoDigits = num % 100;
1214 | const currentYear = new Date().getFullYear();
1215 | const candidate20 = 2000 + lastTwoDigits;
1216 | const candidate19 = 1900 + lastTwoDigits;
1217 |
1218 | // Use "20" if the resulting year is not in the future; otherwise, use "19"
1219 | if (candidate20 <= currentYear) {
1220 | return candidate20.toString();
1221 | } else {
1222 | return candidate19.toString();
1223 | }
1224 | }
1225 | }
1226 |
1227 | // Validation functions
1228 | function isDayInvalid(value: string | null, month: string | null, year: string | null): boolean {
1229 | if (!value || value === "") return false;
1230 |
1231 | const num = parseInt(value, 10);
1232 | if (isNaN(num)) return true;
1233 |
1234 | // Calculate max days for the current month/year
1235 | let maxDay = 31;
1236 | if (month && year) {
1237 | const monthNum = parseInt(month, 10);
1238 | const yearNum = parseInt(year, 10);
1239 | if (!isNaN(monthNum) && !isNaN(yearNum)) {
1240 | maxDay = new Date(yearNum, monthNum, 0).getDate();
1241 | }
1242 | }
1243 |
1244 | return num < 1 || num > maxDay;
1245 | }
1246 |
1247 | function isMonthInvalid(value: string | null): boolean {
1248 | if (!value || value === "") return false;
1249 |
1250 | const num = parseInt(value, 10);
1251 | if (isNaN(num)) return true;
1252 |
1253 | return num < 1 || num > 12;
1254 | }
1255 |
1256 | function isYearInvalid(value: string | null): boolean {
1257 | if (!value || value === "") return false;
1258 |
1259 | const num = parseInt(value, 10);
1260 | if (isNaN(num)) return true;
1261 |
1262 | // Invalid if out of the minimum and maximum year range
1263 | return num < MIN_YEAR || num > MAX_YEAR;
1264 | }
1265 |
```