Skip to content
Merged
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
5 changes: 5 additions & 0 deletions docs/30-components/input-checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-checkbox/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# Checkbox

Expand Down Expand Up @@ -83,6 +84,10 @@ Achten Sie darauf, jeder Checkbox ein Label zuzuweisen, da dieses von Screenread

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-checkbox" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-color.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-color/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputColor

Expand Down Expand Up @@ -72,6 +73,10 @@ Für eine vollständige Barrierefreiheit prüfen Sie die Verwendung einer vorgef

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-color" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-date.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-date/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputDate

Expand Down Expand Up @@ -127,6 +128,10 @@ Das Eingabefeld für Zeitangaben gibt es in unterschiedlichen Ausprägungen (Dat

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-date" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-email.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-email/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputEmail

Expand Down Expand Up @@ -122,6 +123,10 @@ Mit den drei Attributen `_max-length`, `_max-length-behavior` und `_has-counter`

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-email" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-file.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-file/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputFile

Expand Down Expand Up @@ -68,6 +69,10 @@ Mögliche Werte und weitere Informationen erhalten Sie im <kol-link _href="https

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-file" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-number.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-number/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputNumber

Expand Down Expand Up @@ -60,6 +61,10 @@ Zur Behandlung von Events bzw. Callbacks siehe <kol-link _label="Events" _href="

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-number" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-password.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-password/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputPassword

Expand Down Expand Up @@ -114,6 +115,10 @@ Mit den drei Attributen `_max-length`, `_max-length-behavior` und `_has-counter`

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-password" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-radio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-radio/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputRadio

Expand Down Expand Up @@ -101,6 +102,10 @@ Zur Behandlung von Events bzw. Callbacks siehe <kol-link _label="Events" _href="

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-radio" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-range.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-range/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputRange

Expand Down Expand Up @@ -77,6 +78,10 @@ Zur Behandlung von Events bzw. Callbacks siehe <kol-link _label="Events" _href="

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-range" />

## Live-Editor
Expand Down
5 changes: 5 additions & 0 deletions docs/30-components/input-text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Readme from '../../readmes/input-text/readme.md';
import { Configurator } from '@site/src/components/Configurator';
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact';
import { ExampleLink } from '@site/src/components/ExampleLink';
import { PropertyMsgUsage } from '@site/src/components/PropertyMsgUsage';

# InputText

Expand Down Expand Up @@ -138,6 +139,10 @@ Mit den drei Attributen `_max-length`, `_max-length-behavior` und `_has-counter`

<Readme />

## Verwendung _msg

<PropertyMsgUsage />

<ExampleLink component="input-text" />

## Live-Editor
Expand Down
29 changes: 28 additions & 1 deletion i18n/de/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,32 @@
},
"feedback.information": {
"message": "Ihre Meinung ist uns wichtig! Gemeinsam mit Ihnen möchten wir KoliBri stetig verbessern. Teilen Sie uns Ihre Ideen, Wünsche oder Anregungen mit – schnell und unkompliziert."
}
},
"property.msg.usage": {
"message": "Verwendung _msg"
},
"property.msg.case": {
"message": "Fall"
},
"property.msg.value": {
"message": "_msg-Wert"
},
"property.msg.case.no.msg": {
"message": "Keine Message"
},
"property.msg.value.undefined": {
"message": "undefined"
},
"property.msg.case.standard": {
"message": "\"Standard\"-Fehlermeldung"
},
"property.msg.value.string": {
"message": "string"
},
"property.msg.case.message": {
"message": "Meldung"
},
"property.msg.value.message": {
"message": "{_type: 'success', _description: 'Erfolgs-Meldung'}"
}
}
27 changes: 27 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,32 @@
},
"feedback.information": {
"message": "Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily."
},
"property.msg.usage": {
"message": "Usage _msg"
},
"property.msg.case": {
"message": "Case"
},
"property.msg.value": {
"message": "_msg-Value"
},
"property.msg.case.no.msg": {
"message": "No message"
},
"property.msg.value.undefined": {
"message": "undefined"
},
"property.msg.case.standard": {
"message": "Default error message"
},
"property.msg.value.string": {
"message": "string"
},
"property.msg.case.message": {
"message": "Message"
},
"property.msg.value.message": {
"message": "{_type: 'success', _description: 'Success message'}"
}
}
78 changes: 78 additions & 0 deletions src/components/PropertyMsgUsage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import type { FC } from 'react';
import React from 'react';
import { translate } from '@docusaurus/Translate';

export const PropertyMsgUsage: FC = () => {
return (
<>
<table>
<thead>
<tr>
<th>
{translate({
id: 'property.msg.case',
message: 'Fall',
})}
</th>
<th>
{translate({
id: 'property.msg.value',
message: '_msg-Wert',
})}
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{translate({
id: 'property.msg.case.no.msg',
message: 'Keine Message',
})}
</td>
<td>
<code>
{translate({
id: 'property.msg.value.undefined',
message: 'undefined',
})}
</code>
</td>
</tr>
<tr>
<td>
{translate({
id: 'property.msg.case.standard',
message: 'Standard-Fehlermeldung',
})}
</td>
<td>
<code>
{translate({
id: 'property.msg.value.string',
message: 'string',
})}
</code>
</td>
</tr>
<tr>
<td>
{translate({
id: 'property.msg.case.message',
message: 'Meldung',
})}
</td>
<td>
<code>
{translate({
id: 'property.msg.value.message',
message: '{_type: success, _description: Success message}',
})}
</code>
</td>
</tr>
</tbody>
</table>
</>
);
};
Loading