Skip to content

Commit

Permalink
refactor: ran prettier code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Dec 15, 2023
1 parent b3cce30 commit 6c62eaa
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 27 deletions.
8 changes: 7 additions & 1 deletion packages/components/src/components/badge/badge.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
13 changes: 8 additions & 5 deletions packages/components/src/components/brand/brand.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -26,10 +32,7 @@ export default function DBBrand(props: DBBrandProps) {
// jscpd:ignore-end

return (
<div
ref={ref}
id={props.id}
class={cls('db-brand', props.className)}>
<div ref={ref} id={props.id} class={cls('db-brand', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {
onMount,
Show,
Slot,
useMetadata, useRef,
useMetadata,
useRef,
useStore
} from '@builder.io/mitosis';
import { DBCodeDocsProps, DBCodeDocsState } from './model';
Expand Down Expand Up @@ -41,9 +42,7 @@ export default function DBCodeDocs(props: DBCodeDocsProps) {
// jscpd:ignore-end

return (
<DBCard
ref={ref}
className={cls('db-code-docs', props.className)}>
<DBCard ref={ref} className={cls('db-code-docs', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/components/divider/divider.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/header/docs/React.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ const App = () => (
}
>
<DBMainNavigation>
// 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
</DBMainNavigation>
</DBHeader>
);
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/header/docs/Vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const toggleDrawer = (open: boolean) => {
</template>
<DBMainNavigation>
// 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
</DBMainNavigation>
</DBHeader>
</template>
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/components/icon/icon.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/input/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
GlobalState,
IconAfterProps,
IconProps,
KeyValueType,
KeyValueType
} from '../../shared/model';

export type DBInputDefaultProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/page/page.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {
onMount,
Show,
Slot,
useMetadata, useRef,
useMetadata,
useRef,
useStore
} from '@builder.io/mitosis';
import { DBPageProps, DBPageState } from './model';
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/components/section/section.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
9 changes: 8 additions & 1 deletion packages/components/src/components/tab-bar/tab-bar.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 1 addition & 4 deletions packages/components/src/components/tab/tab.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ export default function DBTab(props: DBTabProps) {
// jscpd:ignore-end

return (
<div
ref={ref}
id={props.id}
class={cls('db-tab', props.className)}>
<div ref={ref} id={props.id} class={cls('db-tab', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/components/tag/tag.lite.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 4 additions & 2 deletions packages/foundations/assets/icons/README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6c62eaa

Please sign in to comment.