Skip to content

Commit

Permalink
lyne 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Aug 19, 2024
1 parent 128bc13 commit 67f800b
Show file tree
Hide file tree
Showing 99 changed files with 1,312 additions and 346 deletions.
351 changes: 177 additions & 174 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@11ty/eleventy-fetch": "^4.0.0",
"@kevingimbel/eleventy-plugin-mermaid": "^2.1.0",
"@lit-labs/eleventy-plugin-lit": "^1.0.3",
"@sbb-esta/lyne-elements": "1.6.0",
"@sbb-esta/lyne-elements-experimental": "1.6.0",
"@sbb-esta/lyne-elements": "1.7.0",
"@sbb-esta/lyne-elements-experimental": "1.7.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"copyfiles": "^2.4.1",
"eleventy-plugin-i18n": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/_data/lyne/lyneversion.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
url: 'https://raw.githubusercontent.com/sbb-design-systems/lyne-components/',
branch: "v1.6.0",
branch: "v1.7.0",
master: "master",
path: "/src/elements/",
dok: '/readme.md'
Expand Down
4 changes: 4 additions & 0 deletions src/_data/lyne/playgrounds/formfield.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"default":"m",
"mode":"property",
"options" : [{
"value":"s",
"label":"s"
},
{
"value":"m",
"label":"m"
},
Expand Down
55 changes: 55 additions & 0 deletions src/_data/lyne/playgrounds/linklistanchor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"tag":"sbb-link-list-anchor",
"content":"<sbb-link-list-anchor class='demo-item' size='s' title-level='2' title-content='Title'><sbb-block-link href='#'>Link 1</sbb-block-link><sbb-block-link href='#'>Link 2</sbb-block-link><sbb-block-link href='#'>Link 3</sbb-block-link></sbb-link-list-anchor>",
"configuration" : [{
"attribute":"title-content",
"label":"title-content",
"target":"demo-item",
"default":"Title",
"mode":"property",
"options" : [{
"value":"Title",
"label":"true"
},
{
"value":"",
"label":"false"
}]
},
{
"attribute":"size",
"label":"size",
"target":"demo-item",
"default":"s",
"mode":"property",
"options" : [{
"value":"xs",
"label":"xs"
},
{
"value":"s",
"label":"s"
},
{
"value":"m",
"label":"m"
}]
},
{
"attribute":"negative",
"label":"negative",
"target":"demo-item",
"default":"false",
"mode":"boolean",
"options" : [{
"value":"false",
"label":"false"
},
{
"value":"true",
"label":"true"
}]
}

]
}
46 changes: 46 additions & 0 deletions src/_data/lyne/playgrounds/minibuttongroup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"tag":"sbb-mini-button-group",
"content":"<sbb-mini-button-group size='m' class='demo-item'><sbb-mini-button aria-label='previous' icon-name='chevron-small-left-small'></sbb-mini-button><sbb-mini-button aria-label='next' icon-name='chevron-small-right-small'></sbb-mini-button><sbb-divider orientation='vertical'></sbb-divider><sbb-mini-button aria-label='edit' icon-name='pen-small'></sbb-mini-button><sbb-mini-button aria-label='duplicate' icon-name='copy-small'></sbb-mini-button><sbb-mini-button aria-label='delete' icon-name='trash-small'></sbb-mini-button><sbb-divider orientation='vertical'></sbb-divider><sbb-mini-button aria-label='bookmark' icon-name='star-small'></sbb-mini-button></sbb-mini-button-group>",
"configuration" : [
{
"attribute":"size",
"label":"size",
"target":"demo-item",
"default":"m",
"mode":"property",
"options" : [{
"value":"s",
"label":"s"
},
{
"value":"m",
"label":"m"
},
{
"value":"l",
"label":"l"
},
{
"value":"xl",
"label":"xl"
}]
},

{
"attribute":"negative",
"label":"negative",
"target":"demo-item",
"default":"false",
"mode":"boolean",
"options" : [{
"value":"false",
"label":"false"
},
{
"value":"true",
"label":"true"
}]
}

]
}
18 changes: 17 additions & 1 deletion src/_data/lyne/playgrounds/teaserhero.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tag":"sbb-teaser-hero",
"content":"<sbb-teaser-hero style='width:100%' class='demo-item' href='#' link-content='Find out more'>Break out and explore castles and palaces.<sbb-image id='image' slot='image' image-src='https://cdn.img.sbb.ch/content/dam/internet/lyne/Hoehenrundweg-Gryden-Lenk.jpg' alt='Alt'/></sbb-teaser-hero>",
"content":"<sbb-teaser-hero style='width:100%' class='demo-item' href='#' link-content='Find out more'>Break out and explore castles and palaces.<sbb-image id='image' slot='image' image-src='https://cdn.img.sbb.ch/content/dam/internet/lyne/Hoehenrundweg-Gryden-Lenk.jpg' alt='Alt'></sbb-image><sbb-chip class='chip' slot='chip'>Label</sbb-chip></sbb-teaser-hero>",
"configuration" : [
{
"attribute":"link-content",
Expand All @@ -16,6 +16,22 @@
"value":"Ein viel zu langer Linktext wird umbrochen.",
"label":"long"
}]
},
{
"attribute":"chip",
"label":"chip",
"target":"chip",
"default":"chip",
"mode":"slot",
"options" : [{
"value":"chip",
"label":"true"
},
{
"value":"test",
"label":"false"
}
]
}
]
}
52 changes: 52 additions & 0 deletions src/_data/lyne/playgrounds/teaserproduct.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"tag":"sbb-teaser-hero",
"content":"<sbb-teaser-product class='demo-item' image-alignment='after' href='#'><sbb-image slot='image' image-src='https://cdn.img.sbb.ch/content/dam/internet/lyne/online-kaufen.jpg'></sbb-image><sbb-title level='3' class='sbb-teaser-product--spacing'>Benefit from up to 70% discount</sbb-title><p class='sbb-teaser-product--spacing'> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sit amet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donec tempor mi vel dapibus lobortis. Sed at ex sit amet leo suscipit fermentum. Donec consequat hendrerit tortor, ut laoreet velit congue in.</p><sbb-button-static class='sbb-teaser-product--spacing'>Label</sbb-button-static><p slot='footnote' class='footnote' class='sbb-teaser-product--spacing'>Footnote Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sitamet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donectempor mi vel dapibus lobortis.</p></sbb-teaser-product>",
"configuration" : [
{
"attribute":"image-alignment",
"label":"image-alignment",
"target":"demo-item",
"default":"after",
"mode":"property",
"options" : [{
"value":"after",
"label":"after"
},
{
"value":"before",
"label":"before"
}]
},
{
"attribute":"negative",
"label":"negative",
"target":"demo-item",
"default":"false",
"mode":"boolean",
"options" : [{
"value":"false",
"label":"false"
},
{
"value":"true",
"label":"true"
}]
},
{
"attribute":"footnote",
"label":"footnote",
"target":"footnote",
"default":"footnote",
"mode":"slot",
"options" : [{
"value":"footnote",
"label":"true"
},
{
"value":"test",
"label":"false"
}
]
}
]
}
52 changes: 52 additions & 0 deletions src/_data/lyne/playgrounds/teaserproductstatic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"tag":"sbb-teaser-hero",
"content":"<sbb-teaser-product-static class='demo-item' image-alignment='after'><sbb-image slot='image' image-src='https://cdn.img.sbb.ch/content/dam/internet/lyne/online-kaufen.jpg'></sbb-image><sbb-title level='3' class='sbb-teaser-product--spacing'>Benefit from up to 70% discount</sbb-title><p class='sbb-teaser-product--spacing'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sit amet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donec tempor mi vel dapibus lobortis. Sed at ex sit amet leo suscipit fermentum. Donec consequat hendrerit tortor, ut laoreet velit congue in.</p><sbb-action-group class='sbb-teaser-product--spacing'><sbb-button>Label</sbb-button><sbb-secondary-button>Label</sbb-secondary-button></sbb-action-group><p slot='footnote' class='footnote' class='sbb-teaser-product--spacing'>Footnote Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sitamet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donectempor mi vel dapibus lobortis.</p></sbb-teaser-product-static>",
"configuration" : [
{
"attribute":"image-alignment",
"label":"image-alignment",
"target":"demo-item",
"default":"after",
"mode":"property",
"options" : [{
"value":"after",
"label":"after"
},
{
"value":"before",
"label":"before"
}]
},
{
"attribute":"negative",
"label":"negative",
"target":"demo-item",
"default":"false",
"mode":"boolean",
"options" : [{
"value":"false",
"label":"false"
},
{
"value":"true",
"label":"true"
}]
},
{
"attribute":"footnote",
"label":"footnote",
"target":"footnote",
"default":"footnote",
"mode":"slot",
"options" : [{
"value":"footnote",
"label":"true"
},
{
"value":"test",
"label":"false"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+"/src/elements-experimental/"+"teaser-paid"+lyneversion.dok;
let url = lyneversion.url+lyneversion.branch+lyneversion.path+"button/mini-button-group"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
Expand Down
2 changes: 1 addition & 1 deletion src/_data/lyne/readmes/linklist/linklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+lyneversion.path+"link-list"+lyneversion.dok;
let url = lyneversion.url+lyneversion.branch+lyneversion.path+"link-list/link-list"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
Expand Down
17 changes: 17 additions & 0 deletions src/_data/lyne/readmes/linklist/linklistanchor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+lyneversion.path+"link-list/link-list-anchor"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
duration: "1s",
type: "text"
});
}

module.exports = async function() {
let result = await md();
return result;
};
2 changes: 1 addition & 1 deletion src/_data/lyne/readmes/teaserhero/teaserhero.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+"/src/elements-experimental/"+"teaser-hero"+lyneversion.dok;
let url = lyneversion.url+lyneversion.branch+lyneversion.path+"teaser-hero"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
Expand Down
17 changes: 17 additions & 0 deletions src/_data/lyne/readmes/teaserproduct/teaserproduct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+lyneversion.path+"teaser-product/teaser-product"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
duration: "1s",
type: "text"
});
}

module.exports = async function() {
let result = await md();
return result;
};
17 changes: 17 additions & 0 deletions src/_data/lyne/readmes/teaserproduct/teaserproductstatic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const EleventyFetch = require("@11ty/eleventy-fetch");

var lyneversion = require('../../lyneversion');

let url = lyneversion.url+lyneversion.branch+lyneversion.path+"teaser-product/teaser-product-static"+lyneversion.dok;

const md = async function() {
return EleventyFetch(url, {
duration: "1s",
type: "text"
});
}

module.exports = async function() {
let result = await md();
return result;
};
Loading

0 comments on commit 67f800b

Please sign in to comment.