@madgex/design-system 1.37.0 → 1.38.0
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/__tests__/unit/src/components/combobox.spec.js +1 -1
- package/coverage/cobertura-coverage.xml +5 -5
- package/coverage/components/accordion/accordion.js.html +1 -1
- package/coverage/components/accordion/index.html +1 -1
- package/coverage/components/{combobox → inputs/combobox}/combobox.js.html +9 -9
- package/coverage/components/{combobox → inputs/combobox}/index.html +9 -9
- package/coverage/components/{combobox → inputs/combobox}/vue-components/Combobox.vue.html +9 -9
- package/coverage/components/{combobox → inputs/combobox}/vue-components/index.html +9 -9
- package/coverage/components/notification/index.html +1 -1
- package/coverage/components/notification/notification.js.html +1 -1
- package/coverage/components/popover/index.html +1 -1
- package/coverage/components/popover/popover.js.html +1 -1
- package/coverage/components/switch-state/index.html +1 -1
- package/coverage/components/switch-state/switch-state.js.html +1 -1
- package/coverage/components/tabs/index.html +1 -1
- package/coverage/components/tabs/tabs.js.html +1 -1
- package/coverage/index.html +3 -3
- package/coverage/js/common.js.html +1 -1
- package/coverage/js/fractal-scripts/combobox.js.html +1 -1
- package/coverage/js/fractal-scripts/index.html +1 -1
- package/coverage/js/fractal-scripts/notification.js.html +1 -1
- package/coverage/js/fractal-scripts/switch-state.js.html +1 -1
- package/coverage/js/index-fractal.js.html +1 -1
- package/coverage/js/index-polyfills.js.html +1 -1
- package/coverage/js/index-vue.js.html +2 -2
- package/coverage/js/index.html +1 -1
- package/coverage/js/index.js.html +1 -1
- package/coverage/js/polyfills/closest.js.html +1 -1
- package/coverage/js/polyfills/index.html +1 -1
- package/coverage/js/polyfills/remove.js.html +1 -1
- package/coverage/tokens/_config.js.html +1 -1
- package/coverage/tokens/index.html +1 -1
- package/cypress/integration/components/radio.spec.js +9 -0
- package/dist/_tokens/css/_tokens.css +1 -1
- package/dist/_tokens/js/_tokens-module.js +1 -1
- package/dist/_tokens/scss/_tokens.scss +1 -1
- package/dist/assets/icons.json +1 -1
- package/dist/css/index.css +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +1 -1
- package/src/components/{combobox → inputs/combobox}/_template.njk +1 -1
- package/src/components/{combobox → inputs/combobox}/combobox.njk +1 -1
- package/src/components/{input → inputs/input}/_template.njk +2 -2
- package/src/components/{input → inputs/input}/input.njk +1 -1
- package/src/components/inputs/radio/README.md +27 -0
- package/src/components/inputs/radio/_macro.njk +3 -0
- package/src/components/inputs/radio/_template.njk +31 -0
- package/src/components/inputs/radio/radio.config.js +94 -0
- package/src/components/inputs/radio/radio.njk +10 -0
- package/src/components/inputs/radio/radio.scss +51 -0
- package/src/js/index-vue.js +1 -1
- package/src/scss/components/__index.scss +3 -2
- /package/src/components/{combobox → inputs/combobox}/README.md +0 -0
- /package/src/components/{combobox → inputs/combobox}/_macro.njk +0 -0
- /package/src/components/{combobox → inputs/combobox}/combobox.config.js +0 -0
- /package/src/components/{combobox → inputs/combobox}/combobox.js +0 -0
- /package/src/components/{combobox → inputs/combobox}/combobox.scss +0 -0
- /package/src/components/{combobox → inputs/combobox}/vue-components/Combobox.vue +0 -0
- /package/src/components/{combobox → inputs/combobox}/vue-components/ComboboxInput.vue +0 -0
- /package/src/components/{combobox → inputs/combobox}/vue-components/ListBox.vue +0 -0
- /package/src/components/{combobox → inputs/combobox}/vue-components/ListBoxOption.vue +0 -0
- /package/src/components/{input → inputs/input}/README.md +0 -0
- /package/src/components/{input → inputs/input}/_macro.njk +0 -0
- /package/src/components/{input → inputs/input}/input.config.js +0 -0
- /package/src/components/{input → inputs/input}/input.scss +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
title: 'Radio',
|
|
3
|
+
status: 'wip',
|
|
4
|
+
context: {
|
|
5
|
+
id: 'radio-input',
|
|
6
|
+
labelText: 'Standard Radio Group',
|
|
7
|
+
options: [
|
|
8
|
+
{
|
|
9
|
+
labelText: 'Radio Input 1',
|
|
10
|
+
value: '1-1',
|
|
11
|
+
id: 'radio-1-1',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
labelText: 'Radio Input 2',
|
|
15
|
+
value: '1-2',
|
|
16
|
+
id: 'radio-1-2',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
variants: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Stacked Radio By Defined',
|
|
23
|
+
context: {
|
|
24
|
+
id: 'stacked-radio-input-defined',
|
|
25
|
+
labelText: 'When do you want to receive latest jobs?',
|
|
26
|
+
isStacked: true,
|
|
27
|
+
options: [
|
|
28
|
+
{
|
|
29
|
+
labelText: 'Radio Input 1',
|
|
30
|
+
value: '2-1',
|
|
31
|
+
id: 'radio-2-1',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
labelText: 'Radio Input 2',
|
|
35
|
+
value: '2-2',
|
|
36
|
+
id: 'radio-2-2',
|
|
37
|
+
selected: true,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Stacked Radio By Number Of Options',
|
|
44
|
+
context: {
|
|
45
|
+
id: 'stacked-radio-input-options',
|
|
46
|
+
labelText: 'When do you want to receive latest jobs?',
|
|
47
|
+
options: [
|
|
48
|
+
{
|
|
49
|
+
labelText: 'Radio Input 1',
|
|
50
|
+
value: '3-1',
|
|
51
|
+
id: 'radio-3-1',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
labelText: 'Radio Input 2',
|
|
55
|
+
value: '3-2',
|
|
56
|
+
id: 'radio-3-2',
|
|
57
|
+
selected: true,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
labelText: 'Radio Input 3',
|
|
61
|
+
value: '3-3',
|
|
62
|
+
id: 'radio-3-3',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Stacked Radio disabled',
|
|
69
|
+
context: {
|
|
70
|
+
id: 'stacked-radio-input-disabled',
|
|
71
|
+
labelText: 'When do you want to receive latest jobs?',
|
|
72
|
+
disabled: true,
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
labelText: 'Radio Input 1',
|
|
76
|
+
value: '4-1',
|
|
77
|
+
id: 'radio-4-1',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
labelText: 'Radio Input 2',
|
|
81
|
+
value: '4-2',
|
|
82
|
+
id: 'radio-4-2',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
labelText: 'Radio Input 3',
|
|
86
|
+
value: '4-3',
|
|
87
|
+
id: 'radio-4-3',
|
|
88
|
+
selected: true,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.mds-radio__group legend {
|
|
2
|
+
margin-bottom: $mds-size-baseline * 2;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.mds-radio__group .mds-radio {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
margin-right: $mds-size-baseline * 7;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mds-radio__group--stacked .mds-radio {
|
|
12
|
+
display: block;
|
|
13
|
+
margin-right: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mds-radio__group .mds-radio__input {
|
|
17
|
+
height: calc(#{$mds-size-baseline}*6 - #{$mds-size-baseline});
|
|
18
|
+
width: calc(#{$mds-size-baseline}*6 - #{$mds-size-baseline});
|
|
19
|
+
appearance: none;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
padding: $mds-size-baseline;
|
|
22
|
+
background-clip: content-box;
|
|
23
|
+
border: 2px solid $mds-color-border;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
outline: 0;
|
|
27
|
+
margin-right: $mds-size-baseline * 2;
|
|
28
|
+
|
|
29
|
+
&:checked {
|
|
30
|
+
background-color: #000000;
|
|
31
|
+
box-shadow: 0px 0px 0px 3px $mds-color-input-focus;
|
|
32
|
+
}
|
|
33
|
+
&:focus {
|
|
34
|
+
box-shadow: 0px 0px 0px 3px $mds-color-input-focus;
|
|
35
|
+
}
|
|
36
|
+
&[disabled="disabled"] {
|
|
37
|
+
border-color: rgba(84, 84, 84, 0.5);
|
|
38
|
+
box-shadow: 0 0 0 3px rgba(84, 84, 84, 0);
|
|
39
|
+
&:checked {
|
|
40
|
+
background-color: rgba(84, 84, 84, 0.5);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mds-radio__group--stacked .mds-radio__input {
|
|
46
|
+
margin-top: $mds-size-baseline * 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.mds-radio__label {
|
|
50
|
+
vertical-align: text-bottom;
|
|
51
|
+
}
|
package/src/js/index-vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '../components/combobox/combobox';
|
|
1
|
+
import '../components/inputs/combobox/combobox';
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
@import '../../components/card/card';
|
|
4
4
|
@import '../../components/section-title/section-title';
|
|
5
5
|
@import '../../components/tabs/tabs';
|
|
6
|
-
@import '../../components/input/input';
|
|
6
|
+
@import '../../components/inputs/input/input';
|
|
7
7
|
@import '../../components/textarea/textarea';
|
|
8
8
|
@import '../../components/accordion/accordion';
|
|
9
9
|
@import '../../components/pagination/pagination';
|
|
10
10
|
@import '../../components/switch-state/switch-state';
|
|
11
11
|
@import '../../components/popover/popover';
|
|
12
12
|
@import '../../components/notification/notification';
|
|
13
|
-
@import '../../components/combobox/combobox';
|
|
13
|
+
@import '../../components/inputs/combobox/combobox';
|
|
14
|
+
@import '../../components/inputs/radio/radio';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|