dibk-design 0.4.41 → 0.4.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -674
- package/README.md +3 -3
- package/dist/components/Accordion.md +15 -15
- package/dist/components/Accordion.module.scss +205 -181
- package/dist/components/Button.md +75 -75
- package/dist/components/Button.module.scss +232 -216
- package/dist/components/CheckBoxIcon.js +109 -103
- package/dist/components/CheckBoxIcon.md +38 -38
- package/dist/components/CheckBoxIcon.module.scss +62 -62
- package/dist/components/CheckBoxInput.js +104 -101
- package/dist/components/CheckBoxInput.md +58 -51
- package/dist/components/CheckBoxInput.module.scss +24 -24
- package/dist/components/CheckBoxListItem.md +82 -82
- package/dist/components/CheckBoxListItem.module.scss +71 -71
- package/dist/components/ContentBox.md +46 -46
- package/dist/components/ContentBox.module.scss +116 -116
- package/dist/components/Dialog.md +5 -5
- package/dist/components/Dialog.module.scss +78 -71
- package/dist/components/DragAndDropFileInput.md +13 -13
- package/dist/components/DragAndDropFileInput.module.scss +45 -45
- package/dist/components/Footer.md +7 -7
- package/dist/components/Footer.module.scss +11 -11
- package/dist/components/Header.md +11 -11
- package/dist/components/Header.module.scss +64 -51
- package/dist/components/InputField.md +41 -41
- package/dist/components/InputField.module.scss +95 -83
- package/dist/components/Label.md +9 -9
- package/dist/components/Label.module.scss +16 -16
- package/dist/components/List.md +10 -10
- package/dist/components/List.module.scss +18 -18
- package/dist/components/LoadingAnimation.md +5 -5
- package/dist/components/LoadingAnimation.module.scss +26 -26
- package/dist/components/NavigationBar.md +42 -42
- package/dist/components/NavigationBar.module.scss +176 -176
- package/dist/components/NavigationBarListItem.md +15 -15
- package/dist/components/Paper.md +9 -9
- package/dist/components/Paper.module.scss +18 -17
- package/dist/components/RadioButtonIcon.md +41 -41
- package/dist/components/RadioButtonIcon.module.scss +44 -44
- package/dist/components/RadioButtonInput.md +30 -30
- package/dist/components/RadioButtonInput.module.scss +26 -26
- package/dist/components/RadioButtonListItem.md +70 -70
- package/dist/components/RadioButtonListItem.module.scss +71 -71
- package/dist/components/Select.md +28 -28
- package/dist/components/Select.module.scss +100 -101
- package/dist/components/Textarea.md +27 -27
- package/dist/components/Textarea.module.scss +72 -64
- package/dist/components/Theme.md +12 -12
- package/dist/components/Theme.module.scss +76 -76
- package/dist/components/WizardNavigation/Step.module.scss +75 -75
- package/dist/components/WizardNavigation.md +84 -84
- package/dist/components/WizardNavigation.module.scss +3 -3
- package/dist/fonts/Altis-Light.svg +326 -326
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
- package/dist/images/dibk-logo-mobile.svg +91 -91
- package/dist/images/dibk-logo.svg +991 -991
- package/dist/images/spinner.svg +56 -56
- package/dist/style/abstracts/_all.scss +1 -1
- package/dist/style/abstracts/mixins/_all.scss +12 -12
- package/dist/style/abstracts/mixins/_animation.scss +6 -6
- package/dist/style/abstracts/mixins/_appearance.scss +5 -5
- package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
- package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
- package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
- package/dist/style/abstracts/mixins/_calc.scss +5 -5
- package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
- package/dist/style/abstracts/mixins/_opacity.scss +5 -5
- package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
- package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
- package/dist/style/abstracts/mixins/_transform.scss +6 -6
- package/dist/style/abstracts/mixins/_transition.scss +34 -34
- package/dist/style/abstracts/variables/_all.scss +2 -2
- package/dist/style/abstracts/variables/_colors.scss +29 -29
- package/dist/style/abstracts/variables/_typography.scss +1 -1
- package/dist/style/abstracts/variables/_viewports.scss +14 -11
- package/dist/style/base/_all.scss +1 -1
- package/dist/style/base/_reset.scss +15 -15
- package/dist/style/base/_typography.scss +6 -6
- package/dist/style/base/fonts.css +95 -95
- package/dist/style/global.scss +3 -3
- package/dist/style/layout/_containers.scss +9 -9
- package/package.json +43 -42
- package/dist/fonts_old/Altis-Light.eot +0 -0
- package/dist/fonts_old/Altis-Light.svg +0 -326
- package/dist/fonts_old/Altis-Light.ttf +0 -0
- package/dist/fonts_old/Altis-Light.woff +0 -0
- package/dist/fonts_old/Altis.eot +0 -0
- package/dist/fonts_old/Altis.svg +0 -327
- package/dist/fonts_old/Altis.ttf +0 -0
- package/dist/fonts_old/OpenSans-300.woff2 +0 -0
- package/dist/fonts_old/OpenSans-400.ttf +0 -0
- package/dist/fonts_old/OpenSans-400.woff +0 -0
- package/dist/fonts_old/OpenSans-400.woff2 +0 -0
- package/dist/fonts_old/OpenSans-400ekte.woff +0 -0
- package/dist/fonts_old/OpenSans-700.woff2 +0 -0
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
@import "../style/global.scss";
|
|
2
|
-
|
|
3
|
-
:local(.isPresent) {
|
|
4
|
-
@include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
|
|
5
|
-
position: relative;
|
|
6
|
-
z-index: 1;
|
|
7
|
-
:local(.navigationBar) {
|
|
8
|
-
background-color: $color-dark-blue;
|
|
9
|
-
height: 54px;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
@media only screen and (min-width: $screen-
|
|
14
|
-
height: 73px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:local(.logoContainer) {
|
|
19
|
-
width: 200px;
|
|
20
|
-
height: 54px;
|
|
21
|
-
display: inline-block;
|
|
22
|
-
img {
|
|
23
|
-
height: 54px;
|
|
24
|
-
max-width: none;
|
|
25
|
-
}
|
|
26
|
-
@media only screen and (min-width: $screen-
|
|
27
|
-
width: 270px;
|
|
28
|
-
height: 73px;
|
|
29
|
-
img {
|
|
30
|
-
height: 73px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:local(.childElements) {
|
|
36
|
-
display: block;
|
|
37
|
-
color: #fff;
|
|
38
|
-
flex: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:local(.dropdownOverlay) {
|
|
42
|
-
@media only screen and (max-width: $screen-
|
|
43
|
-
@include transition(all 0.1s ease-out);
|
|
44
|
-
content: "";
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 73px;
|
|
47
|
-
right: 0;
|
|
48
|
-
bottom: 0;
|
|
49
|
-
left: 0;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
visibility: hidden;
|
|
52
|
-
opacity: 0;
|
|
53
|
-
background: transparent;
|
|
54
|
-
&:local(.active) {
|
|
55
|
-
opacity: 1;
|
|
56
|
-
background: rgba(0, 0, 0, 0.5);
|
|
57
|
-
visibility: visible;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
:local(.menuToggle) {
|
|
63
|
-
@include appearance(none);
|
|
64
|
-
@include transition(background-color 300ms ease-out);
|
|
65
|
-
border: none;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
position: relative;
|
|
68
|
-
background-color: transparent;
|
|
69
|
-
float: right;
|
|
70
|
-
margin: 0 12px;
|
|
71
|
-
:local(.hamburgerIcon) {
|
|
72
|
-
width: 30px;
|
|
73
|
-
display: block;
|
|
74
|
-
:local(.line) {
|
|
75
|
-
background-color: #fff;
|
|
76
|
-
height: 2px;
|
|
77
|
-
margin: 6px 0;
|
|
78
|
-
display: block;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
@media only screen and (min-width: $screen-
|
|
82
|
-
margin: 0 21px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:local(.dropdownContainer) {
|
|
87
|
-
@include transition(max-height 0.15s ease-out);
|
|
88
|
-
max-height: 0;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
&:local(.active) {
|
|
91
|
-
@include transition(max-height 0.15s ease-out);
|
|
92
|
-
max-height: 500px;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:local(.dropdown) {
|
|
97
|
-
@include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
|
|
98
|
-
background-color: $color-dark-blue;
|
|
99
|
-
z-index: 2;
|
|
100
|
-
> :local(ul.primaryList) {
|
|
101
|
-
list-style: none;
|
|
102
|
-
padding: 20px;
|
|
103
|
-
margin: 0;
|
|
104
|
-
li {
|
|
105
|
-
a,
|
|
106
|
-
span {
|
|
107
|
-
color: #fff;
|
|
108
|
-
text-transform: uppercase;
|
|
109
|
-
text-decoration: none;
|
|
110
|
-
font-family: "Open Sans";
|
|
111
|
-
padding: 10px 0;
|
|
112
|
-
display: block;
|
|
113
|
-
border-bottom: 1px solid $color-primary;
|
|
114
|
-
font-size: 14px;
|
|
115
|
-
line-height: 1.6;
|
|
116
|
-
}
|
|
117
|
-
> :local(ul.primaryList) {
|
|
118
|
-
list-style: none;
|
|
119
|
-
padding: 0;
|
|
120
|
-
li {
|
|
121
|
-
a,
|
|
122
|
-
span {
|
|
123
|
-
color: #fff;
|
|
124
|
-
text-transform: none;
|
|
125
|
-
text-decoration: none;
|
|
126
|
-
font-family: "Open Sans";
|
|
127
|
-
padding: 10px 0;
|
|
128
|
-
margin-left: 20px;
|
|
129
|
-
display: block;
|
|
130
|
-
border-bottom: 1px solid #1b3a48;
|
|
131
|
-
font-size: 14px;
|
|
132
|
-
line-height: 1.6;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
> :local(ul.secondaryList) {
|
|
139
|
-
list-style: none;
|
|
140
|
-
padding: 20px;
|
|
141
|
-
margin: 0;
|
|
142
|
-
|
|
143
|
-
li {
|
|
144
|
-
a,
|
|
145
|
-
span {
|
|
146
|
-
color: #fff;
|
|
147
|
-
text-decoration: underline;
|
|
148
|
-
font-family: "Arial";
|
|
149
|
-
font-size: 14px;
|
|
150
|
-
padding: 10px 0;
|
|
151
|
-
line-height: 1;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@media only screen and (min-width: $screen-
|
|
158
|
-
:local(.dropdownContainer) {
|
|
159
|
-
position: relative;
|
|
160
|
-
overflow: visible;
|
|
161
|
-
:local(.dropdown) {
|
|
162
|
-
@include transition(max-height 0.15s ease-out);
|
|
163
|
-
width: 300px;
|
|
164
|
-
position: absolute;
|
|
165
|
-
right: 0;
|
|
166
|
-
max-height: 0;
|
|
167
|
-
overflow: hidden;
|
|
168
|
-
}
|
|
169
|
-
&:local(.active) {
|
|
170
|
-
:local(.dropdown) {
|
|
171
|
-
max-height: 500px;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
3
|
+
:local(.isPresent) {
|
|
4
|
+
@include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
:local(.navigationBar) {
|
|
8
|
+
background-color: $color-dark-blue;
|
|
9
|
+
height: 54px;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
@media only screen and (min-width: $screen-sm) {
|
|
14
|
+
height: 73px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:local(.logoContainer) {
|
|
19
|
+
width: 200px;
|
|
20
|
+
height: 54px;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
img {
|
|
23
|
+
height: 54px;
|
|
24
|
+
max-width: none;
|
|
25
|
+
}
|
|
26
|
+
@media only screen and (min-width: $screen-sm) {
|
|
27
|
+
width: 270px;
|
|
28
|
+
height: 73px;
|
|
29
|
+
img {
|
|
30
|
+
height: 73px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:local(.childElements) {
|
|
36
|
+
display: block;
|
|
37
|
+
color: #fff;
|
|
38
|
+
flex: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:local(.dropdownOverlay) {
|
|
42
|
+
@media only screen and (max-width: $screen-lg) and (min-width: $screen-sm) {
|
|
43
|
+
@include transition(all 0.1s ease-out);
|
|
44
|
+
content: "";
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 73px;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
opacity: 0;
|
|
53
|
+
background: transparent;
|
|
54
|
+
&:local(.active) {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
background: rgba(0, 0, 0, 0.5);
|
|
57
|
+
visibility: visible;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:local(.menuToggle) {
|
|
63
|
+
@include appearance(none);
|
|
64
|
+
@include transition(background-color 300ms ease-out);
|
|
65
|
+
border: none;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
position: relative;
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
float: right;
|
|
70
|
+
margin: 0 12px;
|
|
71
|
+
:local(.hamburgerIcon) {
|
|
72
|
+
width: 30px;
|
|
73
|
+
display: block;
|
|
74
|
+
:local(.line) {
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
height: 2px;
|
|
77
|
+
margin: 6px 0;
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@media only screen and (min-width: $screen-sm) {
|
|
82
|
+
margin: 0 21px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:local(.dropdownContainer) {
|
|
87
|
+
@include transition(max-height 0.15s ease-out);
|
|
88
|
+
max-height: 0;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
&:local(.active) {
|
|
91
|
+
@include transition(max-height 0.15s ease-out);
|
|
92
|
+
max-height: 500px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:local(.dropdown) {
|
|
97
|
+
@include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
|
|
98
|
+
background-color: $color-dark-blue;
|
|
99
|
+
z-index: 2;
|
|
100
|
+
> :local(ul.primaryList) {
|
|
101
|
+
list-style: none;
|
|
102
|
+
padding: 20px;
|
|
103
|
+
margin: 0;
|
|
104
|
+
li {
|
|
105
|
+
a,
|
|
106
|
+
span {
|
|
107
|
+
color: #fff;
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
text-decoration: none;
|
|
110
|
+
font-family: "Open Sans";
|
|
111
|
+
padding: 10px 0;
|
|
112
|
+
display: block;
|
|
113
|
+
border-bottom: 1px solid $color-primary;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
line-height: 1.6;
|
|
116
|
+
}
|
|
117
|
+
> :local(ul.primaryList) {
|
|
118
|
+
list-style: none;
|
|
119
|
+
padding: 0;
|
|
120
|
+
li {
|
|
121
|
+
a,
|
|
122
|
+
span {
|
|
123
|
+
color: #fff;
|
|
124
|
+
text-transform: none;
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
font-family: "Open Sans";
|
|
127
|
+
padding: 10px 0;
|
|
128
|
+
margin-left: 20px;
|
|
129
|
+
display: block;
|
|
130
|
+
border-bottom: 1px solid #1b3a48;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
line-height: 1.6;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
> :local(ul.secondaryList) {
|
|
139
|
+
list-style: none;
|
|
140
|
+
padding: 20px;
|
|
141
|
+
margin: 0;
|
|
142
|
+
|
|
143
|
+
li {
|
|
144
|
+
a,
|
|
145
|
+
span {
|
|
146
|
+
color: #fff;
|
|
147
|
+
text-decoration: underline;
|
|
148
|
+
font-family: "Arial";
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
padding: 10px 0;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media only screen and (min-width: $screen-sm) {
|
|
158
|
+
:local(.dropdownContainer) {
|
|
159
|
+
position: relative;
|
|
160
|
+
overflow: visible;
|
|
161
|
+
:local(.dropdown) {
|
|
162
|
+
@include transition(max-height 0.15s ease-out);
|
|
163
|
+
width: 300px;
|
|
164
|
+
position: absolute;
|
|
165
|
+
right: 0;
|
|
166
|
+
max-height: 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
&:local(.active) {
|
|
170
|
+
:local(.dropdown) {
|
|
171
|
+
max-height: 500px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
NavigationBarListItem example:
|
|
2
|
-
```js
|
|
3
|
-
<ul>
|
|
4
|
-
<NavigationBarListItem listItem='Primary item 1' />
|
|
5
|
-
<NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
|
|
6
|
-
</ul>
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Themed NavigationBarListItem example:
|
|
10
|
-
```js
|
|
11
|
-
import customTheme from 'data/customTheme';
|
|
12
|
-
<ul>
|
|
13
|
-
<NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
|
|
14
|
-
<NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
|
|
15
|
-
</ul>
|
|
1
|
+
NavigationBarListItem example:
|
|
2
|
+
```js
|
|
3
|
+
<ul>
|
|
4
|
+
<NavigationBarListItem listItem='Primary item 1' />
|
|
5
|
+
<NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
|
|
6
|
+
</ul>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Themed NavigationBarListItem example:
|
|
10
|
+
```js
|
|
11
|
+
import customTheme from 'data/customTheme';
|
|
12
|
+
<ul>
|
|
13
|
+
<NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
|
|
14
|
+
<NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
|
|
15
|
+
</ul>
|
|
16
16
|
```
|
package/dist/components/Paper.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Paper example:
|
|
2
|
-
|
|
3
|
-
```js
|
|
4
|
-
<Paper />
|
|
5
|
-
<Paper>Paper with content</Paper>
|
|
6
|
-
<Paper noPadding>Paper with no padding</Paper>
|
|
7
|
-
<Paper noMargin>Paper with no margin</Paper>
|
|
8
|
-
<Paper noMargin noPadding>Paper with no margin or padding</Paper>
|
|
9
|
-
```
|
|
1
|
+
Paper example:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
<Paper />
|
|
5
|
+
<Paper>Paper with content</Paper>
|
|
6
|
+
<Paper noPadding>Paper with no padding</Paper>
|
|
7
|
+
<Paper noMargin>Paper with no margin</Paper>
|
|
8
|
+
<Paper noMargin noPadding>Paper with no margin or padding</Paper>
|
|
9
|
+
```
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
7
|
-
background: white;
|
|
8
|
-
box-shadow: 0 2px 3px rgba(0,0,0,0.18);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
3
|
+
:local(.paper) {
|
|
4
|
+
line-height: 1.6;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background: white;
|
|
8
|
+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
|
|
9
|
+
&:not(:local(.noMargin)) {
|
|
10
|
+
margin: 20px 0;
|
|
11
|
+
}
|
|
12
|
+
&:not(:local(.noPadding)) {
|
|
13
|
+
padding: 12px 12px;
|
|
14
|
+
@media only screen and (min-width: $screen-sm) {
|
|
15
|
+
padding: 24px 28px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
Regular radio button icons example:
|
|
2
|
-
|
|
3
|
-
```js
|
|
4
|
-
<RadioButtonIcon />
|
|
5
|
-
<RadioButtonIcon checked={true} />
|
|
6
|
-
<RadioButtonIcon disabled={true} />
|
|
7
|
-
<RadioButtonIcon checked={true} disabled={true} />
|
|
8
|
-
<RadioButtonIcon hasErrors={true} />
|
|
9
|
-
<RadioButtonIcon hasErrors={true} disabled={true} />
|
|
10
|
-
<RadioButtonIcon checked={true} hasErrors={true} />
|
|
11
|
-
<RadioButtonIcon checked={true} hasErrors={true} disabled={true} />
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Themed Regular radio button icons example:
|
|
15
|
-
|
|
16
|
-
```js
|
|
17
|
-
import customTheme from 'data/customTheme';
|
|
18
|
-
<React.Fragment>
|
|
19
|
-
<RadioButtonIcon theme={customTheme}/>
|
|
20
|
-
<RadioButtonIcon checked={true} theme={customTheme} />
|
|
21
|
-
<RadioButtonIcon theme={customTheme} disabled={true} />
|
|
22
|
-
<RadioButtonIcon checked={true} theme={customTheme} disabled={true} />
|
|
23
|
-
<RadioButtonIcon hasErrors={true} theme={customTheme} />
|
|
24
|
-
<RadioButtonIcon hasErrors={true} disabled={true} theme={customTheme} />
|
|
25
|
-
<RadioButtonIcon checked={true} hasErrors={true} theme={customTheme} />
|
|
26
|
-
<RadioButtonIcon checked={true} hasErrors={true} disabled={true} theme={customTheme} />
|
|
27
|
-
</React.Fragment>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Radio button icons with custom size example:
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
<RadioButtonIcon size='36px' />
|
|
34
|
-
<RadioButtonIcon size='36px' checked={true} />
|
|
35
|
-
<RadioButtonIcon size='36px' disabled={true} />
|
|
36
|
-
<RadioButtonIcon size='36px' checked={true} disabled={true} />
|
|
37
|
-
<RadioButtonIcon size='36px' hasErrors={true} />
|
|
38
|
-
<RadioButtonIcon size='36px' hasErrors={true} disabled={true} />
|
|
39
|
-
<RadioButtonIcon size='36px' checked={true} hasErrors={true} />
|
|
40
|
-
<RadioButtonIcon size='36px' checked={true} hasErrors={true} disabled={true} />
|
|
41
|
-
```
|
|
1
|
+
Regular radio button icons example:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
<RadioButtonIcon />
|
|
5
|
+
<RadioButtonIcon checked={true} />
|
|
6
|
+
<RadioButtonIcon disabled={true} />
|
|
7
|
+
<RadioButtonIcon checked={true} disabled={true} />
|
|
8
|
+
<RadioButtonIcon hasErrors={true} />
|
|
9
|
+
<RadioButtonIcon hasErrors={true} disabled={true} />
|
|
10
|
+
<RadioButtonIcon checked={true} hasErrors={true} />
|
|
11
|
+
<RadioButtonIcon checked={true} hasErrors={true} disabled={true} />
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Themed Regular radio button icons example:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
import customTheme from 'data/customTheme';
|
|
18
|
+
<React.Fragment>
|
|
19
|
+
<RadioButtonIcon theme={customTheme}/>
|
|
20
|
+
<RadioButtonIcon checked={true} theme={customTheme} />
|
|
21
|
+
<RadioButtonIcon theme={customTheme} disabled={true} />
|
|
22
|
+
<RadioButtonIcon checked={true} theme={customTheme} disabled={true} />
|
|
23
|
+
<RadioButtonIcon hasErrors={true} theme={customTheme} />
|
|
24
|
+
<RadioButtonIcon hasErrors={true} disabled={true} theme={customTheme} />
|
|
25
|
+
<RadioButtonIcon checked={true} hasErrors={true} theme={customTheme} />
|
|
26
|
+
<RadioButtonIcon checked={true} hasErrors={true} disabled={true} theme={customTheme} />
|
|
27
|
+
</React.Fragment>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Radio button icons with custom size example:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
<RadioButtonIcon size='36px' />
|
|
34
|
+
<RadioButtonIcon size='36px' checked={true} />
|
|
35
|
+
<RadioButtonIcon size='36px' disabled={true} />
|
|
36
|
+
<RadioButtonIcon size='36px' checked={true} disabled={true} />
|
|
37
|
+
<RadioButtonIcon size='36px' hasErrors={true} />
|
|
38
|
+
<RadioButtonIcon size='36px' hasErrors={true} disabled={true} />
|
|
39
|
+
<RadioButtonIcon size='36px' checked={true} hasErrors={true} />
|
|
40
|
+
<RadioButtonIcon size='36px' checked={true} hasErrors={true} disabled={true} />
|
|
41
|
+
```
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
@import "../style/global.scss";
|
|
2
|
-
|
|
3
|
-
:local(.radioButtonIcon) {
|
|
4
|
-
@include border-radius(50%);
|
|
5
|
-
@include transition(all 0.1s ease-in-out);
|
|
6
|
-
@include box-sizing(content-box);
|
|
7
|
-
display: inline-block;
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
min-width: 10px;
|
|
10
|
-
width: 10px;
|
|
11
|
-
height: 10px;
|
|
12
|
-
background: white;
|
|
13
|
-
margin-right: 0.4em;
|
|
14
|
-
margin-top: 2px;
|
|
15
|
-
border: 0.3em solid white;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
|
|
18
|
-
&:not(:local(.hasErrors)) {
|
|
19
|
-
@include box-shadow(0 0 0 1px #afaba8);
|
|
20
|
-
}
|
|
21
|
-
&:local(.hasErrors) {
|
|
22
|
-
@include box-shadow(0 0 2px 1px #9d2024);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:local(.checked) {
|
|
26
|
-
background: $color-primary;
|
|
27
|
-
&:local(.hasErrors) {
|
|
28
|
-
background: #9d2024;
|
|
29
|
-
}
|
|
30
|
-
&:not(:local(.hasErrors)) {
|
|
31
|
-
@include box-shadow(0 0 0 1px $color-dark-blue);
|
|
32
|
-
}
|
|
33
|
-
&:local(.hasErrors) {
|
|
34
|
-
@include box-shadow(0 0 2px 1px #9d2024);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
&:local(.disabled) {
|
|
38
|
-
opacity: 0.5;
|
|
39
|
-
border-color: #bfbfbf;
|
|
40
|
-
&:not(&:local(.checked)) {
|
|
41
|
-
background: #bfbfbf;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
3
|
+
:local(.radioButtonIcon) {
|
|
4
|
+
@include border-radius(50%);
|
|
5
|
+
@include transition(all 0.1s ease-in-out);
|
|
6
|
+
@include box-sizing(content-box);
|
|
7
|
+
display: inline-block;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
min-width: 10px;
|
|
10
|
+
width: 10px;
|
|
11
|
+
height: 10px;
|
|
12
|
+
background: white;
|
|
13
|
+
margin-right: 0.4em;
|
|
14
|
+
margin-top: 2px;
|
|
15
|
+
border: 0.3em solid white;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
&:not(:local(.hasErrors)) {
|
|
19
|
+
@include box-shadow(0 0 0 1px #afaba8);
|
|
20
|
+
}
|
|
21
|
+
&:local(.hasErrors) {
|
|
22
|
+
@include box-shadow(0 0 2px 1px #9d2024);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:local(.checked) {
|
|
26
|
+
background: $color-primary;
|
|
27
|
+
&:local(.hasErrors) {
|
|
28
|
+
background: #9d2024;
|
|
29
|
+
}
|
|
30
|
+
&:not(:local(.hasErrors)) {
|
|
31
|
+
@include box-shadow(0 0 0 1px $color-dark-blue);
|
|
32
|
+
}
|
|
33
|
+
&:local(.hasErrors) {
|
|
34
|
+
@include box-shadow(0 0 2px 1px #9d2024);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&:local(.disabled) {
|
|
38
|
+
opacity: 0.5;
|
|
39
|
+
border-color: #bfbfbf;
|
|
40
|
+
&:not(&:local(.checked)) {
|
|
41
|
+
background: #bfbfbf;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
Radio button input example:
|
|
2
|
-
|
|
3
|
-
```js
|
|
4
|
-
<div className="flex">
|
|
5
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="radio-button-input" id="radio-button-input-1" checked={true}><span>Checked radio button</span></RadioButtonInput>
|
|
6
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="radio-button-input" id="radio-button-input-2"><span>Unchecked radio button</span></RadioButtonInput>
|
|
7
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="radio-button-input" id="radio-button-input-3" checked={true} disabled={true}><span>Checked disabled radio button</span></RadioButtonInput>
|
|
8
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="radio-button-input" id="radio-button-input-4" disabled={true}><span>Unchecked disabled radio button</span></RadioButtonInput>
|
|
9
|
-
</div>
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Themed Radio button input example:
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
import customTheme from 'data/customTheme';
|
|
16
|
-
<div className="flex">
|
|
17
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="themed-radio-button-input" id="themed-radio-button-input-1" checked={true} theme={customTheme}>
|
|
18
|
-
<span>Checked radio button</span>
|
|
19
|
-
</RadioButtonInput>
|
|
20
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="themed-radio-button-input" id="themed-radio-button-input-2" theme={customTheme}>
|
|
21
|
-
<span>Unchecked radio button</span>
|
|
22
|
-
</RadioButtonInput>
|
|
23
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="themed-radio-button-input" id="themed-radio-button-input-3" checked={true} theme={customTheme} disabled={true}>
|
|
24
|
-
<span>Checked disabled radio button</span>
|
|
25
|
-
</RadioButtonInput>
|
|
26
|
-
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="themed-radio-button-input" id="themed-radio-button-input-4" theme={customTheme} disabled={true}>
|
|
27
|
-
<span>Unchecked disabled radio button</span>
|
|
28
|
-
</RadioButtonInput>
|
|
29
|
-
</div>
|
|
30
|
-
```
|
|
1
|
+
Radio button input example:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
<div className="flex">
|
|
5
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="radio-button-input" id="radio-button-input-1" checked={true}><span>Checked radio button</span></RadioButtonInput>
|
|
6
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="radio-button-input" id="radio-button-input-2"><span>Unchecked radio button</span></RadioButtonInput>
|
|
7
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="radio-button-input" id="radio-button-input-3" checked={true} disabled={true}><span>Checked disabled radio button</span></RadioButtonInput>
|
|
8
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="radio-button-input" id="radio-button-input-4" disabled={true}><span>Unchecked disabled radio button</span></RadioButtonInput>
|
|
9
|
+
</div>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Themed Radio button input example:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
import customTheme from 'data/customTheme';
|
|
16
|
+
<div className="flex">
|
|
17
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="themed-radio-button-input" id="themed-radio-button-input-1" checked={true} theme={customTheme}>
|
|
18
|
+
<span>Checked radio button</span>
|
|
19
|
+
</RadioButtonInput>
|
|
20
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="themed-radio-button-input" id="themed-radio-button-input-2" theme={customTheme}>
|
|
21
|
+
<span>Unchecked radio button</span>
|
|
22
|
+
</RadioButtonInput>
|
|
23
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 1" name="themed-radio-button-input" id="themed-radio-button-input-3" checked={true} theme={customTheme} disabled={true}>
|
|
24
|
+
<span>Checked disabled radio button</span>
|
|
25
|
+
</RadioButtonInput>
|
|
26
|
+
<RadioButtonInput onChange={()=>{console.log('onchange')}} inputValue="value 2" name="themed-radio-button-input" id="themed-radio-button-input-4" theme={customTheme} disabled={true}>
|
|
27
|
+
<span>Unchecked disabled radio button</span>
|
|
28
|
+
</RadioButtonInput>
|
|
29
|
+
</div>
|
|
30
|
+
```
|