This is page 157 of 182. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── config.json │ ├── cool-queens-look.md │ ├── hot-berries-argue.md │ ├── twelve-guests-care.md │ └── wise-towns-dance.md ├── .eslintrc.cjs ├── .github │ ├── build-checklist.png │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows │ ├── deploy-blog.yml │ ├── deploy-docs-optimized.yml │ ├── deploy-docs.yml │ ├── prepare-versions.yml │ ├── release-packages.yml │ ├── run-all-tests.yml │ └── run-smoke-tests.yml ├── .gitignore ├── .prettierrc.js ├── .vscode │ ├── launch.json │ └── settings.json ├── blog │ ├── .gitignore │ ├── .gitkeep │ ├── CHANGELOG.md │ ├── extensions.ts │ ├── index.html │ ├── index.ts │ ├── package.json │ ├── public │ │ ├── blog │ │ │ ├── images │ │ │ │ ├── blog-page-component.png │ │ │ │ ├── blog-scrabble.png │ │ │ │ ├── integrated-blog-search.png │ │ │ │ └── lorem-ipsum.png │ │ │ ├── lorem-ipsum.md │ │ │ ├── newest-post.md │ │ │ ├── older-post.md │ │ │ └── welcome-to-the-xmlui-blog.md │ │ ├── mockServiceWorker.js │ │ ├── netlify.toml │ │ ├── resources │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ └── for-download │ │ │ │ └── xmlui │ │ │ │ └── xmlui-standalone.umd.js │ │ │ ├── github.svg │ │ │ ├── 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 │ │ │ ├── Debug.xmlui │ │ │ └── PageNotFound.xmlui │ │ ├── config.ts │ │ ├── Main.xmlui │ │ ├── Main.xmlui.xs │ │ └── themes │ │ ├── docs-theme.ts │ │ ├── earthtone.ts │ │ ├── xmlui-gray-on-default.ts │ │ ├── xmlui-green-on-default.ts │ │ └── xmlui-orange-on-default.ts │ └── tsconfig.json ├── CONTRIBUTING.md ├── docs │ ├── .gitignore │ ├── CHANGELOG.md │ ├── ComponentRefLinks.txt │ ├── content │ │ ├── _meta.json │ │ ├── components │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── APICall.md │ │ │ ├── App.md │ │ │ ├── AppHeader.md │ │ │ ├── AppState.md │ │ │ ├── AutoComplete.md │ │ │ ├── Avatar.md │ │ │ ├── Backdrop.md │ │ │ ├── Badge.md │ │ │ ├── BarChart.md │ │ │ ├── Bookmark.md │ │ │ ├── Breakout.md │ │ │ ├── Button.md │ │ │ ├── Card.md │ │ │ ├── Carousel.md │ │ │ ├── ChangeListener.md │ │ │ ├── Checkbox.md │ │ │ ├── CHStack.md │ │ │ ├── ColorPicker.md │ │ │ ├── Column.md │ │ │ ├── ContentSeparator.md │ │ │ ├── CVStack.md │ │ │ ├── DataSource.md │ │ │ ├── DateInput.md │ │ │ ├── DatePicker.md │ │ │ ├── DonutChart.md │ │ │ ├── DropdownMenu.md │ │ │ ├── EmojiSelector.md │ │ │ ├── ExpandableItem.md │ │ │ ├── FileInput.md │ │ │ ├── FileUploadDropZone.md │ │ │ ├── FlowLayout.md │ │ │ ├── Footer.md │ │ │ ├── Form.md │ │ │ ├── FormItem.md │ │ │ ├── FormSection.md │ │ │ ├── Fragment.md │ │ │ ├── H1.md │ │ │ ├── H2.md │ │ │ ├── H3.md │ │ │ ├── H4.md │ │ │ ├── H5.md │ │ │ ├── H6.md │ │ │ ├── Heading.md │ │ │ ├── HSplitter.md │ │ │ ├── HStack.md │ │ │ ├── Icon.md │ │ │ ├── IFrame.md │ │ │ ├── Image.md │ │ │ ├── Items.md │ │ │ ├── LabelList.md │ │ │ ├── Legend.md │ │ │ ├── LineChart.md │ │ │ ├── Link.md │ │ │ ├── List.md │ │ │ ├── Logo.md │ │ │ ├── Markdown.md │ │ │ ├── MenuItem.md │ │ │ ├── MenuSeparator.md │ │ │ ├── ModalDialog.md │ │ │ ├── NavGroup.md │ │ │ ├── NavLink.md │ │ │ ├── NavPanel.md │ │ │ ├── NoResult.md │ │ │ ├── NumberBox.md │ │ │ ├── Option.md │ │ │ ├── Page.md │ │ │ ├── PageMetaTitle.md │ │ │ ├── Pages.md │ │ │ ├── Pagination.md │ │ │ ├── PasswordInput.md │ │ │ ├── PieChart.md │ │ │ ├── ProgressBar.md │ │ │ ├── Queue.md │ │ │ ├── RadioGroup.md │ │ │ ├── RealTimeAdapter.md │ │ │ ├── Redirect.md │ │ │ ├── Select.md │ │ │ ├── Slider.md │ │ │ ├── Slot.md │ │ │ ├── SpaceFiller.md │ │ │ ├── Spinner.md │ │ │ ├── Splitter.md │ │ │ ├── Stack.md │ │ │ ├── StickyBox.md │ │ │ ├── SubMenuItem.md │ │ │ ├── Switch.md │ │ │ ├── TabItem.md │ │ │ ├── Table.md │ │ │ ├── TableOfContents.md │ │ │ ├── Tabs.md │ │ │ ├── Text.md │ │ │ ├── TextArea.md │ │ │ ├── TextBox.md │ │ │ ├── Theme.md │ │ │ ├── TimeInput.md │ │ │ ├── Timer.md │ │ │ ├── ToneChangerButton.md │ │ │ ├── ToneSwitch.md │ │ │ ├── Tooltip.md │ │ │ ├── Tree.md │ │ │ ├── VSplitter.md │ │ │ ├── VStack.md │ │ │ ├── xmlui-animations │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── Animation.md │ │ │ │ ├── FadeAnimation.md │ │ │ │ ├── FadeInAnimation.md │ │ │ │ ├── FadeOutAnimation.md │ │ │ │ ├── ScaleAnimation.md │ │ │ │ └── SlideInAnimation.md │ │ │ ├── xmlui-pdf │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Pdf.md │ │ │ ├── xmlui-spreadsheet │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Spreadsheet.md │ │ │ └── xmlui-website-blocks │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── Carousel.md │ │ │ ├── HelloMd.md │ │ │ ├── HeroSection.md │ │ │ └── ScrollToTop.md │ │ └── extensions │ │ ├── _meta.json │ │ ├── xmlui-animations │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ ├── Animation.md │ │ │ ├── FadeAnimation.md │ │ │ ├── FadeInAnimation.md │ │ │ ├── FadeOutAnimation.md │ │ │ ├── ScaleAnimation.md │ │ │ └── SlideInAnimation.md │ │ └── xmlui-website-blocks │ │ ├── _meta.json │ │ ├── _overview.md │ │ ├── Carousel.md │ │ ├── HelloMd.md │ │ ├── HeroSection.md │ │ └── ScrollToTop.md │ ├── extensions.ts │ ├── index.html │ ├── index.ts │ ├── package.json │ ├── public │ │ ├── feed.rss │ │ ├── mockServiceWorker.js │ │ ├── pages │ │ │ ├── _meta.json │ │ │ ├── app-structure.md │ │ │ ├── build-editor-component.md │ │ │ ├── build-hello-world-component.md │ │ │ ├── components-intro.md │ │ │ ├── context-variables.md │ │ │ ├── forms.md │ │ │ ├── globals.md │ │ │ ├── glossary.md │ │ │ ├── helper-tags.md │ │ │ ├── hosted-deployment.md │ │ │ ├── howto │ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md │ │ │ │ ├── chain-a-refetch.md │ │ │ │ ├── debug-a-component.md │ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md │ │ │ │ ├── delegate-a-method.md │ │ │ │ ├── do-custom-form-validation.md │ │ │ │ ├── expose-a-method-from-a-component.md │ │ │ │ ├── filter-and-transform-data-from-an-api.md │ │ │ │ ├── group-items-in-list-by-a-property.md │ │ │ │ ├── handle-background-operations.md │ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md │ │ │ │ ├── make-a-set-of-equal-width-cards.md │ │ │ │ ├── make-a-table-responsive.md │ │ │ │ ├── make-navpanel-width-responsive.md │ │ │ │ ├── modify-a-value-reported-in-a-column.md │ │ │ │ ├── paginate-a-list.md │ │ │ │ ├── pass-data-to-a-modal-dialog.md │ │ │ │ ├── react-to-button-click-not-keystrokes.md │ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md │ │ │ │ ├── share-a-modaldialog-across-components.md │ │ │ │ ├── sync-selections-between-table-and-list-views.md │ │ │ │ ├── update-ui-optimistically.md │ │ │ │ ├── use-built-in-form-validation.md │ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md │ │ │ ├── howto.md │ │ │ ├── intro.md │ │ │ ├── layout.md │ │ │ ├── markup.md │ │ │ ├── mcp.md │ │ │ ├── modal-dialogs.md │ │ │ ├── news-and-reviews.md │ │ │ ├── reactive-intro.md │ │ │ ├── refactoring.md │ │ │ ├── routing-and-links.md │ │ │ ├── samples │ │ │ │ ├── color-palette.xmlui │ │ │ │ ├── color-values.xmlui │ │ │ │ ├── shadow-sizes.xmlui │ │ │ │ ├── spacing-sizes.xmlui │ │ │ │ ├── swatch.xmlui │ │ │ │ ├── theme-gallery-brief.xmlui │ │ │ │ └── theme-gallery.xmlui │ │ │ ├── scoping.md │ │ │ ├── scripting.md │ │ │ ├── styles-and-themes │ │ │ │ ├── common-units.md │ │ │ │ ├── layout-props.md │ │ │ │ ├── theme-variable-defaults.md │ │ │ │ ├── theme-variables.md │ │ │ │ └── themes.md │ │ │ ├── template-properties.md │ │ │ ├── test.md │ │ │ ├── tutorial-01.md │ │ │ ├── tutorial-02.md │ │ │ ├── tutorial-03.md │ │ │ ├── tutorial-04.md │ │ │ ├── tutorial-05.md │ │ │ ├── tutorial-06.md │ │ │ ├── tutorial-07.md │ │ │ ├── tutorial-08.md │ │ │ ├── tutorial-09.md │ │ │ ├── tutorial-10.md │ │ │ ├── tutorial-11.md │ │ │ ├── tutorial-12.md │ │ │ ├── universal-properties.md │ │ │ ├── user-defined-components.md │ │ │ ├── vscode.md │ │ │ ├── working-with-markdown.md │ │ │ ├── working-with-text.md │ │ │ ├── xmlui-animations │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── Animation.md │ │ │ │ ├── FadeAnimation.md │ │ │ │ ├── FadeInAnimation.md │ │ │ │ ├── FadeOutAnimation.md │ │ │ │ ├── ScaleAnimation.md │ │ │ │ └── SlideInAnimation.md │ │ │ ├── xmlui-charts │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ ├── BarChart.md │ │ │ │ ├── DonutChart.md │ │ │ │ ├── LabelList.md │ │ │ │ ├── Legend.md │ │ │ │ ├── LineChart.md │ │ │ │ └── PieChart.md │ │ │ ├── xmlui-pdf │ │ │ │ ├── _meta.json │ │ │ │ ├── _overview.md │ │ │ │ └── Pdf.md │ │ │ └── xmlui-spreadsheet │ │ │ ├── _meta.json │ │ │ ├── _overview.md │ │ │ └── Spreadsheet.md │ │ ├── resources │ │ │ ├── devdocs │ │ │ │ ├── debug-proxy-object-2.png │ │ │ │ ├── debug-proxy-object.png │ │ │ │ ├── table_editor_01.png │ │ │ │ ├── table_editor_02.png │ │ │ │ ├── table_editor_03.png │ │ │ │ ├── table_editor_04.png │ │ │ │ ├── table_editor_05.png │ │ │ │ ├── table_editor_06.png │ │ │ │ ├── table_editor_07.png │ │ │ │ ├── table_editor_08.png │ │ │ │ ├── table_editor_09.png │ │ │ │ ├── table_editor_10.png │ │ │ │ ├── table_editor_11.png │ │ │ │ ├── table-editor-01.png │ │ │ │ ├── table-editor-02.png │ │ │ │ ├── table-editor-03.png │ │ │ │ ├── table-editor-04.png │ │ │ │ ├── table-editor-06.png │ │ │ │ ├── table-editor-07.png │ │ │ │ ├── table-editor-08.png │ │ │ │ ├── table-editor-09.png │ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ ├── clients.json │ │ │ │ ├── daily-revenue.json │ │ │ │ ├── dashboard-stats.json │ │ │ │ ├── demo.xmlui │ │ │ │ ├── demo.xmlui.xs │ │ │ │ ├── downloads │ │ │ │ │ └── downloads.json │ │ │ │ ├── for-download │ │ │ │ │ ├── index-with-api.html │ │ │ │ │ ├── index.html │ │ │ │ │ ├── mockApi.js │ │ │ │ │ ├── start-darwin.sh │ │ │ │ │ ├── start-linux.sh │ │ │ │ │ ├── start.bat │ │ │ │ │ └── xmlui │ │ │ │ │ └── xmlui-standalone.umd.js │ │ │ │ ├── getting-started │ │ │ │ │ ├── cl-tutorial-final.zip │ │ │ │ │ ├── cl-tutorial.zip │ │ │ │ │ ├── cl-tutorial2.zip │ │ │ │ │ ├── cl-tutorial3.zip │ │ │ │ │ ├── cl-tutorial4.zip │ │ │ │ │ ├── cl-tutorial5.zip │ │ │ │ │ ├── cl-tutorial6.zip │ │ │ │ │ ├── getting-started.zip │ │ │ │ │ ├── hello-xmlui.zip │ │ │ │ │ ├── xmlui-empty.zip │ │ │ │ │ └── xmlui-starter.zip │ │ │ │ ├── howto │ │ │ │ │ └── component-icons │ │ │ │ │ └── up-arrow.svg │ │ │ │ ├── invoices.json │ │ │ │ ├── monthly-status.json │ │ │ │ ├── news-and-reviews.json │ │ │ │ ├── products.json │ │ │ │ ├── releases.json │ │ │ │ ├── tutorials │ │ │ │ │ ├── datasource │ │ │ │ │ │ └── api.ts │ │ │ │ │ └── p2do │ │ │ │ │ ├── api.ts │ │ │ │ │ └── todo-logo.svg │ │ │ │ └── xmlui.json │ │ │ ├── github.svg │ │ │ ├── images │ │ │ │ ├── apiaction-tutorial │ │ │ │ │ ├── add-success.png │ │ │ │ │ ├── apiaction-param.png │ │ │ │ │ ├── change-completed.png │ │ │ │ │ ├── change-in-progress.png │ │ │ │ │ ├── confirm-delete.png │ │ │ │ │ ├── data-error.png │ │ │ │ │ ├── data-progress.png │ │ │ │ │ ├── data-success.png │ │ │ │ │ ├── display-1.png │ │ │ │ │ ├── item-deleted.png │ │ │ │ │ ├── item-updated.png │ │ │ │ │ ├── missing-api-key.png │ │ │ │ │ ├── new-item-added.png │ │ │ │ │ └── test-message.png │ │ │ │ ├── chat-api │ │ │ │ │ └── domain-model.svg │ │ │ │ ├── components │ │ │ │ │ ├── image │ │ │ │ │ │ └── breakfast.jpg │ │ │ │ │ ├── markdown │ │ │ │ │ │ └── colors.png │ │ │ │ │ └── modal │ │ │ │ │ ├── deep_link_dialog_1.jpg │ │ │ │ │ └── deep_link_dialog_2.jpg │ │ │ │ ├── create-apps │ │ │ │ │ ├── collapsed-vertical.png │ │ │ │ │ ├── using-forms-warning-dialog.png │ │ │ │ │ └── using-forms.png │ │ │ │ ├── datasource-tutorial │ │ │ │ │ ├── data-with-header.png │ │ │ │ │ ├── filtered-data.png │ │ │ │ │ ├── filtered-items.png │ │ │ │ │ ├── initial-page-items.png │ │ │ │ │ ├── list-items.png │ │ │ │ │ ├── next-page-items.png │ │ │ │ │ ├── no-data.png │ │ │ │ │ ├── pagination-1.jpg │ │ │ │ │ ├── pagination-1.png │ │ │ │ │ ├── polling-1.png │ │ │ │ │ ├── refetch-data.png │ │ │ │ │ ├── slow-loading.png │ │ │ │ │ ├── test-message.png │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── unconventional-data.png │ │ │ │ │ └── unfiltered-items.png │ │ │ │ ├── flower.jpg │ │ │ │ ├── get-started │ │ │ │ │ ├── add-new-contact.png │ │ │ │ │ ├── app-modified.png │ │ │ │ │ ├── app-start.png │ │ │ │ │ ├── app-with-boxes.png │ │ │ │ │ ├── app-with-toast.png │ │ │ │ │ ├── boilerplate-structure.png │ │ │ │ │ ├── cl-initial.png │ │ │ │ │ ├── cl-start.png │ │ │ │ │ ├── contact-counts.png │ │ │ │ │ ├── contact-dialog-title.png │ │ │ │ │ ├── contact-dialog.png │ │ │ │ │ ├── contact-menus.png │ │ │ │ │ ├── contact-predicates.png │ │ │ │ │ ├── context-menu.png │ │ │ │ │ ├── dashboard-numbers.png │ │ │ │ │ ├── default-contact-list.png │ │ │ │ │ ├── delete-contact.png │ │ │ │ │ ├── delete-task.png │ │ │ │ │ ├── detailed-template.png │ │ │ │ │ ├── edit-contact-details.png │ │ │ │ │ ├── edited-contact-saved.png │ │ │ │ │ ├── empty-sections.png │ │ │ │ │ ├── filter-completed.png │ │ │ │ │ ├── fullwidth-desktop.png │ │ │ │ │ ├── fullwidth-mobile.png │ │ │ │ │ ├── initial-table.png │ │ │ │ │ ├── items-and-badges.png │ │ │ │ │ ├── loading-message.png │ │ │ │ │ ├── new-contact-button.png │ │ │ │ │ ├── new-contact-saved.png │ │ │ │ │ ├── no-empty-sections.png │ │ │ │ │ ├── personal-todo-initial.png │ │ │ │ │ ├── piechart.png │ │ │ │ │ ├── review-today.png │ │ │ │ │ ├── rudimentary-dashboard.png │ │ │ │ │ ├── section-collapsed.png │ │ │ │ │ ├── sectioned-items.png │ │ │ │ │ ├── sections-ordered.png │ │ │ │ │ ├── spacex-list-with-links.png │ │ │ │ │ ├── spacex-list.png │ │ │ │ │ ├── start-personal-todo-1.png │ │ │ │ │ ├── submit-new-contact.png │ │ │ │ │ ├── submit-new-task.png │ │ │ │ │ ├── syntax-highlighting.png │ │ │ │ │ ├── table-with-badge.png │ │ │ │ │ ├── template-with-card.png │ │ │ │ │ ├── test-emulated-api.png │ │ │ │ │ ├── Thumbs.db │ │ │ │ │ ├── todo-logo.png │ │ │ │ │ └── xmlui-tools.png │ │ │ │ ├── HelloApp.png │ │ │ │ ├── HelloApp2.png │ │ │ │ ├── logos │ │ │ │ │ ├── xmlui1.svg │ │ │ │ │ ├── xmlui2.svg │ │ │ │ │ ├── xmlui3.svg │ │ │ │ │ ├── xmlui4.svg │ │ │ │ │ ├── xmlui5.svg │ │ │ │ │ ├── xmlui6.svg │ │ │ │ │ └── xmlui7.svg │ │ │ │ ├── pdf │ │ │ │ │ └── dummy-pdf.jpg │ │ │ │ ├── rendering-engine │ │ │ │ │ ├── AppEngine-flow.svg │ │ │ │ │ ├── Component.svg │ │ │ │ │ ├── CompoundComponent.svg │ │ │ │ │ ├── RootComponent.svg │ │ │ │ │ └── tree-with-containers.svg │ │ │ │ ├── reviewers-guide │ │ │ │ │ ├── AppEngine-flow.svg │ │ │ │ │ └── incbutton-in-action.png │ │ │ │ ├── tools │ │ │ │ │ └── boilerplate-structure.png │ │ │ │ ├── try.svg │ │ │ │ ├── tutorial │ │ │ │ │ ├── app-chat-history.png │ │ │ │ │ ├── app-content-placeholder.png │ │ │ │ │ ├── app-header-and-content.png │ │ │ │ │ ├── app-links-channel-selected.png │ │ │ │ │ ├── app-links-click.png │ │ │ │ │ ├── app-navigation.png │ │ │ │ │ ├── finished-ex01.png │ │ │ │ │ ├── finished-ex02.png │ │ │ │ │ ├── hello.png │ │ │ │ │ ├── splash-screen-advanced.png │ │ │ │ │ ├── splash-screen-after-click.png │ │ │ │ │ ├── splash-screen-centered.png │ │ │ │ │ ├── splash-screen-events.png │ │ │ │ │ ├── splash-screen-expression.png │ │ │ │ │ ├── splash-screen-reuse-after.png │ │ │ │ │ ├── splash-screen-reuse-before.png │ │ │ │ │ └── splash-screen.png │ │ │ │ └── tutorial-01.png │ │ │ ├── llms.txt │ │ │ ├── logo-dark.svg │ │ │ ├── logo.svg │ │ │ ├── pg-popout.svg │ │ │ └── xmlui-logo.svg │ │ ├── serve.json │ │ └── web.config │ ├── scripts │ │ ├── download-latest-xmlui.js │ │ ├── generate-rss.js │ │ ├── get-releases.js │ │ └── utils.js │ ├── src │ │ ├── components │ │ │ ├── BlogOverview.xmlui │ │ │ ├── BlogPage.xmlui │ │ │ ├── Boxes.xmlui │ │ │ ├── Breadcrumb.xmlui │ │ │ ├── ChangeLog.xmlui │ │ │ ├── ColorPalette.xmlui │ │ │ ├── DocumentLinks.xmlui │ │ │ ├── DocumentPage.xmlui │ │ │ ├── DocumentPageNoTOC.xmlui │ │ │ ├── Icons.xmlui │ │ │ ├── IncButton.xmlui │ │ │ ├── IncButton2.xmlui │ │ │ ├── NameValue.xmlui │ │ │ ├── PageNotFound.xmlui │ │ │ ├── PaletteItem.xmlui │ │ │ ├── Palettes.xmlui │ │ │ ├── SectionHeader.xmlui │ │ │ ├── TBD.xmlui │ │ │ ├── Test.xmlui │ │ │ ├── ThemesIntro.xmlui │ │ │ ├── ThousandThemes.xmlui │ │ │ ├── TubeStops.xmlui │ │ │ ├── TubeStops.xmlui.xs │ │ │ └── TwoColumnCode.xmlui │ │ ├── config.ts │ │ ├── Main.xmlui │ │ └── themes │ │ ├── docs-theme.ts │ │ ├── earthtone.ts │ │ ├── xmlui-gray-on-default.ts │ │ ├── xmlui-green-on-default.ts │ │ └── xmlui-orange-on-default.ts │ └── tsconfig.json ├── LICENSE ├── package-lock.json ├── package.json ├── packages │ ├── xmlui-animations │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── Animation.tsx │ │ │ ├── AnimationNative.tsx │ │ │ ├── FadeAnimation.tsx │ │ │ ├── FadeInAnimation.tsx │ │ │ ├── FadeOutAnimation.tsx │ │ │ ├── index.tsx │ │ │ ├── ScaleAnimation.tsx │ │ │ └── SlideInAnimation.tsx │ │ └── tsconfig.json │ ├── xmlui-devtools │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── devtools │ │ │ │ ├── DevTools.tsx │ │ │ │ ├── DevToolsNative.module.scss │ │ │ │ ├── DevToolsNative.tsx │ │ │ │ ├── ModalDialog.module.scss │ │ │ │ ├── ModalDialog.tsx │ │ │ │ ├── ModalVisibilityContext.tsx │ │ │ │ ├── Tooltip.module.scss │ │ │ │ ├── Tooltip.tsx │ │ │ │ └── utils.ts │ │ │ ├── editor │ │ │ │ └── Editor.tsx │ │ │ └── index.tsx │ │ ├── tsconfig.json │ │ └── vite.config-overrides.ts │ ├── xmlui-hello-world │ │ ├── .gitignore │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── HelloWorld.module.scss │ │ │ ├── HelloWorld.tsx │ │ │ ├── HelloWorldNative.tsx │ │ │ └── index.tsx │ │ └── tsconfig.json │ ├── xmlui-os-frames │ │ ├── .gitignore │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── IPhoneFrame.module.scss │ │ │ ├── IPhoneFrame.tsx │ │ │ ├── MacOSAppFrame.module.scss │ │ │ ├── MacOSAppFrame.tsx │ │ │ ├── WindowsAppFrame.module.scss │ │ │ └── WindowsAppFrame.tsx │ │ └── tsconfig.json │ ├── xmlui-pdf │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ ├── components │ │ │ │ └── Pdf.xmlui │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── LazyPdfNative.tsx │ │ │ ├── Pdf.module.scss │ │ │ └── Pdf.tsx │ │ └── tsconfig.json │ ├── xmlui-playground │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── hooks │ │ │ │ ├── usePlayground.ts │ │ │ │ └── useToast.ts │ │ │ ├── index.tsx │ │ │ ├── playground │ │ │ │ ├── Box.module.scss │ │ │ │ ├── Box.tsx │ │ │ │ ├── CodeSelector.tsx │ │ │ │ ├── ConfirmationDialog.module.scss │ │ │ │ ├── ConfirmationDialog.tsx │ │ │ │ ├── Editor.tsx │ │ │ │ ├── Header.module.scss │ │ │ │ ├── Header.tsx │ │ │ │ ├── Playground.tsx │ │ │ │ ├── PlaygroundContent.module.scss │ │ │ │ ├── PlaygroundContent.tsx │ │ │ │ ├── PlaygroundNative.module.scss │ │ │ │ ├── PlaygroundNative.tsx │ │ │ │ ├── Preview.module.scss │ │ │ │ ├── Preview.tsx │ │ │ │ ├── Select.module.scss │ │ │ │ ├── StandalonePlayground.tsx │ │ │ │ ├── StandalonePlaygroundNative.module.scss │ │ │ │ ├── StandalonePlaygroundNative.tsx │ │ │ │ ├── ThemeSwitcher.module.scss │ │ │ │ ├── ThemeSwitcher.tsx │ │ │ │ ├── ToneSwitcher.tsx │ │ │ │ ├── Tooltip.module.scss │ │ │ │ ├── Tooltip.tsx │ │ │ │ └── utils.ts │ │ │ ├── providers │ │ │ │ ├── Toast.module.scss │ │ │ │ └── ToastProvider.tsx │ │ │ ├── state │ │ │ │ └── store.ts │ │ │ ├── themes │ │ │ │ └── theme.ts │ │ │ └── utils │ │ │ └── helpers.ts │ │ └── tsconfig.json │ ├── xmlui-search │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── Search.module.scss │ │ │ └── Search.tsx │ │ └── tsconfig.json │ ├── xmlui-spreadsheet │ │ ├── .gitignore │ │ ├── demo │ │ │ └── Main.xmlui │ │ ├── index.html │ │ ├── index.ts │ │ ├── meta │ │ │ └── componentsMetadata.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.tsx │ │ │ ├── Spreadsheet.tsx │ │ │ └── SpreadsheetNative.tsx │ │ └── tsconfig.json │ └── xmlui-website-blocks │ ├── .gitignore │ ├── CHANGELOG.md │ ├── demo │ │ ├── components │ │ │ ├── HeroBackgroundBreakoutPage.xmlui │ │ │ ├── HeroBackgroundsPage.xmlui │ │ │ ├── HeroContentsPage.xmlui │ │ │ ├── HeroTextAlignPage.xmlui │ │ │ ├── HeroTextPage.xmlui │ │ │ └── HeroTonesPage.xmlui │ │ ├── Main.xmlui │ │ └── themes │ │ └── default.ts │ ├── index.html │ ├── index.ts │ ├── meta │ │ └── componentsMetadata.ts │ ├── package.json │ ├── public │ │ └── resources │ │ ├── building.jpg │ │ └── xmlui-logo.svg │ ├── src │ │ ├── Carousel │ │ │ ├── Carousel.module.scss │ │ │ ├── Carousel.tsx │ │ │ ├── CarouselContext.tsx │ │ │ └── CarouselNative.tsx │ │ ├── FancyButton │ │ │ ├── FancyButton.module.scss │ │ │ ├── FancyButton.tsx │ │ │ └── FancyButton.xmlui │ │ ├── Hello │ │ │ ├── Hello.tsx │ │ │ ├── Hello.xmlui │ │ │ └── Hello.xmlui.xs │ │ ├── HeroSection │ │ │ ├── HeroSection.module.scss │ │ │ ├── HeroSection.tsx │ │ │ └── HeroSectionNative.tsx │ │ ├── index.tsx │ │ ├── ScrollToTop │ │ │ ├── ScrollToTop.module.scss │ │ │ ├── ScrollToTop.tsx │ │ │ └── ScrollToTopNative.tsx │ │ └── vite-env.d.ts │ └── tsconfig.json ├── README.md ├── tools │ ├── codefence │ │ └── xmlui-code-fence-docs.md │ ├── create-app │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── create-app.ts │ │ ├── helpers │ │ │ ├── copy.ts │ │ │ ├── get-pkg-manager.ts │ │ │ ├── git.ts │ │ │ ├── install.ts │ │ │ ├── is-folder-empty.ts │ │ │ ├── is-writeable.ts │ │ │ ├── make-dir.ts │ │ │ └── validate-pkg.ts │ │ ├── index.ts │ │ ├── package.json │ │ ├── templates │ │ │ ├── default │ │ │ │ └── ts │ │ │ │ ├── gitignore │ │ │ │ ├── index.html │ │ │ │ ├── index.ts │ │ │ │ ├── public │ │ │ │ │ ├── mockServiceWorker.js │ │ │ │ │ ├── resources │ │ │ │ │ │ ├── favicon.ico │ │ │ │ │ │ └── xmlui-logo.svg │ │ │ │ │ └── serve.json │ │ │ │ └── src │ │ │ │ ├── components │ │ │ │ │ ├── ApiAware.xmlui │ │ │ │ │ ├── Home.xmlui │ │ │ │ │ ├── IncButton.xmlui │ │ │ │ │ └── PagePanel.xmlui │ │ │ │ ├── config.ts │ │ │ │ └── Main.xmlui │ │ │ ├── index.ts │ │ │ └── types.ts │ │ └── tsconfig.json │ ├── create-xmlui-hello-world │ │ ├── index.js │ │ └── package.json │ └── vscode │ ├── .gitignore │ ├── .vscode │ │ ├── launch.json │ │ └── tasks.json │ ├── .vscodeignore │ ├── build.sh │ ├── CHANGELOG.md │ ├── esbuild.js │ ├── eslint.config.mjs │ ├── formatter-docs.md │ ├── generate-test-sample.sh │ ├── LICENSE.md │ ├── package-lock.json │ ├── package.json │ ├── README.md │ ├── resources │ │ ├── xmlui-logo.png │ │ └── xmlui-markup-syntax-highlighting.png │ ├── src │ │ ├── extension.ts │ │ └── server.ts │ ├── syntaxes │ │ └── xmlui.tmLanguage.json │ ├── test-samples │ │ └── sample.xmlui │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── turbo.json └── xmlui ├── .gitignore ├── bin │ ├── bootstrap.js │ ├── build-lib.ts │ ├── build.ts │ ├── index.ts │ ├── preview.ts │ ├── start.ts │ ├── vite-xmlui-plugin.ts │ └── viteConfig.ts ├── CHANGELOG.md ├── conventions │ ├── component-qa-checklist.md │ ├── copilot-conventions.md │ ├── create-xmlui-components.md │ ├── mermaid.md │ ├── testing-conventions.md │ └── xmlui-in-a-nutshell.md ├── dev-docs │ ├── accessibility.md │ ├── build-system.md │ ├── build-xmlui.md │ ├── component-behaviors.md │ ├── containers.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 │ ├── state-management.md │ ├── ud-components.md │ └── xmlui-repo.md ├── package.json ├── playwright.config.ts ├── scripts │ ├── coverage-only.js │ ├── e2e-test-summary.js │ ├── generate-docs │ │ ├── build-downloads-map.mjs │ │ ├── build-pages-map.mjs │ │ ├── components-config.json │ │ ├── configuration-management.mjs │ │ ├── constants.mjs │ │ ├── create-theme-files.mjs │ │ ├── DocsGenerator.mjs │ │ ├── error-handling.mjs │ │ ├── extensions-config.json │ │ ├── folders.mjs │ │ ├── generate-summary-files.mjs │ │ ├── get-docs.mjs │ │ ├── input-handler.mjs │ │ ├── logger.mjs │ │ ├── logging-standards.mjs │ │ ├── MetadataProcessor.mjs │ │ ├── pattern-utilities.mjs │ │ └── utils.mjs │ ├── get-langserver-metadata.mjs │ ├── inline-links.mjs │ └── README-e2e-summary.md ├── src │ ├── abstractions │ │ ├── _conventions.md │ │ ├── ActionDefs.ts │ │ ├── AppContextDefs.ts │ │ ├── ComponentDefs.ts │ │ ├── ContainerDefs.ts │ │ ├── ExtensionDefs.ts │ │ ├── FunctionDefs.ts │ │ ├── RendererDefs.ts │ │ ├── scripting │ │ │ ├── BlockScope.ts │ │ │ ├── Compilation.ts │ │ │ ├── LogicalThread.ts │ │ │ ├── LoopScope.ts │ │ │ ├── modules.ts │ │ │ ├── ScriptParserError.ts │ │ │ ├── Token.ts │ │ │ ├── TryScope.ts │ │ │ └── TryScopeExp.ts │ │ └── ThemingDefs.ts │ ├── components │ │ ├── _conventions.md │ │ ├── abstractions.ts │ │ ├── Accordion │ │ │ ├── Accordion.md │ │ │ ├── Accordion.module.scss │ │ │ ├── Accordion.spec.ts │ │ │ ├── Accordion.tsx │ │ │ ├── AccordionContext.tsx │ │ │ ├── AccordionItem.tsx │ │ │ ├── AccordionItemNative.tsx │ │ │ └── AccordionNative.tsx │ │ ├── Animation │ │ │ └── AnimationNative.tsx │ │ ├── APICall │ │ │ ├── APICall.md │ │ │ ├── APICall.spec.ts │ │ │ ├── APICall.tsx │ │ │ └── APICallNative.tsx │ │ ├── App │ │ │ ├── App.md │ │ │ ├── App.module.scss │ │ │ ├── App.spec.ts │ │ │ ├── App.tsx │ │ │ ├── AppLayoutContext.ts │ │ │ ├── AppNative.tsx │ │ │ ├── AppStateContext.ts │ │ │ ├── doc-resources │ │ │ │ ├── condensed-sticky.xmlui │ │ │ │ ├── condensed.xmlui │ │ │ │ ├── horizontal-sticky.xmlui │ │ │ │ ├── horizontal.xmlui │ │ │ │ ├── vertical-full-header.xmlui │ │ │ │ ├── vertical-sticky.xmlui │ │ │ │ └── vertical.xmlui │ │ │ ├── IndexerContext.ts │ │ │ ├── LinkInfoContext.ts │ │ │ ├── SearchContext.tsx │ │ │ ├── Sheet.module.scss │ │ │ └── Sheet.tsx │ │ ├── AppHeader │ │ │ ├── AppHeader.md │ │ │ ├── AppHeader.module.scss │ │ │ ├── AppHeader.spec.ts │ │ │ ├── AppHeader.tsx │ │ │ └── AppHeaderNative.tsx │ │ ├── AppState │ │ │ ├── AppState.md │ │ │ ├── AppState.spec.ts │ │ │ ├── AppState.tsx │ │ │ └── AppStateNative.tsx │ │ ├── AutoComplete │ │ │ ├── AutoComplete.md │ │ │ ├── AutoComplete.module.scss │ │ │ ├── AutoComplete.spec.ts │ │ │ ├── AutoComplete.tsx │ │ │ ├── AutoCompleteContext.tsx │ │ │ └── AutoCompleteNative.tsx │ │ ├── Avatar │ │ │ ├── Avatar.md │ │ │ ├── Avatar.module.scss │ │ │ ├── Avatar.spec.ts │ │ │ ├── Avatar.tsx │ │ │ └── AvatarNative.tsx │ │ ├── Backdrop │ │ │ ├── Backdrop.md │ │ │ ├── Backdrop.module.scss │ │ │ ├── Backdrop.spec.ts │ │ │ ├── Backdrop.tsx │ │ │ └── BackdropNative.tsx │ │ ├── Badge │ │ │ ├── Badge.md │ │ │ ├── Badge.module.scss │ │ │ ├── Badge.spec.ts │ │ │ ├── Badge.tsx │ │ │ └── BadgeNative.tsx │ │ ├── Bookmark │ │ │ ├── Bookmark.md │ │ │ ├── Bookmark.module.scss │ │ │ ├── Bookmark.spec.ts │ │ │ ├── Bookmark.tsx │ │ │ └── BookmarkNative.tsx │ │ ├── Breakout │ │ │ ├── Breakout.module.scss │ │ │ ├── Breakout.spec.ts │ │ │ ├── Breakout.tsx │ │ │ └── BreakoutNative.tsx │ │ ├── Button │ │ │ ├── Button-style.spec.ts │ │ │ ├── Button.md │ │ │ ├── Button.module.scss │ │ │ ├── Button.spec.ts │ │ │ ├── Button.tsx │ │ │ └── ButtonNative.tsx │ │ ├── Card │ │ │ ├── Card.md │ │ │ ├── Card.module.scss │ │ │ ├── Card.spec.ts │ │ │ ├── Card.tsx │ │ │ └── CardNative.tsx │ │ ├── Carousel │ │ │ ├── Carousel.md │ │ │ ├── Carousel.module.scss │ │ │ ├── Carousel.spec.ts │ │ │ ├── Carousel.tsx │ │ │ ├── CarouselContext.tsx │ │ │ ├── CarouselItem.tsx │ │ │ ├── CarouselItemNative.tsx │ │ │ └── CarouselNative.tsx │ │ ├── ChangeListener │ │ │ ├── ChangeListener.md │ │ │ ├── ChangeListener.spec.ts │ │ │ ├── ChangeListener.tsx │ │ │ └── ChangeListenerNative.tsx │ │ ├── chart-color-schemes.ts │ │ ├── Charts │ │ │ ├── AreaChart │ │ │ │ ├── AreaChart.md │ │ │ │ ├── AreaChart.spec.ts │ │ │ │ ├── AreaChart.tsx │ │ │ │ └── AreaChartNative.tsx │ │ │ ├── BarChart │ │ │ │ ├── BarChart.md │ │ │ │ ├── BarChart.module.scss │ │ │ │ ├── BarChart.spec.ts │ │ │ │ ├── BarChart.tsx │ │ │ │ └── BarChartNative.tsx │ │ │ ├── DonutChart │ │ │ │ ├── DonutChart.spec.ts │ │ │ │ └── DonutChart.tsx │ │ │ ├── LabelList │ │ │ │ ├── LabelList.spec.ts │ │ │ │ ├── LabelList.tsx │ │ │ │ ├── LabelListNative.module.scss │ │ │ │ └── LabelListNative.tsx │ │ │ ├── Legend │ │ │ │ ├── Legend.spec.ts │ │ │ │ ├── Legend.tsx │ │ │ │ └── LegendNative.tsx │ │ │ ├── LineChart │ │ │ │ ├── LineChart.md │ │ │ │ ├── LineChart.module.scss │ │ │ │ ├── LineChart.spec.ts │ │ │ │ ├── LineChart.tsx │ │ │ │ └── LineChartNative.tsx │ │ │ ├── PieChart │ │ │ │ ├── PieChart.md │ │ │ │ ├── PieChart.spec.ts │ │ │ │ ├── PieChart.tsx │ │ │ │ ├── PieChartNative.module.scss │ │ │ │ └── PieChartNative.tsx │ │ │ ├── RadarChart │ │ │ │ ├── RadarChart.md │ │ │ │ ├── RadarChart.spec.ts │ │ │ │ ├── RadarChart.tsx │ │ │ │ └── RadarChartNative.tsx │ │ │ ├── Tooltip │ │ │ │ ├── TooltipContent.module.scss │ │ │ │ ├── TooltipContent.spec.ts │ │ │ │ └── TooltipContent.tsx │ │ │ └── utils │ │ │ ├── abstractions.ts │ │ │ └── ChartProvider.tsx │ │ ├── Checkbox │ │ │ ├── Checkbox.md │ │ │ ├── Checkbox.spec.ts │ │ │ └── Checkbox.tsx │ │ ├── CodeBlock │ │ │ ├── CodeBlock.module.scss │ │ │ ├── CodeBlock.spec.ts │ │ │ ├── CodeBlock.tsx │ │ │ ├── CodeBlockNative.tsx │ │ │ └── highlight-code.ts │ │ ├── collectedComponentMetadata.ts │ │ ├── ColorPicker │ │ │ ├── ColorPicker.md │ │ │ ├── ColorPicker.module.scss │ │ │ ├── ColorPicker.spec.ts │ │ │ ├── ColorPicker.tsx │ │ │ └── ColorPickerNative.tsx │ │ ├── Column │ │ │ ├── Column.md │ │ │ ├── Column.tsx │ │ │ ├── ColumnNative.tsx │ │ │ ├── doc-resources │ │ │ │ └── list-component-data.js │ │ │ └── TableContext.tsx │ │ ├── component-utils.ts │ │ ├── ComponentProvider.tsx │ │ ├── ComponentRegistryContext.tsx │ │ ├── container-helpers.tsx │ │ ├── ContentSeparator │ │ │ ├── ContentSeparator.md │ │ │ ├── ContentSeparator.module.scss │ │ │ ├── ContentSeparator.spec.ts │ │ │ ├── ContentSeparator.tsx │ │ │ └── ContentSeparatorNative.tsx │ │ ├── DataSource │ │ │ ├── DataSource.md │ │ │ └── DataSource.tsx │ │ ├── DateInput │ │ │ ├── DateInput.md │ │ │ ├── DateInput.module.scss │ │ │ ├── DateInput.spec.ts │ │ │ ├── DateInput.tsx │ │ │ └── DateInputNative.tsx │ │ ├── DatePicker │ │ │ ├── DatePicker.md │ │ │ ├── DatePicker.module.scss │ │ │ ├── DatePicker.spec.ts │ │ │ ├── DatePicker.tsx │ │ │ └── DatePickerNative.tsx │ │ ├── DropdownMenu │ │ │ ├── DropdownMenu.md │ │ │ ├── DropdownMenu.module.scss │ │ │ ├── DropdownMenu.spec.ts │ │ │ ├── DropdownMenu.tsx │ │ │ ├── DropdownMenuNative.tsx │ │ │ ├── MenuItem.md │ │ │ └── SubMenuItem.md │ │ ├── EmojiSelector │ │ │ ├── EmojiSelector.md │ │ │ ├── EmojiSelector.spec.ts │ │ │ ├── EmojiSelector.tsx │ │ │ └── EmojiSelectorNative.tsx │ │ ├── ExpandableItem │ │ │ ├── ExpandableItem.module.scss │ │ │ ├── ExpandableItem.spec.ts │ │ │ ├── ExpandableItem.tsx │ │ │ └── ExpandableItemNative.tsx │ │ ├── FileInput │ │ │ ├── FileInput.md │ │ │ ├── FileInput.module.scss │ │ │ ├── FileInput.spec.ts │ │ │ ├── FileInput.tsx │ │ │ └── FileInputNative.tsx │ │ ├── FileUploadDropZone │ │ │ ├── FileUploadDropZone.md │ │ │ ├── FileUploadDropZone.module.scss │ │ │ ├── FileUploadDropZone.spec.ts │ │ │ ├── FileUploadDropZone.tsx │ │ │ └── FileUploadDropZoneNative.tsx │ │ ├── FlowLayout │ │ │ ├── FlowLayout.md │ │ │ ├── FlowLayout.module.scss │ │ │ ├── FlowLayout.spec.ts │ │ │ ├── FlowLayout.spec.ts-snapshots │ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png │ │ │ ├── FlowLayout.tsx │ │ │ └── FlowLayoutNative.tsx │ │ ├── Footer │ │ │ ├── Footer.md │ │ │ ├── Footer.module.scss │ │ │ ├── Footer.spec.ts │ │ │ ├── Footer.tsx │ │ │ └── FooterNative.tsx │ │ ├── Form │ │ │ ├── Form.md │ │ │ ├── Form.module.scss │ │ │ ├── Form.spec.ts │ │ │ ├── Form.tsx │ │ │ ├── formActions.ts │ │ │ ├── FormContext.ts │ │ │ └── FormNative.tsx │ │ ├── FormItem │ │ │ ├── FormItem.md │ │ │ ├── FormItem.module.scss │ │ │ ├── FormItem.spec.ts │ │ │ ├── FormItem.tsx │ │ │ ├── FormItemNative.tsx │ │ │ ├── HelperText.module.scss │ │ │ ├── HelperText.tsx │ │ │ ├── ItemWithLabel.tsx │ │ │ └── Validations.ts │ │ ├── FormSection │ │ │ ├── FormSection.md │ │ │ ├── FormSection.ts │ │ │ └── FormSection.xmlui │ │ ├── Fragment │ │ │ ├── Fragment.spec.ts │ │ │ └── Fragment.tsx │ │ ├── Heading │ │ │ ├── abstractions.ts │ │ │ ├── H1.md │ │ │ ├── H1.spec.ts │ │ │ ├── H2.md │ │ │ ├── H2.spec.ts │ │ │ ├── H3.md │ │ │ ├── H3.spec.ts │ │ │ ├── H4.md │ │ │ ├── H4.spec.ts │ │ │ ├── H5.md │ │ │ ├── H5.spec.ts │ │ │ ├── H6.md │ │ │ ├── H6.spec.ts │ │ │ ├── Heading.md │ │ │ ├── Heading.module.scss │ │ │ ├── Heading.spec.ts │ │ │ ├── Heading.tsx │ │ │ └── HeadingNative.tsx │ │ ├── HoverCard │ │ │ ├── HoverCard.tsx │ │ │ └── HovercardNative.tsx │ │ ├── HtmlTags │ │ │ ├── HtmlTags.module.scss │ │ │ ├── HtmlTags.spec.ts │ │ │ └── HtmlTags.tsx │ │ ├── Icon │ │ │ ├── AdmonitionDanger.tsx │ │ │ ├── AdmonitionInfo.tsx │ │ │ ├── AdmonitionNote.tsx │ │ │ ├── AdmonitionTip.tsx │ │ │ ├── AdmonitionWarning.tsx │ │ │ ├── ApiIcon.tsx │ │ │ ├── ArrowDropDown.module.scss │ │ │ ├── ArrowDropDown.tsx │ │ │ ├── ArrowDropUp.module.scss │ │ │ ├── ArrowDropUp.tsx │ │ │ ├── ArrowLeft.module.scss │ │ │ ├── ArrowLeft.tsx │ │ │ ├── ArrowRight.module.scss │ │ │ ├── ArrowRight.tsx │ │ │ ├── Attach.tsx │ │ │ ├── Binding.module.scss │ │ │ ├── Binding.tsx │ │ │ ├── BoardIcon.tsx │ │ │ ├── BoxIcon.tsx │ │ │ ├── CheckIcon.tsx │ │ │ ├── ChevronDownIcon.tsx │ │ │ ├── ChevronLeft.tsx │ │ │ ├── ChevronRight.tsx │ │ │ ├── ChevronUpIcon.tsx │ │ │ ├── CodeFileIcon.tsx │ │ │ ├── CodeSandbox.tsx │ │ │ ├── CompactListIcon.tsx │ │ │ ├── ContentCopyIcon.tsx │ │ │ ├── DarkToLightIcon.tsx │ │ │ ├── DatabaseIcon.module.scss │ │ │ ├── DatabaseIcon.tsx │ │ │ ├── DocFileIcon.tsx │ │ │ ├── DocIcon.tsx │ │ │ ├── DotMenuHorizontalIcon.tsx │ │ │ ├── DotMenuIcon.tsx │ │ │ ├── EmailIcon.tsx │ │ │ ├── EmptyFolderIcon.tsx │ │ │ ├── ErrorIcon.tsx │ │ │ ├── ExpressionIcon.tsx │ │ │ ├── FillPlusCricleIcon.tsx │ │ │ ├── FilterIcon.tsx │ │ │ ├── FolderIcon.tsx │ │ │ ├── GlobeIcon.tsx │ │ │ ├── HomeIcon.tsx │ │ │ ├── HyperLinkIcon.tsx │ │ │ ├── Icon.md │ │ │ ├── Icon.module.scss │ │ │ ├── Icon.spec.ts │ │ │ ├── Icon.tsx │ │ │ ├── IconNative.tsx │ │ │ ├── ImageFileIcon.tsx │ │ │ ├── Inspect.tsx │ │ │ ├── LightToDark.tsx │ │ │ ├── LinkIcon.tsx │ │ │ ├── ListIcon.tsx │ │ │ ├── LooseListIcon.tsx │ │ │ ├── MoonIcon.tsx │ │ │ ├── MoreOptionsIcon.tsx │ │ │ ├── NoSortIcon.tsx │ │ │ ├── PDFIcon.tsx │ │ │ ├── PenIcon.tsx │ │ │ ├── PhoneIcon.tsx │ │ │ ├── PhotoIcon.tsx │ │ │ ├── PlusIcon.tsx │ │ │ ├── SearchIcon.tsx │ │ │ ├── ShareIcon.tsx │ │ │ ├── SortAscendingIcon.tsx │ │ │ ├── SortDescendingIcon.tsx │ │ │ ├── StarsIcon.tsx │ │ │ ├── SunIcon.tsx │ │ │ ├── svg │ │ │ │ ├── admonition_danger.svg │ │ │ │ ├── admonition_info.svg │ │ │ │ ├── admonition_note.svg │ │ │ │ ├── admonition_tip.svg │ │ │ │ ├── admonition_warning.svg │ │ │ │ ├── api.svg │ │ │ │ ├── arrow-dropdown.svg │ │ │ │ ├── arrow-left.svg │ │ │ │ ├── arrow-right.svg │ │ │ │ ├── arrow-up.svg │ │ │ │ ├── attach.svg │ │ │ │ ├── binding.svg │ │ │ │ ├── box.svg │ │ │ │ ├── bulb.svg │ │ │ │ ├── code-file.svg │ │ │ │ ├── code-sandbox.svg │ │ │ │ ├── dark_to_light.svg │ │ │ │ ├── database.svg │ │ │ │ ├── doc.svg │ │ │ │ ├── empty-folder.svg │ │ │ │ ├── expression.svg │ │ │ │ ├── eye-closed.svg │ │ │ │ ├── eye-dark.svg │ │ │ │ ├── eye.svg │ │ │ │ ├── file-text.svg │ │ │ │ ├── filter.svg │ │ │ │ ├── folder.svg │ │ │ │ ├── img.svg │ │ │ │ ├── inspect.svg │ │ │ │ ├── light_to_dark.svg │ │ │ │ ├── moon.svg │ │ │ │ ├── pdf.svg │ │ │ │ ├── photo.svg │ │ │ │ ├── share.svg │ │ │ │ ├── stars.svg │ │ │ │ ├── sun.svg │ │ │ │ ├── trending-down.svg │ │ │ │ ├── trending-level.svg │ │ │ │ ├── trending-up.svg │ │ │ │ ├── txt.svg │ │ │ │ ├── unknown-file.svg │ │ │ │ ├── unlink.svg │ │ │ │ └── xls.svg │ │ │ ├── TableDeleteColumnIcon.tsx │ │ │ ├── TableDeleteRowIcon.tsx │ │ │ ├── TableInsertColumnIcon.tsx │ │ │ ├── TableInsertRowIcon.tsx │ │ │ ├── TrashIcon.tsx │ │ │ ├── TrendingDownIcon.tsx │ │ │ ├── TrendingLevelIcon.tsx │ │ │ ├── TrendingUpIcon.tsx │ │ │ ├── TxtIcon.tsx │ │ │ ├── UnknownFileIcon.tsx │ │ │ ├── UnlinkIcon.tsx │ │ │ ├── UserIcon.tsx │ │ │ ├── WarningIcon.tsx │ │ │ └── XlsIcon.tsx │ │ ├── IconProvider.tsx │ │ ├── IconRegistryContext.tsx │ │ ├── IFrame │ │ │ ├── IFrame.md │ │ │ ├── IFrame.module.scss │ │ │ ├── IFrame.spec.ts │ │ │ ├── IFrame.tsx │ │ │ └── IFrameNative.tsx │ │ ├── Image │ │ │ ├── Image.md │ │ │ ├── Image.module.scss │ │ │ ├── Image.spec.ts │ │ │ ├── Image.tsx │ │ │ └── ImageNative.tsx │ │ ├── Input │ │ │ ├── index.ts │ │ │ ├── InputAdornment.module.scss │ │ │ ├── InputAdornment.tsx │ │ │ ├── InputDivider.module.scss │ │ │ ├── InputDivider.tsx │ │ │ ├── InputLabel.module.scss │ │ │ ├── InputLabel.tsx │ │ │ ├── PartialInput.module.scss │ │ │ └── PartialInput.tsx │ │ ├── InspectButton │ │ │ ├── InspectButton.module.scss │ │ │ └── InspectButton.tsx │ │ ├── Items │ │ │ ├── Items.md │ │ │ ├── Items.spec.ts │ │ │ ├── Items.tsx │ │ │ └── ItemsNative.tsx │ │ ├── Link │ │ │ ├── Link.md │ │ │ ├── Link.module.scss │ │ │ ├── Link.spec.ts │ │ │ ├── Link.tsx │ │ │ └── LinkNative.tsx │ │ ├── List │ │ │ ├── doc-resources │ │ │ │ └── list-component-data.js │ │ │ ├── List.md │ │ │ ├── List.module.scss │ │ │ ├── List.spec.ts │ │ │ ├── List.tsx │ │ │ └── ListNative.tsx │ │ ├── Logo │ │ │ ├── doc-resources │ │ │ │ └── xmlui-logo.svg │ │ │ ├── Logo.md │ │ │ ├── Logo.tsx │ │ │ └── LogoNative.tsx │ │ ├── Markdown │ │ │ ├── CodeText.module.scss │ │ │ ├── CodeText.tsx │ │ │ ├── Markdown.md │ │ │ ├── Markdown.module.scss │ │ │ ├── Markdown.spec.ts │ │ │ ├── Markdown.tsx │ │ │ ├── MarkdownNative.tsx │ │ │ ├── parse-binding-expr.ts │ │ │ └── utils.ts │ │ ├── metadata-helpers.ts │ │ ├── ModalDialog │ │ │ ├── ConfirmationModalContextProvider.tsx │ │ │ ├── Dialog.module.scss │ │ │ ├── Dialog.tsx │ │ │ ├── ModalDialog.md │ │ │ ├── ModalDialog.module.scss │ │ │ ├── ModalDialog.spec.ts │ │ │ ├── ModalDialog.tsx │ │ │ ├── ModalDialogNative.tsx │ │ │ └── ModalVisibilityContext.tsx │ │ ├── NavGroup │ │ │ ├── NavGroup.md │ │ │ ├── NavGroup.module.scss │ │ │ ├── NavGroup.spec.ts │ │ │ ├── NavGroup.tsx │ │ │ ├── NavGroupContext.ts │ │ │ └── NavGroupNative.tsx │ │ ├── NavLink │ │ │ ├── NavLink.md │ │ │ ├── NavLink.module.scss │ │ │ ├── NavLink.spec.ts │ │ │ ├── NavLink.tsx │ │ │ └── NavLinkNative.tsx │ │ ├── NavPanel │ │ │ ├── NavPanel.md │ │ │ ├── NavPanel.module.scss │ │ │ ├── NavPanel.spec.ts │ │ │ ├── NavPanel.tsx │ │ │ └── NavPanelNative.tsx │ │ ├── NestedApp │ │ │ ├── AppWithCodeView.module.scss │ │ │ ├── AppWithCodeView.tsx │ │ │ ├── AppWithCodeViewNative.tsx │ │ │ ├── defaultProps.tsx │ │ │ ├── logo.svg │ │ │ ├── NestedApp.module.scss │ │ │ ├── NestedApp.tsx │ │ │ ├── NestedAppNative.tsx │ │ │ ├── Tooltip.module.scss │ │ │ ├── Tooltip.tsx │ │ │ └── utils.ts │ │ ├── NoResult │ │ │ ├── NoResult.md │ │ │ ├── NoResult.module.scss │ │ │ ├── NoResult.spec.ts │ │ │ ├── NoResult.tsx │ │ │ └── NoResultNative.tsx │ │ ├── NumberBox │ │ │ ├── numberbox-abstractions.ts │ │ │ ├── NumberBox.md │ │ │ ├── NumberBox.module.scss │ │ │ ├── NumberBox.spec.ts │ │ │ ├── NumberBox.tsx │ │ │ └── NumberBoxNative.tsx │ │ ├── Option │ │ │ ├── Option.md │ │ │ ├── Option.spec.ts │ │ │ ├── Option.tsx │ │ │ ├── OptionNative.tsx │ │ │ └── OptionTypeProvider.tsx │ │ ├── PageMetaTitle │ │ │ ├── PageMetaTilteNative.tsx │ │ │ ├── PageMetaTitle.md │ │ │ ├── PageMetaTitle.spec.ts │ │ │ └── PageMetaTitle.tsx │ │ ├── Pages │ │ │ ├── Page.md │ │ │ ├── Pages.md │ │ │ ├── Pages.module.scss │ │ │ ├── Pages.tsx │ │ │ └── PagesNative.tsx │ │ ├── Pagination │ │ │ ├── Pagination.md │ │ │ ├── Pagination.module.scss │ │ │ ├── Pagination.spec.ts │ │ │ ├── Pagination.tsx │ │ │ └── PaginationNative.tsx │ │ ├── PositionedContainer │ │ │ ├── PositionedContainer.module.scss │ │ │ ├── PositionedContainer.tsx │ │ │ └── PositionedContainerNative.tsx │ │ ├── ProfileMenu │ │ │ ├── ProfileMenu.module.scss │ │ │ └── ProfileMenu.tsx │ │ ├── ProgressBar │ │ │ ├── ProgressBar.md │ │ │ ├── ProgressBar.module.scss │ │ │ ├── ProgressBar.spec.ts │ │ │ ├── ProgressBar.tsx │ │ │ └── ProgressBarNative.tsx │ │ ├── Queue │ │ │ ├── Queue.md │ │ │ ├── Queue.spec.ts │ │ │ ├── Queue.tsx │ │ │ ├── queueActions.ts │ │ │ └── QueueNative.tsx │ │ ├── RadioGroup │ │ │ ├── RadioGroup.md │ │ │ ├── RadioGroup.module.scss │ │ │ ├── RadioGroup.spec.ts │ │ │ ├── RadioGroup.tsx │ │ │ ├── RadioGroupNative.tsx │ │ │ ├── RadioItem.tsx │ │ │ └── RadioItemNative.tsx │ │ ├── RealTimeAdapter │ │ │ ├── RealTimeAdapter.tsx │ │ │ └── RealTimeAdapterNative.tsx │ │ ├── Redirect │ │ │ ├── Redirect.md │ │ │ ├── Redirect.spec.ts │ │ │ └── Redirect.tsx │ │ ├── ResponsiveBar │ │ │ ├── README.md │ │ │ ├── ResponsiveBar.md │ │ │ ├── ResponsiveBar.module.scss │ │ │ ├── ResponsiveBar.spec.ts │ │ │ ├── ResponsiveBar.tsx │ │ │ └── ResponsiveBarNative.tsx │ │ ├── Select │ │ │ ├── HiddenOption.tsx │ │ │ ├── MultiSelectOption.tsx │ │ │ ├── OptionContext.ts │ │ │ ├── Select.md │ │ │ ├── Select.module.scss │ │ │ ├── Select.spec.ts │ │ │ ├── Select.tsx │ │ │ ├── SelectContext.tsx │ │ │ ├── SelectNative.tsx │ │ │ ├── SelectOption.tsx │ │ │ └── SimpleSelect.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 │ │ │ ├── compound-utils.ts │ │ │ ├── css-utils.ts │ │ │ ├── DataLoaderQueryKeyGenerator.ts │ │ │ ├── date-utils.ts │ │ │ ├── extractParam.ts │ │ │ ├── hooks.tsx │ │ │ ├── LruCache.ts │ │ │ ├── mergeProps.ts │ │ │ ├── misc.ts │ │ │ ├── request-params.ts │ │ │ ├── statementUtils.ts │ │ │ └── treeUtils.ts │ │ └── xmlui-parser.ts │ ├── index-standalone.ts │ ├── index.scss │ ├── index.ts │ ├── language-server │ │ ├── server-common.ts │ │ ├── server-web-worker.ts │ │ ├── server.ts │ │ ├── services │ │ │ ├── common │ │ │ │ ├── docs-generation.ts │ │ │ │ ├── lsp-utils.ts │ │ │ │ ├── metadata-utils.ts │ │ │ │ └── syntax-node-utilities.ts │ │ │ ├── completion.ts │ │ │ ├── diagnostic.ts │ │ │ ├── format.ts │ │ │ └── hover.ts │ │ └── xmlui-metadata-generated.mjs │ ├── logging │ │ ├── LoggerContext.tsx │ │ ├── LoggerInitializer.tsx │ │ ├── LoggerService.ts │ │ └── xmlui.ts │ ├── logo.svg │ ├── parsers │ │ ├── common │ │ │ ├── GenericToken.ts │ │ │ ├── InputStream.ts │ │ │ └── utils.ts │ │ ├── scripting │ │ │ ├── code-behind-collect.ts │ │ │ ├── Lexer.ts │ │ │ ├── modules.ts │ │ │ ├── Parser.ts │ │ │ ├── ParserError.ts │ │ │ ├── ScriptingNodeTypes.ts │ │ │ ├── TokenTrait.ts │ │ │ ├── TokenType.ts │ │ │ └── tree-visitor.ts │ │ ├── style-parser │ │ │ ├── errors.ts │ │ │ ├── source-tree.ts │ │ │ ├── StyleInputStream.ts │ │ │ ├── StyleLexer.ts │ │ │ ├── StyleParser.ts │ │ │ └── tokens.ts │ │ └── xmlui-parser │ │ ├── CharacterCodes.ts │ │ ├── diagnostics.ts │ │ ├── fileExtensions.ts │ │ ├── index.ts │ │ ├── lint.ts │ │ ├── parser.ts │ │ ├── ParserError.ts │ │ ├── scanner.ts │ │ ├── syntax-kind.ts │ │ ├── syntax-node.ts │ │ ├── transform.ts │ │ ├── utils.ts │ │ ├── xmlui-serializer.ts │ │ └── xmlui-tree.ts │ ├── react-app-env.d.ts │ ├── syntax │ │ ├── monaco │ │ │ ├── grammar.monacoLanguage.ts │ │ │ ├── index.ts │ │ │ ├── xmlui-dark.ts │ │ │ ├── xmlui-light.ts │ │ │ └── xmluiscript.monacoLanguage.ts │ │ └── textMate │ │ ├── index.ts │ │ ├── xmlui-dark.json │ │ ├── xmlui-light.json │ │ ├── xmlui.json │ │ └── xmlui.tmLanguage.json │ ├── testing │ │ ├── assertions.ts │ │ ├── component-test-helpers.ts │ │ ├── ComponentDrivers.ts │ │ ├── drivers │ │ │ ├── DateInputDriver.ts │ │ │ ├── ModalDialogDriver.ts │ │ │ ├── NumberBoxDriver.ts │ │ │ ├── TextBoxDriver.ts │ │ │ ├── TimeInputDriver.ts │ │ │ ├── TimerDriver.ts │ │ │ └── TreeDriver.ts │ │ ├── fixtures.ts │ │ ├── infrastructure │ │ │ ├── index.html │ │ │ ├── main.tsx │ │ │ ├── public │ │ │ │ ├── mockServiceWorker.js │ │ │ │ ├── resources │ │ │ │ │ ├── bell.svg │ │ │ │ │ ├── box.svg │ │ │ │ │ ├── doc.svg │ │ │ │ │ ├── eye.svg │ │ │ │ │ ├── flower-640x480.jpg │ │ │ │ │ ├── sun.svg │ │ │ │ │ ├── test-image-100x100.jpg │ │ │ │ │ └── txt.svg │ │ │ │ └── serve.json │ │ │ └── TestBed.tsx │ │ └── themed-app-test-helpers.ts │ └── vite-env.d.ts ├── tests │ ├── components │ │ ├── CodeBlock │ │ │ └── hightlight-code.test.ts │ │ ├── playground-pattern.test.ts │ │ └── Tree │ │ └── Tree-states.test.ts │ ├── components-core │ │ ├── abstractions │ │ │ └── treeAbstractions.test.ts │ │ ├── container │ │ │ └── buildProxy.test.ts │ │ ├── interception │ │ │ ├── orderBy.test.ts │ │ │ ├── ReadOnlyCollection.test.ts │ │ │ └── request-param-converter.test.ts │ │ ├── scripts-runner │ │ │ ├── AttributeValueParser.test.ts │ │ │ ├── eval-tree-arrow-async.test.ts │ │ │ ├── eval-tree-arrow.test.ts │ │ │ ├── eval-tree-func-decl-async.test.ts │ │ │ ├── eval-tree-func-decl.test.ts │ │ │ ├── eval-tree-pre-post.test.ts │ │ │ ├── eval-tree-regression.test.ts │ │ │ ├── eval-tree.test.ts │ │ │ ├── function-proxy.test.ts │ │ │ ├── parser-regression.test.ts │ │ │ ├── process-event.test.ts │ │ │ ├── process-function.test.ts │ │ │ ├── process-implicit-context.test.ts │ │ │ ├── process-statement-asgn.test.ts │ │ │ ├── process-statement-destruct.test.ts │ │ │ ├── process-statement-regs.test.ts │ │ │ ├── process-statement-sync.test.ts │ │ │ ├── process-statement.test.ts │ │ │ ├── process-switch-sync.test.ts │ │ │ ├── process-switch.test.ts │ │ │ ├── process-try-sync.test.ts │ │ │ ├── process-try.test.ts │ │ │ └── test-helpers.ts │ │ ├── test-metadata-handler.ts │ │ ├── theming │ │ │ ├── border-segments.test.ts │ │ │ ├── component-layout.resolver.test.ts │ │ │ ├── layout-property-parser.test.ts │ │ │ ├── layout-resolver.test.ts │ │ │ ├── layout-resolver2.test.ts │ │ │ ├── layout-vp-override.test.ts │ │ │ └── padding-segments.test.ts │ │ └── utils │ │ ├── date-utils.test.ts │ │ ├── format-human-elapsed-time.test.ts │ │ └── LruCache.test.ts │ ├── language-server │ │ ├── completion.test.ts │ │ ├── format.test.ts │ │ ├── hover.test.ts │ │ └── mockData.ts │ └── parsers │ ├── common │ │ └── input-stream.test.ts │ ├── markdown │ │ └── parse-binding-expression.test.ts │ ├── parameter-parser.test.ts │ ├── paremeter-parser.test.ts │ ├── scripting │ │ ├── eval-tree-arrow.test.ts │ │ ├── eval-tree-pre-post.test.ts │ │ ├── eval-tree.test.ts │ │ ├── function-proxy.test.ts │ │ ├── lexer-literals.test.ts │ │ ├── lexer-misc.test.ts │ │ ├── module-parse.test.ts │ │ ├── parser-arrow.test.ts │ │ ├── parser-assignments.test.ts │ │ ├── parser-binary.test.ts │ │ ├── parser-destructuring.test.ts │ │ ├── parser-errors.test.ts │ │ ├── parser-expressions.test.ts │ │ ├── parser-function.test.ts │ │ ├── parser-literals.test.ts │ │ ├── parser-primary.test.ts │ │ ├── parser-regex.test.ts │ │ ├── parser-statements.test.ts │ │ ├── parser-unary.test.ts │ │ ├── process-event.test.ts │ │ ├── process-implicit-context.test.ts │ │ ├── process-statement-asgn.test.ts │ │ ├── process-statement-destruct.test.ts │ │ ├── process-statement-regs.test.ts │ │ ├── process-statement-sync.test.ts │ │ ├── process-statement.test.ts │ │ ├── process-switch-sync.test.ts │ │ ├── process-switch.test.ts │ │ ├── process-try-sync.test.ts │ │ ├── process-try.test.ts │ │ ├── simplify-expression.test.ts │ │ ├── statement-hooks.test.ts │ │ └── test-helpers.ts │ ├── style-parser │ │ ├── generateHvarChain.test.ts │ │ ├── parseHVar.test.ts │ │ ├── parser.test.ts │ │ └── tokens.test.ts │ └── xmlui │ ├── lint.test.ts │ ├── parser.test.ts │ ├── scanner.test.ts │ ├── transform.attr.test.ts │ ├── transform.circular.test.ts │ ├── transform.element.test.ts │ ├── transform.errors.test.ts │ ├── transform.escape.test.ts │ ├── transform.regression.test.ts │ ├── transform.script.test.ts │ ├── transform.test.ts │ └── xmlui.ts ├── tests-e2e │ ├── api-bound-component-regression.spec.ts │ ├── api-call-as-extracted-component.spec.ts │ ├── assign-to-object-or-array-regression.spec.ts │ ├── binding-regression.spec.ts │ ├── children-as-template-context-vars.spec.ts │ ├── compound-component.spec.ts │ ├── context-vars-regression.spec.ts │ ├── data-bindings.spec.ts │ ├── datasource-and-api-usage-in-var.spec.ts │ ├── datasource-direct-binding.spec.ts │ ├── datasource-onLoaded-regression.spec.ts │ ├── modify-array-item-regression.spec.ts │ ├── namespaces.spec.ts │ ├── push-to-array-regression.spec.ts │ ├── screen-breakpoints.spec.ts │ ├── scripting.spec.ts │ ├── state-scope-in-pages.spec.ts │ └── state-var-scopes.spec.ts ├── tsconfig.bin.json ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── vitest.config.ts ``` # Files -------------------------------------------------------------------------------- /xmlui/tests/components-core/theming/layout-resolver.test.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { describe, expect, it } from "vitest"; 2 | import { resolveLayoutProps, toCssVar } from "../../../src/components-core/theming/layout-resolver"; 3 | 4 | describe("Layout resolver", () => { 5 | const THEME_ID = "$some-theme-id_x"; 6 | const THEME_ID_VALUE = toCssVar(THEME_ID); 7 | const THEME_ID2 = "$some-theme-id2"; 8 | const THEME_ID2_VALUE = toCssVar(THEME_ID2); 9 | const THEME_ID3 = "$some-theme-id3"; 10 | const THEME_ID3_VALUE = toCssVar(THEME_ID3); 11 | const THEME_ID4 = "$some-theme-id4"; 12 | const THEME_ID4_VALUE = toCssVar(THEME_ID4); 13 | 14 | // --- Dimensions & Positions 15 | const sizeCases = ["0", "1px", "2.5rem", "50%", "4vmin"]; 16 | 17 | sizeCases.forEach((c) => { 18 | it(`width: ${c}`, () => { 19 | const PROP = "width"; 20 | const result = resolveLayoutProps({ [PROP]: c }); 21 | expect(result.cssProps[PROP]).toBe(c); 22 | expect(result.issues.has(PROP)).toBe(false); 23 | }); 24 | 25 | it(`minWidth: ${c}`, () => { 26 | const PROP = "minWidth"; 27 | const result = resolveLayoutProps({ [PROP]: c }); 28 | expect(result.cssProps[PROP]).toBe(c); 29 | expect(result.issues.has(PROP)).toBe(false); 30 | }); 31 | 32 | it(`maxWidth: ${c}`, () => { 33 | const PROP = "maxWidth"; 34 | const result = resolveLayoutProps({ [PROP]: c }); 35 | expect(result.cssProps[PROP]).toBe(c); 36 | expect(result.issues.has(PROP)).toBe(false); 37 | }); 38 | 39 | it(`height: ${c}`, () => { 40 | const PROP = "height"; 41 | const result = resolveLayoutProps({ [PROP]: c }); 42 | expect(result.cssProps[PROP]).toBe(c); 43 | expect(result.issues.has(PROP)).toBe(false); 44 | }); 45 | 46 | it(`minHeight: ${c}`, () => { 47 | const PROP = "minHeight"; 48 | const result = resolveLayoutProps({ [PROP]: c }); 49 | expect(result.cssProps[PROP]).toBe(c); 50 | expect(result.issues.has(PROP)).toBe(false); 51 | }); 52 | 53 | it(`maxHeight: ${c}`, () => { 54 | const PROP = "maxHeight"; 55 | const result = resolveLayoutProps({ [PROP]: c }); 56 | expect(result.cssProps[PROP]).toBe(c); 57 | expect(result.issues.has(PROP)).toBe(false); 58 | }); 59 | 60 | it(`top: ${c}`, () => { 61 | const PROP = "top"; 62 | const result = resolveLayoutProps({ [PROP]: c }); 63 | expect(result.cssProps[PROP]).toBe(c); 64 | expect(result.issues.has(PROP)).toBe(false); 65 | }); 66 | 67 | it(`right: ${c}`, () => { 68 | const PROP = "right"; 69 | const result = resolveLayoutProps({ [PROP]: c }); 70 | expect(result.cssProps[PROP]).toBe(c); 71 | expect(result.issues.has(PROP)).toBe(false); 72 | }); 73 | 74 | it(`bottom: ${c}`, () => { 75 | const PROP = "bottom"; 76 | const result = resolveLayoutProps({ [PROP]: c }); 77 | expect(result.cssProps[PROP]).toBe(c); 78 | expect(result.issues.has(PROP)).toBe(false); 79 | }); 80 | 81 | it(`left: ${c}`, () => { 82 | const PROP = "left"; 83 | const result = resolveLayoutProps({ [PROP]: c }); 84 | expect(result.cssProps[PROP]).toBe(c); 85 | expect(result.issues.has(PROP)).toBe(false); 86 | }); 87 | 88 | it(`gap: ${c}`, () => { 89 | const PROP = "gap"; 90 | const result = resolveLayoutProps({ [PROP]: c }); 91 | expect(result.cssProps[PROP]).toBe(c); 92 | expect(result.issues.has(PROP)).toBe(false); 93 | }); 94 | }); 95 | 96 | // --- Star sizes (width & height) 97 | it("width: star size (*) with no layout context", () => { 98 | const PROP = "width"; 99 | const VALUE = "*"; 100 | const result = resolveLayoutProps({ [PROP]: VALUE }); 101 | expect(result.cssProps.flex).toBeUndefined(); 102 | expect(result.cssProps.flexShrink).toBeUndefined(); 103 | expect(result.issues.has(PROP)).toBe(false); 104 | }); 105 | 106 | it("width: star size (*) with empty layout context", () => { 107 | const PROP = "width"; 108 | const VALUE = "*"; 109 | const result = resolveLayoutProps({ [PROP]: VALUE }, {}); 110 | expect(result.cssProps.flex).toBeUndefined(); 111 | expect(result.cssProps.flexShrink).toBe(0); 112 | expect(result.issues.has(PROP)).toBe(false); 113 | }); 114 | 115 | it("width: star size (*) with horizontal layout context", () => { 116 | const PROP = "width"; 117 | const VALUE = "*"; 118 | const result = resolveLayoutProps( 119 | { [PROP]: VALUE }, 120 | { type: "Stack", orientation: "horizontal" }, 121 | ); 122 | expect(result.cssProps.flex).toBe(1); 123 | expect(result.cssProps.flexShrink).toBe(1); 124 | expect(result.issues.has(PROP)).toBe(false); 125 | }); 126 | 127 | it("width: star size (*) with vertical layout context", () => { 128 | const PROP = "width"; 129 | const VALUE = "*"; 130 | const result = resolveLayoutProps( 131 | { [PROP]: VALUE }, 132 | { type: "Stack", orientation: "vertical" }, 133 | ); 134 | expect(result.cssProps.flex).toBeUndefined(); 135 | expect(result.cssProps.flexShrink).toBe(0); 136 | expect(result.issues.has(PROP)).toBe(false); 137 | }); 138 | 139 | it("width: star size (3*) with no layout context", () => { 140 | const PROP = "width"; 141 | const VALUE = "3*"; 142 | const result = resolveLayoutProps({ [PROP]: VALUE }); 143 | expect(result.cssProps.flex).toBeUndefined(); 144 | expect(result.cssProps.flexShrink).toBeUndefined(); 145 | expect(result.issues.has(PROP)).toBe(false); 146 | }); 147 | 148 | it("width: star size (3*) with empty layout context", () => { 149 | const PROP = "width"; 150 | const VALUE = "3*"; 151 | const result = resolveLayoutProps({ [PROP]: VALUE }, {}); 152 | expect(result.cssProps.flex).toBeUndefined(); 153 | expect(result.cssProps.flexShrink).toBe(0); 154 | expect(result.issues.has(PROP)).toBe(false); 155 | }); 156 | 157 | it("width: star size (3*) with horizontal layout context", () => { 158 | const PROP = "width"; 159 | const VALUE = "3*"; 160 | const result = resolveLayoutProps( 161 | { [PROP]: VALUE }, 162 | { type: "Stack", orientation: "horizontal" }, 163 | ); 164 | expect(result.cssProps.flex).toBe(3); 165 | expect(result.cssProps.flexShrink).toBe(1); 166 | expect(result.issues.has(PROP)).toBe(false); 167 | }); 168 | 169 | it("width: star size (3*) with vertical layout context", () => { 170 | const PROP = "width"; 171 | const VALUE = "3*"; 172 | const result = resolveLayoutProps( 173 | { [PROP]: VALUE }, 174 | { type: "Stack", orientation: "vertical" }, 175 | ); 176 | expect(result.cssProps.flex).toBeUndefined(); 177 | expect(result.cssProps.flexShrink).toBe(0); 178 | expect(result.issues.has(PROP)).toBe(false); 179 | }); 180 | 181 | it("height: star size (*) with no layout context", () => { 182 | const PROP = "height"; 183 | const VALUE = "*"; 184 | const result = resolveLayoutProps({ [PROP]: VALUE }); 185 | expect(result.cssProps.flex).toBeUndefined(); 186 | expect(result.cssProps.flexShrink).toBeUndefined(); 187 | expect(result.issues.has(PROP)).toBe(false); 188 | }); 189 | 190 | it("height: star size (*) with empty layout context", () => { 191 | const PROP = "height"; 192 | const VALUE = "*"; 193 | const result = resolveLayoutProps({ [PROP]: VALUE }, {}); 194 | expect(result.cssProps.flex).toBeUndefined(); 195 | expect(result.cssProps.flexShrink).toBe(0); 196 | expect(result.issues.has(PROP)).toBe(false); 197 | }); 198 | 199 | it("height: star size (*) with horizontal layout context", () => { 200 | const PROP = "height"; 201 | const VALUE = "*"; 202 | const result = resolveLayoutProps( 203 | { [PROP]: VALUE }, 204 | { type: "Stack", orientation: "horizontal" }, 205 | ); 206 | expect(result.cssProps.flex).toBeUndefined(); 207 | expect(result.cssProps.flexShrink).toBe(0); 208 | expect(result.issues.has(PROP)).toBe(false); 209 | }); 210 | 211 | it("height: star size (*) with vertical layout context", () => { 212 | const PROP = "height"; 213 | const VALUE = "*"; 214 | const result = resolveLayoutProps( 215 | { [PROP]: VALUE }, 216 | { type: "Stack", orientation: "vertical" }, 217 | ); 218 | expect(result.cssProps.flex).toBe(1); 219 | expect(result.cssProps.flexShrink).toBe(1); 220 | expect(result.issues.has(PROP)).toBe(false); 221 | }); 222 | 223 | it("height: star size (3*) with no layout context", () => { 224 | const PROP = "height"; 225 | const VALUE = "3*"; 226 | const result = resolveLayoutProps({ [PROP]: VALUE }); 227 | expect(result.cssProps.flex).toBeUndefined(); 228 | expect(result.cssProps.flexShrink).toBeUndefined(); 229 | expect(result.issues.has(PROP)).toBe(false); 230 | }); 231 | 232 | it("height: star size (3*) with empty layout context", () => { 233 | const PROP = "height"; 234 | const VALUE = "3*"; 235 | const result = resolveLayoutProps({ [PROP]: VALUE }, {}); 236 | expect(result.cssProps.flex).toBeUndefined(); 237 | expect(result.cssProps.flexShrink).toBe(0); 238 | expect(result.issues.has(PROP)).toBe(false); 239 | }); 240 | 241 | it("height: star size (3*) with horizontal layout context", () => { 242 | const PROP = "height"; 243 | const VALUE = "3*"; 244 | const result = resolveLayoutProps( 245 | { [PROP]: VALUE }, 246 | { type: "Stack", orientation: "horizontal" }, 247 | ); 248 | expect(result.cssProps.flex).toBeUndefined(); 249 | expect(result.cssProps.flexShrink).toBe(0); 250 | expect(result.issues.has(PROP)).toBe(false); 251 | }); 252 | 253 | it("height: star size (3*) with vertical layout context", () => { 254 | const PROP = "height"; 255 | const VALUE = "3*"; 256 | const result = resolveLayoutProps( 257 | { [PROP]: VALUE }, 258 | { type: "Stack", orientation: "vertical" }, 259 | ); 260 | expect(result.cssProps.flex).toBe(3); 261 | expect(result.cssProps.flexShrink).toBe(1); 262 | expect(result.issues.has(PROP)).toBe(false); 263 | }); 264 | 265 | it("width (themeVar)", () => { 266 | const PROP = "width"; 267 | const VALUE = THEME_ID; 268 | const result = resolveLayoutProps({ [PROP]: VALUE }); 269 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 270 | expect(result.issues.has(PROP)).toBe(false); 271 | }); 272 | 273 | it("minWidth (themeVar)", () => { 274 | const PROP = "minWidth"; 275 | const VALUE = THEME_ID; 276 | const result = resolveLayoutProps({ [PROP]: VALUE }); 277 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 278 | expect(result.issues.has(PROP)).toBe(false); 279 | }); 280 | 281 | it("maxWidth (themeVar)", () => { 282 | const PROP = "maxWidth"; 283 | const VALUE = THEME_ID; 284 | const result = resolveLayoutProps({ [PROP]: VALUE }); 285 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 286 | expect(result.issues.has(PROP)).toBe(false); 287 | }); 288 | 289 | it("height (themeVar)", () => { 290 | const PROP = "height"; 291 | const VALUE = THEME_ID; 292 | const result = resolveLayoutProps({ [PROP]: VALUE }); 293 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 294 | expect(result.issues.has(PROP)).toBe(false); 295 | }); 296 | 297 | it("minHeight (themeVar)", () => { 298 | const PROP = "minHeight"; 299 | const VALUE = THEME_ID; 300 | const result = resolveLayoutProps({ [PROP]: VALUE }); 301 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 302 | expect(result.issues.has(PROP)).toBe(false); 303 | }); 304 | 305 | it("maxHeight (themeVar)", () => { 306 | const PROP = "maxHeight"; 307 | const VALUE = THEME_ID; 308 | const result = resolveLayoutProps({ [PROP]: VALUE }); 309 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 310 | expect(result.issues.has(PROP)).toBe(false); 311 | }); 312 | 313 | it("top (themeVar)", () => { 314 | const PROP = "top"; 315 | const VALUE = THEME_ID; 316 | const result = resolveLayoutProps({ [PROP]: VALUE }); 317 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 318 | expect(result.issues.has(PROP)).toBe(false); 319 | }); 320 | 321 | it("right (themeVar)", () => { 322 | const PROP = "right"; 323 | const VALUE = THEME_ID; 324 | const result = resolveLayoutProps({ [PROP]: VALUE }); 325 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 326 | expect(result.issues.has(PROP)).toBe(false); 327 | }); 328 | 329 | it("bottom (themeVar)", () => { 330 | const PROP = "bottom"; 331 | const VALUE = THEME_ID; 332 | const result = resolveLayoutProps({ [PROP]: VALUE }); 333 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 334 | expect(result.issues.has(PROP)).toBe(false); 335 | }); 336 | 337 | it("left (themeVar)", () => { 338 | const PROP = "left"; 339 | const VALUE = THEME_ID; 340 | const result = resolveLayoutProps({ [PROP]: VALUE }); 341 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 342 | expect(result.issues.has(PROP)).toBe(false); 343 | }); 344 | 345 | it("gap (themeVar)", () => { 346 | const PROP = "gap"; 347 | const VALUE = THEME_ID; 348 | const result = resolveLayoutProps({ [PROP]: VALUE }); 349 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 350 | expect(result.issues.has(PROP)).toBe(false); 351 | }); 352 | 353 | // --- Paddings 354 | sizeCases.forEach((c) => { 355 | it(`padding: ${c}`, () => { 356 | const PROP = "padding"; 357 | const result = resolveLayoutProps({ [PROP]: c }); 358 | expect(result.cssProps[PROP]).toBe(c); 359 | expect(result.cssProps.paddingLeft).toBeUndefined(); 360 | expect(result.cssProps.paddingRight).toBeUndefined(); 361 | expect(result.cssProps.paddingTop).toBeUndefined(); 362 | expect(result.cssProps.paddingBottom).toBeUndefined(); 363 | expect(result.issues.has(PROP)).toBe(false); 364 | }); 365 | 366 | it(`paddingLeft: ${c}`, () => { 367 | const PROP = "paddingLeft"; 368 | const result = resolveLayoutProps({ [PROP]: c }); 369 | expect(result.cssProps.padding).toBeUndefined(); 370 | expect(result.cssProps.paddingLeft).toBe(c); 371 | expect(result.cssProps.paddingRight).toBeUndefined(); 372 | expect(result.cssProps.paddingTop).toBeUndefined(); 373 | expect(result.cssProps.paddingBottom).toBeUndefined(); 374 | expect(result.issues.has(PROP)).toBe(false); 375 | }); 376 | 377 | it(`paddingRight: ${c}`, () => { 378 | const PROP = "paddingRight"; 379 | const result = resolveLayoutProps({ [PROP]: c }); 380 | expect(result.cssProps.padding).toBeUndefined(); 381 | expect(result.cssProps.paddingLeft).toBeUndefined(); 382 | expect(result.cssProps.paddingRight).toBe(c); 383 | expect(result.cssProps.paddingTop).toBeUndefined(); 384 | expect(result.cssProps.paddingBottom).toBeUndefined(); 385 | expect(result.issues.has(PROP)).toBe(false); 386 | }); 387 | 388 | it(`paddingTop: ${c}`, () => { 389 | const PROP = "paddingTop"; 390 | const result = resolveLayoutProps({ [PROP]: c }); 391 | expect(result.cssProps.padding).toBeUndefined(); 392 | expect(result.cssProps.paddingTop).toBe(c); 393 | expect(result.cssProps.paddingBottom).toBeUndefined(); 394 | expect(result.cssProps.paddingLeft).toBeUndefined(); 395 | expect(result.cssProps.paddingRight).toBeUndefined(); 396 | expect(result.issues.has(PROP)).toBe(false); 397 | }); 398 | 399 | it(`paddingBottom: ${c}`, () => { 400 | const PROP = "paddingBottom"; 401 | const result = resolveLayoutProps({ [PROP]: c }); 402 | expect(result.cssProps.padding).toBeUndefined(); 403 | expect(result.cssProps.paddingTop).toBeUndefined(); 404 | expect(result.cssProps.paddingBottom).toBe(c); 405 | expect(result.cssProps.paddingLeft).toBeUndefined(); 406 | expect(result.cssProps.paddingRight).toBeUndefined(); 407 | expect(result.issues.has(PROP)).toBe(false); 408 | }); 409 | }); 410 | 411 | it("padding (themeVar) 1", () => { 412 | const PROP = "padding"; 413 | const VALUE = THEME_ID; 414 | const result = resolveLayoutProps({ [PROP]: VALUE }); 415 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 416 | expect(result.issues.has(PROP)).toBe(false); 417 | }); 418 | 419 | it("padding (themeVar) 2", () => { 420 | const PROP = "padding"; 421 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 422 | const result = resolveLayoutProps({ [PROP]: VALUE }); 423 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 424 | expect(result.issues.has(PROP)).toBe(false); 425 | }); 426 | 427 | it("padding (themeVar) 3", () => { 428 | const PROP = "padding"; 429 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 430 | const result = resolveLayoutProps({ [PROP]: VALUE }); 431 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 432 | expect(result.issues.has(PROP)).toBe(false); 433 | }); 434 | 435 | it("padding (themeVar) 4", () => { 436 | const PROP = "padding"; 437 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3} ${THEME_ID4}`; 438 | const result = resolveLayoutProps({ [PROP]: VALUE }); 439 | expect(result.cssProps[PROP]).toBe( 440 | `${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE} ${THEME_ID4_VALUE}`, 441 | ); 442 | expect(result.issues.has(PROP)).toBe(false); 443 | }); 444 | 445 | it("paddingHorizontal (themeVar)", () => { 446 | const PROP = "paddingHorizontal"; 447 | const VALUE = THEME_ID; 448 | const result = resolveLayoutProps({ [PROP]: VALUE }); 449 | expect(result.cssProps.paddingLeft).toBe(THEME_ID_VALUE); 450 | expect(result.cssProps.paddingRight).toBe(THEME_ID_VALUE); 451 | expect(result.issues.has(PROP)).toBe(false); 452 | }); 453 | 454 | it("paddingVertical (themeVar)", () => { 455 | const PROP = "paddingVertical"; 456 | const VALUE = THEME_ID; 457 | const result = resolveLayoutProps({ [PROP]: VALUE }); 458 | expect(result.cssProps.paddingTop).toBe(THEME_ID_VALUE); 459 | expect(result.cssProps.paddingBottom).toBe(THEME_ID_VALUE); 460 | expect(result.issues.has(PROP)).toBe(false); 461 | }); 462 | 463 | it("paddingTop (themeVar)", () => { 464 | const PROP = "paddingTop"; 465 | const VALUE = THEME_ID; 466 | const result = resolveLayoutProps({ [PROP]: VALUE }); 467 | expect(result.cssProps.paddingTop).toBe(THEME_ID_VALUE); 468 | expect(result.cssProps.paddingBottom).toBeUndefined(); 469 | expect(result.issues.has(PROP)).toBe(false); 470 | }); 471 | 472 | it("paddingBottom (themeVar)", () => { 473 | const PROP = "paddingBottom"; 474 | const VALUE = THEME_ID; 475 | const result = resolveLayoutProps({ [PROP]: VALUE }); 476 | expect(result.cssProps.paddingTop).toBeUndefined(); 477 | expect(result.cssProps.paddingBottom).toBe(THEME_ID_VALUE); 478 | expect(result.issues.has(PROP)).toBe(false); 479 | }); 480 | 481 | it("paddingLeft (themeVar)", () => { 482 | const PROP = "paddingLeft"; 483 | const VALUE = THEME_ID; 484 | const result = resolveLayoutProps({ [PROP]: VALUE }); 485 | expect(result.cssProps.paddingLeft).toBe(THEME_ID_VALUE); 486 | expect(result.cssProps.paddingRight).toBeUndefined(); 487 | expect(result.issues.has(PROP)).toBe(false); 488 | }); 489 | 490 | it("paddingRight (themeVar)", () => { 491 | const PROP = "paddingRight"; 492 | const VALUE = THEME_ID; 493 | const result = resolveLayoutProps({ [PROP]: VALUE }); 494 | expect(result.cssProps.paddingLeft).toBeUndefined(); 495 | expect(result.cssProps.paddingRight).toBe(THEME_ID_VALUE); 496 | expect(result.issues.has(PROP)).toBe(false); 497 | }); 498 | 499 | sizeCases.forEach((c) => { 500 | it(`paddingHorizontal goes to left and right: ${c}`, () => { 501 | const PROP = "paddingHorizontal"; 502 | const result = resolveLayoutProps({ [PROP]: c }); 503 | expect(result.cssProps.paddingLeft).toBe(c); 504 | expect(result.cssProps.paddingRight).toBe(c); 505 | expect(result.cssProps.paddingTop).toBeUndefined(); 506 | expect(result.cssProps.paddingBottom).toBeUndefined(); 507 | expect(result.issues.has(PROP)).toBe(false); 508 | }); 509 | 510 | it(`paddingVertical goes to top and bottom: ${c}`, () => { 511 | const PROP = "paddingVertical"; 512 | const result = resolveLayoutProps({ [PROP]: c }); 513 | expect(result.cssProps.paddingTop).toBe(c); 514 | expect(result.cssProps.paddingBottom).toBe(c); 515 | expect(result.cssProps.paddingLeft).toBeUndefined(); 516 | expect(result.cssProps.paddingRight).toBeUndefined(); 517 | expect(result.issues.has(PROP)).toBe(false); 518 | }); 519 | 520 | it(`paddingLeft: ${c}`, () => { 521 | const PROP = "paddingLeft"; 522 | const result = resolveLayoutProps({ [PROP]: c }); 523 | expect(result.cssProps.paddingLeft).toBe(c); 524 | expect(result.cssProps.paddingRight).toBeUndefined(); 525 | expect(result.cssProps.paddingTop).toBeUndefined(); 526 | expect(result.cssProps.paddingBottom).toBeUndefined(); 527 | expect(result.issues.has(PROP)).toBe(false); 528 | }); 529 | 530 | it(`paddingRight: ${c}`, () => { 531 | const PROP = "paddingRight"; 532 | const result = resolveLayoutProps({ [PROP]: c }); 533 | expect(result.cssProps.paddingLeft).toBeUndefined(); 534 | expect(result.cssProps.paddingRight).toBe(c); 535 | expect(result.cssProps.paddingTop).toBeUndefined(); 536 | expect(result.cssProps.paddingBottom).toBeUndefined(); 537 | expect(result.issues.has(PROP)).toBe(false); 538 | }); 539 | 540 | it(`paddingTop: ${c}`, () => { 541 | const PROP = "paddingTop"; 542 | const result = resolveLayoutProps({ [PROP]: c }); 543 | expect(result.cssProps.paddingTop).toBe(c); 544 | expect(result.cssProps.paddingBottom).toBeUndefined(); 545 | expect(result.cssProps.paddingLeft).toBeUndefined(); 546 | expect(result.cssProps.paddingRight).toBeUndefined(); 547 | expect(result.issues.has(PROP)).toBe(false); 548 | }); 549 | 550 | it(`paddingBottom: ${c}`, () => { 551 | const PROP = "paddingBottom"; 552 | const result = resolveLayoutProps({ [PROP]: c }); 553 | expect(result.cssProps.paddingTop).toBeUndefined(); 554 | expect(result.cssProps.paddingBottom).toBe(c); 555 | expect(result.cssProps.paddingLeft).toBeUndefined(); 556 | expect(result.cssProps.paddingRight).toBeUndefined(); 557 | expect(result.issues.has(PROP)).toBe(false); 558 | }); 559 | }); 560 | 561 | it(`paddingLeft overrides paddingHorizontal`, () => { 562 | const PROP = "paddingLeft"; 563 | const VALUE = "1px"; 564 | const OVERRIDE = "2px"; 565 | const result = resolveLayoutProps({ paddingHorizontal: OVERRIDE, [PROP]: VALUE }); 566 | expect(result.cssProps.paddingLeft).toBe(VALUE); 567 | expect(result.cssProps.paddingRight).toBe(OVERRIDE); 568 | expect(result.issues.has("paddingHorizontal")).toBe(false); 569 | }); 570 | 571 | it(`paddingRight overrides paddingHorizontal`, () => { 572 | const PROP = "paddingRight"; 573 | const VALUE = "1px"; 574 | const OVERRIDE = "2px"; 575 | const result = resolveLayoutProps({ paddingHorizontal: OVERRIDE, [PROP]: VALUE }); 576 | expect(result.cssProps.paddingLeft).toBe(OVERRIDE); 577 | expect(result.cssProps.paddingRight).toBe(VALUE); 578 | expect(result.issues.has("paddingHorizontal")).toBe(false); 579 | }); 580 | 581 | it(`paddingTop overrides paddingVertical`, () => { 582 | const PROP = "paddingTop"; 583 | const VALUE = "1px"; 584 | const OVERRIDE = "2px"; 585 | const result = resolveLayoutProps({ paddingVertical: OVERRIDE, [PROP]: VALUE }); 586 | expect(result.cssProps.paddingTop).toBe(VALUE); 587 | expect(result.cssProps.paddingBottom).toBe(OVERRIDE); 588 | expect(result.issues.has("paddingVertical")).toBe(false); 589 | }); 590 | 591 | it(`paddingBottom overrides paddingVertical`, () => { 592 | const PROP = "paddingBottom"; 593 | const VALUE = "1px"; 594 | const OVERRIDE = "2px"; 595 | const result = resolveLayoutProps({ paddingVertical: OVERRIDE, [PROP]: VALUE }); 596 | expect(result.cssProps.paddingTop).toBe(OVERRIDE); 597 | expect(result.cssProps.paddingBottom).toBe(VALUE); 598 | expect(result.issues.has("paddingVertical")).toBe(false); 599 | }); 600 | 601 | // --- Borders 602 | it("border: 1px solid red", () => { 603 | const PROP = "border"; 604 | const VALUE = "1px solid red"; 605 | const result = resolveLayoutProps({ [PROP]: VALUE }); 606 | expect(result.cssProps[PROP]).toBe(VALUE); 607 | expect(result.issues.has(PROP)).toBe(false); 608 | }); 609 | 610 | it("border (themeVar) 1", () => { 611 | const PROP = "border"; 612 | const VALUE = THEME_ID; 613 | const result = resolveLayoutProps({ [PROP]: VALUE }); 614 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 615 | expect(result.issues.has(PROP)).toBe(false); 616 | }); 617 | 618 | it("border (themeVar) 2", () => { 619 | const PROP = "border"; 620 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 621 | const result = resolveLayoutProps({ [PROP]: VALUE }); 622 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 623 | expect(result.issues.has(PROP)).toBe(false); 624 | }); 625 | 626 | it("border (themeVar) 3", () => { 627 | const PROP = "border"; 628 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 629 | const result = resolveLayoutProps({ [PROP]: VALUE }); 630 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 631 | expect(result.issues.has(PROP)).toBe(false); 632 | }); 633 | 634 | it("borderTop: 1px solid red", () => { 635 | const PROP = "borderTop"; 636 | const VALUE = "1px solid red"; 637 | const result = resolveLayoutProps({ [PROP]: VALUE }); 638 | expect(result.cssProps[PROP]).toBe(VALUE); 639 | expect(result.issues.has(PROP)).toBe(false); 640 | }); 641 | 642 | it("borderTop (themeVar) 1", () => { 643 | const PROP = "borderTop"; 644 | const VALUE = THEME_ID; 645 | const result = resolveLayoutProps({ [PROP]: VALUE }); 646 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 647 | expect(result.issues.has(PROP)).toBe(false); 648 | }); 649 | 650 | it("borderTop (themeVar) 2", () => { 651 | const PROP = "borderTop"; 652 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 653 | const result = resolveLayoutProps({ [PROP]: VALUE }); 654 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 655 | expect(result.issues.has(PROP)).toBe(false); 656 | }); 657 | 658 | it("borderTop (themeVar) 3", () => { 659 | const PROP = "borderTop"; 660 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 661 | const result = resolveLayoutProps({ [PROP]: VALUE }); 662 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 663 | expect(result.issues.has(PROP)).toBe(false); 664 | }); 665 | 666 | it("borderRight: 1px solid red", () => { 667 | const PROP = "borderRight"; 668 | const VALUE = "1px solid red"; 669 | const result = resolveLayoutProps({ [PROP]: VALUE }); 670 | expect(result.cssProps[PROP]).toBe(VALUE); 671 | expect(result.issues.has(PROP)).toBe(false); 672 | }); 673 | 674 | it("borderRight (themeVar) 1", () => { 675 | const PROP = "borderRight"; 676 | const VALUE = THEME_ID; 677 | const result = resolveLayoutProps({ [PROP]: VALUE }); 678 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 679 | expect(result.issues.has(PROP)).toBe(false); 680 | }); 681 | 682 | it("borderRight (themeVar) 2", () => { 683 | const PROP = "borderRight"; 684 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 685 | const result = resolveLayoutProps({ [PROP]: VALUE }); 686 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 687 | expect(result.issues.has(PROP)).toBe(false); 688 | }); 689 | 690 | it("borderRight (themeVar) 3", () => { 691 | const PROP = "borderRight"; 692 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 693 | const result = resolveLayoutProps({ [PROP]: VALUE }); 694 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 695 | expect(result.issues.has(PROP)).toBe(false); 696 | }); 697 | 698 | it("borderBottom: 1px solid red", () => { 699 | const PROP = "borderBottom"; 700 | const VALUE = "1px solid red"; 701 | const result = resolveLayoutProps({ [PROP]: VALUE }); 702 | expect(result.cssProps[PROP]).toBe(VALUE); 703 | expect(result.issues.has(PROP)).toBe(false); 704 | }); 705 | 706 | it("borderBottom (themeVar) 1", () => { 707 | const PROP = "borderBottom"; 708 | const VALUE = THEME_ID; 709 | const result = resolveLayoutProps({ [PROP]: VALUE }); 710 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 711 | expect(result.issues.has(PROP)).toBe(false); 712 | }); 713 | 714 | it("borderBottom (themeVar) 2", () => { 715 | const PROP = "borderBottom"; 716 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 717 | const result = resolveLayoutProps({ [PROP]: VALUE }); 718 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 719 | expect(result.issues.has(PROP)).toBe(false); 720 | }); 721 | 722 | it("borderBottom (themeVar) 3", () => { 723 | const PROP = "borderBottom"; 724 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 725 | const result = resolveLayoutProps({ [PROP]: VALUE }); 726 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 727 | expect(result.issues.has(PROP)).toBe(false); 728 | }); 729 | 730 | it("borderLeft: 1px solid red", () => { 731 | const PROP = "borderLeft"; 732 | const VALUE = "1px solid red"; 733 | const result = resolveLayoutProps({ [PROP]: VALUE }); 734 | expect(result.cssProps[PROP]).toBe(VALUE); 735 | expect(result.issues.has(PROP)).toBe(false); 736 | }); 737 | 738 | it("borderLeft (themeVar) 1", () => { 739 | const PROP = "borderLeft"; 740 | const VALUE = THEME_ID; 741 | const result = resolveLayoutProps({ [PROP]: VALUE }); 742 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 743 | expect(result.issues.has(PROP)).toBe(false); 744 | }); 745 | 746 | it("borderLeft (themeVar) 2", () => { 747 | const PROP = "borderLeft"; 748 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 749 | const result = resolveLayoutProps({ [PROP]: VALUE }); 750 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 751 | expect(result.issues.has(PROP)).toBe(false); 752 | }); 753 | 754 | it("borderLeft (themeVar) 3", () => { 755 | const PROP = "borderLeft"; 756 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 757 | const result = resolveLayoutProps({ [PROP]: VALUE }); 758 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 759 | expect(result.issues.has(PROP)).toBe(false); 760 | }); 761 | 762 | it("borderColor: red", () => { 763 | const PROP = "borderColor"; 764 | const VALUE = "red"; 765 | const result = resolveLayoutProps({ [PROP]: VALUE }); 766 | expect(result.cssProps[PROP]).toBe(VALUE); 767 | expect(result.issues.has(PROP)).toBe(false); 768 | }); 769 | 770 | it("borderColor (themeVar) 1", () => { 771 | const PROP = "borderColor"; 772 | const VALUE = THEME_ID; 773 | const result = resolveLayoutProps({ [PROP]: VALUE }); 774 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 775 | expect(result.issues.has(PROP)).toBe(false); 776 | }); 777 | 778 | it("borderStyle: solid", () => { 779 | const PROP = "borderStyle"; 780 | const VALUE = "solid"; 781 | const result = resolveLayoutProps({ [PROP]: VALUE }); 782 | expect(result.cssProps[PROP]).toBe(VALUE); 783 | expect(result.issues.has(PROP)).toBe(false); 784 | }); 785 | 786 | it("borderStyle (themeVar) 1", () => { 787 | const PROP = "borderStyle"; 788 | const VALUE = THEME_ID; 789 | const result = resolveLayoutProps({ [PROP]: VALUE }); 790 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 791 | expect(result.issues.has(PROP)).toBe(false); 792 | }); 793 | 794 | it("borderWidth: 1px", () => { 795 | const PROP = "borderWidth"; 796 | const VALUE = "1px"; 797 | const result = resolveLayoutProps({ [PROP]: VALUE }); 798 | expect(result.cssProps[PROP]).toBe(VALUE); 799 | expect(result.issues.has(PROP)).toBe(false); 800 | }); 801 | 802 | it("borderWidth (themeVar) 1", () => { 803 | const PROP = "borderWidth"; 804 | const VALUE = THEME_ID; 805 | const result = resolveLayoutProps({ [PROP]: VALUE }); 806 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 807 | expect(result.issues.has(PROP)).toBe(false); 808 | }); 809 | 810 | // --- Margins 811 | sizeCases.forEach((c) => { 812 | it(`margin: ${c}`, () => { 813 | const PROP = "margin"; 814 | const result = resolveLayoutProps({ [PROP]: c }); 815 | expect(result.cssProps[PROP]).toBe(c); 816 | expect(result.cssProps.marginLeft).toBeUndefined(); 817 | expect(result.cssProps.marginRight).toBeUndefined(); 818 | expect(result.cssProps.marginTop).toBeUndefined(); 819 | expect(result.cssProps.marginBottom).toBeUndefined(); 820 | expect(result.issues.has(PROP)).toBe(false); 821 | }); 822 | 823 | it(`marginLeft: ${c}`, () => { 824 | const PROP = "marginLeft"; 825 | const result = resolveLayoutProps({ [PROP]: c }); 826 | expect(result.cssProps.margin).toBeUndefined(); 827 | expect(result.cssProps.marginLeft).toBe(c); 828 | expect(result.cssProps.marginRight).toBeUndefined(); 829 | expect(result.cssProps.marginTop).toBeUndefined(); 830 | expect(result.cssProps.marginBottom).toBeUndefined(); 831 | expect(result.issues.has(PROP)).toBe(false); 832 | }); 833 | }); 834 | 835 | it("margin (themeVar) 1", () => { 836 | const PROP = "margin"; 837 | const VALUE = THEME_ID; 838 | const result = resolveLayoutProps({ [PROP]: VALUE }); 839 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 840 | expect(result.issues.has(PROP)).toBe(false); 841 | }); 842 | 843 | it("margin (themeVar) 2", () => { 844 | const PROP = "margin"; 845 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 846 | const result = resolveLayoutProps({ [PROP]: VALUE }); 847 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 848 | expect(result.issues.has(PROP)).toBe(false); 849 | }); 850 | 851 | it("margin (themeVar) 3", () => { 852 | const PROP = "margin"; 853 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 854 | const result = resolveLayoutProps({ [PROP]: VALUE }); 855 | expect(result.cssProps[PROP]).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 856 | expect(result.issues.has(PROP)).toBe(false); 857 | }); 858 | 859 | it("margin (themeVar) 4", () => { 860 | const PROP = "margin"; 861 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3} ${THEME_ID4}`; 862 | const result = resolveLayoutProps({ [PROP]: VALUE }); 863 | expect(result.cssProps[PROP]).toBe( 864 | `${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE} ${THEME_ID4_VALUE}`, 865 | ); 866 | expect(result.issues.has(PROP)).toBe(false); 867 | }); 868 | 869 | it("marginHorizontal (themeVar)", () => { 870 | const PROP = "marginHorizontal"; 871 | const VALUE = THEME_ID; 872 | const result = resolveLayoutProps({ [PROP]: VALUE }); 873 | expect(result.cssProps.marginLeft).toBe(THEME_ID_VALUE); 874 | expect(result.cssProps.marginRight).toBe(THEME_ID_VALUE); 875 | expect(result.issues.has(PROP)).toBe(false); 876 | }); 877 | 878 | it("marginVertical (themeVar)", () => { 879 | const PROP = "marginVertical"; 880 | const VALUE = THEME_ID; 881 | const result = resolveLayoutProps({ [PROP]: VALUE }); 882 | expect(result.cssProps.marginTop).toBe(THEME_ID_VALUE); 883 | expect(result.cssProps.marginBottom).toBe(THEME_ID_VALUE); 884 | expect(result.issues.has(PROP)).toBe(false); 885 | }); 886 | 887 | it("marginTop (themeVar)", () => { 888 | const PROP = "marginTop"; 889 | const VALUE = THEME_ID; 890 | const result = resolveLayoutProps({ [PROP]: VALUE }); 891 | expect(result.cssProps.marginTop).toBe(THEME_ID_VALUE); 892 | expect(result.cssProps.marginBottom).toBeUndefined(); 893 | expect(result.issues.has(PROP)).toBe(false); 894 | }); 895 | 896 | it("marginBottom (themeVar)", () => { 897 | const PROP = "marginBottom"; 898 | const VALUE = THEME_ID; 899 | const result = resolveLayoutProps({ [PROP]: VALUE }); 900 | expect(result.cssProps.marginTop).toBeUndefined(); 901 | expect(result.cssProps.marginBottom).toBe(THEME_ID_VALUE); 902 | expect(result.issues.has(PROP)).toBe(false); 903 | }); 904 | 905 | it("marginLeft (themeVar)", () => { 906 | const PROP = "marginLeft"; 907 | const VALUE = THEME_ID; 908 | const result = resolveLayoutProps({ [PROP]: VALUE }); 909 | expect(result.cssProps.marginLeft).toBe(THEME_ID_VALUE); 910 | expect(result.cssProps.marginRight).toBeUndefined(); 911 | expect(result.issues.has(PROP)).toBe(false); 912 | }); 913 | 914 | it("marginRight (themeVar)", () => { 915 | const PROP = "marginRight"; 916 | const VALUE = THEME_ID; 917 | const result = resolveLayoutProps({ [PROP]: VALUE }); 918 | expect(result.cssProps.marginLeft).toBeUndefined(); 919 | expect(result.cssProps.marginRight).toBe(THEME_ID_VALUE); 920 | expect(result.issues.has(PROP)).toBe(false); 921 | }); 922 | 923 | sizeCases.forEach((c) => { 924 | it(`marginHorizontal goes to left and right: ${c}`, () => { 925 | const PROP = "marginHorizontal"; 926 | const result = resolveLayoutProps({ [PROP]: c }); 927 | expect(result.cssProps.marginLeft).toBe(c); 928 | expect(result.cssProps.marginRight).toBe(c); 929 | expect(result.cssProps.marginTop).toBeUndefined(); 930 | expect(result.cssProps.marginBottom).toBeUndefined(); 931 | expect(result.issues.has(PROP)).toBe(false); 932 | }); 933 | 934 | it(`marginVertical goes to top and bottom: ${c}`, () => { 935 | const PROP = "marginVertical"; 936 | const result = resolveLayoutProps({ [PROP]: c }); 937 | expect(result.cssProps.marginTop).toBe(c); 938 | expect(result.cssProps.marginBottom).toBe(c); 939 | expect(result.cssProps.marginLeft).toBeUndefined(); 940 | expect(result.cssProps.marginRight).toBeUndefined(); 941 | expect(result.issues.has(PROP)).toBe(false); 942 | }); 943 | }); 944 | 945 | it(`marginLeft overrides marginHorizontal`, () => { 946 | const PROP = "marginLeft"; 947 | const VALUE = "1px"; 948 | const OVERRIDE = "2px"; 949 | const result = resolveLayoutProps({ marginHorizontal: OVERRIDE, [PROP]: VALUE }); 950 | expect(result.cssProps.marginLeft).toBe(VALUE); 951 | expect(result.cssProps.marginRight).toBe(OVERRIDE); 952 | expect(result.issues.has("marginHorizontal")).toBe(false); 953 | }); 954 | 955 | it(`marginRight overrides marginHorizontal`, () => { 956 | const PROP = "marginRight"; 957 | const VALUE = "1px"; 958 | const OVERRIDE = "2px"; 959 | const result = resolveLayoutProps({ marginHorizontal: OVERRIDE, [PROP]: VALUE }); 960 | expect(result.cssProps.marginLeft).toBe(OVERRIDE); 961 | expect(result.cssProps.marginRight).toBe(VALUE); 962 | expect(result.issues.has("marginHorizontal")).toBe(false); 963 | }); 964 | 965 | it(`marginTop overrides marginVertical`, () => { 966 | const PROP = "marginTop"; 967 | const VALUE = "1px"; 968 | const OVERRIDE = "2px"; 969 | const result = resolveLayoutProps({ marginVertical: OVERRIDE, [PROP]: VALUE }); 970 | expect(result.cssProps.marginTop).toBe(VALUE); 971 | expect(result.cssProps.marginBottom).toBe(OVERRIDE); 972 | expect(result.issues.has("marginVertical")).toBe(false); 973 | }); 974 | 975 | it(`marginBottom overrides marginVertical`, () => { 976 | const PROP = "marginBottom"; 977 | const VALUE = "1px"; 978 | const OVERRIDE = "2px"; 979 | const result = resolveLayoutProps({ marginVertical: OVERRIDE, [PROP]: VALUE }); 980 | expect(result.cssProps.marginTop).toBe(OVERRIDE); 981 | expect(result.cssProps.marginBottom).toBe(VALUE); 982 | expect(result.issues.has("marginVertical")).toBe(false); 983 | }); 984 | 985 | // --- Radius 986 | it("borderRadius: 4px", () => { 987 | const PROP = "borderRadius"; 988 | const VALUE = "4px"; 989 | const result = resolveLayoutProps({ [PROP]: VALUE }); 990 | expect(result.cssProps.borderRadius).toBe(VALUE); 991 | expect(result.issues.has(PROP)).toBe(false); 992 | }); 993 | 994 | it("borderRadius (themeVar)", () => { 995 | const PROP = "borderRadius"; 996 | const VALUE = THEME_ID; 997 | const result = resolveLayoutProps({ [PROP]: VALUE }); 998 | expect(result.cssProps.borderRadius).toBe(THEME_ID_VALUE); 999 | expect(result.issues.has(PROP)).toBe(false); 1000 | }); 1001 | 1002 | it("radiusTopLeft: 4px", () => { 1003 | const PROP = "radiusTopLeft"; 1004 | const VALUE = "4px"; 1005 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1006 | expect(result.cssProps.borderTopLeftRadius).toBe(VALUE); 1007 | expect(result.issues.has(PROP)).toBe(false); 1008 | }); 1009 | 1010 | it("radiusTopLeft (themeVar)", () => { 1011 | const PROP = "radiusTopLeft"; 1012 | const VALUE = THEME_ID; 1013 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1014 | expect(result.cssProps.borderTopLeftRadius).toBe(THEME_ID_VALUE); 1015 | expect(result.issues.has(PROP)).toBe(false); 1016 | }); 1017 | 1018 | it("radiusTopRight: 4px", () => { 1019 | const PROP = "radiusTopRight"; 1020 | const VALUE = "4px"; 1021 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1022 | expect(result.cssProps.borderTopRightRadius).toBe(VALUE); 1023 | expect(result.issues.has(PROP)).toBe(false); 1024 | }); 1025 | 1026 | it("radiusTopRight (themeVar)", () => { 1027 | const PROP = "radiusTopRight"; 1028 | const VALUE = THEME_ID; 1029 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1030 | expect(result.cssProps.borderTopRightRadius).toBe(THEME_ID_VALUE); 1031 | expect(result.issues.has(PROP)).toBe(false); 1032 | }); 1033 | 1034 | it("radiusBottomRight: 4px", () => { 1035 | const PROP = "radiusBottomRight"; 1036 | const VALUE = "4px"; 1037 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1038 | expect(result.cssProps.borderBottomRightRadius).toBe(VALUE); 1039 | expect(result.issues.has(PROP)).toBe(false); 1040 | }); 1041 | 1042 | it("radiusBottomRight (themeVar)", () => { 1043 | const PROP = "radiusBottomRight"; 1044 | const VALUE = THEME_ID; 1045 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1046 | expect(result.cssProps.borderBottomRightRadius).toBe(THEME_ID_VALUE); 1047 | expect(result.issues.has(PROP)).toBe(false); 1048 | }); 1049 | 1050 | it("radiusBottomLeft: 4px", () => { 1051 | const PROP = "radiusBottomLeft"; 1052 | const VALUE = "4px"; 1053 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1054 | expect(result.cssProps.borderBottomLeftRadius).toBe(VALUE); 1055 | expect(result.issues.has(PROP)).toBe(false); 1056 | }); 1057 | 1058 | it("radiusBottomLeft (themeVar)", () => { 1059 | const PROP = "radiusBottomLeft"; 1060 | const VALUE = THEME_ID; 1061 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1062 | expect(result.cssProps.borderBottomLeftRadius).toBe(THEME_ID_VALUE); 1063 | expect(result.issues.has(PROP)).toBe(false); 1064 | }); 1065 | 1066 | // --- Typography 1067 | it("color: red", () => { 1068 | const PROP = "color"; 1069 | const VALUE = "red"; 1070 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1071 | expect(result.cssProps[PROP]).toBe(VALUE); 1072 | expect(result.issues.has(PROP)).toBe(false); 1073 | }); 1074 | 1075 | it("color (themeVar)", () => { 1076 | const PROP = "color"; 1077 | const VALUE = THEME_ID; 1078 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1079 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1080 | expect(result.issues.has(PROP)).toBe(false); 1081 | }); 1082 | 1083 | it("fontSize: 16px", () => { 1084 | const PROP = "fontSize"; 1085 | const VALUE = "16px"; 1086 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1087 | expect(result.cssProps[PROP]).toBe(VALUE); 1088 | expect(result.issues.has(PROP)).toBe(false); 1089 | }); 1090 | 1091 | it("fontSize (themeVar)", () => { 1092 | const PROP = "fontSize"; 1093 | const VALUE = THEME_ID; 1094 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1095 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1096 | expect(result.issues.has(PROP)).toBe(false); 1097 | }); 1098 | 1099 | it("fontWeight: bold", () => { 1100 | const PROP = "fontWeight"; 1101 | const VALUE = "bold"; 1102 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1103 | expect(result.cssProps[PROP]).toBe(VALUE); 1104 | expect(result.issues.has(PROP)).toBe(false); 1105 | }); 1106 | 1107 | it("fontWeight (themeVar)", () => { 1108 | const PROP = "fontWeight"; 1109 | const VALUE = THEME_ID; 1110 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1111 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1112 | expect(result.issues.has(PROP)).toBe(false); 1113 | }); 1114 | 1115 | it("fontStyle: true", () => { 1116 | const PROP = "fontStyle"; 1117 | const VALUE = "true"; 1118 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1119 | expect(result.cssProps[PROP]).toBe(VALUE); 1120 | expect(result.issues.has(PROP)).toBe(false); 1121 | }); 1122 | 1123 | it("fontStyle (themeVar)", () => { 1124 | const PROP = "fontStyle"; 1125 | const VALUE = THEME_ID; 1126 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1127 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1128 | expect(result.issues.has(PROP)).toBe(false); 1129 | }); 1130 | 1131 | it("textDecoration: underline", () => { 1132 | const PROP = "textDecoration"; 1133 | const VALUE = "underline"; 1134 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1135 | expect(result.cssProps[PROP]).toBe(VALUE); 1136 | expect(result.issues.has(PROP)).toBe(false); 1137 | }); 1138 | 1139 | it("textDecoration (themeVar)", () => { 1140 | const PROP = "textDecoration"; 1141 | const VALUE = THEME_ID; 1142 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1143 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1144 | expect(result.issues.has(PROP)).toBe(false); 1145 | }); 1146 | 1147 | it("userSelect: none", () => { 1148 | const PROP = "userSelect"; 1149 | const VALUE = "none"; 1150 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1151 | expect(result.cssProps[PROP]).toBe(VALUE); 1152 | expect(result.issues.has(PROP)).toBe(false); 1153 | }); 1154 | 1155 | it("userSelect (themeVar)", () => { 1156 | const PROP = "userSelect"; 1157 | const VALUE = THEME_ID; 1158 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1159 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1160 | expect(result.issues.has(PROP)).toBe(false); 1161 | }); 1162 | 1163 | it("letterSpacing: 1px", () => { 1164 | const PROP = "letterSpacing"; 1165 | const VALUE = "1px"; 1166 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1167 | expect(result.cssProps[PROP]).toBe(VALUE); 1168 | expect(result.issues.has(PROP)).toBe(false); 1169 | }); 1170 | 1171 | it("letterSpacing (themeVar)", () => { 1172 | const PROP = "letterSpacing"; 1173 | const VALUE = THEME_ID; 1174 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1175 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1176 | expect(result.issues.has(PROP)).toBe(false); 1177 | }); 1178 | 1179 | it("textTransform: uppercase", () => { 1180 | const PROP = "textTransform"; 1181 | const VALUE = "uppercase"; 1182 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1183 | expect(result.cssProps[PROP]).toBe(VALUE); 1184 | expect(result.issues.has(PROP)).toBe(false); 1185 | }); 1186 | 1187 | it("textTransform (themeVar)", () => { 1188 | const PROP = "textTransform"; 1189 | const VALUE = THEME_ID; 1190 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1191 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1192 | expect(result.issues.has(PROP)).toBe(false); 1193 | }); 1194 | 1195 | it("lineHeight: 1.5", () => { 1196 | const PROP = "lineHeight"; 1197 | const VALUE = "1.5"; 1198 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1199 | expect(result.cssProps[PROP]).toBe(VALUE); 1200 | expect(result.issues.has(PROP)).toBe(false); 1201 | }); 1202 | 1203 | it("lineHeight (themeVar)", () => { 1204 | const PROP = "lineHeight"; 1205 | const VALUE = THEME_ID; 1206 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1207 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1208 | expect(result.issues.has(PROP)).toBe(false); 1209 | }); 1210 | 1211 | it("textAlign: center", () => { 1212 | const PROP = "textAlign"; 1213 | const VALUE = "center"; 1214 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1215 | expect(result.cssProps[PROP]).toBe(VALUE); 1216 | expect(result.issues.has(PROP)).toBe(false); 1217 | }); 1218 | 1219 | it("textAlign (themeVar)", () => { 1220 | const PROP = "textAlign"; 1221 | const VALUE = THEME_ID; 1222 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1223 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1224 | expect(result.issues.has(PROP)).toBe(false); 1225 | }); 1226 | 1227 | it("textAlignLast: center", () => { 1228 | const PROP = "textAlignLast"; 1229 | const VALUE = "center"; 1230 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1231 | expect(result.cssProps[PROP]).toBe(VALUE); 1232 | expect(result.issues.has(PROP)).toBe(false); 1233 | }); 1234 | 1235 | it("textAlignLast (themeVar)", () => { 1236 | const PROP = "textAlignLast"; 1237 | const VALUE = THEME_ID; 1238 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1239 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1240 | expect(result.issues.has(PROP)).toBe(false); 1241 | }); 1242 | 1243 | it("textWrap: wrap", () => { 1244 | const PROP = "textWrap"; 1245 | const VALUE = "wrap"; 1246 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1247 | expect(result.cssProps[PROP]).toBe(VALUE); 1248 | expect(result.issues.has(PROP)).toBe(false); 1249 | }); 1250 | 1251 | it("textWrap (themeVar)", () => { 1252 | const PROP = "textWrap"; 1253 | const VALUE = THEME_ID; 1254 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1255 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1256 | expect(result.issues.has(PROP)).toBe(false); 1257 | }); 1258 | 1259 | // --- Other 1260 | it("backgroundColor: red", () => { 1261 | const PROP = "backgroundColor"; 1262 | const VALUE = "red"; 1263 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1264 | expect(result.cssProps[PROP]).toBe(VALUE); 1265 | expect(result.issues.has(PROP)).toBe(false); 1266 | }); 1267 | 1268 | it("backgroundColor (themeVar)", () => { 1269 | const PROP = "backgroundColor"; 1270 | const VALUE = THEME_ID; 1271 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1272 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1273 | expect(result.issues.has(PROP)).toBe(false); 1274 | }); 1275 | 1276 | it("background: red", () => { 1277 | const PROP = "background"; 1278 | const VALUE = "red"; 1279 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1280 | expect(result.cssProps.background).toBe(VALUE); 1281 | expect(result.issues.has(PROP)).toBe(false); 1282 | }); 1283 | 1284 | it("background (themeVar)", () => { 1285 | const PROP = "background"; 1286 | const VALUE = THEME_ID; 1287 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1288 | expect(result.cssProps.background).toBe(THEME_ID_VALUE); 1289 | expect(result.issues.has(PROP)).toBe(false); 1290 | }); 1291 | 1292 | it("boxShadow: 1px 1px 1px red", () => { 1293 | const PROP = "boxShadow"; 1294 | const VALUE = "1px 1px 1px red"; 1295 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1296 | expect(result.cssProps.boxShadow).toBe(VALUE); 1297 | expect(result.issues.has(PROP)).toBe(false); 1298 | }); 1299 | 1300 | it("boxShadow (themeVar) 1", () => { 1301 | const PROP = "boxShadow"; 1302 | const VALUE = THEME_ID; 1303 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1304 | expect(result.cssProps.boxShadow).toBe(THEME_ID_VALUE); 1305 | expect(result.issues.has(PROP)).toBe(false); 1306 | }); 1307 | 1308 | it("boxShadow (themeVar) 2", () => { 1309 | const PROP = "boxShadow"; 1310 | const VALUE = `${THEME_ID} ${THEME_ID2}`; 1311 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1312 | expect(result.cssProps.boxShadow).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE}`); 1313 | expect(result.issues.has(PROP)).toBe(false); 1314 | }); 1315 | 1316 | it("boxShadow (themeVar) 3", () => { 1317 | const PROP = "boxShadow"; 1318 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3}`; 1319 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1320 | expect(result.cssProps.boxShadow).toBe(`${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE}`); 1321 | expect(result.issues.has(PROP)).toBe(false); 1322 | }); 1323 | 1324 | it("boxShadow (themeVar) 4", () => { 1325 | const PROP = "boxShadow"; 1326 | const VALUE = `${THEME_ID} ${THEME_ID2} ${THEME_ID3} ${THEME_ID4}`; 1327 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1328 | expect(result.cssProps.boxShadow).toBe( 1329 | `${THEME_ID_VALUE} ${THEME_ID2_VALUE} ${THEME_ID3_VALUE} ${THEME_ID4_VALUE}`, 1330 | ); 1331 | expect(result.issues.has(PROP)).toBe(false); 1332 | }); 1333 | 1334 | it("direction: rtl", () => { 1335 | const PROP = "direction"; 1336 | const VALUE = "rtl"; 1337 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1338 | expect(result.cssProps[PROP]).toBe(VALUE); 1339 | expect(result.issues.has(PROP)).toBe(false); 1340 | }); 1341 | 1342 | it("direction (themeVar)", () => { 1343 | const PROP = "direction"; 1344 | const VALUE = THEME_ID; 1345 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1346 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1347 | expect(result.issues.has(PROP)).toBe(false); 1348 | }); 1349 | 1350 | it("overflowX: auto", () => { 1351 | const PROP = "overflowX"; 1352 | const VALUE = "auto"; 1353 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1354 | expect(result.cssProps.overflowX).toBe(VALUE); 1355 | expect(result.issues.has(PROP)).toBe(false); 1356 | }); 1357 | 1358 | it("overflowX (themeVar)", () => { 1359 | const PROP = "overflowX"; 1360 | const VALUE = THEME_ID; 1361 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1362 | expect(result.cssProps.overflowX).toBe(THEME_ID_VALUE); 1363 | expect(result.issues.has(PROP)).toBe(false); 1364 | }); 1365 | 1366 | it("overflowY: auto", () => { 1367 | const PROP = "overflowY"; 1368 | const VALUE = "auto"; 1369 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1370 | expect(result.cssProps.overflowY).toBe(VALUE); 1371 | expect(result.issues.has(PROP)).toBe(false); 1372 | }); 1373 | 1374 | it("overflowY (themeVar)", () => { 1375 | const PROP = "overflowY"; 1376 | const VALUE = THEME_ID; 1377 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1378 | expect(result.cssProps.overflowY).toBe(THEME_ID_VALUE); 1379 | expect(result.issues.has(PROP)).toBe(false); 1380 | }); 1381 | 1382 | it("zIndex: 1", () => { 1383 | const PROP = "zIndex"; 1384 | const VALUE = "1"; 1385 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1386 | expect(result.cssProps[PROP]).toBe(VALUE); 1387 | expect(result.issues.has(PROP)).toBe(false); 1388 | }); 1389 | 1390 | it("zIndex (themeVar)", () => { 1391 | const PROP = "zIndex"; 1392 | const VALUE = THEME_ID; 1393 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1394 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1395 | expect(result.issues.has(PROP)).toBe(false); 1396 | }); 1397 | 1398 | it("opacity: 0.5", () => { 1399 | const PROP = "opacity"; 1400 | const VALUE = "0.5"; 1401 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1402 | expect(result.cssProps[PROP]).toBe(VALUE); 1403 | expect(result.issues.has(PROP)).toBe(false); 1404 | }); 1405 | 1406 | it("opacity (themeVar)", () => { 1407 | const PROP = "opacity"; 1408 | const VALUE = THEME_ID; 1409 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1410 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1411 | expect(result.issues.has(PROP)).toBe(false); 1412 | }); 1413 | 1414 | it("zoom: 0.5", () => { 1415 | const PROP = "zoom"; 1416 | const VALUE = "0.5"; 1417 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1418 | expect(result.cssProps[PROP]).toBe(VALUE); 1419 | expect(result.issues.has(PROP)).toBe(false); 1420 | }); 1421 | 1422 | it("zoom (themeVar)", () => { 1423 | const PROP = "zoom"; 1424 | const VALUE = THEME_ID; 1425 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1426 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1427 | expect(result.issues.has(PROP)).toBe(false); 1428 | }); 1429 | 1430 | it("cursor: pointer", () => { 1431 | const PROP = "cursor"; 1432 | const VALUE = "pointer"; 1433 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1434 | expect(result.cssProps[PROP]).toBe(VALUE); 1435 | expect(result.issues.has(PROP)).toBe(false); 1436 | }); 1437 | 1438 | it("cursor (themeVar)", () => { 1439 | const PROP = "cursor"; 1440 | const VALUE = THEME_ID; 1441 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1442 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1443 | expect(result.issues.has(PROP)).toBe(false); 1444 | }); 1445 | 1446 | it("wrapContent: true", () => { 1447 | const PROP = "wrapContent"; 1448 | const VALUE = true; 1449 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1450 | expect(result.cssProps.flexWrap).toBe("wrap"); 1451 | expect(result.issues.has(PROP)).toBe(false); 1452 | }); 1453 | 1454 | it("wrapContent: false", () => { 1455 | const PROP = "wrapContent"; 1456 | const VALUE = false; 1457 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1458 | expect(result.cssProps.flexWrap).toBe("nowrap"); 1459 | expect(result.issues.has(PROP)).toBe(false); 1460 | }); 1461 | 1462 | it("wrapContent (themeVar)", () => { 1463 | const PROP = "wrapContent"; 1464 | const VALUE = THEME_ID; 1465 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1466 | expect(result.cssProps.flexWrap).toBe("nowrap"); 1467 | expect(result.issues.has(PROP)).toBe(false); 1468 | }); 1469 | 1470 | it("canShrink: true", () => { 1471 | const PROP = "canShrink"; 1472 | const VALUE = true; 1473 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1474 | expect(result.cssProps.flexShrink).toBe(1); 1475 | expect(result.issues.has(PROP)).toBe(false); 1476 | }); 1477 | 1478 | it("canShrink: false", () => { 1479 | const PROP = "canShrink"; 1480 | const VALUE = false; 1481 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1482 | expect(result.cssProps.flexShrink).toBe(0); 1483 | expect(result.issues.has(PROP)).toBe(false); 1484 | }); 1485 | 1486 | it("canShrink (themeVar)", () => { 1487 | const PROP = "canShrink"; 1488 | const VALUE = THEME_ID; 1489 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1490 | expect(result.cssProps.flexShrink).toBe(0); 1491 | expect(result.issues.has(PROP)).toBe(false); 1492 | }); 1493 | 1494 | it("whiteSpace: nowrap", () => { 1495 | const PROP = "whiteSpace"; 1496 | const VALUE = "nowrap"; 1497 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1498 | expect(result.cssProps[PROP]).toBe(VALUE); 1499 | expect(result.issues.has(PROP)).toBe(false); 1500 | }); 1501 | 1502 | it("whiteSpace (themeVar)", () => { 1503 | const PROP = "whiteSpace"; 1504 | const VALUE = THEME_ID; 1505 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1506 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1507 | expect(result.issues.has(PROP)).toBe(false); 1508 | }); 1509 | 1510 | it("transform", () => { 1511 | const PROP = "transform"; 1512 | const VALUE = "rotate(23deg)"; 1513 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1514 | expect(result.cssProps[PROP]).toBe(VALUE); 1515 | expect(result.issues.has(PROP)).toBe(false); 1516 | }); 1517 | 1518 | it("transform (themeVar)", () => { 1519 | const PROP = "transform"; 1520 | const VALUE = THEME_ID; 1521 | const result = resolveLayoutProps({ [PROP]: VALUE }); 1522 | expect(result.cssProps[PROP]).toBe(THEME_ID_VALUE); 1523 | expect(result.issues.has(PROP)).toBe(false); 1524 | }); 1525 | }); 1526 | ```