This is page 175 of 179. Use http://codebase.md/xmlui-org/xmlui/xmlui-standalone.umd.js?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── cold-items-taste.md │ ├── config.json │ ├── empty-spiders-dress.md │ ├── shy-windows-allow.md │ ├── sour-coins-read.md │ ├── tame-zebras-invite.md │ ├── three-ideas-invent.md │ ├── twenty-jeans-watch.md │ ├── warm-spies-melt.md │ └── whole-ways-cry.md ├── .eslintrc.cjs ├── .github │ ├── build-checklist.png │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows │ ├── 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 │ │ ├── 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 │ │ │ └── PageNotFound.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 ├── 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 │ │ │ │ ├── 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 │ ├── actions.md │ ├── AppRoot.md │ ├── component-apis.md │ ├── component-rendering.md │ ├── component-review-checklist.md │ ├── containers.md │ ├── data-sources.md │ ├── e2e-summary.md │ ├── expression-evaluation.md │ ├── glossary.md │ ├── helper-components.md │ ├── index.md │ ├── loaders.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 │ ├── rendering-fundamentals.md │ ├── reusable-components.md │ ├── standalone-apps.md │ ├── state-management.md │ └── xmlui-extensibility.xlsx ├── 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 │ │ │ ├── BehaviorContext.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/Badge/Badge.spec.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { getBounds, getStyles } from "../../testing/component-test-helpers"; 2 | import { test, expect } from "../../testing/fixtures"; 3 | 4 | test.describe("Basic Functionality For All Variants", () => { 5 | test("Component can render", async ({ page, initTestBed }) => { 6 | await initTestBed(`<Badge testId="badge" />`); 7 | await expect(page.getByTestId("badge")).toBeVisible(); 8 | }); 9 | }); 10 | 11 | // ============================================================================= 12 | // BADGE TESTS 13 | // ============================================================================= 14 | 15 | test.describe("Badge-specific Functionality", () => { 16 | test("colorMap background", async ({ initTestBed, page }) => { 17 | const EXPECTED_BG_COLOR_IMP = "rgb(255, 0, 0)"; 18 | const EXPECTED_BG_COLOR_REG = "rgb(255, 255, 0)"; 19 | await initTestBed(` 20 | <Fragment> 21 | <variable name="simpleColorMap" 22 | value="{{ important: '${EXPECTED_BG_COLOR_IMP}', regular: '${EXPECTED_BG_COLOR_REG}' }}" /> 23 | <Badge testId="badgeImp" value="important" colorMap="{simpleColorMap}" /> 24 | <Badge testId="badgeReg" value="regular" colorMap="{simpleColorMap}" /> 25 | </Fragment> 26 | `); 27 | 28 | await expect(page.getByTestId("badgeImp")).toHaveCSS("background-color", EXPECTED_BG_COLOR_IMP); 29 | await expect(page.getByTestId("badgeReg")).toHaveCSS("background-color", EXPECTED_BG_COLOR_REG); 30 | }); 31 | 32 | test("colorMap background and label", async ({ initTestBed, page }) => { 33 | const EXPECTED_TEXT_COLOR_IMP = "rgb(255, 0, 0)"; 34 | const EXPECTED_BG_COLOR_IMP = "rgb(0, 255, 0)"; 35 | const EXPECTED_TEXT_COLOR_REG = "rgb(0, 0, 255)"; 36 | const EXPECTED_BG_COLOR_REG = "rgb(255, 255, 0)"; 37 | 38 | await initTestBed(` 39 | <Fragment> 40 | <variable name="simpleColorMap" 41 | value="{{ 42 | important: {label: '${EXPECTED_TEXT_COLOR_IMP}', background: '${EXPECTED_BG_COLOR_IMP}'}, 43 | regular: {label: '${EXPECTED_TEXT_COLOR_REG}', background: '${EXPECTED_BG_COLOR_REG}'} }}" 44 | /> 45 | <Badge testId="badgeImp" value="important" colorMap="{simpleColorMap}" /> 46 | <Badge testId="badgeReg" value="regular" colorMap="{simpleColorMap}" /> 47 | </Fragment> 48 | `); 49 | 50 | await expect(page.getByTestId("badgeImp")).toHaveCSS("background-color", EXPECTED_BG_COLOR_IMP); 51 | await expect(page.getByTestId("badgeImp")).toHaveCSS("color", EXPECTED_TEXT_COLOR_IMP); 52 | await expect(page.getByTestId("badgeReg")).toHaveCSS("background-color", EXPECTED_BG_COLOR_REG); 53 | await expect(page.getByTestId("badgeReg")).toHaveCSS("color", EXPECTED_TEXT_COLOR_REG); 54 | }); 55 | }); 56 | 57 | // ============================================================================= 58 | // PILL TESTS 59 | // ============================================================================= 60 | 61 | test.describe("Pill-specific Functionality", () => { 62 | test("Is pill shaped", async ({ page, initTestBed }) => { 63 | await initTestBed(`<Badge variant="pill" testId="badge" />`); 64 | 65 | const { width, height } = await getBounds(page.getByTestId("badge")); 66 | const smaller = Math.min(width, height); 67 | const minRadius = smaller / 2; 68 | const { borderRadius } = await getStyles(page.getByTestId("badge"), "border-radius"); 69 | const radius = parseInt(borderRadius, 10); 70 | 71 | expect(radius).toBeGreaterThanOrEqual(minRadius); 72 | }); 73 | 74 | test("fontSize", async ({ initTestBed, createBadgeDriver }) => { 75 | const EXPECTED_FONT_SIZE = "18px"; 76 | await initTestBed(`<Badge variant="pill" value="test content" />`, { 77 | testThemeVars: { 78 | "fontSize-Badge-pill": EXPECTED_FONT_SIZE, 79 | }, 80 | }); 81 | const component = (await createBadgeDriver()).component; 82 | await expect(component).toHaveCSS("font-size", EXPECTED_FONT_SIZE); 83 | }); 84 | 85 | test("fontWeight", async ({ initTestBed, createBadgeDriver }) => { 86 | const EXPECTED_FONT_WEIGHT = "700"; 87 | await initTestBed(`<Badge variant="pill" value="test content" />`, { 88 | testThemeVars: { 89 | "fontWeight-Badge-pill": EXPECTED_FONT_WEIGHT, 90 | }, 91 | }); 92 | const component = (await createBadgeDriver()).component; 93 | await expect(component).toHaveCSS("font-weight", EXPECTED_FONT_WEIGHT); 94 | }); 95 | }); 96 | 97 | // ============================================================================= 98 | // VISUAL STATE TESTS 99 | // ============================================================================= 100 | 101 | test.describe("Theme Vars: Badge", () => { 102 | test("backgroundColor", async ({ initTestBed, page }) => { 103 | const EXPECTED_BG_COLOR = "rgb(255, 0, 0)"; 104 | await initTestBed(`<Badge variant="badge" testId="badge" value="test content"/>`, { 105 | testThemeVars: { 106 | "backgroundColor-Badge": EXPECTED_BG_COLOR, 107 | }, 108 | }); 109 | await expect(page.getByTestId("badge")).toHaveCSS("background-color", EXPECTED_BG_COLOR); 110 | }); 111 | 112 | test("textColor", async ({ initTestBed, page }) => { 113 | const EXPECTED_TEXT_COLOR = "rgb(255, 0, 0)"; 114 | await initTestBed(`<Badge variant="badge" testId="badge" value="test content"/>`, { 115 | testThemeVars: { 116 | "textColor-Badge": EXPECTED_TEXT_COLOR, 117 | }, 118 | }); 119 | await expect(page.getByTestId("badge")).toHaveCSS("color", EXPECTED_TEXT_COLOR); 120 | }); 121 | 122 | test("border", async ({ initTestBed, createBadgeDriver }) => { 123 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 124 | const EXPECTED_WIDTH = "5px"; 125 | const EXPECTED_STYLE = "dotted"; 126 | 127 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 128 | testThemeVars: { 129 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 130 | }, 131 | }); 132 | const component = (await createBadgeDriver()).component; 133 | 134 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 135 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 136 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 137 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 138 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 139 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 140 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 141 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 142 | await expect(component).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("borderLeft", async ({ initTestBed, createBadgeDriver }) => { 149 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 150 | const EXPECTED_WIDTH = "5px"; 151 | const EXPECTED_STYLE = "dotted"; 152 | 153 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 154 | testThemeVars: { 155 | "borderLeft-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 156 | }, 157 | }); 158 | const component = (await createBadgeDriver()).component; 159 | 160 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 161 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 162 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 163 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 164 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 165 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 166 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 167 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 168 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 169 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 170 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 171 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 172 | }); 173 | 174 | test("borderRight", async ({ initTestBed, createBadgeDriver }) => { 175 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 176 | const EXPECTED_WIDTH = "5px"; 177 | const EXPECTED_STYLE = "dotted"; 178 | 179 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 180 | testThemeVars: { 181 | "borderRight-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 182 | }, 183 | }); 184 | const component = (await createBadgeDriver()).component; 185 | 186 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 187 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 188 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 189 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 190 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 191 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 192 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 193 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 194 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 195 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 196 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 197 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 198 | }); 199 | 200 | test("borderHorizontal", async ({ initTestBed, createBadgeDriver }) => { 201 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 202 | const EXPECTED_WIDTH = "5px"; 203 | const EXPECTED_STYLE = "dotted"; 204 | 205 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 206 | testThemeVars: { 207 | "borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 208 | }, 209 | }); 210 | const component = (await createBadgeDriver()).component; 211 | 212 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 213 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 214 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 215 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 216 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 217 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 218 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 219 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 220 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 221 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 222 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 223 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 224 | }); 225 | 226 | test("borderHorizontal and borderLeft", async ({ initTestBed, createBadgeDriver }) => { 227 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 228 | const EXPECTED_WIDTH = "5px"; 229 | const EXPECTED_STYLE = "dotted"; 230 | 231 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 232 | testThemeVars: { 233 | "borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 234 | "borderLeft-Badge": "8px double rgb(0, 128, 0)", 235 | }, 236 | }); 237 | const component = (await createBadgeDriver()).component; 238 | 239 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 240 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 241 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 242 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 243 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 244 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 245 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 246 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 247 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 248 | await expect(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)"); 249 | await expect(component).toHaveCSS("border-left-width", "8px"); 250 | await expect(component).toHaveCSS("border-left-style", "double"); 251 | }); 252 | 253 | test("borderHorizontal and borderRight", async ({ initTestBed, createBadgeDriver }) => { 254 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 255 | const EXPECTED_WIDTH = "5px"; 256 | const EXPECTED_STYLE = "dotted"; 257 | 258 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 259 | testThemeVars: { 260 | "borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 261 | "borderRight-Badge": "8px double rgb(0, 128, 0)", 262 | }, 263 | }); 264 | const component = (await createBadgeDriver()).component; 265 | 266 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 267 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 268 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 269 | await expect(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)"); 270 | await expect(component).toHaveCSS("border-right-width", "8px"); 271 | await expect(component).toHaveCSS("border-right-style", "double"); 272 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 273 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 274 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 275 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 276 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 277 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 278 | }); 279 | 280 | test("borderTop", async ({ initTestBed, createBadgeDriver }) => { 281 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 282 | const EXPECTED_WIDTH = "5px"; 283 | const EXPECTED_STYLE = "dotted"; 284 | 285 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 286 | testThemeVars: { 287 | "borderTop-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 288 | }, 289 | }); 290 | const component = (await createBadgeDriver()).component; 291 | 292 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 293 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 294 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 295 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 296 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 297 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 298 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 299 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 300 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 301 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 302 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 303 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 304 | }); 305 | 306 | test("borderBottom", async ({ initTestBed, createBadgeDriver }) => { 307 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 308 | const EXPECTED_WIDTH = "5px"; 309 | const EXPECTED_STYLE = "dotted"; 310 | 311 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 312 | testThemeVars: { 313 | "borderBottom-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 314 | }, 315 | }); 316 | const component = (await createBadgeDriver()).component; 317 | 318 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 319 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 320 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 321 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 322 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 323 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 324 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 325 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 326 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 327 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 328 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 329 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 330 | }); 331 | 332 | test("borderVertical", async ({ initTestBed, createBadgeDriver }) => { 333 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 334 | const EXPECTED_WIDTH = "5px"; 335 | const EXPECTED_STYLE = "dotted"; 336 | 337 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 338 | testThemeVars: { 339 | "borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 340 | }, 341 | }); 342 | const component = (await createBadgeDriver()).component; 343 | 344 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 345 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 346 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 347 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 348 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 349 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 350 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 351 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 352 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 353 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 354 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 355 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 356 | }); 357 | 358 | test("borderVertical and borderTop", async ({ initTestBed, createBadgeDriver }) => { 359 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 360 | const EXPECTED_WIDTH = "5px"; 361 | const EXPECTED_STYLE = "dotted"; 362 | 363 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 364 | testThemeVars: { 365 | "borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 366 | "borderTop-Badge": "8px double rgb(0, 128, 0)", 367 | }, 368 | }); 369 | const component = (await createBadgeDriver()).component; 370 | 371 | await expect(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)"); 372 | await expect(component).toHaveCSS("border-top-width", "8px"); 373 | await expect(component).toHaveCSS("border-top-style", "double"); 374 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 375 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 376 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 377 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 378 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 379 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 380 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 381 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 382 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 383 | }); 384 | 385 | test("borderVertical and border-bottom", async ({ initTestBed, createBadgeDriver }) => { 386 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 387 | const EXPECTED_WIDTH = "5px"; 388 | const EXPECTED_STYLE = "dotted"; 389 | 390 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 391 | testThemeVars: { 392 | "borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 393 | "borderBottom-Badge": "8px double rgb(0, 128, 0)", 394 | }, 395 | }); 396 | const component = (await createBadgeDriver()).component; 397 | 398 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 399 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 400 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 401 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 402 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 403 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 404 | await expect(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)"); 405 | await expect(component).toHaveCSS("border-bottom-width", "8px"); 406 | await expect(component).toHaveCSS("border-bottom-style", "double"); 407 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 408 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 409 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 410 | }); 411 | 412 | test("border-color", async ({ initTestBed, createBadgeDriver }) => { 413 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 414 | const EXPECTED_WIDTH = "5px"; 415 | const EXPECTED_STYLE = "dotted"; 416 | 417 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 418 | testThemeVars: { 419 | "borderColor-Badge": EXPECTED_COLOR, 420 | }, 421 | }); 422 | const component = (await createBadgeDriver()).component; 423 | 424 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 425 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 426 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 427 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 428 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 429 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 430 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 431 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 432 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 433 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 434 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 435 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 436 | }); 437 | 438 | test("border, border-color", async ({ initTestBed, createBadgeDriver }) => { 439 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 440 | const EXPECTED_WIDTH = "5px"; 441 | const EXPECTED_STYLE = "dotted"; 442 | const UPDATED = "rgb(0, 128, 0)"; 443 | 444 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 445 | testThemeVars: { 446 | "borderColor-Badge": UPDATED, 447 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 448 | }, 449 | }); 450 | const component = (await createBadgeDriver()).component; 451 | 452 | await expect(component).toHaveCSS("border-top-color", UPDATED); 453 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 454 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 455 | await expect(component).toHaveCSS("border-right-color", UPDATED); 456 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 457 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 458 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 459 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 460 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 461 | await expect(component).toHaveCSS("border-left-color", UPDATED); 462 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 463 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 464 | }); 465 | 466 | test("border, border-color-horizontal", async ({ initTestBed, createBadgeDriver }) => { 467 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 468 | const EXPECTED_WIDTH = "5px"; 469 | const EXPECTED_STYLE = "dotted"; 470 | const UPDATED = "rgb(0, 128, 0)"; 471 | 472 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 473 | testThemeVars: { 474 | "borderHorizontalColor-Badge": UPDATED, 475 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 476 | }, 477 | }); 478 | const component = (await createBadgeDriver()).component; 479 | 480 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 481 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 482 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 483 | await expect(component).toHaveCSS("border-right-color", UPDATED); 484 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 485 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 486 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 487 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 488 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 489 | await expect(component).toHaveCSS("border-left-color", UPDATED); 490 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 491 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 492 | }); 493 | 494 | test("border, border-color-left", async ({ initTestBed, createBadgeDriver }) => { 495 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 496 | const EXPECTED_WIDTH = "5px"; 497 | const EXPECTED_STYLE = "dotted"; 498 | const UPDATED = "rgb(0, 128, 0)"; 499 | 500 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 501 | testThemeVars: { 502 | "borderLeftColor-Badge": UPDATED, 503 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 504 | }, 505 | }); 506 | const component = (await createBadgeDriver()).component; 507 | 508 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 509 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 510 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 511 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 512 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 513 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 514 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 515 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 516 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 517 | await expect(component).toHaveCSS("border-left-color", UPDATED); 518 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 519 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 520 | }); 521 | 522 | test("border, border-color-right", async ({ initTestBed, createBadgeDriver }) => { 523 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 524 | const EXPECTED_WIDTH = "5px"; 525 | const EXPECTED_STYLE = "dotted"; 526 | const UPDATED = "rgb(0, 128, 0)"; 527 | 528 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 529 | testThemeVars: { 530 | "borderRightColor-Badge": UPDATED, 531 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 532 | }, 533 | }); 534 | const component = (await createBadgeDriver()).component; 535 | 536 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 537 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 538 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 539 | await expect(component).toHaveCSS("border-right-color", UPDATED); 540 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 541 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 542 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 543 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 544 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 545 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 546 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 547 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 548 | }); 549 | 550 | test("border, border-color-vertical", async ({ initTestBed, createBadgeDriver }) => { 551 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 552 | const EXPECTED_WIDTH = "5px"; 553 | const EXPECTED_STYLE = "dotted"; 554 | const UPDATED = "rgb(0, 128, 0)"; 555 | 556 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 557 | testThemeVars: { 558 | "borderVerticalColor-Badge": UPDATED, 559 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 560 | }, 561 | }); 562 | const component = (await createBadgeDriver()).component; 563 | 564 | await expect(component).toHaveCSS("border-top-color", UPDATED); 565 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 566 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 567 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 568 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 569 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 570 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 571 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 572 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 573 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 574 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 575 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 576 | }); 577 | 578 | test("border, border-color-top", async ({ initTestBed, createBadgeDriver }) => { 579 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 580 | const EXPECTED_WIDTH = "5px"; 581 | const EXPECTED_STYLE = "dotted"; 582 | const UPDATED = "rgb(0, 128, 0)"; 583 | 584 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 585 | testThemeVars: { 586 | "borderTopColor-Badge": UPDATED, 587 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 588 | }, 589 | }); 590 | const component = (await createBadgeDriver()).component; 591 | 592 | await expect(component).toHaveCSS("border-top-color", UPDATED); 593 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 594 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 595 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 596 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 597 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 598 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 599 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 600 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 601 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 602 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 603 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 604 | }); 605 | 606 | test("border, border-color-bottom", async ({ initTestBed, createBadgeDriver }) => { 607 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 608 | const EXPECTED_WIDTH = "5px"; 609 | const EXPECTED_STYLE = "dotted"; 610 | const UPDATED = "rgb(0, 128, 0)"; 611 | 612 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 613 | testThemeVars: { 614 | "borderBottomColor-Badge": UPDATED, 615 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 616 | }, 617 | }); 618 | const component = (await createBadgeDriver()).component; 619 | 620 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 621 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 622 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 623 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 624 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 625 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 626 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 627 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 628 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 629 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 630 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 631 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 632 | }); 633 | 634 | test("border-style", async ({ initTestBed, createBadgeDriver }) => { 635 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 636 | const EXPECTED_WIDTH = "5px"; 637 | const EXPECTED_STYLE = "dotted"; 638 | 639 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 640 | testThemeVars: { 641 | "borderStyle-Badge": EXPECTED_STYLE, 642 | }, 643 | }); 644 | const component = (await createBadgeDriver()).component; 645 | 646 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 647 | await expect(component).not.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).toHaveCSS("border-right-style", EXPECTED_STYLE); 652 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 653 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 654 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 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).toHaveCSS("border-left-style", EXPECTED_STYLE); 658 | }); 659 | 660 | test("border, border-style", async ({ initTestBed, createBadgeDriver }) => { 661 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 662 | const EXPECTED_WIDTH = "5px"; 663 | const EXPECTED_STYLE = "dotted"; 664 | const UPDATED = "double"; 665 | 666 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 667 | testThemeVars: { 668 | "borderStyle-Badge": UPDATED, 669 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 670 | }, 671 | }); 672 | const component = (await createBadgeDriver()).component; 673 | 674 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 675 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 676 | await expect(component).toHaveCSS("border-top-style", UPDATED); 677 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 678 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 679 | await expect(component).toHaveCSS("border-right-style", UPDATED); 680 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 681 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 682 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 683 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 684 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 685 | await expect(component).toHaveCSS("border-left-style", UPDATED); 686 | }); 687 | 688 | test("border, border-style-horizontal", async ({ initTestBed, createBadgeDriver }) => { 689 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 690 | const EXPECTED_WIDTH = "5px"; 691 | const EXPECTED_STYLE = "dotted"; 692 | const UPDATED = "double"; 693 | 694 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 695 | testThemeVars: { 696 | "borderHorizontalStyle-Badge": UPDATED, 697 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 698 | }, 699 | }); 700 | const component = (await createBadgeDriver()).component; 701 | 702 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 703 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 704 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 705 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 706 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 707 | await expect(component).toHaveCSS("border-right-style", UPDATED); 708 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 709 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 710 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 711 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 712 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 713 | await expect(component).toHaveCSS("border-left-style", UPDATED); 714 | }); 715 | 716 | test("border, border-style-left", async ({ initTestBed, createBadgeDriver }) => { 717 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 718 | const EXPECTED_WIDTH = "5px"; 719 | const EXPECTED_STYLE = "dotted"; 720 | const UPDATED = "double"; 721 | 722 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 723 | testThemeVars: { 724 | "borderLeftStyle-Badge": UPDATED, 725 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 726 | }, 727 | }); 728 | const component = (await createBadgeDriver()).component; 729 | 730 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 731 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 732 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 733 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 734 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 735 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 736 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 737 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 738 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 739 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 740 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 741 | await expect(component).toHaveCSS("border-left-style", UPDATED); 742 | }); 743 | 744 | test("border, border-style-right", async ({ initTestBed, createBadgeDriver }) => { 745 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 746 | const EXPECTED_WIDTH = "5px"; 747 | const EXPECTED_STYLE = "dotted"; 748 | const UPDATED = "double"; 749 | 750 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 751 | testThemeVars: { 752 | "borderRightStyle-Badge": UPDATED, 753 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 754 | }, 755 | }); 756 | const component = (await createBadgeDriver()).component; 757 | 758 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 759 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 760 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 761 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 762 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 763 | await expect(component).toHaveCSS("border-right-style", UPDATED); 764 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 765 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 766 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 767 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 768 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 769 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 770 | }); 771 | 772 | test("border, border-style-vertical", async ({ initTestBed, createBadgeDriver }) => { 773 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 774 | const EXPECTED_WIDTH = "5px"; 775 | const EXPECTED_STYLE = "dotted"; 776 | const UPDATED = "double"; 777 | 778 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 779 | testThemeVars: { 780 | "borderVerticalStyle-Badge": UPDATED, 781 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 782 | }, 783 | }); 784 | const component = (await createBadgeDriver()).component; 785 | 786 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 787 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 788 | await expect(component).toHaveCSS("border-top-style", UPDATED); 789 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 790 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 791 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 792 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 793 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 794 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 795 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 796 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 797 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 798 | }); 799 | 800 | test("border, border-style-top", async ({ initTestBed, createBadgeDriver }) => { 801 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 802 | const EXPECTED_WIDTH = "5px"; 803 | const EXPECTED_STYLE = "dotted"; 804 | const UPDATED = "double"; 805 | 806 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 807 | testThemeVars: { 808 | "borderTopStyle-Badge": UPDATED, 809 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 810 | }, 811 | }); 812 | const component = (await createBadgeDriver()).component; 813 | 814 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 815 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 816 | await expect(component).toHaveCSS("border-top-style", UPDATED); 817 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 818 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 819 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 820 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 821 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 822 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 823 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 824 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 825 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 826 | }); 827 | 828 | test("border, border-style-bottom", async ({ initTestBed, createBadgeDriver }) => { 829 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 830 | const EXPECTED_WIDTH = "5px"; 831 | const EXPECTED_STYLE = "dotted"; 832 | const UPDATED = "double"; 833 | 834 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 835 | testThemeVars: { 836 | "borderBottomStyle-Badge": UPDATED, 837 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 838 | }, 839 | }); 840 | const component = (await createBadgeDriver()).component; 841 | 842 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 843 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 844 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 845 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 846 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 847 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 848 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 849 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 850 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 851 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 852 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 853 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 854 | }); 855 | 856 | test("border-thickness", async ({ initTestBed, createBadgeDriver }) => { 857 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 858 | const EXPECTED_WIDTH = "8px"; 859 | const EXPECTED_STYLE = "dotted"; 860 | 861 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 862 | testThemeVars: { 863 | "borderWidth-Badge": EXPECTED_WIDTH, 864 | }, 865 | }); 866 | const component = (await createBadgeDriver()).component; 867 | 868 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 869 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 870 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 871 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 872 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 873 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 874 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 875 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 876 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 877 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 878 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 879 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 880 | }); 881 | 882 | test("border, border-thickness", async ({ initTestBed, createBadgeDriver }) => { 883 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 884 | const EXPECTED_WIDTH = "5px"; 885 | const EXPECTED_STYLE = "dotted"; 886 | const UPDATED = "12px"; 887 | 888 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 889 | testThemeVars: { 890 | "borderWidth-Badge": UPDATED, 891 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 892 | }, 893 | }); 894 | const component = (await createBadgeDriver()).component; 895 | 896 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 897 | await expect(component).toHaveCSS("border-top-width", UPDATED); 898 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 899 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 900 | await expect(component).toHaveCSS("border-right-width", UPDATED); 901 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 902 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 903 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 904 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 905 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 906 | await expect(component).toHaveCSS("border-left-width", UPDATED); 907 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 908 | }); 909 | 910 | test("border, border-thickness-horizontal", async ({ initTestBed, createBadgeDriver }) => { 911 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 912 | const EXPECTED_WIDTH = "5px"; 913 | const EXPECTED_STYLE = "dotted"; 914 | const UPDATED = "12px"; 915 | 916 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 917 | testThemeVars: { 918 | "borderHorizontalWidth-Badge": UPDATED, 919 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 920 | }, 921 | }); 922 | const component = (await createBadgeDriver()).component; 923 | 924 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 925 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 926 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 927 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 928 | await expect(component).toHaveCSS("border-right-width", UPDATED); 929 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 930 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 931 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 932 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 933 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 934 | await expect(component).toHaveCSS("border-left-width", UPDATED); 935 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 936 | }); 937 | 938 | test("border, border-thickness-left", async ({ initTestBed, createBadgeDriver }) => { 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(`<Badge variant="badge" value="test content"/>`, { 945 | testThemeVars: { 946 | "borderLeftWidth-Badge": UPDATED, 947 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 948 | }, 949 | }); 950 | const component = (await createBadgeDriver()).component; 951 | 952 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 953 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 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", EXPECTED_WIDTH); 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", EXPECTED_WIDTH); 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("border, border-thickness-right", async ({ initTestBed, createBadgeDriver }) => { 967 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 968 | const EXPECTED_WIDTH = "5px"; 969 | const EXPECTED_STYLE = "dotted"; 970 | const UPDATED = "12px"; 971 | 972 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 973 | testThemeVars: { 974 | "borderRightWidth-Badge": UPDATED, 975 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 976 | }, 977 | }); 978 | const component = (await createBadgeDriver()).component; 979 | 980 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 981 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 982 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 983 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 984 | await expect(component).toHaveCSS("border-right-width", UPDATED); 985 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 986 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 987 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 988 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 989 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 990 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 991 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 992 | }); 993 | 994 | test("border, border-thickness-vertical", async ({ initTestBed, createBadgeDriver }) => { 995 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 996 | const EXPECTED_WIDTH = "5px"; 997 | const EXPECTED_STYLE = "dotted"; 998 | const UPDATED = "12px"; 999 | 1000 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1001 | testThemeVars: { 1002 | "borderVerticalWidth-Badge": UPDATED, 1003 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1004 | }, 1005 | }); 1006 | const component = (await createBadgeDriver()).component; 1007 | 1008 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1009 | await expect(component).toHaveCSS("border-top-width", UPDATED); 1010 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1011 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1012 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1013 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1014 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1015 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 1016 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1017 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1018 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1019 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1020 | }); 1021 | 1022 | test("border, border-thickness-top", async ({ initTestBed, createBadgeDriver }) => { 1023 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1024 | const EXPECTED_WIDTH = "5px"; 1025 | const EXPECTED_STYLE = "dotted"; 1026 | const UPDATED = "12px"; 1027 | 1028 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1029 | testThemeVars: { 1030 | "borderTopWidth-Badge": UPDATED, 1031 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1032 | }, 1033 | }); 1034 | const component = (await createBadgeDriver()).component; 1035 | 1036 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1037 | await expect(component).toHaveCSS("border-top-width", UPDATED); 1038 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1039 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1040 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1041 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1042 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1043 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1044 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1045 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1046 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1047 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1048 | }); 1049 | 1050 | test("border, border-thickness-bottom", async ({ initTestBed, createBadgeDriver }) => { 1051 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1052 | const EXPECTED_WIDTH = "5px"; 1053 | const EXPECTED_STYLE = "dotted"; 1054 | const UPDATED = "12px"; 1055 | 1056 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1057 | testThemeVars: { 1058 | "borderBottomWidth-Badge": UPDATED, 1059 | "border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1060 | }, 1061 | }); 1062 | const component = (await createBadgeDriver()).component; 1063 | 1064 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1065 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1066 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1067 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1068 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1069 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1070 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1071 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 1072 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1073 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1074 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1075 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1076 | }); 1077 | 1078 | test("padding", async ({ initTestBed, createBadgeDriver }) => { 1079 | const EXPECTED = "100px"; 1080 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1081 | testThemeVars: { 1082 | "padding-Badge": EXPECTED, 1083 | }, 1084 | }); 1085 | const component = (await createBadgeDriver()).component; 1086 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1087 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1088 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1089 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1090 | }); 1091 | 1092 | test("paddingHorizontal", async ({ initTestBed, createBadgeDriver }) => { 1093 | const EXPECTED = "100px"; 1094 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1095 | testThemeVars: { 1096 | "paddingHorizontal-Badge": EXPECTED, 1097 | }, 1098 | }); 1099 | const component = (await createBadgeDriver()).component; 1100 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1101 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1102 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1103 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1104 | }); 1105 | 1106 | test("paddingLeft", async ({ initTestBed, createBadgeDriver }) => { 1107 | const EXPECTED = "100px"; 1108 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1109 | testThemeVars: { 1110 | "paddingLeft-Badge": EXPECTED, 1111 | }, 1112 | }); 1113 | const component = (await createBadgeDriver()).component; 1114 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1115 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1116 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1117 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1118 | }); 1119 | 1120 | test("paddingRight", async ({ initTestBed, createBadgeDriver }) => { 1121 | const EXPECTED = "100px"; 1122 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1123 | testThemeVars: { 1124 | "paddingRight-Badge": EXPECTED, 1125 | }, 1126 | }); 1127 | const component = (await createBadgeDriver()).component; 1128 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1129 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1130 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1131 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1132 | }); 1133 | 1134 | test("paddingVertical", async ({ initTestBed, createBadgeDriver }) => { 1135 | const EXPECTED = "100px"; 1136 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1137 | testThemeVars: { 1138 | "paddingVertical-Badge": EXPECTED, 1139 | }, 1140 | }); 1141 | const component = (await createBadgeDriver()).component; 1142 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1143 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1144 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1145 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1146 | }); 1147 | 1148 | test("paddingTop", async ({ initTestBed, createBadgeDriver }) => { 1149 | const EXPECTED = "100px"; 1150 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1151 | testThemeVars: { 1152 | "paddingTop-Badge": EXPECTED, 1153 | }, 1154 | }); 1155 | const component = (await createBadgeDriver()).component; 1156 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1157 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1158 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 1159 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1160 | }); 1161 | 1162 | test("paddingBottom", async ({ initTestBed, createBadgeDriver }) => { 1163 | const EXPECTED = "100px"; 1164 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1165 | testThemeVars: { 1166 | "paddingBottom-Badge": EXPECTED, 1167 | }, 1168 | }); 1169 | const component = (await createBadgeDriver()).component; 1170 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 1171 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 1172 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1173 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 1174 | }); 1175 | 1176 | test("padding, paddingHorizontal", async ({ initTestBed, createBadgeDriver }) => { 1177 | const EXPECTED = "100px"; 1178 | const UPDATED = "48px"; 1179 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1180 | testThemeVars: { 1181 | "padding-Badge": EXPECTED, 1182 | "paddingHorizontal-Badge": UPDATED, 1183 | }, 1184 | }); 1185 | const component = (await createBadgeDriver()).component; 1186 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1187 | await expect(component).toHaveCSS("padding-right", UPDATED); 1188 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1189 | await expect(component).toHaveCSS("padding-left", UPDATED); 1190 | }); 1191 | 1192 | test("padding, paddingLeft", async ({ initTestBed, createBadgeDriver }) => { 1193 | const EXPECTED = "100px"; 1194 | const UPDATED = "48px"; 1195 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1196 | testThemeVars: { 1197 | "padding-Badge": EXPECTED, 1198 | "paddingLeft-Badge": UPDATED, 1199 | }, 1200 | }); 1201 | const component = (await createBadgeDriver()).component; 1202 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1203 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1204 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1205 | await expect(component).toHaveCSS("padding-left", UPDATED); 1206 | }); 1207 | 1208 | test("padding, paddingRight", async ({ initTestBed, createBadgeDriver }) => { 1209 | const EXPECTED = "100px"; 1210 | const UPDATED = "48px"; 1211 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1212 | testThemeVars: { 1213 | "padding-Badge": EXPECTED, 1214 | "paddingRight-Badge": UPDATED, 1215 | }, 1216 | }); 1217 | const component = (await createBadgeDriver()).component; 1218 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1219 | await expect(component).toHaveCSS("padding-right", UPDATED); 1220 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1221 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1222 | }); 1223 | 1224 | test("padding, paddingVertical", async ({ initTestBed, createBadgeDriver }) => { 1225 | const EXPECTED = "100px"; 1226 | const UPDATED = "48px"; 1227 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1228 | testThemeVars: { 1229 | "padding-Badge": EXPECTED, 1230 | "paddingVertical-Badge": UPDATED, 1231 | }, 1232 | }); 1233 | const component = (await createBadgeDriver()).component; 1234 | await expect(component).toHaveCSS("padding-top", UPDATED); 1235 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1236 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 1237 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1238 | }); 1239 | 1240 | test("padding, paddingTop", async ({ initTestBed, createBadgeDriver }) => { 1241 | const EXPECTED = "100px"; 1242 | const UPDATED = "48px"; 1243 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1244 | testThemeVars: { 1245 | "padding-Badge": EXPECTED, 1246 | "paddingTop-Badge": UPDATED, 1247 | }, 1248 | }); 1249 | const component = (await createBadgeDriver()).component; 1250 | await expect(component).toHaveCSS("padding-top", UPDATED); 1251 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1252 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 1253 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1254 | }); 1255 | 1256 | test("padding, paddingBottom", async ({ initTestBed, createBadgeDriver }) => { 1257 | const EXPECTED = "100px"; 1258 | const UPDATED = "48px"; 1259 | await initTestBed(`<Badge variant="badge" value="test content"/>`, { 1260 | testThemeVars: { 1261 | "padding-Badge": EXPECTED, 1262 | "paddingBottom-Badge": UPDATED, 1263 | }, 1264 | }); 1265 | const component = (await createBadgeDriver()).component; 1266 | await expect(component).toHaveCSS("padding-top", EXPECTED); 1267 | await expect(component).toHaveCSS("padding-right", EXPECTED); 1268 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 1269 | await expect(component).toHaveCSS("padding-left", EXPECTED); 1270 | }); 1271 | }); 1272 | 1273 | test.describe("Theme Vars: Pill", () => { 1274 | test("pill: padding", async ({ initTestBed, createBadgeDriver }) => { 1275 | const EXPECTED_PADDING = "12px"; 1276 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1277 | testThemeVars: { 1278 | "padding-Badge-pill": EXPECTED_PADDING, 1279 | }, 1280 | }); 1281 | const component = (await createBadgeDriver()).component; 1282 | await expect(component).toHaveCSS("padding", EXPECTED_PADDING); 1283 | }); 1284 | 1285 | test("pill: paddingHorizontal", async ({ initTestBed, createBadgeDriver }) => { 1286 | const EXPECTED_PADDING_HORIZONTAL = "6px"; 1287 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1288 | testThemeVars: { 1289 | "paddingHorizontal-Badge-pill": EXPECTED_PADDING_HORIZONTAL, 1290 | }, 1291 | }); 1292 | const component = (await createBadgeDriver()).component; 1293 | await expect(component).toHaveCSS("padding-left", EXPECTED_PADDING_HORIZONTAL); 1294 | await expect(component).toHaveCSS("padding-right", EXPECTED_PADDING_HORIZONTAL); 1295 | }); 1296 | 1297 | test("pill: paddingVertical", async ({ initTestBed, createBadgeDriver }) => { 1298 | const EXPECTED_PADDING_VERTICAL = "8px"; 1299 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1300 | testThemeVars: { 1301 | "paddingVertical-Badge-pill": EXPECTED_PADDING_VERTICAL, 1302 | }, 1303 | }); 1304 | const component = (await createBadgeDriver()).component; 1305 | await expect(component).toHaveCSS("padding-top", EXPECTED_PADDING_VERTICAL); 1306 | await expect(component).toHaveCSS("padding-bottom", EXPECTED_PADDING_VERTICAL); 1307 | }); 1308 | 1309 | test("border", async ({ initTestBed, createBadgeDriver }) => { 1310 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1311 | const EXPECTED_WIDTH = "5px"; 1312 | const EXPECTED_STYLE = "dotted"; 1313 | 1314 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1315 | testThemeVars: { 1316 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1317 | }, 1318 | }); 1319 | const component = (await createBadgeDriver()).component; 1320 | 1321 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1322 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1323 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1324 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1325 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1326 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1327 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1328 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1329 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1330 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1331 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1332 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1333 | }); 1334 | 1335 | test("borderLeft", async ({ initTestBed, createBadgeDriver }) => { 1336 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1337 | const EXPECTED_WIDTH = "5px"; 1338 | const EXPECTED_STYLE = "dotted"; 1339 | 1340 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1341 | testThemeVars: { 1342 | "borderLeft-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1343 | }, 1344 | }); 1345 | const component = (await createBadgeDriver()).component; 1346 | 1347 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1348 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1349 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1350 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1351 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1352 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1353 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1354 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1355 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1356 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1357 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1358 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1359 | }); 1360 | 1361 | test("borderRight", async ({ initTestBed, createBadgeDriver }) => { 1362 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1363 | const EXPECTED_WIDTH = "5px"; 1364 | const EXPECTED_STYLE = "dotted"; 1365 | 1366 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1367 | testThemeVars: { 1368 | "borderRight-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1369 | }, 1370 | }); 1371 | const component = (await createBadgeDriver()).component; 1372 | 1373 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1374 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1375 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1376 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1377 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1378 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1379 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1380 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1381 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1382 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1383 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1384 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1385 | }); 1386 | 1387 | test("borderHorizontal", async ({ initTestBed, createBadgeDriver }) => { 1388 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1389 | const EXPECTED_WIDTH = "5px"; 1390 | const EXPECTED_STYLE = "dotted"; 1391 | 1392 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1393 | testThemeVars: { 1394 | "borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1395 | }, 1396 | }); 1397 | const component = (await createBadgeDriver()).component; 1398 | 1399 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1400 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1401 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1402 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1403 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1404 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1405 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1406 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1407 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1408 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1409 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1410 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1411 | }); 1412 | 1413 | test("borderHorizontal and borderLeft", async ({ initTestBed, createBadgeDriver }) => { 1414 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1415 | const EXPECTED_WIDTH = "5px"; 1416 | const EXPECTED_STYLE = "dotted"; 1417 | 1418 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1419 | testThemeVars: { 1420 | "borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1421 | "borderLeft-Badge-pill": "8px double rgb(0, 128, 0)", 1422 | }, 1423 | }); 1424 | const component = (await createBadgeDriver()).component; 1425 | 1426 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1427 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1428 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1429 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1430 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1431 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1432 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1433 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1434 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1435 | await expect(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)"); 1436 | await expect(component).toHaveCSS("border-left-width", "8px"); 1437 | await expect(component).toHaveCSS("border-left-style", "double"); 1438 | }); 1439 | 1440 | test("borderHorizontal and borderRight", async ({ initTestBed, createBadgeDriver }) => { 1441 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1442 | const EXPECTED_WIDTH = "5px"; 1443 | const EXPECTED_STYLE = "dotted"; 1444 | 1445 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1446 | testThemeVars: { 1447 | "borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1448 | "borderRight-Badge-pill": "8px double rgb(0, 128, 0)", 1449 | }, 1450 | }); 1451 | const component = (await createBadgeDriver()).component; 1452 | 1453 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1454 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1455 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1456 | await expect(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)"); 1457 | await expect(component).toHaveCSS("border-right-width", "8px"); 1458 | await expect(component).toHaveCSS("border-right-style", "double"); 1459 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1460 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1461 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1462 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1463 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1464 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1465 | }); 1466 | 1467 | test("borderTop", async ({ initTestBed, createBadgeDriver }) => { 1468 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1469 | const EXPECTED_WIDTH = "5px"; 1470 | const EXPECTED_STYLE = "dotted"; 1471 | 1472 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1473 | testThemeVars: { 1474 | "borderTop-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1475 | }, 1476 | }); 1477 | const component = (await createBadgeDriver()).component; 1478 | 1479 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1480 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1481 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1482 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1483 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1484 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1485 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1486 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1487 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1488 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1489 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1490 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1491 | }); 1492 | 1493 | test("borderBottom", async ({ initTestBed, createBadgeDriver }) => { 1494 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1495 | const EXPECTED_WIDTH = "5px"; 1496 | const EXPECTED_STYLE = "dotted"; 1497 | 1498 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1499 | testThemeVars: { 1500 | "borderBottom-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1501 | }, 1502 | }); 1503 | const component = (await createBadgeDriver()).component; 1504 | 1505 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1506 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1507 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1508 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1509 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1510 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1511 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1512 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1513 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1514 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1515 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1516 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1517 | }); 1518 | 1519 | test("borderVertical", async ({ initTestBed, createBadgeDriver }) => { 1520 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1521 | const EXPECTED_WIDTH = "5px"; 1522 | const EXPECTED_STYLE = "dotted"; 1523 | 1524 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1525 | testThemeVars: { 1526 | "borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1527 | }, 1528 | }); 1529 | const component = (await createBadgeDriver()).component; 1530 | 1531 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1532 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1533 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1534 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1535 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1536 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1537 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1538 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1539 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1540 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1541 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1542 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1543 | }); 1544 | 1545 | test("borderVertical and borderTop", async ({ initTestBed, createBadgeDriver }) => { 1546 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1547 | const EXPECTED_WIDTH = "5px"; 1548 | const EXPECTED_STYLE = "dotted"; 1549 | 1550 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1551 | testThemeVars: { 1552 | "borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1553 | "borderTop-Badge-pill": "8px double rgb(0, 128, 0)", 1554 | }, 1555 | }); 1556 | const component = (await createBadgeDriver()).component; 1557 | 1558 | await expect(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)"); 1559 | await expect(component).toHaveCSS("border-top-width", "8px"); 1560 | await expect(component).toHaveCSS("border-top-style", "double"); 1561 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1562 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1563 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1564 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1565 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1566 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1567 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1568 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1569 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1570 | }); 1571 | 1572 | test("borderVertical and border-bottom", async ({ initTestBed, createBadgeDriver }) => { 1573 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1574 | const EXPECTED_WIDTH = "5px"; 1575 | const EXPECTED_STYLE = "dotted"; 1576 | 1577 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1578 | testThemeVars: { 1579 | "borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1580 | "borderBottom-Badge-pill": "8px double rgb(0, 128, 0)", 1581 | }, 1582 | }); 1583 | const component = (await createBadgeDriver()).component; 1584 | 1585 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1586 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1587 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1588 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1589 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1590 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1591 | await expect(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)"); 1592 | await expect(component).toHaveCSS("border-bottom-width", "8px"); 1593 | await expect(component).toHaveCSS("border-bottom-style", "double"); 1594 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1595 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1596 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1597 | }); 1598 | 1599 | test("border-color", async ({ initTestBed, createBadgeDriver }) => { 1600 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1601 | const EXPECTED_WIDTH = "5px"; 1602 | const EXPECTED_STYLE = "dotted"; 1603 | 1604 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1605 | testThemeVars: { 1606 | "borderColor-Badge-pill": EXPECTED_COLOR, 1607 | }, 1608 | }); 1609 | const component = (await createBadgeDriver()).component; 1610 | 1611 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1612 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1613 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 1614 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1615 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1616 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 1617 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1618 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1619 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1620 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1621 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1622 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 1623 | }); 1624 | 1625 | test("border, border-color", async ({ initTestBed, createBadgeDriver }) => { 1626 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1627 | const EXPECTED_WIDTH = "5px"; 1628 | const EXPECTED_STYLE = "dotted"; 1629 | const UPDATED = "rgb(0, 128, 0)"; 1630 | 1631 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1632 | testThemeVars: { 1633 | "borderColor-Badge-pill": UPDATED, 1634 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1635 | }, 1636 | }); 1637 | const component = (await createBadgeDriver()).component; 1638 | 1639 | await expect(component).toHaveCSS("border-top-color", UPDATED); 1640 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1641 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1642 | await expect(component).toHaveCSS("border-right-color", UPDATED); 1643 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1644 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1645 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 1646 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1647 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1648 | await expect(component).toHaveCSS("border-left-color", UPDATED); 1649 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1650 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1651 | }); 1652 | 1653 | test("border, border-color-horizontal", async ({ initTestBed, createBadgeDriver }) => { 1654 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1655 | const EXPECTED_WIDTH = "5px"; 1656 | const EXPECTED_STYLE = "dotted"; 1657 | const UPDATED = "rgb(0, 128, 0)"; 1658 | 1659 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1660 | testThemeVars: { 1661 | "borderHorizontalColor-Badge-pill": UPDATED, 1662 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1663 | }, 1664 | }); 1665 | const component = (await createBadgeDriver()).component; 1666 | 1667 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1668 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1669 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1670 | await expect(component).toHaveCSS("border-right-color", UPDATED); 1671 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1672 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1673 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1674 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1675 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1676 | await expect(component).toHaveCSS("border-left-color", UPDATED); 1677 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1678 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1679 | }); 1680 | 1681 | test("border, border-color-left", async ({ initTestBed, createBadgeDriver }) => { 1682 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1683 | const EXPECTED_WIDTH = "5px"; 1684 | const EXPECTED_STYLE = "dotted"; 1685 | const UPDATED = "rgb(0, 128, 0)"; 1686 | 1687 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1688 | testThemeVars: { 1689 | "borderLeftColor-Badge-pill": UPDATED, 1690 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1691 | }, 1692 | }); 1693 | const component = (await createBadgeDriver()).component; 1694 | 1695 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1696 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1697 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1698 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1699 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1700 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1701 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1702 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1703 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1704 | await expect(component).toHaveCSS("border-left-color", UPDATED); 1705 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1706 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1707 | }); 1708 | 1709 | test("border, border-color-right", async ({ initTestBed, createBadgeDriver }) => { 1710 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1711 | const EXPECTED_WIDTH = "5px"; 1712 | const EXPECTED_STYLE = "dotted"; 1713 | const UPDATED = "rgb(0, 128, 0)"; 1714 | 1715 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1716 | testThemeVars: { 1717 | "borderRightColor-Badge-pill": UPDATED, 1718 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1719 | }, 1720 | }); 1721 | const component = (await createBadgeDriver()).component; 1722 | 1723 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1724 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1725 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1726 | await expect(component).toHaveCSS("border-right-color", UPDATED); 1727 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1728 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1729 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1730 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1731 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1732 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1733 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1734 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1735 | }); 1736 | 1737 | test("border, border-color-vertical", async ({ initTestBed, createBadgeDriver }) => { 1738 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1739 | const EXPECTED_WIDTH = "5px"; 1740 | const EXPECTED_STYLE = "dotted"; 1741 | const UPDATED = "rgb(0, 128, 0)"; 1742 | 1743 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1744 | testThemeVars: { 1745 | "borderVerticalColor-Badge-pill": UPDATED, 1746 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1747 | }, 1748 | }); 1749 | const component = (await createBadgeDriver()).component; 1750 | 1751 | await expect(component).toHaveCSS("border-top-color", UPDATED); 1752 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1753 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1754 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1755 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1756 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1757 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 1758 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1759 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1760 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1761 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1762 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1763 | }); 1764 | 1765 | test("border, border-color-top", async ({ initTestBed, createBadgeDriver }) => { 1766 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1767 | const EXPECTED_WIDTH = "5px"; 1768 | const EXPECTED_STYLE = "dotted"; 1769 | const UPDATED = "rgb(0, 128, 0)"; 1770 | 1771 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1772 | testThemeVars: { 1773 | "borderTopColor-Badge-pill": UPDATED, 1774 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1775 | }, 1776 | }); 1777 | const component = (await createBadgeDriver()).component; 1778 | 1779 | await expect(component).toHaveCSS("border-top-color", UPDATED); 1780 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1781 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1782 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1783 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1784 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1785 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1786 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1787 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1788 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1789 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1790 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1791 | }); 1792 | 1793 | test("border, border-color-bottom", async ({ initTestBed, createBadgeDriver }) => { 1794 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1795 | const EXPECTED_WIDTH = "5px"; 1796 | const EXPECTED_STYLE = "dotted"; 1797 | const UPDATED = "rgb(0, 128, 0)"; 1798 | 1799 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1800 | testThemeVars: { 1801 | "borderBottomColor-Badge-pill": UPDATED, 1802 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1803 | }, 1804 | }); 1805 | const component = (await createBadgeDriver()).component; 1806 | 1807 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1808 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1809 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1810 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1811 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1812 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1813 | await expect(component).toHaveCSS("border-bottom-color", UPDATED); 1814 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1815 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1816 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1817 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1818 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1819 | }); 1820 | 1821 | test("border-style", async ({ initTestBed, createBadgeDriver }) => { 1822 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1823 | const EXPECTED_WIDTH = "5px"; 1824 | const EXPECTED_STYLE = "dotted"; 1825 | 1826 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1827 | testThemeVars: { 1828 | "borderStyle-Badge-pill": EXPECTED_STYLE, 1829 | }, 1830 | }); 1831 | const component = (await createBadgeDriver()).component; 1832 | 1833 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 1834 | await expect(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH); 1835 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1836 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 1837 | await expect(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH); 1838 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1839 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1840 | await expect(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1841 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1842 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 1843 | await expect(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH); 1844 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1845 | }); 1846 | 1847 | test("border, border-style", async ({ initTestBed, createBadgeDriver }) => { 1848 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 1849 | const EXPECTED_WIDTH = "5px"; 1850 | const EXPECTED_STYLE = "dotted"; 1851 | const UPDATED = "double"; 1852 | 1853 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1854 | testThemeVars: { 1855 | "borderStyle-Badge-pill": UPDATED, 1856 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1857 | }, 1858 | }); 1859 | const component = (await createBadgeDriver()).component; 1860 | 1861 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1862 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1863 | await expect(component).toHaveCSS("border-top-style", UPDATED); 1864 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1865 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1866 | await expect(component).toHaveCSS("border-right-style", UPDATED); 1867 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1868 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1869 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 1870 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1871 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1872 | await expect(component).toHaveCSS("border-left-style", UPDATED); 1873 | }); 1874 | 1875 | test("border, border-style-horizontal", async ({ initTestBed, createBadgeDriver }) => { 1876 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1877 | const EXPECTED_WIDTH = "5px"; 1878 | const EXPECTED_STYLE = "dotted"; 1879 | const UPDATED = "double"; 1880 | 1881 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1882 | testThemeVars: { 1883 | "borderHorizontalStyle-Badge-pill": UPDATED, 1884 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1885 | }, 1886 | }); 1887 | const component = (await createBadgeDriver()).component; 1888 | 1889 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1890 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1891 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1892 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1893 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1894 | await expect(component).toHaveCSS("border-right-style", UPDATED); 1895 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1896 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1897 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1898 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1899 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1900 | await expect(component).toHaveCSS("border-left-style", UPDATED); 1901 | }); 1902 | 1903 | test("border, border-style-left", async ({ initTestBed, createBadgeDriver }) => { 1904 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1905 | const EXPECTED_WIDTH = "5px"; 1906 | const EXPECTED_STYLE = "dotted"; 1907 | const UPDATED = "double"; 1908 | 1909 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1910 | testThemeVars: { 1911 | "borderLeftStyle-Badge-pill": UPDATED, 1912 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1913 | }, 1914 | }); 1915 | const component = (await createBadgeDriver()).component; 1916 | 1917 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1918 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1919 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1920 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1921 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1922 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1923 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1924 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1925 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1926 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1927 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1928 | await expect(component).toHaveCSS("border-left-style", UPDATED); 1929 | }); 1930 | 1931 | test("border, border-style-right", async ({ initTestBed, createBadgeDriver }) => { 1932 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1933 | const EXPECTED_WIDTH = "5px"; 1934 | const EXPECTED_STYLE = "dotted"; 1935 | const UPDATED = "double"; 1936 | 1937 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1938 | testThemeVars: { 1939 | "borderRightStyle-Badge-pill": UPDATED, 1940 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1941 | }, 1942 | }); 1943 | const component = (await createBadgeDriver()).component; 1944 | 1945 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1946 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1947 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 1948 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1949 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1950 | await expect(component).toHaveCSS("border-right-style", UPDATED); 1951 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1952 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1953 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 1954 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1955 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1956 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1957 | }); 1958 | 1959 | test("border, border-style-vertical", async ({ initTestBed, createBadgeDriver }) => { 1960 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1961 | const EXPECTED_WIDTH = "5px"; 1962 | const EXPECTED_STYLE = "dotted"; 1963 | const UPDATED = "double"; 1964 | 1965 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1966 | testThemeVars: { 1967 | "borderVerticalStyle-Badge-pill": UPDATED, 1968 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1969 | }, 1970 | }); 1971 | const component = (await createBadgeDriver()).component; 1972 | 1973 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 1974 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 1975 | await expect(component).toHaveCSS("border-top-style", UPDATED); 1976 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 1977 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 1978 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 1979 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 1980 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 1981 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 1982 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 1983 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 1984 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 1985 | }); 1986 | 1987 | test("border, border-style-top", async ({ initTestBed, createBadgeDriver }) => { 1988 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 1989 | const EXPECTED_WIDTH = "5px"; 1990 | const EXPECTED_STYLE = "dotted"; 1991 | const UPDATED = "double"; 1992 | 1993 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 1994 | testThemeVars: { 1995 | "borderTopStyle-Badge-pill": UPDATED, 1996 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 1997 | }, 1998 | }); 1999 | const component = (await createBadgeDriver()).component; 2000 | 2001 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2002 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2003 | await expect(component).toHaveCSS("border-top-style", UPDATED); 2004 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2005 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2006 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2007 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2008 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2009 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2010 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2011 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2012 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2013 | }); 2014 | 2015 | test("border, border-style-bottom", async ({ initTestBed, createBadgeDriver }) => { 2016 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 2017 | const EXPECTED_WIDTH = "5px"; 2018 | const EXPECTED_STYLE = "dotted"; 2019 | const UPDATED = "double"; 2020 | 2021 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2022 | testThemeVars: { 2023 | "borderBottomStyle-Badge-pill": UPDATED, 2024 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2025 | }, 2026 | }); 2027 | const component = (await createBadgeDriver()).component; 2028 | 2029 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2030 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2031 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2032 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2033 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2034 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2035 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2036 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2037 | await expect(component).toHaveCSS("border-bottom-style", UPDATED); 2038 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2039 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2040 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2041 | }); 2042 | 2043 | test("border-thickness", async ({ initTestBed, createBadgeDriver }) => { 2044 | const EXPECTED_COLOR = "rgb(0, 128, 0)"; 2045 | const EXPECTED_WIDTH = "8px"; 2046 | const EXPECTED_STYLE = "dotted"; 2047 | 2048 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2049 | testThemeVars: { 2050 | "borderWidth-Badge-pill": EXPECTED_WIDTH, 2051 | }, 2052 | }); 2053 | const component = (await createBadgeDriver()).component; 2054 | 2055 | await expect(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR); 2056 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2057 | await expect(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE); 2058 | await expect(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR); 2059 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2060 | await expect(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE); 2061 | await expect(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2062 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2063 | await expect(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2064 | await expect(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR); 2065 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2066 | await expect(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE); 2067 | }); 2068 | 2069 | test("border, border-thickness", async ({ initTestBed, createBadgeDriver }) => { 2070 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2071 | const EXPECTED_WIDTH = "5px"; 2072 | const EXPECTED_STYLE = "dotted"; 2073 | const UPDATED = "12px"; 2074 | 2075 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2076 | testThemeVars: { 2077 | "borderWidth-Badge-pill": UPDATED, 2078 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2079 | }, 2080 | }); 2081 | const component = (await createBadgeDriver()).component; 2082 | 2083 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2084 | await expect(component).toHaveCSS("border-top-width", UPDATED); 2085 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2086 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2087 | await expect(component).toHaveCSS("border-right-width", UPDATED); 2088 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2089 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2090 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 2091 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2092 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2093 | await expect(component).toHaveCSS("border-left-width", UPDATED); 2094 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2095 | }); 2096 | 2097 | test("border, border-thickness-horizontal", async ({ initTestBed, createBadgeDriver }) => { 2098 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2099 | const EXPECTED_WIDTH = "5px"; 2100 | const EXPECTED_STYLE = "dotted"; 2101 | const UPDATED = "12px"; 2102 | 2103 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2104 | testThemeVars: { 2105 | "borderHorizontalWidth-Badge-pill": UPDATED, 2106 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2107 | }, 2108 | }); 2109 | const component = (await createBadgeDriver()).component; 2110 | 2111 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2112 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2113 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2114 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2115 | await expect(component).toHaveCSS("border-right-width", UPDATED); 2116 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2117 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2118 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2119 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2120 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2121 | await expect(component).toHaveCSS("border-left-width", UPDATED); 2122 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2123 | }); 2124 | 2125 | test("border, border-thickness-left", async ({ initTestBed, createBadgeDriver }) => { 2126 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2127 | const EXPECTED_WIDTH = "5px"; 2128 | const EXPECTED_STYLE = "dotted"; 2129 | const UPDATED = "12px"; 2130 | 2131 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2132 | testThemeVars: { 2133 | "borderLeftWidth-Badge-pill": UPDATED, 2134 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2135 | }, 2136 | }); 2137 | const component = (await createBadgeDriver()).component; 2138 | 2139 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2140 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2141 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2142 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2143 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2144 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2145 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2146 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2147 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2148 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2149 | await expect(component).toHaveCSS("border-left-width", UPDATED); 2150 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2151 | }); 2152 | 2153 | test("border, border-thickness-right", async ({ initTestBed, createBadgeDriver }) => { 2154 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2155 | const EXPECTED_WIDTH = "5px"; 2156 | const EXPECTED_STYLE = "dotted"; 2157 | const UPDATED = "12px"; 2158 | 2159 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2160 | testThemeVars: { 2161 | "borderRightWidth-Badge-pill": UPDATED, 2162 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2163 | }, 2164 | }); 2165 | const component = (await createBadgeDriver()).component; 2166 | 2167 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2168 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2169 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2170 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2171 | await expect(component).toHaveCSS("border-right-width", UPDATED); 2172 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2173 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2174 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2175 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2176 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2177 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2178 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2179 | }); 2180 | 2181 | test("border, border-thickness-vertical", async ({ initTestBed, createBadgeDriver }) => { 2182 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2183 | const EXPECTED_WIDTH = "5px"; 2184 | const EXPECTED_STYLE = "dotted"; 2185 | const UPDATED = "12px"; 2186 | 2187 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2188 | testThemeVars: { 2189 | "borderVerticalWidth-Badge-pill": UPDATED, 2190 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2191 | }, 2192 | }); 2193 | const component = (await createBadgeDriver()).component; 2194 | 2195 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2196 | await expect(component).toHaveCSS("border-top-width", UPDATED); 2197 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2198 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2199 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2200 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2201 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2202 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 2203 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2204 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2205 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2206 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2207 | }); 2208 | 2209 | test("border, border-thickness-top", async ({ initTestBed, createBadgeDriver }) => { 2210 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2211 | const EXPECTED_WIDTH = "5px"; 2212 | const EXPECTED_STYLE = "dotted"; 2213 | const UPDATED = "12px"; 2214 | 2215 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2216 | testThemeVars: { 2217 | "borderTopWidth-Badge-pill": UPDATED, 2218 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2219 | }, 2220 | }); 2221 | const component = (await createBadgeDriver()).component; 2222 | 2223 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2224 | await expect(component).toHaveCSS("border-top-width", UPDATED); 2225 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2226 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2227 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2228 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2229 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2230 | await expect(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH); 2231 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2232 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2233 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2234 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2235 | }); 2236 | 2237 | test("border, border-thickness-bottom", async ({ initTestBed, createBadgeDriver }) => { 2238 | const EXPECTED_COLOR = "rgb(255, 0, 0)"; 2239 | const EXPECTED_WIDTH = "5px"; 2240 | const EXPECTED_STYLE = "dotted"; 2241 | const UPDATED = "12px"; 2242 | 2243 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2244 | testThemeVars: { 2245 | "borderBottomWidth-Badge-pill": UPDATED, 2246 | "border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`, 2247 | }, 2248 | }); 2249 | const component = (await createBadgeDriver()).component; 2250 | 2251 | await expect(component).toHaveCSS("border-top-color", EXPECTED_COLOR); 2252 | await expect(component).toHaveCSS("border-top-width", EXPECTED_WIDTH); 2253 | await expect(component).toHaveCSS("border-top-style", EXPECTED_STYLE); 2254 | await expect(component).toHaveCSS("border-right-color", EXPECTED_COLOR); 2255 | await expect(component).toHaveCSS("border-right-width", EXPECTED_WIDTH); 2256 | await expect(component).toHaveCSS("border-right-style", EXPECTED_STYLE); 2257 | await expect(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR); 2258 | await expect(component).toHaveCSS("border-bottom-width", UPDATED); 2259 | await expect(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE); 2260 | await expect(component).toHaveCSS("border-left-color", EXPECTED_COLOR); 2261 | await expect(component).toHaveCSS("border-left-width", EXPECTED_WIDTH); 2262 | await expect(component).toHaveCSS("border-left-style", EXPECTED_STYLE); 2263 | }); 2264 | 2265 | test("padding", async ({ initTestBed, createBadgeDriver }) => { 2266 | const EXPECTED = "100px"; 2267 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2268 | testThemeVars: { 2269 | "padding-Badge-pill": EXPECTED, 2270 | }, 2271 | }); 2272 | const component = (await createBadgeDriver()).component; 2273 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2274 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2275 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2276 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2277 | }); 2278 | 2279 | test("paddingHorizontal", async ({ initTestBed, createBadgeDriver }) => { 2280 | const EXPECTED = "100px"; 2281 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2282 | testThemeVars: { 2283 | "paddingHorizontal-Badge-pill": EXPECTED, 2284 | }, 2285 | }); 2286 | const component = (await createBadgeDriver()).component; 2287 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 2288 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2289 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 2290 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2291 | }); 2292 | 2293 | test("paddingLeft", async ({ initTestBed, createBadgeDriver }) => { 2294 | const EXPECTED = "100px"; 2295 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2296 | testThemeVars: { 2297 | "paddingLeft-Badge-pill": EXPECTED, 2298 | }, 2299 | }); 2300 | const component = (await createBadgeDriver()).component; 2301 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 2302 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 2303 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 2304 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2305 | }); 2306 | 2307 | test("paddingRight", async ({ initTestBed, createBadgeDriver }) => { 2308 | const EXPECTED = "100px"; 2309 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2310 | testThemeVars: { 2311 | "paddingRight-Badge-pill": EXPECTED, 2312 | }, 2313 | }); 2314 | const component = (await createBadgeDriver()).component; 2315 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 2316 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2317 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 2318 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 2319 | }); 2320 | 2321 | test("paddingVertical", async ({ initTestBed, createBadgeDriver }) => { 2322 | const EXPECTED = "100px"; 2323 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2324 | testThemeVars: { 2325 | "paddingVertical-Badge-pill": EXPECTED, 2326 | }, 2327 | }); 2328 | const component = (await createBadgeDriver()).component; 2329 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2330 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 2331 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2332 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 2333 | }); 2334 | 2335 | test("paddingTop", async ({ initTestBed, createBadgeDriver }) => { 2336 | const EXPECTED = "100px"; 2337 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2338 | testThemeVars: { 2339 | "paddingTop-Badge-pill": EXPECTED, 2340 | }, 2341 | }); 2342 | const component = (await createBadgeDriver()).component; 2343 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2344 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 2345 | await expect(component).not.toHaveCSS("padding-bottom", EXPECTED); 2346 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 2347 | }); 2348 | 2349 | test("paddingBottom", async ({ initTestBed, createBadgeDriver }) => { 2350 | const EXPECTED = "100px"; 2351 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2352 | testThemeVars: { 2353 | "paddingBottom-Badge-pill": EXPECTED, 2354 | }, 2355 | }); 2356 | const component = (await createBadgeDriver()).component; 2357 | await expect(component).not.toHaveCSS("padding-top", EXPECTED); 2358 | await expect(component).not.toHaveCSS("padding-right", EXPECTED); 2359 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2360 | await expect(component).not.toHaveCSS("padding-left", EXPECTED); 2361 | }); 2362 | 2363 | test("padding, paddingHorizontal", async ({ initTestBed, createBadgeDriver }) => { 2364 | const EXPECTED = "100px"; 2365 | const UPDATED = "48px"; 2366 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2367 | testThemeVars: { 2368 | "padding-Badge-pill": EXPECTED, 2369 | "paddingHorizontal-Badge-pill": UPDATED, 2370 | }, 2371 | }); 2372 | const component = (await createBadgeDriver()).component; 2373 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2374 | await expect(component).toHaveCSS("padding-right", UPDATED); 2375 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2376 | await expect(component).toHaveCSS("padding-left", UPDATED); 2377 | }); 2378 | 2379 | test("padding, paddingLeft", async ({ initTestBed, createBadgeDriver }) => { 2380 | const EXPECTED = "100px"; 2381 | const UPDATED = "48px"; 2382 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2383 | testThemeVars: { 2384 | "padding-Badge-pill": EXPECTED, 2385 | "paddingLeft-Badge-pill": UPDATED, 2386 | }, 2387 | }); 2388 | const component = (await createBadgeDriver()).component; 2389 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2390 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2391 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2392 | await expect(component).toHaveCSS("padding-left", UPDATED); 2393 | }); 2394 | 2395 | test("padding, paddingRight", async ({ initTestBed, createBadgeDriver }) => { 2396 | const EXPECTED = "100px"; 2397 | const UPDATED = "48px"; 2398 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2399 | testThemeVars: { 2400 | "padding-Badge-pill": EXPECTED, 2401 | "paddingRight-Badge-pill": UPDATED, 2402 | }, 2403 | }); 2404 | const component = (await createBadgeDriver()).component; 2405 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2406 | await expect(component).toHaveCSS("padding-right", UPDATED); 2407 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2408 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2409 | }); 2410 | 2411 | test("padding, paddingVertical", async ({ initTestBed, createBadgeDriver }) => { 2412 | const EXPECTED = "100px"; 2413 | const UPDATED = "48px"; 2414 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2415 | testThemeVars: { 2416 | "padding-Badge-pill": EXPECTED, 2417 | "paddingVertical-Badge-pill": UPDATED, 2418 | }, 2419 | }); 2420 | const component = (await createBadgeDriver()).component; 2421 | await expect(component).toHaveCSS("padding-top", UPDATED); 2422 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2423 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 2424 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2425 | }); 2426 | 2427 | test("padding, paddingTop", async ({ initTestBed, createBadgeDriver }) => { 2428 | const EXPECTED = "100px"; 2429 | const UPDATED = "48px"; 2430 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2431 | testThemeVars: { 2432 | "padding-Badge-pill": EXPECTED, 2433 | "paddingTop-Badge-pill": UPDATED, 2434 | }, 2435 | }); 2436 | const component = (await createBadgeDriver()).component; 2437 | await expect(component).toHaveCSS("padding-top", UPDATED); 2438 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2439 | await expect(component).toHaveCSS("padding-bottom", EXPECTED); 2440 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2441 | }); 2442 | 2443 | test("padding, paddingBottom", async ({ initTestBed, createBadgeDriver }) => { 2444 | const EXPECTED = "100px"; 2445 | const UPDATED = "48px"; 2446 | await initTestBed(`<Badge variant="pill" value="test content"/>`, { 2447 | testThemeVars: { 2448 | "padding-Badge-pill": EXPECTED, 2449 | "paddingBottom-Badge-pill": UPDATED, 2450 | }, 2451 | }); 2452 | const component = (await createBadgeDriver()).component; 2453 | await expect(component).toHaveCSS("padding-top", EXPECTED); 2454 | await expect(component).toHaveCSS("padding-right", EXPECTED); 2455 | await expect(component).toHaveCSS("padding-bottom", UPDATED); 2456 | await expect(component).toHaveCSS("padding-left", EXPECTED); 2457 | }); 2458 | }); 2459 | ```