This is page 149 of 186. Use http://codebase.md/xmlui-org/xmlui/assets/img/%7BlogoUrl%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ └── cyan-tools-design.md
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs-swa.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ ├── staticwebapp.config.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
│ │ ├── FancyButton.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ │ ├── debounce-with-changelistener.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.module.scss
│ │ │ ├── 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.tsx
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-metadata.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
│ ├── theme-variables-refactoring.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.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
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.json
├── tsdown.config.ts
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/Table/TableNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import type { CSSProperties, ReactNode } from "react";
2 | import {
3 | forwardRef,
4 | useCallback,
5 | useEffect,
6 | useLayoutEffect,
7 | useMemo,
8 | useRef,
9 | useState,
10 | } from "react";
11 | import { flushSync } from "react-dom";
12 | import type {
13 | CellContext,
14 | Column,
15 | ColumnDef,
16 | HeaderContext,
17 | PaginationState,
18 | RowData,
19 | } from "@tanstack/react-table";
20 | import {
21 | flexRender,
22 | getCoreRowModel,
23 | getPaginationRowModel,
24 | useReactTable,
25 | } from "@tanstack/react-table";
26 | import { composeRefs } from "@radix-ui/react-compose-refs";
27 | import { useVirtualizer } from "@tanstack/react-virtual";
28 | import { orderBy } from "lodash-es";
29 | import classnames from "classnames";
30 |
31 | import styles from "./Table.module.scss";
32 |
33 | import "./react-table-config.d.ts";
34 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
35 | import type { AsyncFunction } from "../../abstractions/FunctionDefs";
36 | import { EMPTY_ARRAY } from "../../components-core/constants";
37 | import { useEvent } from "../../components-core/utils/misc";
38 | import {
39 | useHasExplicitHeight,
40 | useIsomorphicLayoutEffect,
41 | usePrevious,
42 | useResizeObserver,
43 | useScrollParent,
44 | useStartMargin,
45 | } from "../../components-core/utils/hooks";
46 | import { useTheme } from "../../components-core/theming/ThemeContext";
47 | import { isThemeVarName } from "../../components-core/theming/transformThemeVars";
48 | import { Spinner } from "../Spinner/SpinnerNative";
49 | import { Toggle } from "../Toggle/Toggle";
50 | import { Icon } from "../Icon/IconNative";
51 | import { type OurColumnMetadata } from "../Column/TableContext";
52 | import useRowSelection from "./useRowSelection";
53 | import { PaginationNative, type Position } from "../Pagination/PaginationNative";
54 |
55 | // =====================================================================================================================
56 | // Helper types
57 |
58 | // --- Declaration merging, see here: https://tanstack.com/table/v8/docs/api/core/table#meta
59 | declare module "@tanstack/table-core" {
60 | // eslint-disable-next-line @typescript-eslint/no-unused-vars
61 | interface TableMeta<TData extends RowData> {
62 | cellRenderer: (...args: any[]) => any;
63 | }
64 |
65 | // eslint-disable-next-line @typescript-eslint/no-unused-vars
66 | interface ColumnMeta<TData extends RowData, TValue> {
67 | style?: CSSProperties;
68 | starSizedWidth?: string;
69 | accessorKey?: string;
70 | pinTo?: string;
71 | cellRenderer?: (row: any, rowIdx: number, colIdx: number, value?: any) => ReactNode;
72 | }
73 | }
74 |
75 | /**
76 | * This type describes an arbitraty table row that has an integer identifier and an order index.
77 | */
78 | type RowWithOrder = {
79 | /**
80 | * Order index; we use it with paging.
81 | */
82 | order: number;
83 |
84 | [x: string | number | symbol]: unknown;
85 | };
86 |
87 | type SortingDirection = "ascending" | "descending";
88 | export const TablePaginationControlsLocationValues = ["top", "bottom", "both"] as const;
89 | export type TablePaginationControlsLocation =
90 | (typeof TablePaginationControlsLocationValues)[number];
91 |
92 | export const CheckboxToleranceValues = ["none", "compact", "comfortable", "spacious"] as const;
93 | export type CheckboxTolerance = (typeof CheckboxToleranceValues)[number];
94 |
95 | // =====================================================================================================================
96 | // React Table component implementation
97 |
98 | type CellVerticalAlign = "top" | "center" | "bottom";
99 |
100 | type TableProps = {
101 | data: any[];
102 | columns?: OurColumnMetadata[];
103 | isPaginated?: boolean;
104 | loading?: boolean;
105 | headerHeight?: string | number;
106 | rowsSelectable?: boolean;
107 | enableMultiRowSelection?: boolean;
108 | initiallySelected?: string[];
109 | syncWithAppState?: any;
110 | pageSizeOptions?: number[];
111 | currentPageIndex?: number;
112 | pageSize?: number;
113 | paginationControlsLocation?: TablePaginationControlsLocation;
114 | rowDisabledPredicate?: (item: any) => boolean;
115 | sortBy?: string;
116 | sortingDirection?: SortingDirection;
117 | iconSortAsc?: string;
118 | iconSortDesc?: string;
119 | iconNoSort?: string;
120 | sortingDidChange?: AsyncFunction;
121 | onSelectionDidChange?: AsyncFunction;
122 | willSort?: AsyncFunction;
123 | style?: CSSProperties;
124 | className?: string;
125 | uid?: string;
126 | noDataRenderer?: () => ReactNode;
127 | autoFocus?: boolean;
128 | hideHeader?: boolean;
129 | hideNoDataView?: boolean;
130 | alwaysShowSelectionHeader?: boolean;
131 | registerComponentApi: RegisterComponentApiFn;
132 | noBottomBorder?: boolean;
133 | cellVerticalAlign?: CellVerticalAlign;
134 | showPageInfo?: boolean;
135 | showPageSizeSelector?: boolean;
136 | showCurrentPage?: boolean;
137 | buttonRowPosition?: Position;
138 | pageSizeSelectorPosition?: Position;
139 | pageInfoPosition?: Position;
140 | checkboxTolerance?: CheckboxTolerance;
141 | };
142 |
143 | function defaultIsRowDisabled(_: any) {
144 | return false;
145 | }
146 |
147 | const SELECT_COLUMN_WIDTH = 42;
148 |
149 | const DEFAULT_PAGE_SIZES = [10];
150 |
151 | /**
152 | * Maps checkbox tolerance values to pixel values
153 | * @param tolerance - The tolerance level
154 | * @returns The number of pixels for the tolerance
155 | */
156 | const getCheckboxTolerancePixels = (tolerance: CheckboxTolerance): number => {
157 | switch (tolerance) {
158 | case "none":
159 | return 0;
160 | case "compact":
161 | return 8;
162 | case "comfortable":
163 | return 12;
164 | case "spacious":
165 | return 16;
166 | default:
167 | return 8; // fallback to compact
168 | }
169 | };
170 |
171 | /**
172 | * Helper function to check if a point is within the checkbox boundary
173 | * @param pointX - X coordinate of the point to check
174 | * @param pointY - Y coordinate of the point to check
175 | * @param checkboxRect - Bounding rectangle of the checkbox
176 | * @param tolerancePixels - Number of pixels to extend the boundary
177 | * @returns true if the point is within the checkbox or within tolerancePixels of its boundary
178 | */
179 | const isWithinCheckboxBoundary = (
180 | pointX: number,
181 | pointY: number,
182 | checkboxRect: DOMRect,
183 | tolerancePixels: number,
184 | ): boolean => {
185 | // Calculate distance from point to checkbox boundaries
186 | const distanceToLeft = Math.abs(pointX - checkboxRect.left);
187 | const distanceToRight = Math.abs(pointX - checkboxRect.right);
188 | const distanceToTop = Math.abs(pointY - checkboxRect.top);
189 | const distanceToBottom = Math.abs(pointY - checkboxRect.bottom);
190 |
191 | // Check if point is within the checkbox bounds or within boundary pixels of any edge
192 | const withinHorizontalBounds = pointX >= checkboxRect.left && pointX <= checkboxRect.right;
193 | const withinVerticalBounds = pointY >= checkboxRect.top && pointY <= checkboxRect.bottom;
194 | const withinCheckbox = withinHorizontalBounds && withinVerticalBounds;
195 |
196 | const nearHorizontalBoundary =
197 | withinVerticalBounds &&
198 | (distanceToLeft <= tolerancePixels || distanceToRight <= tolerancePixels);
199 | const nearVerticalBoundary =
200 | withinHorizontalBounds &&
201 | (distanceToTop <= tolerancePixels || distanceToBottom <= tolerancePixels);
202 |
203 | return withinCheckbox || nearHorizontalBoundary || nearVerticalBoundary;
204 | };
205 |
206 | //These are the important styles to make sticky column pinning work!
207 | //Apply styles like this using your CSS strategy of choice with this kind of logic to head cells, data cells, footer cells, etc.
208 | //View the index.css file for more needed styles such as border-collapse: separate
209 | const getCommonPinningStyles = (column: Column<RowWithOrder>): CSSProperties => {
210 | const isPinned = column.getIsPinned();
211 | // const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
212 | // const isFirstRightPinnedColumn = isPinned === "right" && column.getIsFirstColumn("right");
213 |
214 | return {
215 | // boxShadow: isLastLeftPinnedColumn
216 | // ? "-4px 0 4px -4px gray inset"
217 | // : isFirstRightPinnedColumn
218 | // ? "4px 0 4px -4px gray inset"
219 | // : undefined,
220 | left: isPinned === "left" ? `${column.getStart("left")}px` : undefined,
221 | right: isPinned === "right" ? `${column.getAfter("right")}px` : undefined,
222 | opacity: isPinned ? 0.95 : undefined,
223 | position: isPinned ? "sticky" : "relative",
224 | backgroundColor: isPinned ? "inherit" : undefined,
225 | zIndex: isPinned ? 1 : undefined,
226 | };
227 | };
228 |
229 | // eslint-disable-next-line react/display-name
230 | export const Table = forwardRef(
231 | (
232 | {
233 | data = defaultProps.data,
234 | columns = defaultProps.columns,
235 | isPaginated = defaultProps.isPaginated,
236 | loading = defaultProps.loading,
237 | headerHeight,
238 | rowsSelectable = defaultProps.rowsSelectable,
239 | enableMultiRowSelection = defaultProps.enableMultiRowSelection,
240 | initiallySelected = defaultProps.initiallySelected,
241 | syncWithAppState,
242 | pageSizeOptions = defaultProps.pageSizeOptions,
243 | pageSize = pageSizeOptions?.[0] || DEFAULT_PAGE_SIZES[0],
244 | currentPageIndex = 0,
245 | rowDisabledPredicate = defaultIsRowDisabled,
246 | sortBy,
247 | sortingDirection = defaultProps.sortingDirection,
248 | iconSortAsc,
249 | iconSortDesc,
250 | iconNoSort,
251 | sortingDidChange,
252 | willSort,
253 | style,
254 | className,
255 | noDataRenderer,
256 | autoFocus = defaultProps.autoFocus,
257 | hideHeader = defaultProps.hideHeader,
258 | hideNoDataView = defaultProps.hideNoDataView,
259 | alwaysShowSelectionHeader = defaultProps.alwaysShowSelectionHeader,
260 | registerComponentApi,
261 | onSelectionDidChange,
262 | noBottomBorder = defaultProps.noBottomBorder,
263 | paginationControlsLocation = defaultProps.paginationControlsLocation,
264 | cellVerticalAlign = defaultProps.cellVerticalAlign,
265 | buttonRowPosition = defaultProps.buttonRowPosition,
266 | pageSizeSelectorPosition = defaultProps.pageSizeSelectorPosition,
267 | pageInfoPosition = defaultProps.pageInfoPosition,
268 | showCurrentPage = defaultProps.showCurrentPage,
269 | showPageInfo = defaultProps.showPageInfo,
270 | showPageSizeSelector = defaultProps.showPageSizeSelector,
271 | checkboxTolerance = defaultProps.checkboxTolerance,
272 | ...rest
273 | // cols
274 | }: TableProps,
275 | forwardedRef,
276 | ) => {
277 | const { getThemeVar } = useTheme();
278 | const safeData = Array.isArray(data) ? data : EMPTY_ARRAY;
279 | const wrapperRef = useRef<HTMLDivElement>(null);
280 | const ref = forwardedRef ? composeRefs(wrapperRef, forwardedRef) : wrapperRef;
281 | const tableRef = useRef<HTMLTableElement>(null);
282 | const estimatedHeightRef = useRef<number | null>(null);
283 |
284 | const safeColumns: OurColumnMetadata[] = useMemo(() => {
285 | if (columns) {
286 | return columns;
287 | }
288 | if (!safeData.length) {
289 | return EMPTY_ARRAY;
290 | }
291 | return Object.keys(safeData[0]).map((key: string) => ({ header: key, accessorKey: key }));
292 | }, [columns, safeData]);
293 |
294 | useEffect(() => {
295 | if (autoFocus) {
296 | wrapperRef.current!.focus();
297 | }
298 | }, [autoFocus]);
299 |
300 | // --- Keep track of visible table rows
301 | const [visibleItems, setVisibleItems] = useState<any[]>(EMPTY_ARRAY);
302 |
303 | // --- Track which row should show forced hover for checkbox
304 | const [hoveredRowId, setHoveredRowId] = useState<string | null>(null);
305 |
306 | // --- Track if the header checkbox should show forced hover
307 | const [headerCheckboxHovered, setHeaderCheckboxHovered] = useState<boolean>(false);
308 |
309 | // --- Calculate tolerance pixels from the prop
310 | const tolerancePixels = getCheckboxTolerancePixels(checkboxTolerance);
311 |
312 | // --- Get the operations to manage selected rows in a table
313 | const {
314 | toggleRow,
315 | checkAllRows,
316 | focusedIndex,
317 | onKeyDown,
318 | selectedRowIdMap,
319 | idKey,
320 | selectionApi,
321 | } = useRowSelection({
322 | items: safeData,
323 | visibleItems,
324 | rowsSelectable,
325 | enableMultiRowSelection,
326 | rowDisabledPredicate,
327 | onSelectionDidChange,
328 | initiallySelected,
329 | syncWithAppState,
330 | });
331 |
332 | // --- Create data with order information whenever the items in the table change
333 | const dataWithOrder = useMemo(() => {
334 | return safeData.map((item, index) => {
335 | return {
336 | ...item,
337 | order: index + 1,
338 | };
339 | });
340 | }, [safeData]);
341 |
342 | // --- Local or external sorting of data
343 | const [_sortBy, _setSortBy] = useState(sortBy);
344 | const [_sortingDirection, _setSortingDirection] = useState(sortingDirection);
345 |
346 | useLayoutEffect(() => {
347 | _setSortBy(sortBy);
348 | }, [sortBy]);
349 |
350 | useLayoutEffect(() => {
351 | _setSortingDirection(sortingDirection);
352 | }, [sortingDirection]);
353 |
354 | const sortedData = useMemo(() => {
355 | if (!_sortBy) {
356 | return dataWithOrder;
357 | }
358 | return orderBy(dataWithOrder, _sortBy, _sortingDirection === "ascending" ? "asc" : "desc");
359 | }, [_sortBy, _sortingDirection, dataWithOrder]);
360 |
361 | const _updateSorting = useCallback(
362 | async (accessorKey: string) => {
363 | let newDirection: SortingDirection = "ascending";
364 | let newSortBy = accessorKey;
365 | // The current key is the same as the last -> the user clicked on the same header twice
366 | if (_sortBy === accessorKey) {
367 | // The last sorting direction was ascending -> make it descending
368 | if (_sortingDirection === "ascending") {
369 | newDirection = "descending";
370 | // The last sorting direction was descending -> remove the sorting from the current key
371 | } else {
372 | newSortBy = undefined;
373 | }
374 | }
375 |
376 | // --- Check if sorting is allowed
377 | const result = await willSort?.(newSortBy, newDirection);
378 | if (result === false) {
379 | return;
380 | }
381 |
382 | _setSortingDirection(newDirection);
383 | _setSortBy(newSortBy);
384 |
385 | // External callback function is always called.
386 | // Even if sorting is internal, we can notify other components through this callback
387 | sortingDidChange?.(newSortBy, newDirection);
388 | },
389 | [_sortBy, willSort, sortingDidChange, _sortingDirection],
390 | );
391 |
392 | // --- Prepare column renderers according to columns defined in the table
393 | const columnsWithCustomCell: ColumnDef<any>[] = useMemo(() => {
394 | return safeColumns.map((col, idx) => {
395 | // --- Obtain column width information
396 | const { width, starSizedWidth } = getColumnWidth(col.width, true, "width");
397 | const { width: minWidth } = getColumnWidth(col.minWidth, false, "minWidth");
398 | const { width: maxWidth } = getColumnWidth(col.maxWidth, false, "maxWidth");
399 |
400 | const customColumn = {
401 | ...col,
402 | header: col.header ?? col.accessorKey ?? " ",
403 | id: "col_" + idx,
404 | size: width,
405 | minSize: minWidth,
406 | maxSize: maxWidth,
407 | enableResizing: col.canResize,
408 | enableSorting: col.canSort && !!col.accessorKey,
409 | enablePinning: col.pinTo !== undefined,
410 | meta: {
411 | starSizedWidth,
412 | pinTo: col.pinTo,
413 | style: col.style,
414 | className: col.className,
415 | accessorKey: col.accessorKey,
416 | cellRenderer: col.cellRenderer,
417 | },
418 | };
419 | return customColumn;
420 |
421 | function getColumnWidth(
422 | colWidth: any,
423 | allowStarSize: boolean,
424 | propName: string,
425 | ): { width?: number; starSizedWidth?: string } {
426 | let starSizedWidth: string;
427 | let width: number;
428 | const resolvedWidth = isThemeVarName(colWidth) ? getThemeVar(colWidth) : colWidth;
429 | if (typeof resolvedWidth === "number") {
430 | width = resolvedWidth;
431 | } else if (typeof resolvedWidth === "string") {
432 | const oneStarSizedWidthMatch = resolvedWidth.match(/^\s*\*\s*$/);
433 | if (allowStarSize && oneStarSizedWidthMatch) {
434 | starSizedWidth = "1*";
435 | } else {
436 | const starSizedWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*\*\s*$/);
437 | if (allowStarSize && starSizedWidthMatch) {
438 | starSizedWidth = starSizedWidthMatch[1] + "*";
439 | } else {
440 | const pixelWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*(px)?\s*$/);
441 | if (pixelWidthMatch) {
442 | width = Number(pixelWidthMatch[1]);
443 | } else {
444 | throw new Error(`Invalid TableColumnDef '${propName}' value: ${resolvedWidth}`);
445 | }
446 | }
447 | }
448 | }
449 | if (width === undefined && starSizedWidth === undefined && allowStarSize) {
450 | starSizedWidth = "1*";
451 | }
452 | return { width, starSizedWidth };
453 | }
454 | });
455 | }, [getThemeVar, safeColumns]);
456 |
457 | // --- Prepare column renderers according to columns defined in the table supporting optional row selection
458 | const columnsWithSelectColumn: ColumnDef<any>[] = useMemo(() => {
459 | // --- Extend the columns with a selection checkbox (indeterminate)
460 | const selectColumn = {
461 | id: "select",
462 | size: SELECT_COLUMN_WIDTH,
463 | enableResizing: false,
464 | enablePinning: true,
465 | meta: {
466 | pinTo: "left",
467 | },
468 | header: ({ table }: HeaderContext<any, unknown>) =>
469 | enableMultiRowSelection ? (
470 | <Toggle
471 | {...{
472 | className: classnames(styles.checkBoxWrapper, {
473 | [styles.showInHeader]: alwaysShowSelectionHeader,
474 | [styles.forceHoverWrapper]: headerCheckboxHovered,
475 | }),
476 | value: table.getIsAllRowsSelected(),
477 | indeterminate: table.getIsSomeRowsSelected(),
478 | forceHover: headerCheckboxHovered,
479 | onDidChange: () => {
480 | const allSelected = table
481 | .getRowModel()
482 | .rows.every((row) => rowDisabledPredicate(row.original) || row.getIsSelected());
483 | checkAllRows(!allSelected);
484 | },
485 | }}
486 | />
487 | ) : null,
488 | cell: ({ row }: CellContext<any, unknown>) => {
489 | return (
490 | <Toggle
491 | {...{
492 | className: classnames(styles.checkBoxWrapper, {
493 | [styles.forceHoverWrapper]: hoveredRowId === row.id,
494 | }),
495 | value: row.getIsSelected(),
496 | indeterminate: row.getIsSomeSelected(),
497 | forceHover: hoveredRowId === row.id,
498 | onDidChange: () => {
499 | // In single selection mode, allow deselection by checking if already selected
500 | if (!enableMultiRowSelection && row.getIsSelected()) {
501 | checkAllRows(false); // Deselect all (which is just this one row)
502 | } else {
503 | toggleRow(row.original, { metaKey: true });
504 | }
505 | },
506 | }}
507 | />
508 | );
509 | },
510 | };
511 | return rowsSelectable ? [selectColumn, ...columnsWithCustomCell] : columnsWithCustomCell;
512 | }, [
513 | rowsSelectable,
514 | columnsWithCustomCell,
515 | enableMultiRowSelection,
516 | alwaysShowSelectionHeader,
517 | checkAllRows,
518 | toggleRow,
519 | rowDisabledPredicate,
520 | hoveredRowId,
521 | headerCheckboxHovered,
522 | ]);
523 |
524 | // --- Set up page information (using the first page size option)
525 | // const [pagination, setPagination] = useState<PaginationState>();
526 | const [pagination, setPagination] = useState<PaginationState>({
527 | pageSize: isPaginated ? pageSize : Number.MAX_VALUE,
528 | pageIndex: currentPageIndex,
529 | });
530 |
531 | const prevIsPaginated = usePrevious(isPaginated);
532 |
533 | useEffect(() => {
534 | if (!prevIsPaginated && isPaginated) {
535 | setPagination((prev) => {
536 | return {
537 | ...prev,
538 | pageSize: pageSize,
539 | pageIndex: 0,
540 | };
541 | });
542 | }
543 | if (prevIsPaginated && !isPaginated) {
544 | setPagination(() => {
545 | return {
546 | pageIndex: 0,
547 | pageSize: Number.MAX_VALUE,
548 | };
549 | });
550 | }
551 | }, [isPaginated, pageSizeOptions, prevIsPaginated, pageSize]);
552 |
553 | const [columnSizing, setColumnSizing] = useState<Record<string, number>>({});
554 |
555 | const columnPinning = useMemo(() => {
556 | const left: Array<string> = [];
557 | const right: Array<string> = [];
558 | columnsWithSelectColumn.forEach((col) => {
559 | if (col.meta?.pinTo === "right") {
560 | right.push(col.id!);
561 | }
562 | if (col.meta?.pinTo === "left") {
563 | left.push(col.id!);
564 | }
565 | });
566 | return {
567 | left,
568 | right,
569 | };
570 | }, [columnsWithSelectColumn]);
571 |
572 | // --- Use the @tanstack/core-table component that manages a table
573 | const table = useReactTable<RowWithOrder>({
574 | columns: columnsWithSelectColumn,
575 | data: sortedData,
576 | getCoreRowModel: getCoreRowModel(),
577 | getPaginationRowModel: isPaginated ? getPaginationRowModel() : undefined,
578 | enableRowSelection: rowsSelectable,
579 | enableMultiRowSelection,
580 | columnResizeMode: "onChange",
581 | getRowId: useCallback(
582 | (originalRow: any) => {
583 | return originalRow[idKey] + "";
584 | },
585 | [idKey],
586 | ),
587 | state: useMemo(
588 | () => ({
589 | pagination,
590 | rowSelection: selectedRowIdMap,
591 | columnSizing,
592 | columnPinning,
593 | }),
594 | [columnPinning, columnSizing, pagination, selectedRowIdMap],
595 | ),
596 | onColumnSizingChange: setColumnSizing,
597 | onPaginationChange: setPagination,
598 | });
599 |
600 | // --- Select the set of visible rows whenever the table rows change
601 | const rows = table.getRowModel().rows;
602 | useEffect(() => {
603 | setVisibleItems(rows.map((row) => row.original));
604 | }, [rows]);
605 |
606 | const scrollParent = useScrollParent(wrapperRef.current?.parentElement);
607 | const scrollRef = useRef(scrollParent);
608 | scrollRef.current = scrollParent;
609 |
610 | const hasHeight = useHasExplicitHeight(wrapperRef);
611 |
612 | const hasOutsideScroll = scrollRef.current && !hasHeight;
613 |
614 | const startMargin = useStartMargin(hasOutsideScroll, wrapperRef, scrollRef);
615 |
616 | const rowVirtualizer = useVirtualizer({
617 | count: rows.length,
618 | getScrollElement: useCallback(() => {
619 | return hasOutsideScroll && scrollRef?.current ? scrollRef?.current : wrapperRef.current;
620 | }, [scrollRef, hasOutsideScroll]),
621 | scrollMargin: startMargin,
622 | estimateSize: useCallback(() => {
623 | return estimatedHeightRef.current || 30;
624 | }, []),
625 | overscan: 5,
626 | });
627 |
628 | const paddingTop =
629 | rowVirtualizer.getVirtualItems().length > 0
630 | ? rowVirtualizer.getVirtualItems()?.[0]?.start - startMargin || 0
631 | : 0;
632 | const paddingBottom =
633 | rowVirtualizer.getVirtualItems().length > 0
634 | ? rowVirtualizer.getTotalSize() -
635 | (rowVirtualizer.getVirtualItems()?.[rowVirtualizer.getVirtualItems().length - 1]?.end -
636 | startMargin || 0)
637 | : 0;
638 |
639 | const hasData = safeData.length !== 0;
640 |
641 | const touchedSizesRef = useRef<Record<string, boolean>>({});
642 | const columnSizeTouched = useCallback((id: string) => {
643 | touchedSizesRef.current[id] = true;
644 | }, []);
645 |
646 | const recalculateStarSizes = useEvent(() => {
647 | if (!tableRef.current) {
648 | return;
649 | }
650 | let availableWidth = tableRef.current.clientWidth - 1;
651 | // -1 to prevent horizontal scroll in scaled browsers (when you zoom in)
652 | const widths: Record<string, number> = {};
653 | const columnsWithoutSize: Array<Column<RowWithOrder>> = [];
654 | const numberOfUnitsById: Record<string, number> = {};
655 |
656 | table.getAllColumns().forEach((column) => {
657 | if (column.columnDef.size !== undefined || touchedSizesRef.current[column.id]) {
658 | availableWidth -= columnSizing[column.id] || column.columnDef.size || 0;
659 | } else {
660 | columnsWithoutSize.push(column);
661 | let units: number;
662 | if (column.columnDef.meta?.starSizedWidth) {
663 | units = Number(column.columnDef.meta?.starSizedWidth.replace("*", "").trim()) || 1;
664 | } else {
665 | units = 1;
666 | }
667 | numberOfUnitsById[column.id] = units;
668 | }
669 | });
670 | const numberOfAllUnits = Object.values(numberOfUnitsById).reduce((acc, val) => acc + val, 0);
671 | columnsWithoutSize.forEach((column) => {
672 | widths[column.id] = Math.floor(
673 | availableWidth * (numberOfUnitsById[column.id] / numberOfAllUnits),
674 | );
675 | });
676 | flushSync(() => {
677 | setColumnSizing((prev) => {
678 | return {
679 | ...prev,
680 | ...widths,
681 | };
682 | });
683 | });
684 | });
685 |
686 | useResizeObserver(tableRef, recalculateStarSizes);
687 |
688 | useIsomorphicLayoutEffect(() => {
689 | queueMicrotask(() => {
690 | recalculateStarSizes();
691 | });
692 | }, [recalculateStarSizes, safeColumns]);
693 |
694 | useIsomorphicLayoutEffect(() => {
695 | registerComponentApi(selectionApi);
696 | }, [registerComponentApi, selectionApi]);
697 |
698 | const paginationControls = (
699 | <PaginationNative
700 | pageIndex={pagination.pageIndex}
701 | pageSize={pagination.pageSize}
702 | itemCount={safeData.length}
703 | pageSizeOptions={pageSizeOptions}
704 | onPageDidChange={(page) => table.setPageIndex(page)}
705 | onPageSizeDidChange={(size) => table.setPageSize(size)}
706 | showCurrentPage={showCurrentPage}
707 | showPageInfo={showPageInfo}
708 | showPageSizeSelector={showPageSizeSelector}
709 | buttonRowPosition={buttonRowPosition}
710 | pageInfoPosition={pageInfoPosition}
711 | pageSizeSelectorPosition={pageSizeSelectorPosition}
712 | />
713 | );
714 |
715 | return (
716 | <div
717 | {...rest}
718 | className={classnames(styles.wrapper, className, { [styles.noScroll]: hasOutsideScroll })}
719 | tabIndex={-1}
720 | onKeyDown={onKeyDown}
721 | ref={ref}
722 | style={style}
723 | >
724 | {isPaginated &&
725 | hasData &&
726 | rows.length > 0 &&
727 | pagination &&
728 | (paginationControlsLocation === "top" || paginationControlsLocation === "both") &&
729 | paginationControls}
730 |
731 | <table className={styles.table} ref={tableRef}>
732 | {!hideHeader && (
733 | <thead style={{ height: headerHeight }} className={styles.headerWrapper}>
734 | {table.getHeaderGroups().map((headerGroup, headerGroupIndex) => (
735 | <tr
736 | key={`${headerGroup.id}-${headerGroupIndex}`}
737 | className={classnames(styles.headerRow, {
738 | [styles.allSelected]: table.getIsAllRowsSelected(),
739 | })}
740 | onClick={(event) => {
741 | const target = event.target as HTMLElement;
742 | const headerCell = target.closest("th");
743 |
744 | // Only handle clicks for the select column header
745 | if (headerCell && rowsSelectable && enableMultiRowSelection) {
746 | const header = headerGroup.headers.find((h) => {
747 | const headerElement = headerCell;
748 | return (
749 | headerElement?.getAttribute("data-column-id") === h.id ||
750 | h.id === "select"
751 | );
752 | });
753 |
754 | if (header && header.id === "select") {
755 | const clickX = event.clientX;
756 | const clickY = event.clientY;
757 | const checkbox = headerCell.querySelector(
758 | 'input[type=\"checkbox\"]',
759 | ) as HTMLInputElement;
760 |
761 | if (checkbox) {
762 | const checkboxRect = checkbox.getBoundingClientRect();
763 |
764 | if (
765 | isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)
766 | ) {
767 | // Prevent the default click and manually trigger the checkbox
768 | event.preventDefault();
769 | event.stopPropagation();
770 |
771 | const allSelected = table
772 | .getRowModel()
773 | .rows.every(
774 | (row) => rowDisabledPredicate(row.original) || row.getIsSelected(),
775 | );
776 | checkAllRows(!allSelected);
777 | }
778 | }
779 | }
780 | }
781 | }}
782 | onMouseMove={(event) => {
783 | if (rowsSelectable && enableMultiRowSelection) {
784 | const target = event.target as HTMLElement;
785 | const headerCell = target.closest("th");
786 |
787 | if (headerCell) {
788 | const header = headerGroup.headers.find((h) => {
789 | const headerElement = headerCell;
790 | return (
791 | headerElement?.getAttribute("data-column-id") === h.id ||
792 | h.id === "select"
793 | );
794 | });
795 |
796 | if (header && header.id === "select") {
797 | const mouseX = event.clientX;
798 | const mouseY = event.clientY;
799 | const checkbox = headerCell.querySelector(
800 | 'input[type=\"checkbox\"]',
801 | ) as HTMLInputElement;
802 |
803 | if (checkbox) {
804 | const checkboxRect = checkbox.getBoundingClientRect();
805 | const shouldShowHover = isWithinCheckboxBoundary(
806 | mouseX,
807 | mouseY,
808 | checkboxRect,
809 | tolerancePixels,
810 | );
811 |
812 | if (shouldShowHover && !headerCheckboxHovered) {
813 | setHeaderCheckboxHovered(true);
814 | event.currentTarget.style.cursor = "pointer";
815 | } else if (!shouldShowHover && headerCheckboxHovered) {
816 | setHeaderCheckboxHovered(false);
817 | event.currentTarget.style.cursor = "";
818 | }
819 | }
820 | } else if (headerCheckboxHovered) {
821 | setHeaderCheckboxHovered(false);
822 | event.currentTarget.style.cursor = "";
823 | }
824 | }
825 | }
826 | }}
827 | onMouseLeave={(event) => {
828 | if (headerCheckboxHovered) {
829 | setHeaderCheckboxHovered(false);
830 | event.currentTarget.style.cursor = "";
831 | }
832 | }}
833 | >
834 | {headerGroup.headers.map((header, headerIndex) => {
835 | const { width, ...style } = header.column.columnDef.meta?.style || {};
836 | const size = header.getSize();
837 | const alignmentClass =
838 | cellVerticalAlign === "top"
839 | ? styles.alignTop
840 | : cellVerticalAlign === "bottom"
841 | ? styles.alignBottom
842 | : styles.alignCenter;
843 | return (
844 | <th
845 | key={`${header.id}-${headerIndex}`}
846 | data-column-id={header.id}
847 | className={classnames(styles.columnCell, alignmentClass)}
848 | colSpan={header.colSpan}
849 | style={{
850 | position: "relative",
851 | width: size,
852 | ...getCommonPinningStyles(header.column),
853 | }}
854 | >
855 | <ClickableHeader
856 | hasSorting={
857 | header.column.columnDef.enableSorting &&
858 | !!header.column.columnDef.meta?.accessorKey
859 | }
860 | updateSorting={() =>
861 | _updateSorting(header.column.columnDef.meta?.accessorKey)
862 | }
863 | >
864 | <div className={styles.headerContent} style={style}>
865 | {
866 | flexRender(
867 | header.column.columnDef.header,
868 | header.getContext(),
869 | ) as ReactNode
870 | }
871 | {header.column.columnDef.enableSorting && (
872 | <span style={{ display: "inline-flex", maxWidth: 16 }}>
873 | <ColumnOrderingIndicator
874 | iconSortAsc={iconSortAsc}
875 | iconSortDesc={iconSortDesc}
876 | iconNoSort={iconNoSort}
877 | direction={
878 | header.column.columnDef.meta?.accessorKey === _sortBy
879 | ? _sortingDirection
880 | : undefined
881 | }
882 | />
883 | </span>
884 | )}
885 | </div>
886 | </ClickableHeader>
887 | {header.column.getCanResize() && (
888 | <div
889 | {...{
890 | onDoubleClick: () => {
891 | touchedSizesRef.current[header.column.id] = false;
892 | if (header.column.columnDef.size !== undefined) {
893 | header.column.resetSize();
894 | } else {
895 | recalculateStarSizes();
896 | }
897 | },
898 | onMouseDown: (event) => {
899 | columnSizeTouched(header.column.id);
900 | header.getResizeHandler()(event);
901 | },
902 | onTouchStart: (event) => {
903 | columnSizeTouched(header.column.id);
904 | header.getResizeHandler()(event);
905 | },
906 | className: classnames(styles.resizer, {
907 | [styles.isResizing]: header.column.getIsResizing(),
908 | }),
909 | }}
910 | />
911 | )}
912 | </th>
913 | );
914 | })}
915 | </tr>
916 | ))}
917 | </thead>
918 | )}
919 | {hasData && (
920 | <tbody className={styles.tableBody}>
921 | {paddingTop > 0 && (
922 | <tr>
923 | <td style={{ height: `${paddingTop}px` }} />
924 | </tr>
925 | )}
926 | {rowVirtualizer.getVirtualItems().map((virtualRow) => {
927 | const rowIndex = virtualRow.index;
928 | const row = rows[rowIndex];
929 | return (
930 | <tr
931 | data-index={rowIndex}
932 | key={`${row.id}-${rowIndex}`}
933 | className={classnames(styles.row, {
934 | [styles.selected]: row.getIsSelected(),
935 | [styles.focused]: focusedIndex === rowIndex,
936 | [styles.disabled]: rowDisabledPredicate(row.original),
937 | [styles.noBottomBorder]: noBottomBorder,
938 | })}
939 | ref={(el) => {
940 | if (el && estimatedHeightRef.current === null) {
941 | estimatedHeightRef.current = Math.round(el.getBoundingClientRect().height);
942 | }
943 | rowVirtualizer.measureElement(el);
944 | }}
945 | onClick={(event) => {
946 | if (event?.defaultPrevented) {
947 | return;
948 | }
949 | const target = event.target as HTMLElement;
950 | if (target.tagName.toLowerCase() === "input") {
951 | return;
952 | }
953 |
954 | // Check if click is within checkbox boundary
955 | const currentRow = event.currentTarget as HTMLElement;
956 | const checkbox = currentRow.querySelector(
957 | 'input[type="checkbox"]',
958 | ) as HTMLInputElement;
959 |
960 | if (checkbox) {
961 | const checkboxRect = checkbox.getBoundingClientRect();
962 | const clickX = event.clientX;
963 | const clickY = event.clientY;
964 |
965 | if (
966 | isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)
967 | ) {
968 | // Toggle the checkbox when clicking within the boundary
969 | // In single selection mode, allow deselection by checking if already selected
970 | if (!enableMultiRowSelection && row.getIsSelected()) {
971 | checkAllRows(false); // Deselect all (which is just this one row)
972 | } else {
973 | toggleRow(row.original, { metaKey: true });
974 | }
975 | return;
976 | }
977 | }
978 |
979 | toggleRow(row.original, event);
980 | }}
981 | onMouseMove={(event) => {
982 | // Change cursor and hover state when within checkbox boundary
983 | const currentRow = event.currentTarget as HTMLElement;
984 | const checkbox = currentRow.querySelector(
985 | 'input[type="checkbox"]',
986 | ) as HTMLInputElement;
987 |
988 | if (checkbox) {
989 | const checkboxRect = checkbox.getBoundingClientRect();
990 | const mouseX = event.clientX;
991 | const mouseY = event.clientY;
992 |
993 | const shouldShowHover = isWithinCheckboxBoundary(
994 | mouseX,
995 | mouseY,
996 | checkboxRect,
997 | tolerancePixels,
998 | );
999 |
1000 | // Update hover state and cursor based on proximity to checkbox
1001 | if (shouldShowHover) {
1002 | setHoveredRowId(row.id);
1003 | currentRow.style.cursor = "pointer";
1004 | } else {
1005 | setHoveredRowId(null);
1006 | currentRow.style.cursor = "";
1007 | }
1008 | }
1009 | }}
1010 | onMouseLeave={(event) => {
1011 | // Reset cursor and hover state when leaving the row
1012 | const currentRow = event.currentTarget as HTMLElement;
1013 | currentRow.style.cursor = "";
1014 | setHoveredRowId(null);
1015 | }}
1016 | >
1017 | {row.getVisibleCells().map((cell, i) => {
1018 | const cellRenderer = cell.column.columnDef?.meta?.cellRenderer;
1019 | const size = cell.column.getSize();
1020 | const alignmentClass =
1021 | cellVerticalAlign === "top"
1022 | ? styles.alignTop
1023 | : cellVerticalAlign === "bottom"
1024 | ? styles.alignBottom
1025 | : styles.alignCenter;
1026 | return (
1027 | <td
1028 | className={classnames(styles.cell, alignmentClass)}
1029 | key={`${cell.id}-${i}`}
1030 | style={{
1031 | // width: size,
1032 | width: size,
1033 | ...getCommonPinningStyles(cell.column),
1034 | }}
1035 | >
1036 | {/*we have to wrap it in a div, because tables...
1037 |
1038 | The "Last Cell" Problem: Why This Happens
1039 | Even with box-sizing: border-box, the browser gives special treatment to the last column of a table.
1040 |
1041 | With table-layout: fixed, the browser calculates the widths for all columns.
1042 | It strictly enforces the widths for columns 1, 2, 3, etc.
1043 | The last column is often used as a "catch-all" to ensure the total width of all columns exactly matches the width of the <table> element itself (e.g., 100%).
1044 | When you add padding-right to this very last cell, you create a conflict. The browser tries to simultaneously:
1045 | Keep the cell's right edge perfectly aligned with the table's right edge.
1046 | Render the padding inside that right edge.
1047 |
1048 | Solution: The Inner Wrapper <div>
1049 | The most robust and common solution is to decouple the cell's width from its content's padding. You do this by adding a wrapper <div> inside the cell.
1050 | The <td> will be responsible only for setting the rigid width.
1051 | The inner <div> will be responsible only for handling the padding and content.
1052 | */}
1053 | <div className={styles.cellContent}>
1054 | {cellRenderer
1055 | ? cellRenderer(cell.row.original, rowIndex, i, cell?.getValue())
1056 | : (flexRender(
1057 | cell.column.columnDef.cell,
1058 | cell.getContext(),
1059 | ) as ReactNode)}
1060 | </div>
1061 | </td>
1062 | );
1063 | })}
1064 | </tr>
1065 | );
1066 | })}
1067 | {paddingBottom > 0 && (
1068 | <tr>
1069 | <td style={{ height: `${paddingBottom}px` }} />
1070 | </tr>
1071 | )}
1072 | </tbody>
1073 | )}
1074 | </table>
1075 | {loading && !hasData && (
1076 | <div className={styles.loadingWrapper}>
1077 | <Spinner />
1078 | </div>
1079 | )}
1080 | {!hideNoDataView &&
1081 | !loading &&
1082 | !hasData &&
1083 | (noDataRenderer ? (
1084 | noDataRenderer()
1085 | ) : (
1086 | <div className={styles.noRows}>No data available</div>
1087 | ))}
1088 |
1089 | {isPaginated &&
1090 | hasData &&
1091 | rows.length > 0 &&
1092 | pagination &&
1093 | (paginationControlsLocation === "bottom" || paginationControlsLocation === "both") &&
1094 | paginationControls}
1095 | </div>
1096 | );
1097 | },
1098 | );
1099 |
1100 | type ClickableHeaderProps = {
1101 | hasSorting?: boolean;
1102 | updateSorting?: () => void;
1103 | children?: ReactNode;
1104 | };
1105 |
1106 | function ClickableHeader({ hasSorting, updateSorting, children }: ClickableHeaderProps) {
1107 | return hasSorting ? (
1108 | <button type="button" className={styles.clickableHeader} onClick={updateSorting}>
1109 | {children}
1110 | </button>
1111 | ) : (
1112 | <>{children}</>
1113 | );
1114 | }
1115 |
1116 | type ColumnOrderingIndicatorProps = {
1117 | direction?: SortingDirection;
1118 | iconSortAsc?: string;
1119 | iconSortDesc?: string;
1120 | iconNoSort?: string;
1121 | };
1122 |
1123 | function ColumnOrderingIndicator({
1124 | direction,
1125 | iconSortAsc = "sortasc:Table",
1126 | iconSortDesc = "sortdesc:Table",
1127 | iconNoSort = "nosort:Table",
1128 | }: ColumnOrderingIndicatorProps) {
1129 | if (direction === "ascending") {
1130 | return <Icon name={iconSortAsc} fallback="sortasc" size="12" />; //sortasc
1131 | } else if (direction === "descending") {
1132 | return <Icon name={iconSortDesc} fallback="sortdesc" size="12" />; //sortdesc
1133 | }
1134 | return iconNoSort !== "-" ? (
1135 | <Icon name={iconNoSort} fallback="nosort" size="12" />
1136 | ) : (
1137 | <Icon name={iconNoSort} size="12" />
1138 | ); //nosort
1139 | }
1140 |
1141 | export const defaultProps = {
1142 | idKey: "id",
1143 | data: EMPTY_ARRAY,
1144 | columns: EMPTY_ARRAY,
1145 | isPaginated: false,
1146 | loading: false,
1147 | rowsSelectable: false,
1148 | enableMultiRowSelection: true,
1149 | initiallySelected: EMPTY_ARRAY,
1150 | pageSizeOptions: [5, 10, 15],
1151 | sortingDirection: "ascending" as SortingDirection,
1152 | autoFocus: false,
1153 | hideHeader: false,
1154 | hideNoDataView: false,
1155 | alwaysShowSelectionHeader: false,
1156 | noBottomBorder: false,
1157 | paginationControlsLocation: "bottom" as TablePaginationControlsLocation,
1158 | cellVerticalAlign: "center" as CellVerticalAlign,
1159 | showPageInfo: true,
1160 | showPageSizeSelector: true,
1161 | showCurrentPage: true,
1162 | buttonRowPosition: "center" as Position,
1163 | pageSizeSelectorPosition: "start" as Position,
1164 | pageInfoPosition: "end" as Position,
1165 | checkboxTolerance: "compact" as CheckboxTolerance,
1166 | };
1167 |
```