This is page 155 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 │ └── twelve-guests-care.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/src/components/Accordion/Accordion.spec.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { test, expect } from "../../testing/fixtures"; 2 | 3 | const CODE = ` 4 | <Accordion> 5 | <AccordionItem>Hello</AccordionItem> 6 | </Accordion> 7 | `; 8 | 9 | // ============================================================================= 10 | // BASIC FUNCTIONALITY TESTS 11 | // ============================================================================= 12 | 13 | test("clicking on header expands content", async ({ initTestBed, page }) => { 14 | await initTestBed( 15 | `<Accordion> 16 | <AccordionItem header="header-here">Content</AccordionItem> 17 | </Accordion>`, 18 | ); 19 | 20 | const header = page.getByText("header-here"); 21 | const content = page.getByText("Content"); 22 | 23 | await expect(content).not.toBeVisible(); 24 | await header.click(); 25 | await expect(content).toBeVisible(); 26 | }); 27 | 28 | test("component renders custom header with headerTemplate prop", async ({ initTestBed, page }) => { 29 | await initTestBed( 30 | ` 31 | <Accordion> 32 | <AccordionItem> 33 | <property name="headerTemplate"> 34 | <Text>Click me</Text> 35 | </property> 36 | Simple header content 37 | </AccordionItem> 38 | </Accordion> 39 | `, 40 | {}, 41 | ); 42 | const content = page.getByText("Simple header content"); 43 | await expect(content).not.toBeVisible(); 44 | 45 | const templatedButton = page.getByText("Click me"); 46 | await templatedButton.click(); 47 | 48 | await expect(content).toBeVisible(); 49 | }); 50 | // ============================================================================= 51 | // ACCESSIBILITY TESTS 52 | // ============================================================================= 53 | 54 | test("AccordionItem has correct accessibility attributes", async ({ initTestBed, page }) => { 55 | await initTestBed( 56 | `<Accordion> 57 | <AccordionItem header="header-here">Content</AccordionItem> 58 | </Accordion>`, 59 | ); 60 | 61 | const header = page.getByRole("button"); 62 | 63 | await expect(header).toContainText("header-here"); 64 | await expect(header).toHaveAttribute("aria-expanded", "false"); 65 | 66 | await header.click(); 67 | await expect(header).toHaveAttribute("aria-expanded", "true"); 68 | }); 69 | 70 | test("pressing enter on header expands content", async ({ initTestBed, page }) => { 71 | await initTestBed( 72 | `<Accordion> 73 | <AccordionItem header="header-here">Content</AccordionItem> 74 | </Accordion>`, 75 | ); 76 | 77 | const header = page.getByRole("button"); 78 | const content = page.getByText("Content"); 79 | 80 | await expect(content).not.toBeVisible(); 81 | await header.focus(); 82 | await page.keyboard.press("Enter"); 83 | await expect(content).toBeVisible(); 84 | }); 85 | 86 | // ============================================================================= 87 | // VISUAL STATE TESTS 88 | // ============================================================================= 89 | 90 | test("applies border to all sides with single theme var", async ({ 91 | initTestBed, 92 | createAccordionDriver, 93 | }) => { 94 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 95 | const EXPECTED_WIDTH = "5px"; 96 | const EXPECTED_STYLE = "dotted"; 97 | 98 | await initTestBed(CODE, { 99 | testThemeVars: { 100 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 101 | }, 102 | }); 103 | const component = (await createAccordionDriver()).component; 104 | 105 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 106 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 107 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 108 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 109 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 110 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 111 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 112 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 113 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 114 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 115 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 116 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 117 | }); 118 | 119 | test("applies only left border with borderLeft theme var", async ({ 120 | initTestBed, 121 | createAccordionDriver, 122 | }) => { 123 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 124 | const EXPECTED_WIDTH = "5px"; 125 | const EXPECTED_STYLE = "dotted"; 126 | 127 | await initTestBed(CODE, { 128 | testThemeVars: { 129 | "borderLeft-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 130 | }, 131 | }); 132 | const component = (await createAccordionDriver()).component; 133 | 134 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 135 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 136 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 137 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 138 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 139 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 140 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 141 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 142 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 143 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 144 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 145 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 146 | }); 147 | 148 | test("applies only right border with borderRight theme var", async ({ 149 | initTestBed, 150 | createAccordionDriver, 151 | }) => { 152 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 153 | const EXPECTED_WIDTH = "5px"; 154 | const EXPECTED_STYLE = "dotted"; 155 | 156 | await initTestBed(CODE, { 157 | testThemeVars: { 158 | "borderRight-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 159 | }, 160 | }); 161 | const component = (await createAccordionDriver()).component; 162 | 163 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 164 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 165 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 166 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 167 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 168 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 169 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 170 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 171 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 172 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 173 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 174 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 175 | }); 176 | 177 | test("applies left and right borders with borderHorizontal theme var", async ({ 178 | initTestBed, 179 | createAccordionDriver, 180 | }) => { 181 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 182 | const EXPECTED_WIDTH = "5px"; 183 | const EXPECTED_STYLE = "dotted"; 184 | 185 | await initTestBed(CODE, { 186 | testThemeVars: { 187 | "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 188 | }, 189 | }); 190 | const component = (await createAccordionDriver()).component; 191 | 192 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 193 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 194 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 195 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 196 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 197 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 198 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 199 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 200 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 201 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 202 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 203 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 204 | }); 205 | 206 | test("prioritizes borderLeft over borderHorizontal when both set", async ({ 207 | initTestBed, 208 | createAccordionDriver, 209 | }) => { 210 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 211 | const EXPECTED_WIDTH = "5px"; 212 | const EXPECTED_STYLE = "dotted"; 213 | 214 | await initTestBed(CODE, { 215 | testThemeVars: { 216 | "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 217 | "borderLeft-Accordion": "8px double rgb(0, 128, 0)", 218 | }, 219 | }); 220 | const component = (await createAccordionDriver()).component; 221 | 222 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 223 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 224 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 225 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 226 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 227 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 228 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 229 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 230 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 231 | await expect(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)"); 232 | await expect(component).toHaveCSS("border-left-width", "8px"); 233 | await expect(component).toHaveCSS("border-left-style", "double"); 234 | }); 235 | 236 | test("prioritizes borderRight over borderHorizontal when both set", async ({ 237 | initTestBed, 238 | createAccordionDriver, 239 | }) => { 240 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 241 | const EXPECTED_WIDTH = "5px"; 242 | const EXPECTED_STYLE = "dotted"; 243 | 244 | await initTestBed(CODE, { 245 | testThemeVars: { 246 | "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 247 | "borderRight-Accordion": "8px double rgb(0, 128, 0)", 248 | }, 249 | }); 250 | const component = (await createAccordionDriver()).component; 251 | 252 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 253 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 254 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 255 | await expect(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)"); 256 | await expect(component).toHaveCSS("border-right-width", "8px"); 257 | await expect(component).toHaveCSS("border-right-style", "double"); 258 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 259 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 260 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 261 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 262 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 263 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 264 | }); 265 | 266 | test("applies only top border with borderTop theme var", async ({ 267 | initTestBed, 268 | createAccordionDriver, 269 | }) => { 270 | // TODO: Review this test, often results in flaky 271 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 272 | const EXPECTED_WIDTH = "5px"; 273 | const EXPECTED_STYLE = "dotted"; 274 | 275 | await initTestBed(CODE, { 276 | testThemeVars: { 277 | "borderTop-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 278 | }, 279 | }); 280 | const component = (await createAccordionDriver()).component; 281 | 282 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 283 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 284 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 285 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 286 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 287 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 288 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 289 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 290 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 291 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 292 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 293 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 294 | }); 295 | 296 | test("applies only bottom border with borderBottom theme var", async ({ 297 | initTestBed, 298 | createAccordionDriver, 299 | }) => { 300 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 301 | const EXPECTED_WIDTH = "5px"; 302 | const EXPECTED_STYLE = "dotted"; 303 | 304 | await initTestBed(CODE, { 305 | testThemeVars: { 306 | "borderBottom-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 307 | }, 308 | }); 309 | const component = (await createAccordionDriver()).component; 310 | 311 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 312 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 313 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 314 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 315 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 316 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 317 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 318 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 319 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 320 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 321 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 322 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 323 | }); 324 | 325 | test("applies top and bottom borders with borderVertical theme var", async ({ 326 | initTestBed, 327 | createAccordionDriver, 328 | }) => { 329 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 330 | const EXPECTED_WIDTH = "5px"; 331 | const EXPECTED_STYLE = "dotted"; 332 | 333 | await initTestBed(CODE, { 334 | testThemeVars: { 335 | "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 336 | }, 337 | }); 338 | const component = (await createAccordionDriver()).component; 339 | 340 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 341 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 342 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 343 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 344 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 345 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 346 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 347 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 348 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 349 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 350 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 351 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 352 | }); 353 | 354 | test("prioritizes borderTop over borderVertical when both set", async ({ 355 | initTestBed, 356 | createAccordionDriver, 357 | }) => { 358 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 359 | const EXPECTED_WIDTH = "5px"; 360 | const EXPECTED_STYLE = "dotted"; 361 | 362 | await initTestBed(CODE, { 363 | testThemeVars: { 364 | "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 365 | "borderTop-Accordion": "8px double rgb(0, 128, 0)", 366 | }, 367 | }); 368 | const component = (await createAccordionDriver()).component; 369 | 370 | await expect(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)"); 371 | await expect(component).toHaveCSS("border-top-width", "8px"); 372 | await expect(component).toHaveCSS("border-top-style", "double"); 373 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 374 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 375 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 376 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 377 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 378 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 379 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 380 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 381 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 382 | }); 383 | 384 | test("prioritizes borderBottom over borderVertical when both set", async ({ 385 | initTestBed, 386 | createAccordionDriver, 387 | }) => { 388 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 389 | const EXPECTED_WIDTH = "5px"; 390 | const EXPECTED_STYLE = "dotted"; 391 | 392 | await initTestBed(CODE, { 393 | testThemeVars: { 394 | "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 395 | "borderBottom-Accordion": "8px double rgb(0, 128, 0)", 396 | }, 397 | }); 398 | const component = (await createAccordionDriver()).component; 399 | 400 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 401 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 402 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 403 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 404 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 405 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 406 | await expect(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)"); 407 | await expect(component).toHaveCSS("border-bottom-width", "8px"); 408 | await expect(component).toHaveCSS("border-bottom-style", "double"); 409 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 410 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 411 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 412 | }); 413 | 414 | test("applies color to all borders with borderColor theme var", async ({ 415 | initTestBed, 416 | createAccordionDriver, 417 | }) => { 418 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 419 | const EXPECTED_WIDTH = "5px"; 420 | const EXPECTED_STYLE = "dotted"; 421 | 422 | await initTestBed(CODE, { 423 | testThemeVars: { 424 | "borderColor-Accordion": EXPECTED_COLOR, 425 | }, 426 | }); 427 | const component = (await createAccordionDriver()).component; 428 | 429 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 430 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 431 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 432 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 433 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 434 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 435 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 436 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 437 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 438 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 439 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 440 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 441 | }); 442 | 443 | test("prioritizes borderColor over border's color value", async ({ 444 | initTestBed, 445 | createAccordionDriver, 446 | }) => { 447 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 448 | const EXPECTED_WIDTH = "5px"; 449 | const EXPECTED_STYLE = "dotted"; 450 | const UPDATED = "rgb(0, 128, 0)"; 451 | 452 | await initTestBed(CODE, { 453 | testThemeVars: { 454 | "borderColor-Accordion": UPDATED, 455 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 456 | }, 457 | }); 458 | const component = (await createAccordionDriver()).component; 459 | 460 | await expect(component).toHaveCSS("border-top-color", UPDATED); 461 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 462 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 463 | await expect(component).toHaveCSS("border-right-color", UPDATED); 464 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 465 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 466 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 467 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 468 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 469 | await expect(component).toHaveCSS("border-left-color", UPDATED); 470 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 471 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 472 | }); 473 | 474 | test("applies horizontal border colors over default border", async ({ 475 | initTestBed, 476 | createAccordionDriver, 477 | }) => { 478 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 479 | const EXPECTED_WIDTH = "5px"; 480 | const EXPECTED_STYLE = "dotted"; 481 | const UPDATED = "rgb(0, 128, 0)"; 482 | 483 | await initTestBed(CODE, { 484 | testThemeVars: { 485 | "borderHorizontalColor-Accordion": UPDATED, 486 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 487 | }, 488 | }); 489 | const component = (await createAccordionDriver()).component; 490 | 491 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 492 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 493 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 494 | await expect(component).toHaveCSS("border-right-color", UPDATED); 495 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 496 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 497 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 498 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 499 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 500 | await expect(component).toHaveCSS("border-left-color", UPDATED); 501 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 502 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 503 | }); 504 | 505 | test("prioritizes left border color over default border", async ({ 506 | initTestBed, 507 | createAccordionDriver, 508 | }) => { 509 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 510 | const EXPECTED_WIDTH = "5px"; 511 | const EXPECTED_STYLE = "dotted"; 512 | const UPDATED = "rgb(0, 128, 0)"; 513 | 514 | await initTestBed(CODE, { 515 | testThemeVars: { 516 | "borderLeftColor-Accordion": UPDATED, 517 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 518 | }, 519 | }); 520 | const component = (await createAccordionDriver()).component; 521 | 522 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 523 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 524 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 525 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 526 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 527 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 528 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 529 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 530 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 531 | await expect(component).toHaveCSS("border-left-color", UPDATED); 532 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 533 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 534 | }); 535 | 536 | test("prioritizes right border color over default border", async ({ 537 | initTestBed, 538 | createAccordionDriver, 539 | }) => { 540 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 541 | const EXPECTED_WIDTH = "5px"; 542 | const EXPECTED_STYLE = "dotted"; 543 | const UPDATED = "rgb(0, 128, 0)"; 544 | 545 | await initTestBed(CODE, { 546 | testThemeVars: { 547 | "borderRightColor-Accordion": UPDATED, 548 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 549 | }, 550 | }); 551 | const component = (await createAccordionDriver()).component; 552 | 553 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 554 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 555 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 556 | await expect(component).toHaveCSS("border-right-color", UPDATED); 557 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 558 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 559 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 560 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 561 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 562 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 563 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 564 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 565 | }); 566 | 567 | test("applies vertical border colors over default border", async ({ 568 | initTestBed, 569 | createAccordionDriver, 570 | }) => { 571 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 572 | const EXPECTED_WIDTH = "5px"; 573 | const EXPECTED_STYLE = "dotted"; 574 | const UPDATED = "rgb(0, 128, 0)"; 575 | 576 | await initTestBed(CODE, { 577 | testThemeVars: { 578 | "borderVerticalColor-Accordion": UPDATED, 579 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 580 | }, 581 | }); 582 | const component = (await createAccordionDriver()).component; 583 | 584 | await expect(component).toHaveCSS("border-top-color", UPDATED); 585 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 586 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 587 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 588 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 589 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 590 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 591 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 592 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 593 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 594 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 595 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 596 | }); 597 | 598 | test("prioritizes top border color over default border", async ({ 599 | initTestBed, 600 | createAccordionDriver, 601 | }) => { 602 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 603 | const EXPECTED_WIDTH = "5px"; 604 | const EXPECTED_STYLE = "dotted"; 605 | const UPDATED = "rgb(0, 128, 0)"; 606 | 607 | await initTestBed(CODE, { 608 | testThemeVars: { 609 | "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 610 | "borderTop-Accordion": "8px double rgb(0, 128, 0)", 611 | }, 612 | }); 613 | const component = (await createAccordionDriver()).component; 614 | 615 | await expect(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)"); 616 | await expect(component).toHaveCSS("border-top-width", "8px"); 617 | await expect(component).toHaveCSS("border-top-style", "double"); 618 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 619 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 620 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 621 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 622 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 623 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 624 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 625 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 626 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 627 | }); 628 | 629 | test("prioritizes bottom border color over default border", async ({ 630 | initTestBed, 631 | createAccordionDriver, 632 | }) => { 633 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 634 | const EXPECTED_WIDTH = "5px"; 635 | const EXPECTED_STYLE = "dotted"; 636 | const UPDATED = "rgb(0, 128, 0)"; 637 | 638 | await initTestBed(CODE, { 639 | testThemeVars: { 640 | "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 641 | "borderBottom-Accordion": "8px double rgb(0, 128, 0)", 642 | }, 643 | }); 644 | const component = (await createAccordionDriver()).component; 645 | 646 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 647 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 648 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 649 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 650 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 651 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 652 | await expect(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)"); 653 | await expect(component).toHaveCSS("border-bottom-width", "8px"); 654 | await expect(component).toHaveCSS("border-bottom-style", "double"); 655 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 656 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 657 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 658 | }); 659 | 660 | test("applies style to all borders with borderStyle theme var", async ({ 661 | initTestBed, 662 | createAccordionDriver, 663 | }) => { 664 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 665 | const EXPECTED_WIDTH = "5px"; 666 | const EXPECTED_STYLE = "dotted"; 667 | 668 | await initTestBed(CODE, { 669 | testThemeVars: { 670 | "borderStyle-Accordion": EXPECTED_STYLE, 671 | }, 672 | }); 673 | const component = (await createAccordionDriver()).component; 674 | 675 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 676 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 677 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 678 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 679 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 680 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 681 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 682 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 683 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 684 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 685 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 686 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 687 | }); 688 | 689 | test("prioritizes borderStyle over border's style value", async ({ 690 | initTestBed, 691 | createAccordionDriver, 692 | }) => { 693 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 694 | const EXPECTED_WIDTH = "5px"; 695 | const EXPECTED_STYLE = "dotted"; 696 | const UPDATED = "double"; 697 | 698 | await initTestBed(CODE, { 699 | testThemeVars: { 700 | "borderStyle-Accordion": UPDATED, 701 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 702 | }, 703 | }); 704 | const component = (await createAccordionDriver()).component; 705 | 706 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 707 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 708 | await expect(component).toHaveCSS("border-top-style", UPDATED); 709 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 710 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 711 | await expect(component).toHaveCSS("border-right-style", UPDATED); 712 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 713 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 714 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 715 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 716 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 717 | await expect(component).toHaveCSS("border-left-style", UPDATED); 718 | }); 719 | 720 | test("applies horizontal border styles over default border", async ({ 721 | initTestBed, 722 | createAccordionDriver, 723 | }) => { 724 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 725 | const EXPECTED_WIDTH = "5px"; 726 | const EXPECTED_STYLE = "dotted"; 727 | const UPDATED = "double"; 728 | 729 | await initTestBed(CODE, { 730 | testThemeVars: { 731 | "borderHorizontalStyle-Accordion": UPDATED, 732 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 733 | }, 734 | }); 735 | const component = (await createAccordionDriver()).component; 736 | 737 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 738 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 739 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 740 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 741 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 742 | await expect(component).toHaveCSS("border-right-style", UPDATED); 743 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 744 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 745 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 746 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 747 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 748 | await expect(component).toHaveCSS("border-left-style", UPDATED); 749 | }); 750 | 751 | test("prioritizes left border style over default border", async ({ 752 | initTestBed, 753 | createAccordionDriver, 754 | }) => { 755 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 756 | const EXPECTED_WIDTH = "5px"; 757 | const EXPECTED_STYLE = "dotted"; 758 | const UPDATED = "double"; 759 | 760 | await initTestBed(CODE, { 761 | testThemeVars: { 762 | "borderLeftStyle-Accordion": UPDATED, 763 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 764 | }, 765 | }); 766 | const component = (await createAccordionDriver()).component; 767 | 768 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 769 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 770 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 771 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 772 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 773 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 774 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 775 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 776 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 777 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 778 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 779 | await expect(component).toHaveCSS("border-left-style", UPDATED); 780 | }); 781 | 782 | test("prioritizes right border style over default border", async ({ 783 | initTestBed, 784 | createAccordionDriver, 785 | }) => { 786 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 787 | const EXPECTED_WIDTH = "5px"; 788 | const EXPECTED_STYLE = "dotted"; 789 | const UPDATED = "double"; 790 | 791 | await initTestBed(CODE, { 792 | testThemeVars: { 793 | "borderRightStyle-Accordion": UPDATED, 794 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 795 | }, 796 | }); 797 | const component = (await createAccordionDriver()).component; 798 | 799 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 800 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 801 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 802 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 803 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 804 | await expect(component).toHaveCSS("border-right-style", UPDATED); 805 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 806 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 807 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 808 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 809 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 810 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 811 | }); 812 | 813 | test("applies vertical border styles over default border", async ({ 814 | initTestBed, 815 | createAccordionDriver, 816 | }) => { 817 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 818 | const EXPECTED_WIDTH = "5px"; 819 | const EXPECTED_STYLE = "dotted"; 820 | const UPDATED = "double"; 821 | 822 | await initTestBed(CODE, { 823 | testThemeVars: { 824 | "borderVerticalStyle-Accordion": UPDATED, 825 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 826 | }, 827 | }); 828 | const component = (await createAccordionDriver()).component; 829 | 830 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 831 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 832 | await expect(component).toHaveCSS("border-top-style", UPDATED); 833 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 834 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 835 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 836 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 837 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 838 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 839 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 840 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 841 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 842 | }); 843 | 844 | test("prioritizes top border style over default border", async ({ 845 | initTestBed, 846 | createAccordionDriver, 847 | }) => { 848 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 849 | const EXPECTED_WIDTH = "5px"; 850 | const EXPECTED_STYLE = "dotted"; 851 | const UPDATED = "double"; 852 | 853 | await initTestBed(CODE, { 854 | testThemeVars: { 855 | "borderTopStyle-Accordion": UPDATED, 856 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 857 | }, 858 | }); 859 | const component = (await createAccordionDriver()).component; 860 | 861 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 862 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 863 | await expect(component).toHaveCSS("border-top-style", UPDATED); 864 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 865 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 866 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 867 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 868 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 869 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 870 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 871 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 872 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 873 | }); 874 | 875 | test("prioritizes bottom border style over default border", async ({ 876 | initTestBed, 877 | createAccordionDriver, 878 | }) => { 879 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 880 | const EXPECTED_WIDTH = "5px"; 881 | const EXPECTED_STYLE = "dotted"; 882 | const UPDATED = "double"; 883 | 884 | await initTestBed(CODE, { 885 | testThemeVars: { 886 | "borderBottomStyle-Accordion": UPDATED, 887 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 888 | }, 889 | }); 890 | const component = (await createAccordionDriver()).component; 891 | 892 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 893 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 894 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 895 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 896 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 897 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 898 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 899 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 900 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 901 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 902 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 903 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 904 | }); 905 | 906 | test("applies width to all borders with borderWidth theme var", async ({ 907 | initTestBed, 908 | createAccordionDriver, 909 | }) => { 910 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 911 | const EXPECTED_WIDTH = "8px"; 912 | const EXPECTED_STYLE = "dotted"; 913 | 914 | await initTestBed(CODE, { 915 | testThemeVars: { 916 | "borderWidth-Accordion": EXPECTED_WIDTH, 917 | }, 918 | }); 919 | const component = (await createAccordionDriver()).component; 920 | 921 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 922 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 923 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 924 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 925 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 926 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 927 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 928 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 929 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 930 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 931 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 932 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 933 | }); 934 | 935 | test("prioritizes borderWidth over border's width value", async ({ 936 | initTestBed, 937 | createAccordionDriver, 938 | }) => { 939 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 940 | const EXPECTED_WIDTH = "5px"; 941 | const EXPECTED_STYLE = "dotted"; 942 | const UPDATED = "12px"; 943 | 944 | await initTestBed(CODE, { 945 | testThemeVars: { 946 | "borderWidth-Accordion": UPDATED, 947 | "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 948 | }, 949 | }); 950 | const component = (await createAccordionDriver()).component; 951 | 952 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 953 | await expect(component).toHaveCSS("border-top-width", UPDATED); 954 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 955 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 956 | await expect(component).toHaveCSS("border-right-width", UPDATED); 957 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 958 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 959 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 960 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 961 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 962 | await expect(component).toHaveCSS("border-left-width", UPDATED); 963 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 964 | }); 965 | 966 | test("applies padding to all sides with padding theme var", async ({ 967 | initTestBed, 968 | createAccordionDriver, 969 | }) => { 970 | const EXPECTED = "100px"; 971 | await initTestBed(CODE, { 972 | testThemeVars: { 973 | "padding-Accordion": EXPECTED, 974 | }, 975 | }); 976 | const component = (await createAccordionDriver()).component; 977 | await expect(component).toHaveCSS("padding-top", EXPECTED); 978 | await expect(component).toHaveCSS("padding-right", EXPECTED); 979 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 980 | await expect(component).toHaveCSS("padding-left", EXPECTED); 981 | }); 982 | 983 | test("applies padding to left and right with paddingHorizontal", async ({ 984 | initTestBed, 985 | createAccordionDriver, 986 | }) => { 987 | const EXPECTED = "100px"; 988 | await initTestBed(CODE, { 989 | testThemeVars: { 990 | "paddingHorizontal-Accordion": EXPECTED, 991 | }, 992 | }); 993 | const component = (await createAccordionDriver()).component; 994 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 995 | await expect(component).toHaveCSS("padding-right", EXPECTED); 996 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 997 | await expect(component).toHaveCSS("padding-left", EXPECTED); 998 | }); 999 | 1000 | test("applies padding to left side with paddingLeft", async ({ 1001 | initTestBed, 1002 | createAccordionDriver, 1003 | }) => { 1004 | const EXPECTED = "100px"; 1005 | await initTestBed(CODE, { 1006 | testThemeVars: { 1007 | "paddingLeft-Accordion": EXPECTED, 1008 | }, 1009 | }); 1010 | const component = (await createAccordionDriver()).component; 1011 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1012 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1013 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1014 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1015 | }); 1016 | 1017 | test("applies padding to right side with paddingRight", async ({ 1018 | initTestBed, 1019 | createAccordionDriver, 1020 | }) => { 1021 | const EXPECTED = "100px"; 1022 | await initTestBed(CODE, { 1023 | testThemeVars: { 1024 | "paddingRight-Accordion": EXPECTED, 1025 | }, 1026 | }); 1027 | const component = (await createAccordionDriver()).component; 1028 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1029 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1030 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1031 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1032 | }); 1033 | 1034 | test("applies padding to top and bottom with paddingVertical", async ({ 1035 | initTestBed, 1036 | createAccordionDriver, 1037 | }) => { 1038 | const EXPECTED = "100px"; 1039 | await initTestBed(CODE, { 1040 | testThemeVars: { 1041 | "paddingVertical-Accordion": EXPECTED, 1042 | }, 1043 | }); 1044 | const component = (await createAccordionDriver()).component; 1045 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1046 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1047 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1048 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1049 | }); 1050 | 1051 | test("applies padding to top side with paddingTop", async ({ 1052 | initTestBed, 1053 | createAccordionDriver, 1054 | }) => { 1055 | const EXPECTED = "100px"; 1056 | await initTestBed(CODE, { 1057 | testThemeVars: { 1058 | "paddingTop-Accordion": EXPECTED, 1059 | }, 1060 | }); 1061 | const component = (await createAccordionDriver()).component; 1062 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1063 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1064 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1065 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1066 | }); 1067 | 1068 | test("applies padding to bottom side with paddingBottom", async ({ 1069 | initTestBed, 1070 | createAccordionDriver, 1071 | }) => { 1072 | const EXPECTED = "100px"; 1073 | await initTestBed(CODE, { 1074 | testThemeVars: { 1075 | "paddingBottom-Accordion": EXPECTED, 1076 | }, 1077 | }); 1078 | const component = (await createAccordionDriver()).component; 1079 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1080 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1081 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1082 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1083 | }); 1084 | 1085 | test("prioritizes paddingHorizontal over default padding", async ({ 1086 | initTestBed, 1087 | createAccordionDriver, 1088 | }) => { 1089 | const EXPECTED = "100px"; 1090 | const UPDATED = "48px"; 1091 | await initTestBed(CODE, { 1092 | testThemeVars: { 1093 | "padding-Accordion": EXPECTED, 1094 | "paddingHorizontal-Accordion": UPDATED, 1095 | }, 1096 | }); 1097 | const component = (await createAccordionDriver()).component; 1098 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1099 | await expect(component).toHaveCSS("padding-right", UPDATED); 1100 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1101 | await expect(component).toHaveCSS("padding-left", UPDATED); 1102 | }); 1103 | 1104 | test("prioritizes paddingLeft over default padding", async ({ 1105 | initTestBed, 1106 | createAccordionDriver, 1107 | }) => { 1108 | const EXPECTED = "100px"; 1109 | const UPDATED = "48px"; 1110 | await initTestBed(CODE, { 1111 | testThemeVars: { 1112 | "padding-Accordion": EXPECTED, 1113 | "paddingLeft-Accordion": UPDATED, 1114 | }, 1115 | }); 1116 | const component = (await createAccordionDriver()).component; 1117 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1118 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1119 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1120 | await expect(component).toHaveCSS("padding-left", UPDATED); 1121 | }); 1122 | 1123 | test("prioritizes paddingRight over default padding", async ({ 1124 | initTestBed, 1125 | createAccordionDriver, 1126 | }) => { 1127 | const EXPECTED = "100px"; 1128 | const UPDATED = "48px"; 1129 | await initTestBed(CODE, { 1130 | testThemeVars: { 1131 | "padding-Accordion": EXPECTED, 1132 | "paddingRight-Accordion": UPDATED, 1133 | }, 1134 | }); 1135 | const component = (await createAccordionDriver()).component; 1136 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1137 | await expect(component).toHaveCSS("padding-right", UPDATED); 1138 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1139 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1140 | }); 1141 | 1142 | test("prioritizes paddingVertical over default padding", async ({ 1143 | initTestBed, 1144 | createAccordionDriver, 1145 | }) => { 1146 | const EXPECTED = "100px"; 1147 | const UPDATED = "48px"; 1148 | await initTestBed(CODE, { 1149 | testThemeVars: { 1150 | "padding-Accordion": EXPECTED, 1151 | "paddingVertical-Accordion": UPDATED, 1152 | }, 1153 | }); 1154 | const component = (await createAccordionDriver()).component; 1155 | await expect(component).toHaveCSS("padding-top", UPDATED); 1156 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1157 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 1158 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1159 | }); 1160 | 1161 | test("prioritizes paddingTop over default padding", async ({ 1162 | initTestBed, 1163 | createAccordionDriver, 1164 | }) => { 1165 | const EXPECTED = "100px"; 1166 | const UPDATED = "48px"; 1167 | await initTestBed(CODE, { 1168 | testThemeVars: { 1169 | "padding-Accordion": EXPECTED, 1170 | "paddingTop-Accordion": UPDATED, 1171 | }, 1172 | }); 1173 | const component = (await createAccordionDriver()).component; 1174 | await expect(component).toHaveCSS("padding-top", UPDATED); 1175 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1176 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1177 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1178 | }); 1179 | 1180 | test("prioritizes paddingBottom over default padding", async ({ 1181 | initTestBed, 1182 | createAccordionDriver, 1183 | }) => { 1184 | const EXPECTED = "100px"; 1185 | const UPDATED = "48px"; 1186 | await initTestBed(CODE, { 1187 | testThemeVars: { 1188 | "padding-Accordion": EXPECTED, 1189 | "paddingBottom-Accordion": UPDATED, 1190 | }, 1191 | }); 1192 | const component = (await createAccordionDriver()).component; 1193 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1194 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1195 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 1196 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1197 | }); 1198 | 1199 | // ============================================================================= 1200 | // EDGE CASE TESTS 1201 | // ============================================================================= 1202 | 1203 | test("expanded treats null as false", async ({ initTestBed, page }) => { 1204 | // Test with null expanded prop 1205 | await initTestBed( 1206 | ` 1207 | <Accordion> 1208 | <AccordionItem expanded="{null}">Null Expanded</AccordionItem> 1209 | </Accordion> 1210 | `, 1211 | {}, 1212 | ); 1213 | 1214 | await expect(page.getByText("Null Expanded")).not.toBeVisible(); 1215 | }); 1216 | ```