-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
255 changed files
with
204 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
|
||
## Was macht die Komponente? | ||
Ein Chip ist ein kompaktes, visuelles Element, das eine Information, Eingabe oder Aktion darstellt. | ||
Ein Chip-Label ist ein kompaktes Text-Element. | ||
|
||
## Wann soll die Komponente eingesetzt werden? | ||
* Um kurze, prägnante Informationen anzuzeigen. | ||
* Um ausgewählte Informationen/Optionen in einem Form-Field darzustellen. | ||
* Um Interaktionen wie das Entfernen oder Auswählen einer Option zu ermöglichen. | ||
|
||
## Regeln | ||
* Ein Chip soll klar und kurz beschriftet sein. | ||
* Das Label innerhalb des Chips darf nicht zu lang sein und ist immer einzeilig darzustellen. | ||
* Ein Chip-Label soll klar und kurz beschriftet sein. | ||
* Das Label darf nicht zu lang sein und ist immer einzeilig darzustellen. | ||
* Chips sollen genügend Abstand zueinander haben, um eine klare Trennung und einfache Bedienung zu ermöglichen. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
|
||
## What does the component do? | ||
A chip is a compact, visual element that represents information, input or an action. | ||
A Chip-Label is a compact text element. | ||
|
||
## When should the component be used? | ||
* To display short, concise information. | ||
* To display selected information/options in a form field. | ||
* To enable interactions such as removing or selecting an option. | ||
|
||
## Rules | ||
* A chip should be labelled clearly and briefly. | ||
* The label within the chip must not be too long and must always be displayed in a single line. | ||
* A Chip-Label should be labelled clearly and briefly. | ||
* The label must not be too long and must always be displayed in a single line. | ||
* Chips should have sufficient space between them to enable clear separation and simple operation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ | |
|
||
{.sbb-table} | ||
|
||
</sbb-table-wrapper> | ||
|
||
</sbb-table-wrapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ | |
|
||
{.sbb-table} | ||
|
||
</sbb-table-wrapper> | ||
|
||
</sbb-table-wrapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/_data/lyne/components/sbbFileSelectorDropzone/anatomy_de.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
{%- from "src/_includes/macros/macros.njk" import imageOnGreyBackground -%} | ||
|
||
{{ imageOnGreyBackground({ | ||
url: '/assets/images/lyne/anatomy/anatomy_file_selector_dropzone', | ||
alt: 'Anatomie der Komponente', | ||
title: 'Anatomie der Komponente' | ||
}) }} | ||
|
||
<sbb-table-wrapper> | ||
|
||
|Nummer|Typ|Beschreibung|Optional|Hinweis| | ||
|------|---|------------|--------|-------| | ||
|1|Komponente|`sbb-icon`|Nein|| | ||
|2|Komponente|`sbb-title`|Nein|| | ||
|3|Area|Dropzone|Ja|| | ||
|4|Text|Subtext|Nein|| | ||
|5|Komponente|`sbb-secondary-button`|Nein|Datei auswählen| | ||
|6|Text|Label|Nein|| | ||
|7|Komponente|`sbb-secondary-button`|Nein|Delete-Button| | ||
|8|Text|Dateigrösse|Nein|| | ||
|9|Komponente|`sbb-form-error`|Nein|| | ||
|
||
|
||
{.sbb-table} | ||
|
||
</sbb-table-wrapper> |
27 changes: 27 additions & 0 deletions
27
src/_data/lyne/components/sbbFileSelectorDropzone/anatomy_en.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
{%- from "src/_includes/macros/macros.njk" import imageOnGreyBackground -%} | ||
|
||
{{ imageOnGreyBackground({ | ||
url: '/assets/images/lyne/anatomy/anatomy_file_selector_dropzone', | ||
alt: 'Anatomy of the component', | ||
title: 'Anatomy of the component' | ||
}) }} | ||
|
||
<sbb-table-wrapper> | ||
|
||
|Number|Type|Description|Optional|Info| | ||
|------|---|------------|--------|-------| | ||
|1|Component|`sbb-icon`|No|| | ||
|2|Component|`sbb-title`|No|| | ||
|3|Area|Dropzone|Yes|| | ||
|4|Text|Subtext|No|| | ||
|5|Component|`sbb-secondary-button`|No|Choose file| | ||
|6|Text|Label|No|| | ||
|7|Component|`sbb-secondary-button`|No|Delete button| | ||
|8|Text|Dateigrösse|No|| | ||
|9|Component|`sbb-form-error`|No|| | ||
|
||
|
||
{.sbb-table} | ||
|
||
</sbb-table-wrapper> |
26 changes: 26 additions & 0 deletions
26
src/_data/lyne/components/sbbFileSelectorDropzone/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"tag":"sbb-file-selector-dropzone", | ||
"patternId":"sbbFileSelectorDropzone", | ||
"patternDirectory":"fileselector", | ||
"order": 430, | ||
"category": "Form", | ||
"keywords":["File input", "File uploader", "Dropzone"], | ||
"hasOverview": true, | ||
"hasAnatomy": true, | ||
"hasStorybook": true, | ||
"hasPlayground": true, | ||
"hasImplementation": true, | ||
"showInFirstLevel": true, | ||
"childs": false, | ||
"isChildOf": false, | ||
"similar":["sbbFileSelector"], | ||
"status": { | ||
"design": "ok", | ||
"code": "ok", | ||
"documentation": "ok", | ||
"context": { | ||
"public": true, | ||
"business": true | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/_data/lyne/components/sbbFileSelectorDropzone/implementation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const fetchData = require('../../../../assets/helpers/fetchHelper'); | ||
|
||
module.exports = async function() { | ||
const result = await fetchData("file-selector/file-selector-dropzone"); | ||
return result; | ||
}; |
13 changes: 13 additions & 0 deletions
13
src/_data/lyne/components/sbbFileSelectorDropzone/overview_de.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
## Was macht die Komponente? | ||
Ein File-Selector ist eine Komponente, die es Nutzenden ermöglicht, Dateien von seinem Gerät auszuwählen und hochzuladen. | ||
|
||
## Wann soll die Komponente eingesetzt werden? | ||
* Um Nutzenden die Möglichkeit zu geben, Dateien hochzuladen, wie z.B. Dokumente, Bilder oder Videos. | ||
* Um Formulare zu vervollständigen, die Dateianhänge erfordern. | ||
* Um Dateien für die Speicherung, Verarbeitung oder Weitergabe zu sammeln. | ||
|
||
## Regeln | ||
* Nutzende sollen Dateien entfernen können. | ||
* Der Fortschritt des Datei-Uploads kann Nutzenden angezeigt werden, insbesondere bei grösseren Dateien. |
12 changes: 12 additions & 0 deletions
12
src/_data/lyne/components/sbbFileSelectorDropzone/overview_en.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
## What does the component do? | ||
A file selector is a component that allows users to select and upload files from their device. | ||
|
||
## When should the component be used? | ||
* To allow users to upload files, such as documents, images or videos. | ||
* To complete forms that require file attachments. | ||
* To collect files for storage, processing or sharing. | ||
|
||
## Rules | ||
* Users should be able to remove files. | ||
* The progress of the file upload can be displayed to users, especially for larger files. |
23 changes: 23 additions & 0 deletions
23
src/_data/lyne/components/sbbFileSelectorDropzone/playground.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"tag":"sbb-file-selector-dropzone", | ||
"content":" <sbb-file-selector-dropzone class='demo-item' variant='default' title-content='Title' multiple-mode='default' accessibility-label='Select from hard disk'></sbb-file-selector-dropzone>", | ||
"configuration" : [ | ||
{ | ||
"attribute":"disabled", | ||
"label":"disabled", | ||
"target":"demo-item", | ||
"default":"false", | ||
"mode":"boolean", | ||
"options" : [{ | ||
"value":"false", | ||
"label":"false" | ||
}, | ||
{ | ||
"value":"true", | ||
"label":"true" | ||
}] | ||
} | ||
] | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.