From 0e2bbc02b7b08ae092b7aeba9f3b4dbc3dfe7ecb Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Tue, 25 Jul 2023 17:50:21 +0200 Subject: [PATCH] refactor: running prettier on the codebase --- packages/components/index.html | 2 +- .../src/components/alert/alert.lite.tsx | 16 ++++++++-------- .../components/src/components/alert/index.html | 2 +- .../src/components/brand/brand.lite.tsx | 7 +++---- .../components/src/components/brand/index.html | 2 +- .../src/components/button/button.lite.tsx | 2 +- .../components/src/components/button/index.html | 2 +- .../src/components/card/card.lite.tsx | 2 +- .../components/src/components/card/index.html | 2 +- .../src/components/checkbox/checkbox.lite.tsx | 2 +- .../src/components/checkbox/index.html | 2 +- .../src/components/code-docs/code-docs.lite.tsx | 2 +- .../src/components/divider/divider.lite.tsx | 2 +- .../src/components/divider/index.html | 2 +- .../components/src/components/drawer/index.html | 2 +- .../src/components/header/header.lite.tsx | 2 +- .../components/src/components/header/index.html | 2 +- .../src/components/icon/icon.lite.tsx | 7 ++----- .../components/src/components/icon/index.html | 2 +- .../src/components/infotext/index.html | 2 +- .../src/components/infotext/infotext.lite.tsx | 2 +- .../components/src/components/input/index.html | 2 +- .../src/components/input/input.lite.tsx | 3 +-- .../components/src/components/input/input.scss | 17 ++++++++++------- .../components/src/components/link/index.html | 2 +- .../src/components/link/link.lite.tsx | 2 +- .../components/src/components/link/link.scss | 4 +++- .../navigation-item/navigation-item.lite.tsx | 2 +- .../src/components/page/page.lite.tsx | 2 +- .../components/src/components/radio/index.html | 2 +- .../src/components/radio/radio.lite.tsx | 2 +- .../src/components/section/index.html | 2 +- .../src/components/section/section.lite.tsx | 2 +- .../components/src/components/select/index.html | 2 +- .../src/components/select/select.scss | 9 +++++++-- .../src/components/tab-bar/tab-bar.lite.tsx | 2 +- .../components/src/components/tab/tab.lite.tsx | 2 +- .../src/components/tag/docs/Migration.md | 4 ++-- .../components/src/components/tag/index.html | 2 +- packages/components/src/components/tag/tag.scss | 3 ++- .../test/playwright/boilerplate/index.html | 2 +- packages/foundations/scss/_font-faces.scss | 15 ++++++++++----- .../scss/icon/_icons.font-faces.scss | 6 ++++-- showcases/angular-showcase/src/index.html | 2 +- showcases/react-showcase/index.html | 2 +- showcases/vanilla-showcase/index.html | 2 +- showcases/vue-showcase/index.html | 2 +- 47 files changed, 88 insertions(+), 75 deletions(-) diff --git a/packages/components/index.html b/packages/components/index.html index 7dd09d9fe2b..7947196bfeb 100644 --- a/packages/components/index.html +++ b/packages/components/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/alert/alert.lite.tsx b/packages/components/src/components/alert/alert.lite.tsx index 0cf271e994d..5b039ecd23b 100644 --- a/packages/components/src/components/alert/alert.lite.tsx +++ b/packages/components/src/components/alert/alert.lite.tsx @@ -1,11 +1,11 @@ -import { onMount, Show, useMetadata, useStore } from "@builder.io/mitosis"; -import { DBAlertProps, DBAlertState } from "./model"; -import { DBIcon } from "../icon"; -import { DefaultVariantsIcon } from "../../shared/model"; -import { DBButton } from "../button"; -import { DBLink } from "../link"; -import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants"; -import { cls } from "../../utils"; +import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis'; +import { DBAlertProps, DBAlertState } from './model'; +import { DBIcon } from '../icon'; +import { DefaultVariantsIcon } from '../../shared/model'; +import { DBButton } from '../button'; +import { DBLink } from '../link'; +import { DEFAULT_CLOSE_BUTTON } from '../../shared/constants'; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/alert/index.html b/packages/components/src/components/alert/index.html index 1701784631f..81899888958 100644 --- a/packages/components/src/components/alert/index.html +++ b/packages/components/src/components/alert/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/brand/brand.lite.tsx b/packages/components/src/components/brand/brand.lite.tsx index 4125b7bf8d5..ecc61ff566f 100644 --- a/packages/components/src/components/brand/brand.lite.tsx +++ b/packages/components/src/components/brand/brand.lite.tsx @@ -24,7 +24,8 @@ useMetadata({ { name: 'imgSrc', type: 'SingleLine.URL', - defaultValue: 'https://ppassets.azureedge.net/assets/images/db_logo.svg' + defaultValue: + 'https://ppassets.azureedge.net/assets/images/db_logo.svg' }, { name: 'imgAlt', @@ -71,9 +72,7 @@ export default function DBBrand(props: DBBrandProps) { diff --git a/packages/components/src/components/brand/index.html b/packages/components/src/components/brand/index.html index 0551a0e5d0f..8c79bbf76f4 100644 --- a/packages/components/src/components/brand/index.html +++ b/packages/components/src/components/brand/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/button/button.lite.tsx b/packages/components/src/components/button/button.lite.tsx index e97204431d0..3854a929f2f 100644 --- a/packages/components/src/components/button/button.lite.tsx +++ b/packages/components/src/components/button/button.lite.tsx @@ -1,6 +1,6 @@ import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis'; import type { DBButtonProps, DBButtonState } from './model'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/button/index.html b/packages/components/src/components/button/index.html index 0a85cb68c51..0208d7c5661 100644 --- a/packages/components/src/components/button/index.html +++ b/packages/components/src/components/button/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/card/card.lite.tsx b/packages/components/src/components/card/card.lite.tsx index 21bfaf4cb75..5302fa52f8c 100644 --- a/packages/components/src/components/card/card.lite.tsx +++ b/packages/components/src/components/card/card.lite.tsx @@ -1,6 +1,6 @@ import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis'; import type { DBCardState, DBCardProps } from './model'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/card/index.html b/packages/components/src/components/card/index.html index e323b7d8b12..e2cd37cc4b4 100644 --- a/packages/components/src/components/card/index.html +++ b/packages/components/src/components/card/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/checkbox/checkbox.lite.tsx b/packages/components/src/components/checkbox/checkbox.lite.tsx index b6c86979769..17dbea11c55 100644 --- a/packages/components/src/components/checkbox/checkbox.lite.tsx +++ b/packages/components/src/components/checkbox/checkbox.lite.tsx @@ -8,7 +8,7 @@ import { import { DBCheckboxProps, DBCheckboxState } from './model'; import { uuid } from '../../utils'; import { DEFAULT_ID } from '../../shared/constants'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/checkbox/index.html b/packages/components/src/components/checkbox/index.html index c211d86d655..168ea7544d7 100644 --- a/packages/components/src/components/checkbox/index.html +++ b/packages/components/src/components/checkbox/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/code-docs/code-docs.lite.tsx b/packages/components/src/components/code-docs/code-docs.lite.tsx index f7e1810a674..212fa50a080 100644 --- a/packages/components/src/components/code-docs/code-docs.lite.tsx +++ b/packages/components/src/components/code-docs/code-docs.lite.tsx @@ -7,7 +7,7 @@ import { } from '@builder.io/mitosis'; import { DBCodeDocsProps, DBCodeDocsState } from './model'; import { DBCard } from '../card'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/divider/divider.lite.tsx b/packages/components/src/components/divider/divider.lite.tsx index 336fe1f0b74..64a70a60a18 100644 --- a/packages/components/src/components/divider/divider.lite.tsx +++ b/packages/components/src/components/divider/divider.lite.tsx @@ -1,6 +1,6 @@ import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis'; import { DBDividerState, DBDividerProps } from './model'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/divider/index.html b/packages/components/src/components/divider/index.html index 6460f0edf84..58fce16c36c 100644 --- a/packages/components/src/components/divider/index.html +++ b/packages/components/src/components/divider/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/drawer/index.html b/packages/components/src/components/drawer/index.html index 01065f0284a..c221b0999ec 100644 --- a/packages/components/src/components/drawer/index.html +++ b/packages/components/src/components/drawer/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/header/header.lite.tsx b/packages/components/src/components/header/header.lite.tsx index 99cbf13315b..b440bcf1355 100644 --- a/packages/components/src/components/header/header.lite.tsx +++ b/packages/components/src/components/header/header.lite.tsx @@ -6,7 +6,7 @@ import { useStore } from '@builder.io/mitosis'; import { DBHeaderState, DBHeaderProps } from './model'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, diff --git a/packages/components/src/components/header/index.html b/packages/components/src/components/header/index.html index e122d2ce7ab..8dc4490e0bf 100644 --- a/packages/components/src/components/header/index.html +++ b/packages/components/src/components/header/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/components/src/components/icon/icon.lite.tsx b/packages/components/src/components/icon/icon.lite.tsx index ea02fb46071..5b0a0aced2e 100644 --- a/packages/components/src/components/icon/icon.lite.tsx +++ b/packages/components/src/components/icon/icon.lite.tsx @@ -1,6 +1,6 @@ import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis'; import type { DBIconState, DBIconProps } from './model'; -import { cls } from "../../utils"; +import { cls } from '../../utils'; useMetadata({ isAttachedToShadowDom: true, @@ -34,10 +34,7 @@ export default function DBIcon(props: DBIconProps) { return (