Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules
npm-debug.log
.history
.idea
.vscode/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.vscode/

this is a legitimate folder that we still would like to use.

**/build/
**/dist/
build-old/
Expand Down
8 changes: 0 additions & 8 deletions .vscode/settings.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarahbrng why did you remove this file ?

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@
- link "Size"
- text: (Default) Small Medium
- link "Content"
- text: (Default) Text Dot - Small Icon - Small
- text: (Default) Text Icon - Small
- link "Placement"
- text: (Default) Inline Label
- button "LABEL SHOULD BE SET Corner - Top - Left"
- text: Corner - Top - Left
- button "LABEL SHOULD BE SET Corner - Center - Left"
- text: Corner - Center - Left
- button "LABEL SHOULD BE SET Corner - Bottom- Left"
- text: Corner - Bottom- Left
- button "LABEL SHOULD BE SET Corner - Top - Right"
- text: Corner - Top - Right
- button "LABEL SHOULD BE SET Corner - Center - Right"
- text: Corner - Center - Right
- button "LABEL SHOULD BE SET Corner - Bottom- Right"
- text: Corner - Bottom- Right
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- button "LABEL SHOULD BE SET"
- link "Examples"
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Dot - Medium Icon - Medium
- text: 9 12 123 9 12 123 Numbers (Default) Text - Medium Icon - Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- main:
- heading "DBDivider" [level=1]
- link "Density"
- text: Functional (Default) Regular Expressive
- link "Variant"
- text: (Default) Adaptive - Horizontal Adaptive - Vertical
- link "Emphasis"
- text: (Default) Weak Strong
- link "Emphasis"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- contentinfo:
- text: Footer Navigation Content
- paragraph: © Deutsche Bahn AG
- text: Legal Links
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- contentinfo:
- text: Footer Navigation Content
- paragraph: © Deutsche Bahn AG
- text: Legal Links
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- contentinfo:
- text: Footer Navigation Content
- paragraph: © Deutsche Bahn AG
- text: Legal Links
3 changes: 3 additions & 0 deletions packages/components/scripts/post-build/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ export const getComponents = (): Component[] => [
}
}
},
{
name: 'footer'
},
{
name: 'brand'
},
Expand Down
22 changes: 22 additions & 0 deletions packages/components/scripts/post-build/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@ export default (tmp?: boolean) => {
to: `vue`
});

// Transform React props syntax to Vue slots object for footer component
if (componentName === 'footer') {
// Handle footer with both main and meta slots
replaceInFileSync({
files: `../../${outputFolder}/vue/src/components/${componentName}/${componentName}.spec.tsx`,
from: /main=\{(<div>.*?<\/div>)\}\s*meta=\{(<div>.*?<\/div>)\}/gs,
to: '{...{ slots: { main: () => $1, meta: () => $2 } }}'
});
// Handle footer with only meta slot (for compOnlyMeta)
replaceInFileSync({
files: `../../${outputFolder}/vue/src/components/${componentName}/${componentName}.spec.tsx`,
from: /(\s+)meta=\{(<div>.*?<\/div>)\}(\s*\/?>\s*)/gs,
to: '$1{...{ slots: { meta: () => $2 } }}$3'
});
// Handle footer with only main slot
replaceInFileSync({
files: `../../${outputFolder}/vue/src/components/${componentName}/${componentName}.spec.tsx`,
from: /(\s+)main=\{(<div>.*?<\/div>)\}(\s*\/?>\s*)/gs,
to: '$1{...{ slots: { main: () => $2 } }}$3'
});
}

replaceInFileSync({
files: `../../${outputFolder}/vue/src/components/${componentName}/index.ts`,
from: `./${componentName}`,
Expand Down
Loading
Loading