File tree Expand file tree Collapse file tree 13 files changed +188
-0
lines changed
version-2.0/30-components
version-2.1/30-components Expand file tree Collapse file tree 13 files changed +188
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Drawer
3
+ description : Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente.
4
+ tags :
5
+ - Drawer
6
+ - Beschreibung
7
+ - Spezifikation
8
+ - Beispiele
9
+ ---
10
+
11
+ import Readme from ' ../../readmes/drawer/readme.md' ;
12
+ import { Configurator } from ' @site/src/components/Configurator' ;
13
+ import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
14
+ import { ExampleLink } from ' @site/src/components/ExampleLink' ;
15
+
16
+ <Readme />
17
+
18
+ <ExampleLink component = " drawer" />
19
+
20
+ ## Live-Editor
21
+
22
+ <LiveEditorCompact component = " drawer" />
23
+
24
+ ## Beispiele
25
+
26
+ <Configurator component = " drawer" sample = " basic" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : SingleSelect
3
+ description : Beschreibung, Spezifikation und Beispiele für die SingleSelect-Komponente.
4
+ tags :
5
+ - SingleSelect
6
+ - Beschreibung
7
+ - Spezifikation
8
+ - Beispiele
9
+ ---
10
+
11
+ import Readme from ' ../../readmes/single-select/readme.md' ;
12
+ import { Configurator } from ' @site/src/components/Configurator' ;
13
+ import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
14
+ import { ExampleLink } from ' @site/src/components/ExampleLink' ;
15
+
16
+ <Readme />
17
+
18
+ <ExampleLink component = " single-select" />
19
+
20
+ ## Live-Editor
21
+
22
+ <LiveEditorCompact component = " single-select" />
23
+
24
+ ## Beispiele
25
+
26
+ <Configurator component = " single-select" sample = " basic" />
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
KolButtonLink ,
13
13
KolCard ,
14
14
KolDetails ,
15
+ KolDrawer ,
15
16
KolForm ,
16
17
KolHeading ,
17
18
KolIcon ,
@@ -38,6 +39,7 @@ import {
38
39
KolProgress ,
39
40
KolQuote ,
40
41
KolSelect ,
42
+ KolSingleSelect ,
41
43
KolSkipNav ,
42
44
KolSpin ,
43
45
KolSplitButton ,
@@ -74,6 +76,7 @@ export function ComponentDisplay(props: Props) {
74
76
'button-link' : KolButtonLink ,
75
77
card : KolCard ,
76
78
details : KolDetails ,
79
+ drawer : KolDrawer ,
77
80
form : KolForm ,
78
81
heading : KolHeading ,
79
82
icon : KolIcon ,
@@ -100,6 +103,7 @@ export function ComponentDisplay(props: Props) {
100
103
progress : KolProgress ,
101
104
quote : KolQuote ,
102
105
select : KolSelect ,
106
+ 'single-select' : KolSingleSelect ,
103
107
'skip-nav' : KolSkipNav ,
104
108
spin : KolSpin ,
105
109
'split-button' : KolSplitButton ,
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export type TagName =
146
146
| 'button-link'
147
147
| 'card'
148
148
| 'details'
149
+ | 'drawer'
149
150
| 'form'
150
151
| 'heading'
151
152
| 'icon'
@@ -173,6 +174,7 @@ export type TagName =
173
174
| 'progress'
174
175
| 'quote'
175
176
| 'select'
177
+ | 'single-select'
176
178
| 'skip-nav'
177
179
| 'spin'
178
180
| 'split-button'
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { KolImage } from '@public-ui/react' ;
3
+
4
+ const Drawer = ( ) => < KolImage _src = "/assets/samples/drawer.png" _alt = "" _sizes = "20vw" /> ;
5
+
6
+ export default Drawer ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { KolSingleSelect } from '@public-ui/react' ;
3
+ import { Option , StencilUnknown } from '@public-ui/components' ;
4
+
5
+ const COUNTRY_OPTIONS = [
6
+ { label : 'Dänemark' , value : 'dk' } ,
7
+ { label : 'Deutschland' , value : 'de' } ,
8
+ { label : 'Dominica' , value : 'dm' } ,
9
+ ] ;
10
+
11
+ const SingleSelect = ( ) => (
12
+ < KolSingleSelect
13
+ _touched
14
+ _label = "Label"
15
+ _placeholder = "Placeholder"
16
+ _required
17
+ _options = { COUNTRY_OPTIONS as Option < StencilUnknown > [ ] }
18
+ _value = { 'Deutschland' }
19
+ />
20
+ ) ;
21
+
22
+ export default SingleSelect ;
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ export const COMPONENTS_20 = [
49
49
name : 'dialog' ,
50
50
loadComponent : ( ) => lazy ( ( ) => import ( '../Dialog' ) ) ,
51
51
} ,
52
+ {
53
+ name : 'drawer' ,
54
+ loadComponent : ( ) => lazy ( ( ) => import ( '../Drawer' ) ) ,
55
+ } ,
52
56
{
53
57
name : 'form' ,
54
58
loadComponent : ( ) => lazy ( ( ) => import ( '../Form' ) ) ,
@@ -149,6 +153,10 @@ export const COMPONENTS_20 = [
149
153
name : 'select' ,
150
154
loadComponent : ( ) => lazy ( ( ) => import ( '../Select' ) ) ,
151
155
} ,
156
+ {
157
+ name : 'single-select' ,
158
+ loadComponent : ( ) => lazy ( ( ) => import ( '../SingleSelect' ) ) ,
159
+ } ,
152
160
{
153
161
name : 'skip-nav' ,
154
162
loadComponent : ( ) => lazy ( ( ) => import ( '../SkipNav' ) ) ,
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ export const COMPONENTS_21 = [
45
45
name : 'details' ,
46
46
loadComponent : ( ) => lazy ( ( ) => import ( '../Details' ) ) ,
47
47
} ,
48
+ {
49
+ name : 'drawer' ,
50
+ loadComponent : ( ) => lazy ( ( ) => import ( '../Drawer' ) ) ,
51
+ } ,
48
52
{
49
53
name : 'dialog' ,
50
54
loadComponent : ( ) => lazy ( ( ) => import ( '../Dialog' ) ) ,
@@ -149,6 +153,10 @@ export const COMPONENTS_21 = [
149
153
name : 'select' ,
150
154
loadComponent : ( ) => lazy ( ( ) => import ( '../Select' ) ) ,
151
155
} ,
156
+ {
157
+ name : 'single-select' ,
158
+ loadComponent : ( ) => lazy ( ( ) => import ( '../SingleSelect' ) ) ,
159
+ } ,
152
160
{
153
161
name : 'skip-nav' ,
154
162
loadComponent : ( ) => lazy ( ( ) => import ( '../SkipNav' ) ) ,
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ export const COMPONENTS_CURRENT = [
53
53
name : 'dialog' ,
54
54
loadComponent : ( ) => lazy ( ( ) => import ( '../Dialog' ) ) ,
55
55
} ,
56
+ {
57
+ name : 'drawer' ,
58
+ loadComponent : ( ) => lazy ( ( ) => import ( '../Drawer' ) ) ,
59
+ } ,
56
60
{
57
61
name : 'form' ,
58
62
loadComponent : ( ) => lazy ( ( ) => import ( '../Form' ) ) ,
@@ -153,6 +157,10 @@ export const COMPONENTS_CURRENT = [
153
157
name : 'select' ,
154
158
loadComponent : ( ) => lazy ( ( ) => import ( '../Select' ) ) ,
155
159
} ,
160
+ {
161
+ name : 'single-select' ,
162
+ loadComponent : ( ) => lazy ( ( ) => import ( '../SingleSelect' ) ) ,
163
+ } ,
156
164
{
157
165
name : 'skip-nav' ,
158
166
loadComponent : ( ) => lazy ( ( ) => import ( '../SkipNav' ) ) ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Drawer
3
+ description : Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente.
4
+ tags :
5
+ - Drawer
6
+ - Beschreibung
7
+ - Spezifikation
8
+ - Beispiele
9
+ ---
10
+
11
+ import Readme from ' ../../../readmes/drawer/readme.md' ;
12
+ import { Configurator } from ' @site/src/components/Configurator' ;
13
+ import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
14
+ import { ExampleLink } from ' @site/src/components/ExampleLink' ;
15
+
16
+ <Readme />
17
+
18
+ <ExampleLink component = " drawer" />
19
+
20
+ ## Live-Editor
21
+
22
+ <LiveEditorCompact component = " drawer" />
23
+
24
+ ## Beispiele
25
+
26
+ <Configurator component = " drawer" sample = " basic" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : SingleSelect
3
+ description : Beschreibung, Spezifikation und Beispiele für die SingleSelect-Komponente.
4
+ tags :
5
+ - SingleSelect
6
+ - Beschreibung
7
+ - Spezifikation
8
+ - Beispiele
9
+ ---
10
+
11
+ import Readme from ' ../../../readmes/single-select/readme.md' ;
12
+ import { Configurator } from ' @site/src/components/Configurator' ;
13
+ import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
14
+ import { ExampleLink } from ' @site/src/components/ExampleLink' ;
15
+
16
+ <Readme />
17
+
18
+ <ExampleLink component = " single-select" />
19
+
20
+ ## Live-Editor
21
+
22
+ <LiveEditorCompact component = " single-select" />
23
+
24
+ ## Beispiele
25
+
26
+ <Configurator component = " single-select" sample = " basic" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Drawer
3
+ description : Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente.
4
+ tags :
5
+ - Drawer
6
+ - Beschreibung
7
+ - Spezifikation
8
+ - Beispiele
9
+ ---
10
+
11
+ import Readme from ' ../../../readmes/drawer/readme.md' ;
12
+ import { Configurator } from ' @site/src/components/Configurator' ;
13
+ import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
14
+ import { ExampleLink } from ' @site/src/components/ExampleLink' ;
15
+
16
+ <Readme />
17
+
18
+ <ExampleLink component = " drawer" />
19
+
20
+ ## Live-Editor
21
+
22
+ <LiveEditorCompact component = " drawer" />
23
+
24
+ ## Beispiele
25
+
26
+ <Configurator component = " drawer" sample = " basic" />
You can’t perform that action at this time.
0 commit comments