From 6c62eaa594a3f311cc6080e39201819f3adc9332 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Fri, 15 Dec 2023 09:39:53 +0100 Subject: [PATCH] refactor: ran prettier code styling --- .../components/src/components/badge/badge.lite.tsx | 8 +++++++- .../components/src/components/brand/brand.lite.tsx | 13 ++++++++----- .../src/components/code-docs/code-docs.lite.tsx | 7 +++---- .../src/components/divider/divider.lite.tsx | 8 +++++++- .../components/src/components/header/docs/React.md | 3 ++- .../components/src/components/header/docs/Vue.md | 3 ++- .../components/src/components/icon/icon.lite.tsx | 8 +++++++- .../src/components/infotext/infotext.lite.tsx | 8 +++++++- packages/components/src/components/input/model.ts | 2 +- .../main-navigation/main-navigation.lite.tsx | 8 +++++++- .../components/src/components/page/page.lite.tsx | 3 ++- .../src/components/section/section.lite.tsx | 8 +++++++- .../src/components/tab-bar/tab-bar.lite.tsx | 9 ++++++++- packages/components/src/components/tab/tab.lite.tsx | 5 +---- packages/components/src/components/tag/tag.lite.tsx | 8 +++++++- packages/foundations/assets/icons/README.md | 6 ++++-- 16 files changed, 80 insertions(+), 27 deletions(-) diff --git a/packages/components/src/components/badge/badge.lite.tsx b/packages/components/src/components/badge/badge.lite.tsx index 583e70461d0..e12ccfd7497 100644 --- a/packages/components/src/components/badge/badge.lite.tsx +++ b/packages/components/src/components/badge/badge.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBBadgeState, DBBadgeProps } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/brand/brand.lite.tsx b/packages/components/src/components/brand/brand.lite.tsx index a9f13ebb0e8..794f35dece9 100644 --- a/packages/components/src/components/brand/brand.lite.tsx +++ b/packages/components/src/components/brand/brand.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { cls } from '../../utils'; import { DBBrandState, DBBrandProps } from './model'; @@ -26,10 +32,7 @@ export default function DBBrand(props: DBBrandProps) { // jscpd:ignore-end return ( -
+
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 8b4da71900f..3306d91a8d0 100644 --- a/packages/components/src/components/code-docs/code-docs.lite.tsx +++ b/packages/components/src/components/code-docs/code-docs.lite.tsx @@ -2,7 +2,8 @@ import { onMount, Show, Slot, - useMetadata, useRef, + useMetadata, + useRef, useStore } from '@builder.io/mitosis'; import { DBCodeDocsProps, DBCodeDocsState } from './model'; @@ -41,9 +42,7 @@ export default function DBCodeDocs(props: DBCodeDocsProps) { // jscpd:ignore-end return ( - + diff --git a/packages/components/src/components/divider/divider.lite.tsx b/packages/components/src/components/divider/divider.lite.tsx index cf4694903fc..912179df996 100644 --- a/packages/components/src/components/divider/divider.lite.tsx +++ b/packages/components/src/components/divider/divider.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBDividerState, DBDividerProps } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/header/docs/React.md b/packages/components/src/components/header/docs/React.md index e95155262fd..fdc8b1c332e 100644 --- a/packages/components/src/components/header/docs/React.md +++ b/packages/components/src/components/header/docs/React.md @@ -55,7 +55,8 @@ const App = () => ( } > - // https://github.com/db-ui/mono/blob/main/packages/components/src/components/main-navigation/docs/React.md + // + https://github.com/db-ui/mono/blob/main/packages/components/src/components/main-navigation/docs/React.md ); diff --git a/packages/components/src/components/header/docs/Vue.md b/packages/components/src/components/header/docs/Vue.md index c8195e757db..dfa288d9433 100644 --- a/packages/components/src/components/header/docs/Vue.md +++ b/packages/components/src/components/header/docs/Vue.md @@ -61,7 +61,8 @@ const toggleDrawer = (open: boolean) => { - // https://github.com/db-ui/mono/blob/main/packages/components/src/components/main-navigation/docs/Vue.md + // + https://github.com/db-ui/mono/blob/main/packages/components/src/components/main-navigation/docs/Vue.md diff --git a/packages/components/src/components/icon/icon.lite.tsx b/packages/components/src/components/icon/icon.lite.tsx index 8b30d7f7955..7bc4866d75e 100644 --- a/packages/components/src/components/icon/icon.lite.tsx +++ b/packages/components/src/components/icon/icon.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import type { DBIconState, DBIconProps } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/infotext/infotext.lite.tsx b/packages/components/src/components/infotext/infotext.lite.tsx index daeeed80b18..7d354b09eca 100644 --- a/packages/components/src/components/infotext/infotext.lite.tsx +++ b/packages/components/src/components/infotext/infotext.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBInfotextProps, DBInfotextState } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/input/model.ts b/packages/components/src/components/input/model.ts index b137c2a04f6..76678b6ae67 100644 --- a/packages/components/src/components/input/model.ts +++ b/packages/components/src/components/input/model.ts @@ -12,7 +12,7 @@ import { GlobalState, IconAfterProps, IconProps, - KeyValueType, + KeyValueType } from '../../shared/model'; export type DBInputDefaultProps = { diff --git a/packages/components/src/components/main-navigation/main-navigation.lite.tsx b/packages/components/src/components/main-navigation/main-navigation.lite.tsx index 6af21712b1e..3748a8837b6 100644 --- a/packages/components/src/components/main-navigation/main-navigation.lite.tsx +++ b/packages/components/src/components/main-navigation/main-navigation.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBMainNavigationState, DBMainNavigationProps } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/page/page.lite.tsx b/packages/components/src/components/page/page.lite.tsx index e3e9bf98775..eff775b4ebd 100644 --- a/packages/components/src/components/page/page.lite.tsx +++ b/packages/components/src/components/page/page.lite.tsx @@ -2,7 +2,8 @@ import { onMount, Show, Slot, - useMetadata, useRef, + useMetadata, + useRef, useStore } from '@builder.io/mitosis'; import { DBPageProps, DBPageState } from './model'; diff --git a/packages/components/src/components/section/section.lite.tsx b/packages/components/src/components/section/section.lite.tsx index 8fd29dcd6f1..fa65fc7a2f2 100644 --- a/packages/components/src/components/section/section.lite.tsx +++ b/packages/components/src/components/section/section.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBSectionState, DBSectionProps } from './model'; import { cls } from '../../utils'; diff --git a/packages/components/src/components/tab-bar/tab-bar.lite.tsx b/packages/components/src/components/tab-bar/tab-bar.lite.tsx index c691eb3ca6a..9f68a5a126f 100644 --- a/packages/components/src/components/tab-bar/tab-bar.lite.tsx +++ b/packages/components/src/components/tab-bar/tab-bar.lite.tsx @@ -1,4 +1,11 @@ -import {For, onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + For, + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBTab } from '../tab'; import type { DBTabProps } from '../tab/model'; import type { DBTabBarState, DBTabBarProps } from './model'; diff --git a/packages/components/src/components/tab/tab.lite.tsx b/packages/components/src/components/tab/tab.lite.tsx index c90248cb673..76f106c1b9a 100644 --- a/packages/components/src/components/tab/tab.lite.tsx +++ b/packages/components/src/components/tab/tab.lite.tsx @@ -35,10 +35,7 @@ export default function DBTab(props: DBTabProps) { // jscpd:ignore-end return ( -
+
diff --git a/packages/components/src/components/tag/tag.lite.tsx b/packages/components/src/components/tag/tag.lite.tsx index cb85a429207..785ffa5ac3e 100644 --- a/packages/components/src/components/tag/tag.lite.tsx +++ b/packages/components/src/components/tag/tag.lite.tsx @@ -1,4 +1,10 @@ -import {onMount, Show, useMetadata, useRef, useStore} from '@builder.io/mitosis'; +import { + onMount, + Show, + useMetadata, + useRef, + useStore +} from '@builder.io/mitosis'; import { DBButton } from '../button'; import { DBTagProps, DBTagState } from './model'; import { cls } from '../../utils'; diff --git a/packages/foundations/assets/icons/README.md b/packages/foundations/assets/icons/README.md index d89da3cc03e..fd15fcb0f9c 100644 --- a/packages/foundations/assets/icons/README.md +++ b/packages/foundations/assets/icons/README.md @@ -1,10 +1,12 @@ # Icons This icon package contains all functional and illustrative icons that are provided in the DB UX Design System. The icons can also be found individually in the icon libraries of the marketing portal: -- [Functional Icons](https://marketingportal.extranet.deutschebahn.com/marketingportal/Marke-und-Design/Basiselemente/Icons/Icon-Bibliotheken/Bibliothek-Funktionale-Icons) -- [Illustrative Icons](https://marketingportal.extranet.deutschebahn.com/marketingportal/Marke-und-Design/Basiselemente/Icons/Icon-Bibliotheken/Bibliothek-Illustrative-Icons) + +- [Functional Icons](https://marketingportal.extranet.deutschebahn.com/marketingportal/Marke-und-Design/Basiselemente/Icons/Icon-Bibliotheken/Bibliothek-Funktionale-Icons) +- [Illustrative Icons](https://marketingportal.extranet.deutschebahn.com/marketingportal/Marke-und-Design/Basiselemente/Icons/Icon-Bibliotheken/Bibliothek-Illustrative-Icons) ## Dev related: How to provide these icons + ### Modifications for SVGs We process the following changes: