diff --git a/.github/workflows/99-auto-merge.yml b/.github/workflows/99-auto-merge.yml index cb7edc36092..a76978d23a3 100644 --- a/.github/workflows/99-auto-merge.yml +++ b/.github/workflows/99-auto-merge.yml @@ -10,7 +10,7 @@ jobs: steps: - name: ⏬ Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1 + uses: dependabot/fetch-metadata@v2 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/__snapshots__/accordion-item/showcase/chromium/regular/neutral/DBAccordionItem-should-match-screenshot.png b/__snapshots__/accordion-item/showcase/chromium/regular/neutral/DBAccordionItem-should-match-screenshot.png index 00fcb2c4f7f..3e806467227 100644 Binary files a/__snapshots__/accordion-item/showcase/chromium/regular/neutral/DBAccordionItem-should-match-screenshot.png and b/__snapshots__/accordion-item/showcase/chromium/regular/neutral/DBAccordionItem-should-match-screenshot.png differ diff --git a/__snapshots__/accordion-item/showcase/firefox/regular/neutral/DBAccordionItem-should-match-screenshot.png b/__snapshots__/accordion-item/showcase/firefox/regular/neutral/DBAccordionItem-should-match-screenshot.png index 90fce659636..b1df16d36e0 100644 Binary files a/__snapshots__/accordion-item/showcase/firefox/regular/neutral/DBAccordionItem-should-match-screenshot.png and b/__snapshots__/accordion-item/showcase/firefox/regular/neutral/DBAccordionItem-should-match-screenshot.png differ diff --git a/__snapshots__/accordion-item/showcase/mobile-chrome/regular/neutral/DBAccordionItem-should-match-screenshot.png b/__snapshots__/accordion-item/showcase/mobile-chrome/regular/neutral/DBAccordionItem-should-match-screenshot.png index 5e019e338b8..dd0ac0ff733 100644 Binary files a/__snapshots__/accordion-item/showcase/mobile-chrome/regular/neutral/DBAccordionItem-should-match-screenshot.png and b/__snapshots__/accordion-item/showcase/mobile-chrome/regular/neutral/DBAccordionItem-should-match-screenshot.png differ diff --git a/__snapshots__/accordion-item/showcase/mobile-safari/regular/neutral/DBAccordionItem-should-match-screenshot.png b/__snapshots__/accordion-item/showcase/mobile-safari/regular/neutral/DBAccordionItem-should-match-screenshot.png index a0fc8bc31cc..c7b5d975cb1 100644 Binary files a/__snapshots__/accordion-item/showcase/mobile-safari/regular/neutral/DBAccordionItem-should-match-screenshot.png and b/__snapshots__/accordion-item/showcase/mobile-safari/regular/neutral/DBAccordionItem-should-match-screenshot.png differ diff --git a/__snapshots__/accordion-item/showcase/webkit/regular/neutral/DBAccordionItem-should-match-screenshot.png b/__snapshots__/accordion-item/showcase/webkit/regular/neutral/DBAccordionItem-should-match-screenshot.png index 2b0c2a201fb..2efbb5b0908 100644 Binary files a/__snapshots__/accordion-item/showcase/webkit/regular/neutral/DBAccordionItem-should-match-screenshot.png and b/__snapshots__/accordion-item/showcase/webkit/regular/neutral/DBAccordionItem-should-match-screenshot.png differ diff --git a/__snapshots__/accordion/showcase/chromium/regular/neutral/DBAccordion-should-match-screenshot.png b/__snapshots__/accordion/showcase/chromium/regular/neutral/DBAccordion-should-match-screenshot.png index 297a3830890..c3253c3a097 100644 Binary files a/__snapshots__/accordion/showcase/chromium/regular/neutral/DBAccordion-should-match-screenshot.png and b/__snapshots__/accordion/showcase/chromium/regular/neutral/DBAccordion-should-match-screenshot.png differ diff --git a/__snapshots__/accordion/showcase/firefox/regular/neutral/DBAccordion-should-match-screenshot.png b/__snapshots__/accordion/showcase/firefox/regular/neutral/DBAccordion-should-match-screenshot.png index 557804a055d..f0c6080e30b 100644 Binary files a/__snapshots__/accordion/showcase/firefox/regular/neutral/DBAccordion-should-match-screenshot.png and b/__snapshots__/accordion/showcase/firefox/regular/neutral/DBAccordion-should-match-screenshot.png differ diff --git a/__snapshots__/accordion/showcase/mobile-chrome/regular/neutral/DBAccordion-should-match-screenshot.png b/__snapshots__/accordion/showcase/mobile-chrome/regular/neutral/DBAccordion-should-match-screenshot.png index c6a46243a9d..41fbff83f84 100644 Binary files a/__snapshots__/accordion/showcase/mobile-chrome/regular/neutral/DBAccordion-should-match-screenshot.png and b/__snapshots__/accordion/showcase/mobile-chrome/regular/neutral/DBAccordion-should-match-screenshot.png differ diff --git a/__snapshots__/accordion/showcase/mobile-safari/regular/neutral/DBAccordion-should-match-screenshot.png b/__snapshots__/accordion/showcase/mobile-safari/regular/neutral/DBAccordion-should-match-screenshot.png index 0faa7c55f50..d9a08434340 100644 Binary files a/__snapshots__/accordion/showcase/mobile-safari/regular/neutral/DBAccordion-should-match-screenshot.png and b/__snapshots__/accordion/showcase/mobile-safari/regular/neutral/DBAccordion-should-match-screenshot.png differ diff --git a/__snapshots__/accordion/showcase/webkit/regular/neutral/DBAccordion-should-match-screenshot.png b/__snapshots__/accordion/showcase/webkit/regular/neutral/DBAccordion-should-match-screenshot.png index cdae5819c5a..9d27542c81f 100644 Binary files a/__snapshots__/accordion/showcase/webkit/regular/neutral/DBAccordion-should-match-screenshot.png and b/__snapshots__/accordion/showcase/webkit/regular/neutral/DBAccordion-should-match-screenshot.png differ diff --git a/__snapshots__/alert/showcase/chromium/regular/neutral/DBAlert-should-match-screenshot.png b/__snapshots__/alert/showcase/chromium/regular/neutral/DBAlert-should-match-screenshot.png index 3abc2b1d735..db615310528 100644 Binary files a/__snapshots__/alert/showcase/chromium/regular/neutral/DBAlert-should-match-screenshot.png and b/__snapshots__/alert/showcase/chromium/regular/neutral/DBAlert-should-match-screenshot.png differ diff --git a/__snapshots__/alert/showcase/firefox/regular/neutral/DBAlert-should-match-screenshot.png b/__snapshots__/alert/showcase/firefox/regular/neutral/DBAlert-should-match-screenshot.png index 615f4871ba4..055c3f9687c 100644 Binary files a/__snapshots__/alert/showcase/firefox/regular/neutral/DBAlert-should-match-screenshot.png and b/__snapshots__/alert/showcase/firefox/regular/neutral/DBAlert-should-match-screenshot.png differ diff --git a/__snapshots__/alert/showcase/mobile-chrome/regular/neutral/DBAlert-should-match-screenshot.png b/__snapshots__/alert/showcase/mobile-chrome/regular/neutral/DBAlert-should-match-screenshot.png index 621f2a5a7d6..43a02ae5341 100644 Binary files a/__snapshots__/alert/showcase/mobile-chrome/regular/neutral/DBAlert-should-match-screenshot.png and b/__snapshots__/alert/showcase/mobile-chrome/regular/neutral/DBAlert-should-match-screenshot.png differ diff --git a/__snapshots__/alert/showcase/mobile-safari/regular/neutral/DBAlert-should-match-screenshot.png b/__snapshots__/alert/showcase/mobile-safari/regular/neutral/DBAlert-should-match-screenshot.png index 4cd8b3d9ff8..f56fc82050e 100644 Binary files a/__snapshots__/alert/showcase/mobile-safari/regular/neutral/DBAlert-should-match-screenshot.png and b/__snapshots__/alert/showcase/mobile-safari/regular/neutral/DBAlert-should-match-screenshot.png differ diff --git a/__snapshots__/alert/showcase/webkit/regular/neutral/DBAlert-should-match-screenshot.png b/__snapshots__/alert/showcase/webkit/regular/neutral/DBAlert-should-match-screenshot.png index 472671f2011..1c8d7a51898 100644 Binary files a/__snapshots__/alert/showcase/webkit/regular/neutral/DBAlert-should-match-screenshot.png and b/__snapshots__/alert/showcase/webkit/regular/neutral/DBAlert-should-match-screenshot.png differ diff --git a/__snapshots__/badge/showcase/chromium/regular/neutral/DBBadge-should-match-screenshot.png b/__snapshots__/badge/showcase/chromium/regular/neutral/DBBadge-should-match-screenshot.png index 2b808efa19e..d57e211234c 100644 Binary files a/__snapshots__/badge/showcase/chromium/regular/neutral/DBBadge-should-match-screenshot.png and b/__snapshots__/badge/showcase/chromium/regular/neutral/DBBadge-should-match-screenshot.png differ diff --git a/__snapshots__/badge/showcase/firefox/regular/neutral/DBBadge-should-match-screenshot.png b/__snapshots__/badge/showcase/firefox/regular/neutral/DBBadge-should-match-screenshot.png index 387c3a47803..85b9de25594 100644 Binary files a/__snapshots__/badge/showcase/firefox/regular/neutral/DBBadge-should-match-screenshot.png and b/__snapshots__/badge/showcase/firefox/regular/neutral/DBBadge-should-match-screenshot.png differ diff --git a/__snapshots__/badge/showcase/mobile-chrome/regular/neutral/DBBadge-should-match-screenshot.png b/__snapshots__/badge/showcase/mobile-chrome/regular/neutral/DBBadge-should-match-screenshot.png index 9f7bce43977..665a7d4c379 100644 Binary files a/__snapshots__/badge/showcase/mobile-chrome/regular/neutral/DBBadge-should-match-screenshot.png and b/__snapshots__/badge/showcase/mobile-chrome/regular/neutral/DBBadge-should-match-screenshot.png differ diff --git a/__snapshots__/badge/showcase/mobile-safari/regular/neutral/DBBadge-should-match-screenshot.png b/__snapshots__/badge/showcase/mobile-safari/regular/neutral/DBBadge-should-match-screenshot.png index 9476cbf3786..bbc7dbed890 100644 Binary files a/__snapshots__/badge/showcase/mobile-safari/regular/neutral/DBBadge-should-match-screenshot.png and b/__snapshots__/badge/showcase/mobile-safari/regular/neutral/DBBadge-should-match-screenshot.png differ diff --git a/__snapshots__/badge/showcase/webkit/regular/neutral/DBBadge-should-match-screenshot.png b/__snapshots__/badge/showcase/webkit/regular/neutral/DBBadge-should-match-screenshot.png index 88cda2d062f..21a7f2065f9 100644 Binary files a/__snapshots__/badge/showcase/webkit/regular/neutral/DBBadge-should-match-screenshot.png and b/__snapshots__/badge/showcase/webkit/regular/neutral/DBBadge-should-match-screenshot.png differ diff --git a/__snapshots__/button/showcase/chromium/regular/neutral/DBButton-should-match-screenshot.png b/__snapshots__/button/showcase/chromium/regular/neutral/DBButton-should-match-screenshot.png index a5cea1f615c..fbe2034fc8d 100644 Binary files a/__snapshots__/button/showcase/chromium/regular/neutral/DBButton-should-match-screenshot.png and b/__snapshots__/button/showcase/chromium/regular/neutral/DBButton-should-match-screenshot.png differ diff --git a/__snapshots__/button/showcase/firefox/regular/neutral/DBButton-should-match-screenshot.png b/__snapshots__/button/showcase/firefox/regular/neutral/DBButton-should-match-screenshot.png index d8d14174c00..dbb4aa458e0 100644 Binary files a/__snapshots__/button/showcase/firefox/regular/neutral/DBButton-should-match-screenshot.png and b/__snapshots__/button/showcase/firefox/regular/neutral/DBButton-should-match-screenshot.png differ diff --git a/__snapshots__/button/showcase/mobile-chrome/regular/neutral/DBButton-should-match-screenshot.png b/__snapshots__/button/showcase/mobile-chrome/regular/neutral/DBButton-should-match-screenshot.png index a49d08ee499..c261bfef384 100644 Binary files a/__snapshots__/button/showcase/mobile-chrome/regular/neutral/DBButton-should-match-screenshot.png and b/__snapshots__/button/showcase/mobile-chrome/regular/neutral/DBButton-should-match-screenshot.png differ diff --git a/__snapshots__/button/showcase/mobile-safari/regular/neutral/DBButton-should-match-screenshot.png b/__snapshots__/button/showcase/mobile-safari/regular/neutral/DBButton-should-match-screenshot.png index 03b00e46492..627c5c544b0 100644 Binary files a/__snapshots__/button/showcase/mobile-safari/regular/neutral/DBButton-should-match-screenshot.png and b/__snapshots__/button/showcase/mobile-safari/regular/neutral/DBButton-should-match-screenshot.png differ diff --git a/__snapshots__/button/showcase/webkit/regular/neutral/DBButton-should-match-screenshot.png b/__snapshots__/button/showcase/webkit/regular/neutral/DBButton-should-match-screenshot.png index 1a0bde82c4f..03fab1c15e3 100644 Binary files a/__snapshots__/button/showcase/webkit/regular/neutral/DBButton-should-match-screenshot.png and b/__snapshots__/button/showcase/webkit/regular/neutral/DBButton-should-match-screenshot.png differ diff --git a/__snapshots__/icon/showcase/chromium/regular/neutral/DBIcon-should-match-screenshot.png b/__snapshots__/icon/showcase/chromium/regular/neutral/DBIcon-should-match-screenshot.png index fa6033db7d0..c81f2341ef2 100644 Binary files a/__snapshots__/icon/showcase/chromium/regular/neutral/DBIcon-should-match-screenshot.png and b/__snapshots__/icon/showcase/chromium/regular/neutral/DBIcon-should-match-screenshot.png differ diff --git a/__snapshots__/icon/showcase/firefox/regular/neutral/DBIcon-should-match-screenshot.png b/__snapshots__/icon/showcase/firefox/regular/neutral/DBIcon-should-match-screenshot.png index e0fb8646582..841d21ccfc8 100644 Binary files a/__snapshots__/icon/showcase/firefox/regular/neutral/DBIcon-should-match-screenshot.png and b/__snapshots__/icon/showcase/firefox/regular/neutral/DBIcon-should-match-screenshot.png differ diff --git a/__snapshots__/icon/showcase/mobile-chrome/regular/neutral/DBIcon-should-match-screenshot.png b/__snapshots__/icon/showcase/mobile-chrome/regular/neutral/DBIcon-should-match-screenshot.png index 3783c69781f..a3aa2ab9e58 100644 Binary files a/__snapshots__/icon/showcase/mobile-chrome/regular/neutral/DBIcon-should-match-screenshot.png and b/__snapshots__/icon/showcase/mobile-chrome/regular/neutral/DBIcon-should-match-screenshot.png differ diff --git a/__snapshots__/icon/showcase/mobile-safari/regular/neutral/DBIcon-should-match-screenshot.png b/__snapshots__/icon/showcase/mobile-safari/regular/neutral/DBIcon-should-match-screenshot.png index 256ccafd82f..cbcaac0ef3e 100644 Binary files a/__snapshots__/icon/showcase/mobile-safari/regular/neutral/DBIcon-should-match-screenshot.png and b/__snapshots__/icon/showcase/mobile-safari/regular/neutral/DBIcon-should-match-screenshot.png differ diff --git a/__snapshots__/icon/showcase/webkit/regular/neutral/DBIcon-should-match-screenshot.png b/__snapshots__/icon/showcase/webkit/regular/neutral/DBIcon-should-match-screenshot.png index 5af724e5539..64f6c896c7d 100644 Binary files a/__snapshots__/icon/showcase/webkit/regular/neutral/DBIcon-should-match-screenshot.png and b/__snapshots__/icon/showcase/webkit/regular/neutral/DBIcon-should-match-screenshot.png differ diff --git a/__snapshots__/infotext/showcase/chromium/regular/neutral/DBInfotext-should-match-screenshot.png b/__snapshots__/infotext/showcase/chromium/regular/neutral/DBInfotext-should-match-screenshot.png index 1084691e33f..1cc046ea422 100644 Binary files a/__snapshots__/infotext/showcase/chromium/regular/neutral/DBInfotext-should-match-screenshot.png and b/__snapshots__/infotext/showcase/chromium/regular/neutral/DBInfotext-should-match-screenshot.png differ diff --git a/__snapshots__/infotext/showcase/firefox/regular/neutral/DBInfotext-should-match-screenshot.png b/__snapshots__/infotext/showcase/firefox/regular/neutral/DBInfotext-should-match-screenshot.png index cc76e50b81c..b5221fa648d 100644 Binary files a/__snapshots__/infotext/showcase/firefox/regular/neutral/DBInfotext-should-match-screenshot.png and b/__snapshots__/infotext/showcase/firefox/regular/neutral/DBInfotext-should-match-screenshot.png differ diff --git a/__snapshots__/infotext/showcase/mobile-chrome/regular/neutral/DBInfotext-should-match-screenshot.png b/__snapshots__/infotext/showcase/mobile-chrome/regular/neutral/DBInfotext-should-match-screenshot.png index 9e05b9fc353..45ed01e6475 100644 Binary files a/__snapshots__/infotext/showcase/mobile-chrome/regular/neutral/DBInfotext-should-match-screenshot.png and b/__snapshots__/infotext/showcase/mobile-chrome/regular/neutral/DBInfotext-should-match-screenshot.png differ diff --git a/__snapshots__/infotext/showcase/mobile-safari/regular/neutral/DBInfotext-should-match-screenshot.png b/__snapshots__/infotext/showcase/mobile-safari/regular/neutral/DBInfotext-should-match-screenshot.png index 9a4aefc0d5f..05cfdba3a3e 100644 Binary files a/__snapshots__/infotext/showcase/mobile-safari/regular/neutral/DBInfotext-should-match-screenshot.png and b/__snapshots__/infotext/showcase/mobile-safari/regular/neutral/DBInfotext-should-match-screenshot.png differ diff --git a/__snapshots__/infotext/showcase/webkit/regular/neutral/DBInfotext-should-match-screenshot.png b/__snapshots__/infotext/showcase/webkit/regular/neutral/DBInfotext-should-match-screenshot.png index d1c5248ee66..55237813082 100644 Binary files a/__snapshots__/infotext/showcase/webkit/regular/neutral/DBInfotext-should-match-screenshot.png and b/__snapshots__/infotext/showcase/webkit/regular/neutral/DBInfotext-should-match-screenshot.png differ diff --git a/__snapshots__/input/showcase/chromium/regular/neutral/DBInput-should-match-screenshot.png b/__snapshots__/input/showcase/chromium/regular/neutral/DBInput-should-match-screenshot.png index 3b574a21452..1662c0b1c57 100644 Binary files a/__snapshots__/input/showcase/chromium/regular/neutral/DBInput-should-match-screenshot.png and b/__snapshots__/input/showcase/chromium/regular/neutral/DBInput-should-match-screenshot.png differ diff --git a/__snapshots__/input/showcase/firefox/regular/neutral/DBInput-should-match-screenshot.png b/__snapshots__/input/showcase/firefox/regular/neutral/DBInput-should-match-screenshot.png index 2e3481e9fb6..12b38d9fccf 100644 Binary files a/__snapshots__/input/showcase/firefox/regular/neutral/DBInput-should-match-screenshot.png and b/__snapshots__/input/showcase/firefox/regular/neutral/DBInput-should-match-screenshot.png differ diff --git a/__snapshots__/input/showcase/mobile-chrome/regular/neutral/DBInput-should-match-screenshot.png b/__snapshots__/input/showcase/mobile-chrome/regular/neutral/DBInput-should-match-screenshot.png index f572f181ecf..2ff87b18f59 100644 Binary files a/__snapshots__/input/showcase/mobile-chrome/regular/neutral/DBInput-should-match-screenshot.png and b/__snapshots__/input/showcase/mobile-chrome/regular/neutral/DBInput-should-match-screenshot.png differ diff --git a/__snapshots__/input/showcase/mobile-safari/regular/neutral/DBInput-should-match-screenshot.png b/__snapshots__/input/showcase/mobile-safari/regular/neutral/DBInput-should-match-screenshot.png index fcc07ca532a..668419d3bfb 100644 Binary files a/__snapshots__/input/showcase/mobile-safari/regular/neutral/DBInput-should-match-screenshot.png and b/__snapshots__/input/showcase/mobile-safari/regular/neutral/DBInput-should-match-screenshot.png differ diff --git a/__snapshots__/input/showcase/webkit/regular/neutral/DBInput-should-match-screenshot.png b/__snapshots__/input/showcase/webkit/regular/neutral/DBInput-should-match-screenshot.png index 1948a400f5a..42ee27b7e56 100644 Binary files a/__snapshots__/input/showcase/webkit/regular/neutral/DBInput-should-match-screenshot.png and b/__snapshots__/input/showcase/webkit/regular/neutral/DBInput-should-match-screenshot.png differ diff --git a/__snapshots__/link/showcase/chromium/regular/neutral/DBLink-should-match-screenshot.png b/__snapshots__/link/showcase/chromium/regular/neutral/DBLink-should-match-screenshot.png index 485af9ee2bb..72b4e935253 100644 Binary files a/__snapshots__/link/showcase/chromium/regular/neutral/DBLink-should-match-screenshot.png and b/__snapshots__/link/showcase/chromium/regular/neutral/DBLink-should-match-screenshot.png differ diff --git a/__snapshots__/link/showcase/firefox/regular/neutral/DBLink-should-match-screenshot.png b/__snapshots__/link/showcase/firefox/regular/neutral/DBLink-should-match-screenshot.png index f2f192b68ee..6f6421fd4eb 100644 Binary files a/__snapshots__/link/showcase/firefox/regular/neutral/DBLink-should-match-screenshot.png and b/__snapshots__/link/showcase/firefox/regular/neutral/DBLink-should-match-screenshot.png differ diff --git a/__snapshots__/link/showcase/mobile-chrome/regular/neutral/DBLink-should-match-screenshot.png b/__snapshots__/link/showcase/mobile-chrome/regular/neutral/DBLink-should-match-screenshot.png index 4c4af8e6cd7..b6620b9023a 100644 Binary files a/__snapshots__/link/showcase/mobile-chrome/regular/neutral/DBLink-should-match-screenshot.png and b/__snapshots__/link/showcase/mobile-chrome/regular/neutral/DBLink-should-match-screenshot.png differ diff --git a/__snapshots__/link/showcase/mobile-safari/regular/neutral/DBLink-should-match-screenshot.png b/__snapshots__/link/showcase/mobile-safari/regular/neutral/DBLink-should-match-screenshot.png index 08730f987b9..71f0d136f1b 100644 Binary files a/__snapshots__/link/showcase/mobile-safari/regular/neutral/DBLink-should-match-screenshot.png and b/__snapshots__/link/showcase/mobile-safari/regular/neutral/DBLink-should-match-screenshot.png differ diff --git a/__snapshots__/link/showcase/webkit/regular/neutral/DBLink-should-match-screenshot.png b/__snapshots__/link/showcase/webkit/regular/neutral/DBLink-should-match-screenshot.png index a8975d5fd18..afcd752c52f 100644 Binary files a/__snapshots__/link/showcase/webkit/regular/neutral/DBLink-should-match-screenshot.png and b/__snapshots__/link/showcase/webkit/regular/neutral/DBLink-should-match-screenshot.png differ diff --git a/__snapshots__/navigation-item/showcase/chromium/regular/neutral/DBNavigationItem-should-match-screenshot.png b/__snapshots__/navigation-item/showcase/chromium/regular/neutral/DBNavigationItem-should-match-screenshot.png index 42660babfce..ffddd3567d7 100644 Binary files a/__snapshots__/navigation-item/showcase/chromium/regular/neutral/DBNavigationItem-should-match-screenshot.png and b/__snapshots__/navigation-item/showcase/chromium/regular/neutral/DBNavigationItem-should-match-screenshot.png differ diff --git a/__snapshots__/navigation-item/showcase/firefox/regular/neutral/DBNavigationItem-should-match-screenshot.png b/__snapshots__/navigation-item/showcase/firefox/regular/neutral/DBNavigationItem-should-match-screenshot.png index 3a1a36ca432..e1ce3b38576 100644 Binary files a/__snapshots__/navigation-item/showcase/firefox/regular/neutral/DBNavigationItem-should-match-screenshot.png and b/__snapshots__/navigation-item/showcase/firefox/regular/neutral/DBNavigationItem-should-match-screenshot.png differ diff --git a/__snapshots__/navigation-item/showcase/mobile-chrome/regular/neutral/DBNavigationItem-should-match-screenshot.png b/__snapshots__/navigation-item/showcase/mobile-chrome/regular/neutral/DBNavigationItem-should-match-screenshot.png index 9321e28c4de..2e4299a71de 100644 Binary files a/__snapshots__/navigation-item/showcase/mobile-chrome/regular/neutral/DBNavigationItem-should-match-screenshot.png and b/__snapshots__/navigation-item/showcase/mobile-chrome/regular/neutral/DBNavigationItem-should-match-screenshot.png differ diff --git a/__snapshots__/navigation-item/showcase/mobile-safari/regular/neutral/DBNavigationItem-should-match-screenshot.png b/__snapshots__/navigation-item/showcase/mobile-safari/regular/neutral/DBNavigationItem-should-match-screenshot.png index 4b8a898b9f3..b4057c95267 100644 Binary files a/__snapshots__/navigation-item/showcase/mobile-safari/regular/neutral/DBNavigationItem-should-match-screenshot.png and b/__snapshots__/navigation-item/showcase/mobile-safari/regular/neutral/DBNavigationItem-should-match-screenshot.png differ diff --git a/__snapshots__/navigation-item/showcase/webkit/regular/neutral/DBNavigationItem-should-match-screenshot.png b/__snapshots__/navigation-item/showcase/webkit/regular/neutral/DBNavigationItem-should-match-screenshot.png index 3f339796003..df807f5d753 100644 Binary files a/__snapshots__/navigation-item/showcase/webkit/regular/neutral/DBNavigationItem-should-match-screenshot.png and b/__snapshots__/navigation-item/showcase/webkit/regular/neutral/DBNavigationItem-should-match-screenshot.png differ diff --git a/__snapshots__/section/showcase/chromium/regular/neutral/DBSection-should-match-screenshot.png b/__snapshots__/section/showcase/chromium/regular/neutral/DBSection-should-match-screenshot.png index f9347d29dc2..585c162d702 100644 Binary files a/__snapshots__/section/showcase/chromium/regular/neutral/DBSection-should-match-screenshot.png and b/__snapshots__/section/showcase/chromium/regular/neutral/DBSection-should-match-screenshot.png differ diff --git a/__snapshots__/section/showcase/firefox/regular/neutral/DBSection-should-match-screenshot.png b/__snapshots__/section/showcase/firefox/regular/neutral/DBSection-should-match-screenshot.png index f01f528a452..4dc37559f0b 100644 Binary files a/__snapshots__/section/showcase/firefox/regular/neutral/DBSection-should-match-screenshot.png and b/__snapshots__/section/showcase/firefox/regular/neutral/DBSection-should-match-screenshot.png differ diff --git a/__snapshots__/section/showcase/mobile-chrome/regular/neutral/DBSection-should-match-screenshot.png b/__snapshots__/section/showcase/mobile-chrome/regular/neutral/DBSection-should-match-screenshot.png index 365d522405a..fe8bac8e7ff 100644 Binary files a/__snapshots__/section/showcase/mobile-chrome/regular/neutral/DBSection-should-match-screenshot.png and b/__snapshots__/section/showcase/mobile-chrome/regular/neutral/DBSection-should-match-screenshot.png differ diff --git a/__snapshots__/section/showcase/mobile-safari/regular/neutral/DBSection-should-match-screenshot.png b/__snapshots__/section/showcase/mobile-safari/regular/neutral/DBSection-should-match-screenshot.png index 0cdd3358a62..21e74d0ce86 100644 Binary files a/__snapshots__/section/showcase/mobile-safari/regular/neutral/DBSection-should-match-screenshot.png and b/__snapshots__/section/showcase/mobile-safari/regular/neutral/DBSection-should-match-screenshot.png differ diff --git a/__snapshots__/section/showcase/webkit/regular/neutral/DBSection-should-match-screenshot.png b/__snapshots__/section/showcase/webkit/regular/neutral/DBSection-should-match-screenshot.png index 448055c811a..05f2769b1de 100644 Binary files a/__snapshots__/section/showcase/webkit/regular/neutral/DBSection-should-match-screenshot.png and b/__snapshots__/section/showcase/webkit/regular/neutral/DBSection-should-match-screenshot.png differ diff --git a/__snapshots__/tab/showcase/chromium/regular/neutral/DBTab-should-match-screenshot.png b/__snapshots__/tab/showcase/chromium/regular/neutral/DBTab-should-match-screenshot.png index 9e9dd138389..6ea431044de 100644 Binary files a/__snapshots__/tab/showcase/chromium/regular/neutral/DBTab-should-match-screenshot.png and b/__snapshots__/tab/showcase/chromium/regular/neutral/DBTab-should-match-screenshot.png differ diff --git a/__snapshots__/tab/showcase/firefox/regular/neutral/DBTab-should-match-screenshot.png b/__snapshots__/tab/showcase/firefox/regular/neutral/DBTab-should-match-screenshot.png index f3b2c8c89e2..d08545b4637 100644 Binary files a/__snapshots__/tab/showcase/firefox/regular/neutral/DBTab-should-match-screenshot.png and b/__snapshots__/tab/showcase/firefox/regular/neutral/DBTab-should-match-screenshot.png differ diff --git a/__snapshots__/tab/showcase/mobile-chrome/regular/neutral/DBTab-should-match-screenshot.png b/__snapshots__/tab/showcase/mobile-chrome/regular/neutral/DBTab-should-match-screenshot.png index deb0156dbec..fb1118e9eaa 100644 Binary files a/__snapshots__/tab/showcase/mobile-chrome/regular/neutral/DBTab-should-match-screenshot.png and b/__snapshots__/tab/showcase/mobile-chrome/regular/neutral/DBTab-should-match-screenshot.png differ diff --git a/__snapshots__/tab/showcase/mobile-safari/regular/neutral/DBTab-should-match-screenshot.png b/__snapshots__/tab/showcase/mobile-safari/regular/neutral/DBTab-should-match-screenshot.png index 809574dda38..5568c68b575 100644 Binary files a/__snapshots__/tab/showcase/mobile-safari/regular/neutral/DBTab-should-match-screenshot.png and b/__snapshots__/tab/showcase/mobile-safari/regular/neutral/DBTab-should-match-screenshot.png differ diff --git a/__snapshots__/tab/showcase/webkit/regular/neutral/DBTab-should-match-screenshot.png b/__snapshots__/tab/showcase/webkit/regular/neutral/DBTab-should-match-screenshot.png index 55f16677cfc..202d8629a61 100644 Binary files a/__snapshots__/tab/showcase/webkit/regular/neutral/DBTab-should-match-screenshot.png and b/__snapshots__/tab/showcase/webkit/regular/neutral/DBTab-should-match-screenshot.png differ diff --git a/__snapshots__/tabs/showcase/chromium/regular/neutral/DBTabs-should-match-screenshot.png b/__snapshots__/tabs/showcase/chromium/regular/neutral/DBTabs-should-match-screenshot.png index 62b50e856d6..ca9b0e09b38 100644 Binary files a/__snapshots__/tabs/showcase/chromium/regular/neutral/DBTabs-should-match-screenshot.png and b/__snapshots__/tabs/showcase/chromium/regular/neutral/DBTabs-should-match-screenshot.png differ diff --git a/__snapshots__/tabs/showcase/firefox/regular/neutral/DBTabs-should-match-screenshot.png b/__snapshots__/tabs/showcase/firefox/regular/neutral/DBTabs-should-match-screenshot.png index a5c18832b88..42e0b3d7dc4 100644 Binary files a/__snapshots__/tabs/showcase/firefox/regular/neutral/DBTabs-should-match-screenshot.png and b/__snapshots__/tabs/showcase/firefox/regular/neutral/DBTabs-should-match-screenshot.png differ diff --git a/__snapshots__/tabs/showcase/mobile-chrome/regular/neutral/DBTabs-should-match-screenshot.png b/__snapshots__/tabs/showcase/mobile-chrome/regular/neutral/DBTabs-should-match-screenshot.png index 73b85f2772a..e81575fd8e8 100644 Binary files a/__snapshots__/tabs/showcase/mobile-chrome/regular/neutral/DBTabs-should-match-screenshot.png and b/__snapshots__/tabs/showcase/mobile-chrome/regular/neutral/DBTabs-should-match-screenshot.png differ diff --git a/__snapshots__/tabs/showcase/mobile-safari/regular/neutral/DBTabs-should-match-screenshot.png b/__snapshots__/tabs/showcase/mobile-safari/regular/neutral/DBTabs-should-match-screenshot.png index f25238240c3..66b2f64c045 100644 Binary files a/__snapshots__/tabs/showcase/mobile-safari/regular/neutral/DBTabs-should-match-screenshot.png and b/__snapshots__/tabs/showcase/mobile-safari/regular/neutral/DBTabs-should-match-screenshot.png differ diff --git a/__snapshots__/tabs/showcase/webkit/regular/neutral/DBTabs-should-match-screenshot.png b/__snapshots__/tabs/showcase/webkit/regular/neutral/DBTabs-should-match-screenshot.png index 77c8cf7f838..61eda342d4b 100644 Binary files a/__snapshots__/tabs/showcase/webkit/regular/neutral/DBTabs-should-match-screenshot.png and b/__snapshots__/tabs/showcase/webkit/regular/neutral/DBTabs-should-match-screenshot.png differ diff --git a/__snapshots__/tag/showcase/chromium/regular/neutral/DBTag-should-match-screenshot.png b/__snapshots__/tag/showcase/chromium/regular/neutral/DBTag-should-match-screenshot.png index 57e8ec88096..184e11dbc79 100644 Binary files a/__snapshots__/tag/showcase/chromium/regular/neutral/DBTag-should-match-screenshot.png and b/__snapshots__/tag/showcase/chromium/regular/neutral/DBTag-should-match-screenshot.png differ diff --git a/__snapshots__/tag/showcase/firefox/regular/neutral/DBTag-should-match-screenshot.png b/__snapshots__/tag/showcase/firefox/regular/neutral/DBTag-should-match-screenshot.png index b1e83ed6984..7c174114c2d 100644 Binary files a/__snapshots__/tag/showcase/firefox/regular/neutral/DBTag-should-match-screenshot.png and b/__snapshots__/tag/showcase/firefox/regular/neutral/DBTag-should-match-screenshot.png differ diff --git a/__snapshots__/tag/showcase/mobile-chrome/regular/neutral/DBTag-should-match-screenshot.png b/__snapshots__/tag/showcase/mobile-chrome/regular/neutral/DBTag-should-match-screenshot.png index 768399cb23f..b91f510b403 100644 Binary files a/__snapshots__/tag/showcase/mobile-chrome/regular/neutral/DBTag-should-match-screenshot.png and b/__snapshots__/tag/showcase/mobile-chrome/regular/neutral/DBTag-should-match-screenshot.png differ diff --git a/__snapshots__/tag/showcase/mobile-safari/regular/neutral/DBTag-should-match-screenshot.png b/__snapshots__/tag/showcase/mobile-safari/regular/neutral/DBTag-should-match-screenshot.png index 19b8224c3d6..edf863bc3d1 100644 Binary files a/__snapshots__/tag/showcase/mobile-safari/regular/neutral/DBTag-should-match-screenshot.png and b/__snapshots__/tag/showcase/mobile-safari/regular/neutral/DBTag-should-match-screenshot.png differ diff --git a/__snapshots__/tag/showcase/webkit/regular/neutral/DBTag-should-match-screenshot.png b/__snapshots__/tag/showcase/webkit/regular/neutral/DBTag-should-match-screenshot.png index fa76ad44e07..359823b5fae 100644 Binary files a/__snapshots__/tag/showcase/webkit/regular/neutral/DBTag-should-match-screenshot.png and b/__snapshots__/tag/showcase/webkit/regular/neutral/DBTag-should-match-screenshot.png differ diff --git a/__snapshots__/textarea/showcase/chromium/regular/neutral/DBTextarea-should-match-screenshot.png b/__snapshots__/textarea/showcase/chromium/regular/neutral/DBTextarea-should-match-screenshot.png index 7802d4b9a06..0a5f503eb7a 100644 Binary files a/__snapshots__/textarea/showcase/chromium/regular/neutral/DBTextarea-should-match-screenshot.png and b/__snapshots__/textarea/showcase/chromium/regular/neutral/DBTextarea-should-match-screenshot.png differ diff --git a/__snapshots__/textarea/showcase/firefox/regular/neutral/DBTextarea-should-match-screenshot.png b/__snapshots__/textarea/showcase/firefox/regular/neutral/DBTextarea-should-match-screenshot.png index fb93acf1a3a..34ec699fd08 100644 Binary files a/__snapshots__/textarea/showcase/firefox/regular/neutral/DBTextarea-should-match-screenshot.png and b/__snapshots__/textarea/showcase/firefox/regular/neutral/DBTextarea-should-match-screenshot.png differ diff --git a/__snapshots__/textarea/showcase/mobile-chrome/regular/neutral/DBTextarea-should-match-screenshot.png b/__snapshots__/textarea/showcase/mobile-chrome/regular/neutral/DBTextarea-should-match-screenshot.png index f717b87abf5..c9f1186c362 100644 Binary files a/__snapshots__/textarea/showcase/mobile-chrome/regular/neutral/DBTextarea-should-match-screenshot.png and b/__snapshots__/textarea/showcase/mobile-chrome/regular/neutral/DBTextarea-should-match-screenshot.png differ diff --git a/__snapshots__/textarea/showcase/mobile-safari/regular/neutral/DBTextarea-should-match-screenshot.png b/__snapshots__/textarea/showcase/mobile-safari/regular/neutral/DBTextarea-should-match-screenshot.png index 1610fc55358..0c5143ae771 100644 Binary files a/__snapshots__/textarea/showcase/mobile-safari/regular/neutral/DBTextarea-should-match-screenshot.png and b/__snapshots__/textarea/showcase/mobile-safari/regular/neutral/DBTextarea-should-match-screenshot.png differ diff --git a/__snapshots__/textarea/showcase/webkit/regular/neutral/DBTextarea-should-match-screenshot.png b/__snapshots__/textarea/showcase/webkit/regular/neutral/DBTextarea-should-match-screenshot.png index 1cc943dd502..c60cc717b63 100644 Binary files a/__snapshots__/textarea/showcase/webkit/regular/neutral/DBTextarea-should-match-screenshot.png and b/__snapshots__/textarea/showcase/webkit/regular/neutral/DBTextarea-should-match-screenshot.png differ diff --git a/docs/research/README.md b/docs/research/README.md index ec0522aee91..95d857c55bb 100644 --- a/docs/research/README.md +++ b/docs/research/README.md @@ -18,7 +18,7 @@ You can find more design systems here: Further inspirational links: -- -- +- +- 5. Additionally it might be beneficial to even also already save your HTML explorations within the related components file, like e.g. for `buttons`: `packages/components/src/components/button/index.html` diff --git a/package-lock.json b/package-lock.json index 821607527c3..a6e7df8795e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4055,30 +4055,6 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, - "node_modules/@code-hike/lighter": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@code-hike/lighter/-/lighter-0.7.0.tgz", - "integrity": "sha512-64O07rIORKQLB+5T/GKAmKcD9sC0N9yHFJXa0Hs+0Aee1G+I4bSXxTccuDFP6c/G/3h5Pk7yv7PoX9/SpzaeiQ==", - "funding": { - "url": "https://github.com/code-hike/lighter?sponsor=1" - } - }, - "node_modules/@code-hike/mdx": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@code-hike/mdx/-/mdx-0.9.0.tgz", - "integrity": "sha512-0wg68ZCjVWAkWT4gBUZJ8Mwktjen/XeWyqBQCrhA2IZSbZZnMYsEI6JJEFb/nZoNI3comB3JdxPLykZRq3qT2A==", - "dependencies": { - "@code-hike/lighter": "0.7.0", - "node-fetch": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/code-hike" - }, - "peerDependencies": { - "react": "^16.8.3 || ^17 || ^18" - } - }, "node_modules/@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", @@ -13395,9 +13371,9 @@ } }, "node_modules/dompurify": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.10.tgz", - "integrity": "sha512-WZDL8ZHTliEVP3Lk4phtvjg8SNQ3YMc5WVstxE8cszKZrFjzI4PF4ZTIk9VGAc9vZADO7uGO2V/ZiStcRSAT4Q==" + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.11.tgz", + "integrity": "sha512-Fan4uMuyB26gFV3ovPoEoQbxRRPfTu3CvImyZnhGq5fsIEO+gEFLp45ISFt+kQBWsK5ulDdT0oV28jS1UrwQLg==" }, "node_modules/domutils": { "version": "3.1.0", @@ -13513,6 +13489,7 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "dev": true, "optional": true, "dependencies": { "iconv-lite": "^0.6.2" @@ -13522,6 +13499,7 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -16768,6 +16746,14 @@ "upper-case": "^1.1.3" } }, + "node_modules/highlight.js": { + "version": "11.9.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", + "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -22197,6 +22183,7 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, "dependencies": { "whatwg-url": "^5.0.0" }, @@ -26428,7 +26415,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "devOptional": true + "dev": true }, "node_modules/sander": { "version": "0.5.1", @@ -28801,7 +28788,8 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true }, "node_modules/traverse": { "version": "0.6.8", @@ -29833,7 +29821,8 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true }, "node_modules/webpack": { "version": "5.90.3", @@ -30204,6 +30193,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -31036,8 +31026,8 @@ "showcases/patternhub": { "version": "0.1.0", "dependencies": { - "@code-hike/mdx": "^0.9.0", - "dompurify": "3.0.10", + "dompurify": "3.0.11", + "highlight.js": "^11.9.0", "next": "14.1.4", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/packages/components/overrides/angular/src/components/code-docs/index.ts b/packages/components/overrides/angular/src/components/code-docs/index.ts deleted file mode 100644 index a91da77f265..00000000000 --- a/packages/components/overrides/angular/src/components/code-docs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { DBCodeDocs } from './code-docs'; diff --git a/packages/components/scripts/post-build/components.js b/packages/components/scripts/post-build/components.js index a496b481646..95be7fc22ca 100644 --- a/packages/components/scripts/post-build/components.js +++ b/packages/components/scripts/post-build/components.js @@ -154,10 +154,6 @@ const getComponents = () => [ { name: 'tag' }, - { - name: 'code-docs' - }, - { name: 'checkbox', config: { diff --git a/packages/components/src/components/code-docs/code-docs-web-component.scss b/packages/components/src/components/code-docs/code-docs-web-component.scss deleted file mode 100644 index 17a1c6868fb..00000000000 --- a/packages/components/src/components/code-docs/code-docs-web-component.scss +++ /dev/null @@ -1 +0,0 @@ -@forward "code-docs"; diff --git a/packages/components/src/components/code-docs/code-docs.lite.tsx b/packages/components/src/components/code-docs/code-docs.lite.tsx deleted file mode 100644 index 6aed5c70c8d..00000000000 --- a/packages/components/src/components/code-docs/code-docs.lite.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { Slot, useMetadata, useRef, useStore } from '@builder.io/mitosis'; -import { DBCodeDocsProps, DBCodeDocsState } from './model'; -import { DBCard } from '../card'; -import { cls } from '../../utils'; - -useMetadata({ - isAttachedToShadowDom: true, - component: { - // MS Power Apps - includeIcon: false, - properties: [] - } -}); - -export default function DBCodeDocs(props: DBCodeDocsProps) { - const ref = useRef(null); - // jscpd:ignore-start - const state = useStore({ - open: false, - toggleCode: () => { - state.open = !state.open; - }, - getShowButtonLabel: () => { - return state.open - ? props.hideCodeLabel ?? 'Hide Code' - : props.showCodeLabel ?? 'Show Code'; - } - }); - - // jscpd:ignore-end - - return ( - - {props.children} -
state.toggleCode()}> - - {state.getShowButtonLabel()} - -
- -
-
-
- ); -} diff --git a/packages/components/src/components/code-docs/code-docs.scss b/packages/components/src/components/code-docs/code-docs.scss deleted file mode 100644 index 070610419cd..00000000000 --- a/packages/components/src/components/code-docs/code-docs.scss +++ /dev/null @@ -1,65 +0,0 @@ -@use "@db-ui/foundations/build/scss/variables"; -@use "@db-ui/foundations/build/scss/screen-sizes"; -@use "@db-ui/foundations/build/scss/colors"; -@use "../../styles/component"; - -%code-docs { - min-block-size: variables.$db-sizing-3xl; - align-items: center; - justify-content: center; - padding: variables.$db-spacing-fixed-xl; - padding-block-end: calc( - #{variables.$db-spacing-fixed-xl} + #{variables.$db-sizing-sm} - ); - position: relative; - - .code-details { - position: absolute; - inset-block-end: 0; - inset-inline-end: 0; - inline-size: 100%; - display: flex; - - &[open] { - inset-inline-start: 0; - inset-block-start: 0; - } - - .code-button { - position: absolute; - inset-block-end: 0; - inset-inline-end: 0; - z-index: 1; - - &::-webkit-details-marker { - display: none; - } - } - - .no-code { - margin: auto; - } - - .code { - @extend %db-base-component; - overflow: auto; - position: absolute; - inset-inline-end: 0; - inset-block: 0; - padding-block-end: variables.$db-spacing-fixed-md; - - @include screen-sizes.screen() { - inline-size: 50%; - } - } - } -} - -.db-code-docs { - @extend %code-docs; - /* Workaround for angular db-XYZ as root tag is not working */ - &.db-card, - & > .db-card { - @extend %code-docs; - } -} diff --git a/packages/components/src/components/code-docs/code-docs.spec.tsx b/packages/components/src/components/code-docs/code-docs.spec.tsx deleted file mode 100644 index 6317ae55e8a..00000000000 --- a/packages/components/src/components/code-docs/code-docs.spec.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { test, expect } from '@playwright/experimental-ct-react'; -import AxeBuilder from '@axe-core/playwright'; - -import { DBCodeDocs } from './index'; -// @ts-ignore - vue can only find it with .ts as file ending -import { DEFAULT_VIEWPORT } from '../../shared/constants.ts'; - -const comp = Test; - -const testComponent = () => { - test('should contain text', async ({ mount }) => { - const component = await mount(comp); - await expect(component).toContainText('Test '); - }); - - test('should match screenshot', async ({ mount }) => { - const component = await mount(comp); - await expect(component).toHaveScreenshot(); - }); -}; - -test.describe('DBCodeDocs', () => { - test.use({ viewport: DEFAULT_VIEWPORT }); - testComponent(); -}); - -test.describe('DBCodeDocs', () => { - test('should not have A11y issues', async ({ page, mount }) => { - await mount(comp); - const accessibilityScanResults = await new AxeBuilder({ page }) - .include('.db-code-docs') - .analyze(); - - expect(accessibilityScanResults.violations).toEqual([]); - }); -}); diff --git a/packages/components/src/components/code-docs/docs/Angular.md b/packages/components/src/components/code-docs/docs/Angular.md deleted file mode 100644 index 943dcb2bfcb..00000000000 --- a/packages/components/src/components/code-docs/docs/Angular.md +++ /dev/null @@ -1,3 +0,0 @@ -## Angular - -TODO diff --git a/packages/components/src/components/code-docs/docs/HTML.md b/packages/components/src/components/code-docs/docs/HTML.md deleted file mode 100644 index 9b0451f54aa..00000000000 --- a/packages/components/src/components/code-docs/docs/HTML.md +++ /dev/null @@ -1,3 +0,0 @@ -## HTML - -TODO diff --git a/packages/components/src/components/code-docs/docs/React.md b/packages/components/src/components/code-docs/docs/React.md deleted file mode 100644 index b4cf26e9804..00000000000 --- a/packages/components/src/components/code-docs/docs/React.md +++ /dev/null @@ -1,13 +0,0 @@ -## React - -```typescript -import { DBCodeDocs, DBButton } from '@db-ui/react-components/src'; - -const codeSnippets = ['/*This is a comment for a button*/ \n Test']; - -... - - Test - -... -``` diff --git a/packages/components/src/components/code-docs/docs/Vue.md b/packages/components/src/components/code-docs/docs/Vue.md deleted file mode 100644 index 340e02edf1d..00000000000 --- a/packages/components/src/components/code-docs/docs/Vue.md +++ /dev/null @@ -1,3 +0,0 @@ -## Vue - -TODO diff --git a/packages/components/src/components/code-docs/index.ts b/packages/components/src/components/code-docs/index.ts deleted file mode 100644 index d4652d80766..00000000000 --- a/packages/components/src/components/code-docs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as DBCodeDocs } from './code-docs'; diff --git a/packages/components/src/components/code-docs/model.ts b/packages/components/src/components/code-docs/model.ts deleted file mode 100644 index a4810b3823f..00000000000 --- a/packages/components/src/components/code-docs/model.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { GlobalProps, GlobalState } from '../../shared/model'; - -export interface DBCodeDocsDefaultProps { - showCodeLabel?: string; - hideCodeLabel?: string; - - slotCode?: any; -} - -export type DBCodeDocsProps = DBCodeDocsDefaultProps & GlobalProps; - -export interface DBCodeDocsDefaultState { - open?: boolean; - toggleCode?: () => void; - getShowButtonLabel?: () => string; -} - -export type DBCodeDocsState = DBCodeDocsDefaultState & GlobalState; diff --git a/packages/components/src/components/header/docs/HTML.md b/packages/components/src/components/header/docs/HTML.md index 7eb4bd5511d..42523425333 100644 --- a/packages/components/src/components/header/docs/HTML.md +++ b/packages/components/src/components/header/docs/HTML.md @@ -8,8 +8,204 @@ For general installation and configuration take a look at the [components](https ... -
-
Header
+
+ + + + +
+
+
+ DBHeader +
+
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
``` diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index 22c0235a5cd..a9488727db8 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -4,7 +4,6 @@ export * from './components/brand'; export * from './components/button'; export * from './components/card'; export * from './components/checkbox'; -export * from './components/code-docs'; export * from './components/divider'; export * from './components/drawer'; export * from './components/header'; diff --git a/packages/components/src/styles/db-ui-components.scss b/packages/components/src/styles/db-ui-components.scss index bdba258872e..3f25e6837cf 100644 --- a/packages/components/src/styles/db-ui-components.scss +++ b/packages/components/src/styles/db-ui-components.scss @@ -14,7 +14,6 @@ @forward "../components/alert/alert"; @forward "../components/checkbox/checkbox"; @forward "../components/radio/radio"; -@forward "../components/code-docs/code-docs"; @forward "../components/tag/tag"; @forward "../components/drawer/drawer"; @forward "../components/select/select"; diff --git a/showcases/angular-showcase/src/app/components/default.component.html b/showcases/angular-showcase/src/app/components/default.component.html index 8bae33dd158..cef969cc415 100644 --- a/showcases/angular-showcase/src/app/components/default.component.html +++ b/showcases/angular-showcase/src/app/components/default.component.html @@ -1,9 +1,6 @@ @if (variantRef) { - +
@for ( example of variantRef.examples; @@ -26,7 +23,7 @@
} -
+ } @if (!variantRef) { @@ -43,10 +40,7 @@

{{ title }}

> {{ variant.name }} - +
@for ( example of variant.examples; @@ -72,7 +66,7 @@

{{ title }}

} -
+ } diff --git a/showcases/angular-showcase/src/app/components/default.component.ts b/showcases/angular-showcase/src/app/components/default.component.ts index 53b4b52d286..ee50a5165a9 100644 --- a/showcases/angular-showcase/src/app/components/default.component.ts +++ b/showcases/angular-showcase/src/app/components/default.component.ts @@ -9,7 +9,7 @@ import { NgTemplateOutlet } from '@angular/common'; import { ActivatedRoute } from '@angular/router'; import { DBLink } from '../../../../../output/angular/src/components/link/link'; import { DBDivider } from '../../../../../output/angular/src/components/divider/divider'; -import { DBCodeDocs } from '../../../../../output/angular/src/components/code-docs/code-docs'; +import { DBCard } from '../../../../../output/angular/src/components/card/card'; import type { DefaultComponentProps, DefaultComponentVariants, @@ -25,7 +25,7 @@ import { @Component({ selector: 'app-default-component', templateUrl: './default.component.html', - imports: [DBCodeDocs, DBDivider, DBLink, NgTemplateOutlet], + imports: [DBCard, DBDivider, DBLink, NgTemplateOutlet], standalone: true, schemas: [NO_ERRORS_SCHEMA] }) @@ -84,10 +84,4 @@ export class DefaultComponent implements OnInit { return `${currentUrl}&page=${variantName.toLowerCase()}`; }; - - getCodeSnippets = (examples: DefaultComponentExample[]) => { - return examples - .filter((example) => example.code) - .map((example) => `/* ${example.name} */\n${example.code}`); - }; } diff --git a/showcases/patternhub/components/default-page.tsx b/showcases/patternhub/components/default-page.tsx index 11427255670..c51710896ed 100644 --- a/showcases/patternhub/components/default-page.tsx +++ b/showcases/patternhub/components/default-page.tsx @@ -1,6 +1,7 @@ import { useRouter } from 'next/router'; import dynamic from 'next/dynamic'; import { useEffect, useState } from 'react'; +import hljs from 'highlight.js'; import { DBBrand, DBButton, @@ -19,6 +20,10 @@ const DefaultPage = ({ children }: any) => { const [lastScroll, setLastScroll] = useState(); const router = useRouter(); + useEffect(() => { + hljs.highlightAll(); + }, []); + useEffect(() => { if (router.query) { if (router.query.fullscreen) { diff --git a/showcases/patternhub/components/index.tsx b/showcases/patternhub/components/index.tsx index ca274726572..0e37568fa2f 100644 --- a/showcases/patternhub/components/index.tsx +++ b/showcases/patternhub/components/index.tsx @@ -5,22 +5,44 @@ import type { DefaultComponentVariants } from '../../shared/default-component-data'; import DefaultPage from './default-page'; -import { DBCodeDocs, DBDivider, DBLink } from './src'; +import { DBCard, DBDivider, DBLink } from './src'; -const VariantList = ({ examples, slotCode }: DefaultComponentVariants) => ( - -
- {examples.map((example, exampleIndex) => ( -
- {example.example} +const VariantList = ({ examples, slotCode }: DefaultComponentVariants) => { + const [open, setOpen] = useState(); + return ( + +
+ {examples.map((example, exampleIndex) => ( +
+ {example.example} +
+ ))} +
+ +
{ + setOpen(!open); + }}> + + {open ? 'Hide code' : 'Show code'} + +
+
+ + {slotCode} +
- ))} -
- -); +
+
+ ); +}; const DefaultComponent = ({ title, variants }: DefaultComponentProps) => { const [foundVariant, setFoundVariant] = diff --git a/showcases/patternhub/next.config.js b/showcases/patternhub/next.config.js index f3bfcd8a919..fbc95039f09 100644 --- a/showcases/patternhub/next.config.js +++ b/showcases/patternhub/next.config.js @@ -1,23 +1,11 @@ -import { remarkCodeHike } from '@code-hike/mdx'; import remarkGfm from 'remark-gfm'; import generated from '@next/mdx'; import rehypeSlug from 'rehype-slug'; -import { getTheme } from './code-theme.js'; const withMDX = generated({ extension: /\.mdx?$/, options: { - remarkPlugins: [ - remarkGfm, - [ - remarkCodeHike, - { - theme: getTheme(), - showCopyButton: true, - showExpandButton: true - } - ] - ], + remarkPlugins: [remarkGfm], rehypePlugins: [rehypeSlug], providerImportSource: '@mdx-js/react' } diff --git a/showcases/patternhub/package.json b/showcases/patternhub/package.json index 35f6bd45fc2..381c13eb9ad 100644 --- a/showcases/patternhub/package.json +++ b/showcases/patternhub/package.json @@ -19,11 +19,11 @@ "next:start": "next start", "open": "open-cli http://localhost:3000/mono/sub", "prebuild:app": "cpr ../../node_modules/iframe-resizer/js/ public/iframe-resizer -o", - "start": "cross-env NEXT_PUBLIC_BASE_PATH=/mono/sub npm-run-all compile next:start" + "start": "cross-env NEXT_PUBLIC_BASE_PATH=/mono/sub npm-run-all compile next:dev" }, "dependencies": { - "@code-hike/mdx": "^0.9.0", - "dompurify": "3.0.10", + "dompurify": "3.0.11", + "highlight.js": "^11.9.0", "next": "14.1.4", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/showcases/patternhub/pages/_app.tsx b/showcases/patternhub/pages/_app.tsx index ca7c2429ac8..079694bce1e 100644 --- a/showcases/patternhub/pages/_app.tsx +++ b/showcases/patternhub/pages/_app.tsx @@ -1,8 +1,8 @@ import { MDXProvider } from '@mdx-js/react'; import Script from 'next/script'; import type { AppProps } from 'next/app'; -import '@code-hike/mdx/dist/index.css'; import '../styles/globals.scss'; +import '../styles/highlight.scss'; import '../../showcase-styles.css'; import LinkHeader from '../components/link-header'; diff --git a/showcases/patternhub/scripts/get-code-files.js b/showcases/patternhub/scripts/get-code-files.js index a5eae9209c6..fbf9cfac603 100644 --- a/showcases/patternhub/scripts/get-code-files.js +++ b/showcases/patternhub/scripts/get-code-files.js @@ -8,7 +8,7 @@ import { getCodeByFramework } from './utils.js'; const sharedPath = '../shared'; const reactPath = '../react-showcase/src/components'; -const codeFrameworks = ['angular', 'react', 'vue', 'html']; +const codeFrameworks = ['angular', 'html', 'react', 'vue']; const plugins = [prettier0]; const getFileTypeByFramework = (framework) => { @@ -26,10 +26,37 @@ const getFileTypeByFramework = (framework) => { const getExamplesAsMDX = async (componentName, variant) => { const examples = variant.examples; - let result = ''; + let result = + "import { useEffect, useState } from 'react';\n" + + 'import {\n' + + 'DBButton,\n' + + 'DBCard,\n' + + 'DBTab,\n' + + 'DBTabList,\n' + + 'DBTabPanel,\n' + + 'DBTabs\n' + + "} from '../../../../../../output/react/src';\n" + + `const ${variant.name} = () => { + const [copied, setCopied] = useState(); + + useEffect(() => { + if (copied) { + setTimeout(() => setCopied(false), 1500); + } + }, [copied]); + return ( + <>`; for (const example of examples) { - result += '\n\n'; + result += ` + + + + Angular + HTML + React + Vue + `; for (const framework of codeFrameworks) { let exampleCode; @@ -57,16 +84,39 @@ const getExamplesAsMDX = async (componentName, variant) => { // We do not care about errors here } - result += `\`\`\`${getFileTypeByFramework( - framework - )} ${framework}\n`; - result += `${exampleCode?.replace(/;/g, '')}\n`; - result += '```\n\n'; + exampleCode = exampleCode?.replace(/;/g, '').trim(); + + result += ` + +
+				{\`${exampleCode}\`}
+				
+ + { + setCopied(true); + navigator.clipboard.writeText(\`${exampleCode}\`); + }}> + Copy + +
`; } - result += '
\n\n'; + result += ` + + `; } + result += ` +); +}; + +export default ${variant.name};`; + return result; }; @@ -90,7 +140,7 @@ const writeCodeFiles = async (componentPath, componentName) => { } FS.writeFileSync( - `${codePath}/${variant.name}.mdx`, + `${codePath}/${variant.name}.tsx`, await getExamplesAsMDX(componentName, variant) ); } @@ -104,7 +154,7 @@ const writeCodeFiles = async (componentPath, componentName) => { pre = variants .map( (variant) => - `import ${variant.name} from './code/${variant.name}.mdx'` + `import ${variant.name} from './code/${variant.name}'` ) .join('\n'); tags = variants.map((variant) => `<${variant.name}/>`).join(','); diff --git a/showcases/patternhub/styles/globals.scss b/showcases/patternhub/styles/globals.scss index b41cb6e414f..e0ce94d6984 100644 --- a/showcases/patternhub/styles/globals.scss +++ b/showcases/patternhub/styles/globals.scss @@ -3,6 +3,8 @@ @use "@db-ui/foundations/build/scss/screen-sizes"; @use "@db-ui/foundations/build/scss/tonality"; +@use "@db-ui/components/build/styles/_dialog-init"; + @forward "@db-ui/components/build/styles/db-ui-42-webpack"; @forward "@db-ui/foundations/build/css/colors/classes/all"; @forward "@db-ui/foundations/build/css/fonts/classes/all"; @@ -114,7 +116,7 @@ div[class^="ch-"] { div, span { @extend %db-overwrite-font-size-sm; - color: colors.$db-base-on-bg; + color: white; } } @@ -345,3 +347,69 @@ h6 { } } } + +.db-code-docs { + min-block-size: variables.$db-sizing-3xl; + align-items: center; + justify-content: center; + padding: variables.$db-spacing-fixed-xl; + margin-block-end: calc( + #{variables.$db-spacing-fixed-xl} + #{variables.$db-sizing-sm} + ); + position: relative; + + .code-details { + display: flex; + + &[open] { + inset-inline-start: 0; + inset-block-start: 0; + } + + .code-button { + position: absolute; + inset-block-end: calc( + -1 * (#{variables.$db-spacing-fixed-sm} + #{variables.$db-sizing-sm}) + ); + inset-inline-end: variables.$db-spacing-fixed-sm; + z-index: 1; + cursor: pointer; + + &::-webkit-details-marker { + display: none; + } + } + + .no-code { + margin: auto; + } + + .backdrop { + border-radius: variables.$db-border-radius-lg; + @extend %backdrop; + position: absolute; + inset: 0; + } + + .code { + overflow: auto; + position: absolute; + inset: 0; + z-index: 1; + margin: variables.$db-spacing-fixed-md; + display: flex; + flex-direction: column; + gap: variables.$db-spacing-fixed-sm; + + .tab-container { + position: relative; + + .copy-button { + position: absolute; + inset-inline-end: variables.$db-spacing-fixed-sm; + inset-block-start: variables.$db-spacing-fixed-sm; + } + } + } + } +} diff --git a/showcases/patternhub/styles/highlight.scss b/showcases/patternhub/styles/highlight.scss new file mode 100644 index 00000000000..eca0c113263 --- /dev/null +++ b/showcases/patternhub/styles/highlight.scss @@ -0,0 +1,113 @@ +@use "@db-ui/foundations/build/scss/variables"; +@use "@db-ui/foundations/build/scss/colors"; + +pre:has(.hljs):not(:has(.language-shell)) { + @extend %db-bg-neutral-transparent-full; + + .hljs { + @extend %db-bg-neutral-transparent-full; + } +} + +.hljs-doctag, +.hljs-keyword, +.hljs-meta .hljs-keyword, +.hljs-template-tag, +.hljs-template-variable, +.hljs-type, +.hljs-variable.language_ { + /* prettylights-syntax-keyword */ + color: colors.$db-successful-text; +} + +.hljs-title, +.hljs-title.class_, +.hljs-title.class_.inherited__, +.hljs-title.function_ { + /* prettylights-syntax-entity */ + color: colors.$db-successful-text; +} +.hljs-attribute, +.hljs-literal, +.hljs-number, +.hljs-operator, +.hljs-variable, +.hljs-selector-attr, +.hljs-selector-class, +.hljs-selector-id { + /* prettylights-syntax-constant */ + color: colors.$db-successful-text; +} +.hljs-regexp, +.hljs-string, +.hljs-meta .hljs-string { + /* prettylights-syntax-string */ + color: colors.$db-successful-text; +} +.hljs-built_in, +.hljs-symbol { + /* prettylights-syntax-variable */ + color: colors.$db-warning-text; +} +.hljs-attr { + color: colors.$db-informational-text; +} +.hljs-meta, +.hljs-comment, +.hljs-code, +.hljs-formula { + /* prettylights-syntax-comment */ + color: colors.$db-current-color; +} + +.hljs-tag, +.hljs-name { + color: colors.$db-warning-text; +} + +.hljs-quote, +.hljs-selector-tag, +.hljs-selector-pseudo { + /* prettylights-syntax-entity-tag */ + color: colors.$db-successful-text; +} +.hljs-subst { + /* prettylights-syntax-storage-modifier-import */ + color: colors.$db-neutral-bg; +} +.hljs-section { + /* prettylights-syntax-markup-heading */ + color: colors.$db-informational-text; + font-weight: bold; +} +.hljs-bullet { + /* prettylights-syntax-markup-list */ + color: colors.$db-warning-text; +} +.hljs-emphasis { + /* prettylights-syntax-markup-italic */ + color: colors.$db-current-color; + font-style: italic; +} +.hljs-strong { + /* prettylights-syntax-markup-bold */ + color: colors.$db-current-color; + font-weight: bold; +} +.hljs-addition { + /* prettylights-syntax-markup-inserted */ + color: colors.$db-successful-text; + background-color: colors.$db-neutral-text; +} +.hljs-deletion { + /* prettylights-syntax-markup-deleted */ + color: colors.$db-critical-text; + background-color: colors.$db-neutral-text; +} +.hljs-char.escape_, +.hljs-link, +.hljs-params, +.hljs-property, +.hljs-punctuation { + /* purposely ignored */ +} diff --git a/showcases/react-showcase/src/components/index.tsx b/showcases/react-showcase/src/components/index.tsx index 5c500ecb485..4dcc67d8b5a 100644 --- a/showcases/react-showcase/src/components/index.tsx +++ b/showcases/react-showcase/src/components/index.tsx @@ -1,4 +1,4 @@ -import { DBCodeDocs, DBDivider, DBLink } from '../../../../output/react/src'; +import { DBCard, DBDivider, DBLink } from '../../../../output/react/src'; import useQuery from '../hooks/use-query'; import type { DefaultComponentProps, @@ -6,7 +6,7 @@ import type { } from '../../../shared/default-component-data'; const VariantList = ({ examples }: DefaultComponentVariants) => ( - +
{examples.map((example, exampleIndex) => (
(
))}
-
+ ); const DefaultComponent = ({ title, variants }: DefaultComponentProps) => { diff --git a/showcases/shared/drawer.json b/showcases/shared/drawer.json index 96875ea117a..38cacd520ed 100644 --- a/showcases/shared/drawer.json +++ b/showcases/shared/drawer.json @@ -5,17 +5,35 @@ { "name": "functional", "className": "db-ui-functional", - "props": {} + "props": {}, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
functional
\n\t\t
\n\t
", + "angular": "\n\tfunctional\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tfunctional\n\t\t\t", + "vue": "\n\t\tfunctional\n\t" + } }, { "name": "regular (Default)", "className": "db-ui-regular", - "props": {} + "props": {}, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
regular (Default)
\n\t\t
\n\t
", + "angular": "\n\tregular (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tregular (Default)\n\t\t\t", + "vue": "\n\t\tregular (Default)\n\t" + } }, { "name": "expressive", "className": "db-ui-expressive", - "props": {} + "props": {}, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
expressive
\n\t\t
\n\t
", + "angular": "\n\texpressive\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\texpressive\n\t\t\t", + "vue": "\n\t\texpressive\n\t" + } } ] }, @@ -23,9 +41,15 @@ "name": "Size", "examples": [ { - "name": "With padding (Default)", + "name": "Medium (Default)", "props": { "withCloseButton": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
With padding (Default)
\n\t\t
\n\t
", + "angular": "\n\tWith padding (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tWith padding (Default)\n\t\t\t", + "vue": "With padding (Default)" } }, { @@ -33,6 +57,12 @@ "props": { "withCloseButton": true, "width": "full" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Full
\n\t\t
\n\t
", + "angular": "\n\tFull\n", + "react": "\t\t\t {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tFull\n\t\t\t", + "vue": "\t\n\t\tFull\n\t" } } ] @@ -44,6 +74,12 @@ "name": "No rounding (Default)", "props": { "withCloseButton": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
No rounding (Default)
\n\t\t
\n\t
", + "angular": "\n\tNo rounding (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tNo rounding (Default)\n\t\t\t", + "vue": "No rounding (Default)" } }, { @@ -51,6 +87,12 @@ "props": { "withCloseButton": true, "rounded": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Rounded
\n\t\t
\n\t
", + "angular": "\n\tRounded\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tRounded\n\t\t\t", + "vue": "Rounded" } } ] @@ -62,6 +104,12 @@ "name": "Medium (Default)", "props": { "withCloseButton": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Medium (Default)
\n\t\t
\n\t
", + "angular": "\n\tMedium (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMedium (Default)\n\t\t\t", + "vue": "Medium (Default)" } }, { @@ -69,6 +117,12 @@ "props": { "withCloseButton": true, "spacing": "small" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Small
\n\t\t
\n\t
", + "angular": "\n\tSmall\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tSmall\n\t\t\t", + "vue": "Small" } }, { @@ -76,6 +130,12 @@ "props": { "withCloseButton": true, "spacing": "large" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Large
\n\t\t
\n\t
", + "angular": "\n\tLarge\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tLarge\n\t\t\t", + "vue": "Large" } }, { @@ -83,6 +143,12 @@ "props": { "withCloseButton": true, "spacing": "none" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
None
\n\t\t
\n\t
", + "angular": "\n\tNone\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tNone\n\t\t\t", + "vue": "None" } } ] @@ -94,6 +160,12 @@ "name": "With Backdrop (Default)", "props": { "withCloseButton": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
With Backdrop (Default)
\n\t\t
\n\t
", + "angular": "\n\tWith Backdrop (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tWith Backdrop (Default)\n\t\t\t", + "vue": "With Backdrop (Default)" } }, { @@ -101,6 +173,12 @@ "props": { "withCloseButton": true, "backdrop": "weak" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Backdrop-weak
\n\t\t
\n\t
", + "angular": "\n\tBackdrop-weak\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tBackdrop-weak\n\t\t\t", + "vue": "Backdrop-weak" } }, { @@ -108,6 +186,12 @@ "props": { "withCloseButton": true, "backdrop": "none" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
No Backdrop
\n\t\t
\n\t
", + "angular": "\n\tNo Backdrop\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tNo Backdrop\n\t\t\t", + "vue": "No Backdrop" } } ] @@ -119,6 +203,12 @@ "name": "Right (Default)", "props": { "withCloseButton": true + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Right (Default)
\n\t\t
\n\t
", + "angular": "\n\tRight (Default)\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tRight (Default)\n\t\t\t", + "vue": "Right (Default)" } }, { @@ -126,6 +216,12 @@ "props": { "withCloseButton": true, "direction": "left" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Left
\n\t\t
\n\t
", + "angular": "\n\tLeft\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tLeft\n\t\t\t", + "vue": "Left" } }, { @@ -133,6 +229,12 @@ "props": { "withCloseButton": true, "direction": "up" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Up
\n\t\t
\n\t
", + "angular": "\n\tUp\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tUp\n\t\t\t", + "vue": "Up" } }, { @@ -140,6 +242,12 @@ "props": { "withCloseButton": true, "direction": "down" + }, + "code": { + "html": "\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tClose Button\n\t\t\t\t\n\t\t\t
\n\t\t\t
Down
\n\t\t
\n\t
", + "angular": "\n\tDown\n", + "react": " {\n\t\t\t\t\tsetOpen(false);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tDown\n\t\t\t", + "vue": "Down" } } ] diff --git a/showcases/shared/header.json b/showcases/shared/header.json index 251156fbf82..8da31800e6d 100644 --- a/showcases/shared/header.json +++ b/showcases/shared/header.json @@ -5,17 +5,35 @@ { "name": "functional", "className": "db-ui-functional", - "props": {} + "props": {}, + "code": { + "html": "
\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tClose Button\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t\tImprintHelp\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default) disabled\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tSearch\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tBurgerMenu\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tProfile\n\t\t\t\t\t\tNotification\n\t\t\t\t\t\tHelp\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
", + "angular": "\n\tDBHeader\n\t\n\t\tfunctionalfunctional disabled\n\t\n\t\n\t\tImprint\n\t\tHelp\n\t\n\t\n\t\t\n\t\t\tSearch\n\t\t\n\t\n\t\n\t\t\n\t\t\tProfile\n\t\t\n\t\t\n\t\t\tNotification\n\t\t\n\t\t Help \n\t\n", + "react": "\n\t\t\t\tDBHeader\n\t\t\t\n\t\t}\n\t\tslotMetaNavigation={\n\t\t\t<>\n\t\t\t\tImprint\n\t\t\t\tHelp\n\t\t\t\n\t\t}\n\t\tslotCallToAction={\n\t\t\t\n\t\t\t\tSearch\n\t\t\t\n\t\t}\n\t\tslotActionBar={\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\tProfile\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tNotification\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHelp\n\t\t\t\t\n\t\t\t\n\t\t}>\n\t\t\n\t\t\t\n\t\t\t\tfunctional\n\t\t\t\n\t\t\t\n\t\t\t\tfunctional disabled\n\t\t\t\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\tfunctional\n\t\t\t\n\t\t\t\n\t\t\t\tfunctional disabled\n\t\t\t\n\t\t\n\t" + } }, { "name": "regular (Default)", "className": "db-ui-regular", - "props": {} + "props": {}, + "code": { + "html": "
\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tClose Button\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t\tImprintHelp\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default) disabled\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tSearch\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tBurgerMenu\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tProfile\n\t\t\t\t\t\tNotification\n\t\t\t\t\t\tHelp\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t
", + "angular": "\n\tDBHeader\n\t\n\t\tregular (Default)regular (Default) disabled\n\t\n\t\n\t\tImprint\n\t\tHelp\n\t\n\t\n\t\t\n\t\t\tSearch\n\t\t\n\t\n\t\n\t\t\n\t\t\tProfile\n\t\t\n\t\t\n\t\t\tNotification\n\t\t\n\t\t Help \n\t\n", + "react": "\n\t\t\t\tDBHeader\n\t\t\t\n\t\t}\n\t\tslotMetaNavigation={\n\t\t\t<>\n\t\t\t\tImprint\n\t\t\t\tHelp\n\t\t\t\n\t\t}\n\t\tslotCallToAction={\n\t\t\t\n\t\t\t\tSearch\n\t\t\t\n\t\t}\n\t\tslotActionBar={\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\tProfile\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tNotification\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHelp\n\t\t\t\t\n\t\t\t\n\t\t}>\n\t\t\n\t\t\t\n\t\t\t\tregular (Default)\n\t\t\t\n\t\t\t\n\t\t\t\tregular (Default) disabled\n\t\t\t\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\tregular (Default)\n\t\t\t\n\t\t\t\n\t\t\t\tregular (Default) disabled\n\t\t\t\n\t\t\n\t" + } }, { "name": "expressive", "className": "db-ui-expressive", - "props": {} + "props": {}, + "code": { + "html": "
\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tClose Button\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t\tImprintHelp\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default) disabled\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tSearch\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tBurgerMenu\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tProfile\n\t\t\t\t\t\tNotification\n\t\t\t\t\t\tHelp\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t
", + "angular": "\n\tDBHeader\n\t\n\t\texpressiveexpressive disabled\n\t\n\t\n\t\tImprint\n\t\tHelp\n\t\n\t\n\t\t\n\t\t\tSearch\n\t\t\n\t\n\t\n\t\t\n\t\t\tProfile\n\t\t\n\t\t\n\t\t\tNotification\n\t\t\n\t\t Help \n\t\n", + "react": "\n\t\t\t\tDBHeader\n\t\t\t\n\t\t}\n\t\tslotMetaNavigation={\n\t\t\t<>\n\t\t\t\tImprint\n\t\t\t\tHelp\n\t\t\t\n\t\t}\n\t\tslotCallToAction={\n\t\t\t\n\t\t\t\tSearch\n\t\t\t\n\t\t}\n\t\tslotActionBar={\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\tProfile\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tNotification\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHelp\n\t\t\t\t\n\t\t\t\n\t\t}>\n\t\t\n\t\t\t\n\t\t\t\texpressive\n\t\t\t\n\t\t\t\n\t\t\t\texpressive disabled\n\t\t\t\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\texpressive\n\t\t\t\n\t\t\t\n\t\t\t\texpressive disabled\n\t\t\t\n\t\t\n\t" + } } ] }, @@ -27,12 +45,24 @@ "style": { "width": "100%", "display": "block" + }, + "code": { + "html": "
\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tClose Button\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t\tImprintHelp\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default) disabled\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tSearch\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tBurgerMenu\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tProfile\n\t\t\t\t\t\tNotification\n\t\t\t\t\t\tHelp\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t
", + "angular": "\n\tDBHeader\n\t\n\t\tDesktop (full width)Desktop (full width) disabled\n\t\n\t\n\t\tImprint\n\t\tHelp\n\t\n\t\n\t\t\n\t\t\tSearch\n\t\t\n\t\n\t\n\t\t\n\t\t\tProfile\n\t\t\n\t\t\n\t\t\tNotification\n\t\t\n\t\t Help \n\t\n", + "react": "\n\t\t\t\tDBHeader\n\t\t\t\n\t\t}\n\t\tslotMetaNavigation={\n\t\t\t<>\n\t\t\t\tImprint\n\t\t\t\tHelp\n\t\t\t\n\t\t}\n\t\tslotCallToAction={\n\t\t\t\n\t\t\t\tSearch\n\t\t\t\n\t\t}\n\t\tslotActionBar={\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\tProfile\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tNotification\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHelp\n\t\t\t\t\n\t\t\t\n\t\t}>\n\t\t\n\t\t\t\n\t\t\t\tDesktop (full width)\n\t\t\t\n\t\t\t\n\t\t\t\tDesktop (full width) disabled\n\t\t\t\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\tDesktop (full width)\n\t\t\t\n\t\t\t\n\t\t\t\tDesktop (full width) disabled\n\t\t\t\n\t\t\n\t" } }, { "name": "Mobile", "props": { "forceMobile": "true" + }, + "code": { + "html": "
\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tClose Button\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t
\n\t\t\tImprintHelp\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tregular (Default) disabled\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tSearch\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tBurgerMenu\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tProfile\n\t\t\t\t\t\tNotification\n\t\t\t\t\t\tHelp\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t
", + "angular": "\n\tDBHeader\n\t\n\t\tMobileMobile disabled\n\t\n\t\n\t\tImprint\n\t\tHelp\n\t\n\t\n\t\t\n\t\t\tSearch\n\t\t\n\t\n\t\n\t\t\n\t\t\tProfile\n\t\t\n\t\t\n\t\t\tNotification\n\t\t\n\t\t Help \n\t\n", + "react": "\n\t\t\t\tDBHeader\n\t\t\t\n\t\t}\n\t\tslotMetaNavigation={\n\t\t\t<>\n\t\t\t\tImprint\n\t\t\t\tHelp\n\t\t\t\n\t\t}\n\t\tslotCallToAction={\n\t\t\t\n\t\t\t\tSearch\n\t\t\t\n\t\t}\n\t\tslotActionBar={\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\tProfile\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tNotification\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHelp\n\t\t\t\t\n\t\t\t\n\t\t}>\n\t\t\n\t\t\t\n\t\t\t\tMobile\n\t\t\t\n\t\t\t\n\t\t\t\tMobile disabled\n\t\t\t\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\tMobile\n\t\t\t\n\t\t\t\n\t\t\t\tMobile disabled\n\t\t\t\n\t\t\n\t" } } ] diff --git a/showcases/shared/main-navigation.json b/showcases/shared/main-navigation.json index b609838e324..a083f607ec8 100644 --- a/showcases/shared/main-navigation.json +++ b/showcases/shared/main-navigation.json @@ -5,17 +5,35 @@ { "name": "functional", "className": "db-ui-functional", - "props": {} + "props": {}, + "code": { + "html": "", + "angular": "\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t Navi-Item 1 \n\t\n\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\n\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t\n", + "react": "\n\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t>\n\t\t\tNavi-Item 1\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\tNavi-Item 1\n\t\t\t\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t" + } }, { "name": "regular (Default)", "className": "db-ui-regular", - "props": {} + "props": {}, + "code": { + "html": "", + "angular": "\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t Navi-Item 1 \n\t\n\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\n\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t\n", + "react": "\n\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t>\n\t\t\tNavi-Item 1\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\tNavi-Item 1\n\t\t\t\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t" + } }, { "name": "expressive", "className": "db-ui-expressive", - "props": {} + "props": {}, + "code": { + "html": "", + "angular": "\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t Navi-Item 1 \n\t\n\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\n\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t\n", + "react": "\n\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 1\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSub-Sub-Navi-Item 2\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\tSub-Navi-Item 1\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tSub-Navi-Item 2\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t>\n\t\t\tNavi-Item 1\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t", + "vue": "\n\t\t\n\t\t\tNavi-Item 1\n\t\t\t\n\t\t\n\t\t\n\t\t\tNavi-Item 2\n\t\t\n\t\t\n\t\t\tNavi-Item 3\n\t\t\n\t" + } } ] } diff --git a/showcases/showcase-styles.css b/showcases/showcase-styles.css index 1075ddb27f2..a92595372c2 100644 --- a/showcases/showcase-styles.css +++ b/showcases/showcase-styles.css @@ -11,6 +11,16 @@ padding: var(--db-spacing-fixed-md); } +.variants-card, +.variants-card > .db-card { + min-block-size: var(--db-sizing-3xl); + align-items: center; + justify-content: center; + padding: var(--db-spacing-fixed-xl); + padding-block-end: calc(var(--db-spacing-fixed-xl) + var(--db-sizing-sm)); + position: relative; +} + .variants-list { display: flex; flex-wrap: wrap; diff --git a/showcases/vue-showcase/src/components/DefaultComponent.vue b/showcases/vue-showcase/src/components/DefaultComponent.vue index 58e1a9e415b..fb374ab5733 100644 --- a/showcases/vue-showcase/src/components/DefaultComponent.vue +++ b/showcases/vue-showcase/src/components/DefaultComponent.vue @@ -1,5 +1,5 @@