@comicrelief/component-library 8.35.0 → 8.35.1
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.
|
@@ -25,12 +25,7 @@ const OuterWrapper = exports.OuterWrapper = _styledComponents.default.div.withCo
|
|
|
25
25
|
const TopCopyWrapper = exports.TopCopyWrapper = _styledComponents.default.div.withConfig({
|
|
26
26
|
displayName: "MarketingPreferencesDSstyle__TopCopyWrapper",
|
|
27
27
|
componentId: "sc-68n85q-1"
|
|
28
|
-
})(["margin:", " 0;display:flex;width:100
|
|
29
|
-
let {
|
|
30
|
-
theme
|
|
31
|
-
} = _ref;
|
|
32
|
-
return theme.allBreakpoints('M');
|
|
33
|
-
});
|
|
28
|
+
})(["margin:", " 0;display:flex;width:100%;"], (0, _spacing.default)('l'));
|
|
34
29
|
const BottomCopyWrapper = exports.BottomCopyWrapper = _styledComponents.default.div.withConfig({
|
|
35
30
|
displayName: "MarketingPreferencesDSstyle__BottomCopyWrapper",
|
|
36
31
|
componentId: "sc-68n85q-2"
|
|
@@ -46,94 +41,94 @@ const AssociatedFieldsName = exports.AssociatedFieldsName = _styledComponents.de
|
|
|
46
41
|
const FormField = exports.FormField = _styledComponents.default.div.withConfig({
|
|
47
42
|
displayName: "MarketingPreferencesDSstyle__FormField",
|
|
48
43
|
componentId: "sc-68n85q-5"
|
|
49
|
-
})(["", ""],
|
|
44
|
+
})(["", ""], _ref => {
|
|
50
45
|
let {
|
|
51
46
|
theme,
|
|
52
47
|
isError
|
|
53
|
-
} =
|
|
48
|
+
} = _ref;
|
|
54
49
|
return (0, _styledComponents.css)(["position:relative;margin-bottom:", ";width:100%;display:flex;flex-direction:column;padding:", ";background-color:", ";transition:background-color 0.3s,color 0.3s;border-radius:0.5rem;border:1px solid ", ";&.selected{background-color:", ";&:hover{background-color:", ";border-color:", ";}span.icon-mp_permissionEmail{background-image:url(", ");}span.icon-mp_permissionPhone{background-image:url(", ");}span.icon-mp_permissionPost{background-image:url(", ");}span.icon-mp_permissionSMS{background-image:url(", ");}> div{label,> span{color:", ";}}}label{position:relative;margin-bottom:0;width:100%;color:", ";font-weight:600;display:flex;justify-content:space-between;}h3{position:relative;margin-bottom:", ";&:before{position:absolute;top:0;left:0;width:24px;height:24px;content:'';}}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), theme.color('grey_light'), theme.color('grey'), isError ? theme.color('red') : theme.color('blue_donate'), isError ? theme.color('red_dark') : theme.color('blue_donate'), theme.color('grey_4'), _EmailWhite.default, _PhoneWhite.default, _PostWhite.default, _TextWhite.default, theme.color('white'), theme.color('black'), (0, _spacing.default)('md'));
|
|
55
50
|
});
|
|
56
51
|
const CheckContainer = exports.CheckContainer = _styledComponents.default.div.withConfig({
|
|
57
52
|
displayName: "MarketingPreferencesDSstyle__CheckContainer",
|
|
58
53
|
componentId: "sc-68n85q-6"
|
|
59
|
-
})(["", ""],
|
|
54
|
+
})(["", ""], _ref2 => {
|
|
60
55
|
let {
|
|
61
56
|
theme
|
|
62
|
-
} =
|
|
57
|
+
} = _ref2;
|
|
63
58
|
return (0, _styledComponents.css)(["width:100%;display:flex;justify-content:space-between;font-size:", ";font-family:", ";"], theme.fontSize('md'), theme.fontFamilies(theme.font.regular));
|
|
64
59
|
});
|
|
65
60
|
const CheckLabel = exports.CheckLabel = _styledComponents.default.label.withConfig({
|
|
66
61
|
displayName: "MarketingPreferencesDSstyle__CheckLabel",
|
|
67
62
|
componentId: "sc-68n85q-7"
|
|
68
|
-
})(["", ""],
|
|
63
|
+
})(["", ""], _ref3 => {
|
|
69
64
|
let {
|
|
70
65
|
theme
|
|
71
|
-
} =
|
|
66
|
+
} = _ref3;
|
|
72
67
|
return (0, _styledComponents.css)(["display:flex;align-items:center;font-size:", ";@media ", "{font-size:", ";}"], theme.fontSize('xs'), theme.allBreakpoints('M'), theme.fontSize('s'));
|
|
73
68
|
});
|
|
74
69
|
const CheckInput = exports.CheckInput = _styledComponents.default.input.withConfig({
|
|
75
70
|
displayName: "MarketingPreferencesDSstyle__CheckInput",
|
|
76
71
|
componentId: "sc-68n85q-8"
|
|
77
|
-
})(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;width:100%;height:100%;left:0;top:0;margin:0;border:1px solid ", ";+ span{width:30px;height:30px;background-color:", ";border:1px solid ", ";float:left;border-radius:0.5rem;}:checked + span{background:url(", ") no-repeat center ", ";background-size:contain;}"],
|
|
72
|
+
})(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;width:100%;height:100%;left:0;top:0;margin:0;border:1px solid ", ";+ span{width:30px;height:30px;background-color:", ";border:1px solid ", ";float:left;border-radius:0.5rem;}:checked + span{background:url(", ") no-repeat center ", ";background-size:contain;}"], _ref4 => {
|
|
78
73
|
let {
|
|
79
74
|
theme
|
|
80
|
-
} =
|
|
75
|
+
} = _ref4;
|
|
81
76
|
return theme.fontSize('sm');
|
|
82
|
-
},
|
|
77
|
+
}, _ref5 => {
|
|
83
78
|
let {
|
|
84
79
|
theme
|
|
85
|
-
} =
|
|
80
|
+
} = _ref5;
|
|
86
81
|
return theme.color('grey');
|
|
87
|
-
},
|
|
82
|
+
}, _ref6 => {
|
|
88
83
|
let {
|
|
89
84
|
theme
|
|
90
|
-
} =
|
|
85
|
+
} = _ref6;
|
|
91
86
|
return theme.color('white');
|
|
92
|
-
},
|
|
87
|
+
}, _ref7 => {
|
|
93
88
|
let {
|
|
94
89
|
theme
|
|
95
|
-
} =
|
|
90
|
+
} = _ref7;
|
|
96
91
|
return theme.color('grey');
|
|
97
|
-
}, _CR_Tick_black.default,
|
|
92
|
+
}, _CR_Tick_black.default, _ref8 => {
|
|
98
93
|
let {
|
|
99
94
|
theme
|
|
100
|
-
} =
|
|
95
|
+
} = _ref8;
|
|
101
96
|
return theme.color('white');
|
|
102
97
|
});
|
|
103
98
|
const ShowHideInputWrapper = exports.ShowHideInputWrapper = _styledComponents.default.div.withConfig({
|
|
104
99
|
displayName: "MarketingPreferencesDSstyle__ShowHideInputWrapper",
|
|
105
100
|
componentId: "sc-68n85q-9"
|
|
106
|
-
})(["display:", ";width:100%;label{width:100%;border:none;padding:0;}"],
|
|
101
|
+
})(["display:", ";width:100%;label{width:100%;border:none;padding:0;}"], _ref9 => {
|
|
107
102
|
let {
|
|
108
103
|
show
|
|
109
|
-
} =
|
|
104
|
+
} = _ref9;
|
|
110
105
|
return show ? 'block' : 'none';
|
|
111
106
|
});
|
|
112
107
|
const ExtraInfo = exports.ExtraInfo = _styledComponents.default.span.withConfig({
|
|
113
108
|
displayName: "MarketingPreferencesDSstyle__ExtraInfo",
|
|
114
109
|
componentId: "sc-68n85q-10"
|
|
115
|
-
})(["display:block;width:100%;font-size:1rem;text-transform:inherit;font-weight:normal;line-height:normal;font-family:'Montserrat',Helvetica,Arial,sans-serif;margin-bottom:0rem;margin-top:1rem;color:", ";+ label{margin-top:", ";margin-bottom:0;&[for=\"mp_email\"],&[for=\"mp_mobile\"],&[for=\"mp_phone\"]{> span:first-child{position:absolute;margin:-1px;padding:0;width:1px;height:1px;border:0;overflow:hidden;clip:rect(1px 1px 1px 1px);word-wrap:normal;}}"],
|
|
110
|
+
})(["display:block;width:100%;font-size:1rem;text-transform:inherit;font-weight:normal;line-height:normal;font-family:'Montserrat',Helvetica,Arial,sans-serif;margin-bottom:0rem;margin-top:1rem;color:", ";+ label{margin-top:", ";margin-bottom:0;&[for=\"mp_email\"],&[for=\"mp_mobile\"],&[for=\"mp_phone\"]{> span:first-child{position:absolute;margin:-1px;padding:0;width:1px;height:1px;border:0;overflow:hidden;clip:rect(1px 1px 1px 1px);word-wrap:normal;}}"], _ref10 => {
|
|
116
111
|
let {
|
|
117
112
|
theme
|
|
118
|
-
} =
|
|
113
|
+
} = _ref10;
|
|
119
114
|
return theme.color('black');
|
|
120
115
|
}, (0, _spacing.default)('md'));
|
|
121
116
|
const MPTextInput = exports.MPTextInput = (0, _styledComponents.default)(_TextInput.default).withConfig({
|
|
122
117
|
displayName: "MarketingPreferencesDSstyle__MPTextInput",
|
|
123
118
|
componentId: "sc-68n85q-11"
|
|
124
|
-
})(["input{border:1px solid ", ";background-color:", ";@media ", "{max-width:none;}}span{color:white;}"],
|
|
119
|
+
})(["input{border:1px solid ", ";background-color:", ";@media ", "{max-width:none;}}span{color:white;}"], _ref11 => {
|
|
125
120
|
let {
|
|
126
121
|
theme
|
|
127
|
-
} =
|
|
122
|
+
} = _ref11;
|
|
128
123
|
return theme.color('black');
|
|
129
|
-
},
|
|
124
|
+
}, _ref12 => {
|
|
130
125
|
let {
|
|
131
126
|
theme
|
|
132
|
-
} =
|
|
127
|
+
} = _ref12;
|
|
133
128
|
return theme.color('white');
|
|
134
|
-
},
|
|
129
|
+
}, _ref13 => {
|
|
135
130
|
let {
|
|
136
131
|
theme
|
|
137
|
-
} =
|
|
132
|
+
} = _ref13;
|
|
138
133
|
return theme.allBreakpoints('M');
|
|
139
134
|
});
|
package/package.json
CHANGED