@redsift/design-system 5.0.2 → 5.1.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/README.md +2 -2
- package/dist/components/Alert/Alert.js +9 -55
- package/dist/components/Button/Button.js +13 -93
- package/dist/components/Card/Card.js +14 -18
- package/dist/components/Card/readme.md +35 -1
- package/dist/components/CardHeader/CardHeader.js +46 -0
- package/dist/components/Checkbox/Checkbox.js +8 -44
- package/dist/components/CheckboxTree/CheckboxTree.js +158 -0
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +55 -0
- package/dist/components/CheckboxTree/CheckboxTree.styles.js +30 -0
- package/dist/components/CheckboxTree/CheckboxTree.utils.js +69 -0
- package/dist/components/CheckboxTree/readme.md +60 -0
- package/dist/components/Icon/Icon.js +49 -50
- package/dist/components/Icon/readme.md +1 -156
- package/dist/components/Input/Input.js +4 -2
- package/dist/components/Input/OutlineInput/OutlineInput.js +5 -11
- package/dist/components/Input/RegularInput/RegularInput.js +4 -6
- package/dist/components/Input/RegularInput/RegularInput.styles.js +9 -67
- package/dist/components/Pagination/Pagination.js +12 -82
- package/dist/components/Radio/Radio.js +10 -60
- package/dist/components/Select/Select.js +15 -18
- package/dist/components/Select/SelectComponents.js +17 -149
- package/dist/components/Switch/Switch.js +9 -55
- package/dist/components/Table/ExportCSVButton.js +5 -11
- package/dist/components/Table/Table.js +4 -6
- package/dist/components/Table/TableComponents.js +8 -28
- package/dist/components/Table/TableFilters.js +1 -1
- package/dist/components/Table/TableStyles.js +40 -296
- package/dist/components/Table/readme.md +1 -1
- package/dist/components/Tabs/Tabs.js +20 -13
- package/dist/components/Tabs/TabsComponents.js +11 -83
- package/dist/components/Tabs/readme.md +1 -0
- package/dist/components/Typography/Typography.js +34 -42
- package/dist/hooks/useDebouncedValue.js +1 -1
- package/dist/hooks/useFetch.js +1 -1
- package/dist/hooks/useIsMobile.js +1 -1
- package/dist/hooks/useToggle.js +1 -1
- package/dist/icons/Arrow.js +1 -1
- package/dist/icons/ArrowIcon.js +4 -2
- package/dist/icons/BarchartHorizontal.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/Chevron.js +1 -1
- package/dist/icons/Cloud.js +1 -1
- package/dist/icons/Cross.js +1 -1
- package/dist/icons/DeleteIcon.js +1 -1
- package/dist/icons/Email.js +3 -11
- package/dist/icons/Eye.js +1 -1
- package/dist/icons/Facebook.js +1 -1
- package/dist/icons/FlatArrow.js +1 -1
- package/dist/icons/Github.js +1 -1
- package/dist/icons/Globe.js +1 -1
- package/dist/icons/Hand.js +1 -1
- package/dist/icons/InGrainIcon.js +4 -2
- package/dist/icons/InfinityLoop.js +1 -1
- package/dist/icons/InfinityLoopBreak.js +1 -1
- package/dist/icons/Linkedin.js +1 -1
- package/dist/icons/LocationPin.js +1 -1
- package/dist/icons/MicrosoftShield.js +1 -1
- package/dist/icons/News.js +1 -1
- package/dist/icons/Nodes.js +1 -1
- package/dist/icons/OnDmarcIcon.js +1 -1
- package/dist/icons/OnDmarcLogo.js +7 -55
- package/dist/icons/OnDomainIcon.js +1 -1
- package/dist/icons/OnInboxIcon.js +4 -2
- package/dist/icons/OnInboxLogo.js +7 -55
- package/dist/icons/OnInboxManagerIcon.js +4 -2
- package/dist/icons/Padlock.js +1 -1
- package/dist/icons/Question.js +1 -1
- package/dist/icons/Recruiting.js +1 -1
- package/dist/icons/Shield.js +1 -1
- package/dist/icons/ShieldSolid.js +1 -1
- package/dist/icons/Spinner.js +5 -27
- package/dist/icons/Team.js +1 -1
- package/dist/icons/Thumb.js +1 -1
- package/dist/icons/Traffic.js +1 -1
- package/dist/icons/Twitter.js +1 -1
- package/dist/icons/Upload.js +1 -1
- package/dist/icons/VerticalDots.js +1 -1
- package/dist/icons/Warning.js +1 -1
- package/dist/icons/WarningTriangle.js +1 -1
- package/dist/icons/Youtube.js +1 -1
- package/dist/index.js +23 -7
- package/dist/styles/styles.constants.js +13 -0
- package/package.json +22 -19
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
| fontFamily | | String ** Text Icons Only ** |
|
|
25
25
|
| direction | right | 'left', 'right', 'up', or 'down', String ** Directional Icons Only ** |
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Used across apps / websites:
|
|
27
|
+
### Examples:
|
|
30
28
|
|
|
31
29
|
```js
|
|
32
30
|
<div
|
|
@@ -55,158 +53,5 @@
|
|
|
55
53
|
<Icon type="twitter" stroke="#02ac61" width={40} />
|
|
56
54
|
<Icon type="youtube" />
|
|
57
55
|
</div>
|
|
58
|
-
<div
|
|
59
|
-
style={{
|
|
60
|
-
display: "flex",
|
|
61
|
-
flexWrap: "wrap",
|
|
62
|
-
flexDirection: "row",
|
|
63
|
-
alignItems: "center",
|
|
64
|
-
justifyContent: "space-evenly",
|
|
65
|
-
marginBottom: "2rem",
|
|
66
|
-
}}
|
|
67
|
-
>
|
|
68
|
-
<Icon type="shield" />
|
|
69
|
-
<Icon type="spinner" />
|
|
70
|
-
<Icon type="oninboxicon" />
|
|
71
|
-
<Icon type="ondmarcicon" />
|
|
72
|
-
<Icon type="ondomainicon" />
|
|
73
|
-
<Icon type="oninboxmanagericon" />
|
|
74
|
-
<Icon type="oninboxmanagericon" disabled />
|
|
75
|
-
<Icon type="ingrainicon" />
|
|
76
|
-
</div>
|
|
77
|
-
<div
|
|
78
|
-
style={{
|
|
79
|
-
display: "flex",
|
|
80
|
-
flexWrap: "wrap",
|
|
81
|
-
flexDirection: "row",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "space-evenly",
|
|
84
|
-
marginBottom: "2rem",
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
<Icon type="ondmarclogo" />
|
|
88
|
-
<Icon type="oninboxlogo" />
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Websites
|
|
94
|
-
|
|
95
|
-
[redsift.com](https://redsift.com/)
|
|
96
|
-
|
|
97
|
-
```js
|
|
98
|
-
<div
|
|
99
|
-
style={{
|
|
100
|
-
backgroundColor: "lightgrey",
|
|
101
|
-
padding: "1rem",
|
|
102
|
-
}}
|
|
103
|
-
>
|
|
104
|
-
<div
|
|
105
|
-
style={{
|
|
106
|
-
display: "flex",
|
|
107
|
-
flexWrap: "wrap",
|
|
108
|
-
flexDirection: "row",
|
|
109
|
-
alignItems: "center",
|
|
110
|
-
justifyContent: "space-evenly",
|
|
111
|
-
marginBottom: "2rem",
|
|
112
|
-
}}
|
|
113
|
-
>
|
|
114
|
-
<Icon type="bell" />
|
|
115
|
-
<Icon type="cloud" />
|
|
116
|
-
<Icon type="eye" />
|
|
117
|
-
<Icon type="hand" />
|
|
118
|
-
<Icon type="infinityicon" />
|
|
119
|
-
<Icon type="locationpin" />
|
|
120
|
-
</div>
|
|
121
|
-
<div
|
|
122
|
-
style={{
|
|
123
|
-
display: "flex",
|
|
124
|
-
flexWrap: "wrap",
|
|
125
|
-
flexDirection: "row",
|
|
126
|
-
alignItems: "center",
|
|
127
|
-
justifyContent: "space-evenly",
|
|
128
|
-
marginBottom: "2rem",
|
|
129
|
-
}}
|
|
130
|
-
>
|
|
131
|
-
<Icon type="microsoftshield" />
|
|
132
|
-
<Icon type="news" />
|
|
133
|
-
<Icon type="nodes" />
|
|
134
|
-
<Icon type="padlock" />
|
|
135
|
-
<Icon type="question" />
|
|
136
|
-
<Icon type="recruiting" />
|
|
137
|
-
</div>
|
|
138
|
-
<div
|
|
139
|
-
style={{
|
|
140
|
-
display: "flex",
|
|
141
|
-
flexWrap: "wrap",
|
|
142
|
-
flexDirection: "row",
|
|
143
|
-
alignItems: "center",
|
|
144
|
-
justifyContent: "space-evenly",
|
|
145
|
-
marginBottom: "2rem",
|
|
146
|
-
}}
|
|
147
|
-
>
|
|
148
|
-
<Icon type="shieldsolid" />
|
|
149
|
-
<Icon type="team" />
|
|
150
|
-
<Icon type="verticaldots" fill="#02ac61" />
|
|
151
|
-
<Icon type="warningtriangle" />
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
[ondmarc.com](https://ondmarc.com/)
|
|
157
|
-
|
|
158
|
-
```js
|
|
159
|
-
<div
|
|
160
|
-
style={{
|
|
161
|
-
display: "flex",
|
|
162
|
-
flexWrap: "wrap",
|
|
163
|
-
flexDirection: "row",
|
|
164
|
-
alignItems: "center",
|
|
165
|
-
justifyContent: "space-evenly",
|
|
166
|
-
backgroundColor: "lightgrey",
|
|
167
|
-
padding: "1rem",
|
|
168
|
-
}}
|
|
169
|
-
></div>
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Apps:
|
|
173
|
-
|
|
174
|
-
[app.ondmarc.com](http://app.ondmarc.com/)
|
|
175
|
-
|
|
176
|
-
```js
|
|
177
|
-
<div
|
|
178
|
-
style={{
|
|
179
|
-
display: "flex",
|
|
180
|
-
flexWrap: "wrap",
|
|
181
|
-
flexDirection: "row",
|
|
182
|
-
alignItems: "center",
|
|
183
|
-
justifyContent: "space-evenly",
|
|
184
|
-
backgroundColor: "lightgrey",
|
|
185
|
-
padding: "1rem",
|
|
186
|
-
}}
|
|
187
|
-
>
|
|
188
|
-
<Icon type="arrow" />
|
|
189
|
-
<Icon type="infinityloop" />
|
|
190
|
-
<Icon type="warning" />
|
|
191
|
-
</div>
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
[oninbox.redsift.cloud](https://oninbox.redsift.cloud/) and [oninbox-manager.redsift.cloud](oninbox-manager.redsift.cloud/)
|
|
195
|
-
|
|
196
|
-
```js
|
|
197
|
-
<div
|
|
198
|
-
style={{
|
|
199
|
-
display: "flex",
|
|
200
|
-
flexWrap: "wrap",
|
|
201
|
-
flexDirection: "row",
|
|
202
|
-
alignItems: "center",
|
|
203
|
-
justifyContent: "space-evenly",
|
|
204
|
-
backgroundColor: "lightgrey",
|
|
205
|
-
padding: "1rem",
|
|
206
|
-
}}
|
|
207
|
-
>
|
|
208
|
-
<Icon type="barcharthorizontal" />
|
|
209
|
-
<Icon type="globe" />
|
|
210
|
-
<Icon type="traffic" />
|
|
211
56
|
</div>
|
|
212
57
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -15,13 +15,15 @@ var _OutlineInput = require("./OutlineInput/OutlineInput");
|
|
|
15
15
|
|
|
16
16
|
var _RegularInput = require("./RegularInput/RegularInput");
|
|
17
17
|
|
|
18
|
+
var _excluded = ["color", "label", "errorText", "placeholder", "outlined"];
|
|
19
|
+
|
|
18
20
|
var Input = function Input(_ref) {
|
|
19
21
|
var color = _ref.color,
|
|
20
22
|
label = _ref.label,
|
|
21
23
|
errorText = _ref.errorText,
|
|
22
24
|
placeholder = _ref.placeholder,
|
|
23
25
|
outlined = _ref.outlined,
|
|
24
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref,
|
|
26
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
25
27
|
return outlined ? /*#__PURE__*/_react["default"].createElement(_OutlineInput.OutlineInput, Object.assign({
|
|
26
28
|
placeholder: placeholder,
|
|
27
29
|
label: label,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -15,17 +15,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: block;\n padding-top: 6px;\n\n & > input {\n box-sizing: border-box;\n margin: 0;\n border: 2px solid #ebedf4;\n border-top-color: transparent;\n border-radius: 4px;\n padding: 16px 12px;\n width: 100%;\n height: inherit;\n color: #4a4a4a;\n background-color: transparent;\n box-shadow: none; /* Firefox */\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n caret-color: #4a4a4a;\n transition: border 0.2s, box-shadow 0.2s;\n }\n\n /* Span */\n & > input + span {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n border-color: #ebedf4;\n width: 100%;\n max-height: 100%;\n color: #4a4a4a;\n font-size: 75%;\n line-height: 15px;\n cursor: text;\n transition: color 0.2s, font-size 0.2s, line-height 0.2s;\n }\n\n /* Corners */\n & > input + span::before,\n & > input + span::after {\n content: \"\";\n display: block;\n box-sizing: border-box;\n margin-top: 6px;\n border-top: solid 1px #ebedf4;\n min-width: 10px;\n height: 8px;\n pointer-events: none;\n box-shadow: inset 0 1px transparent;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n & > input + span::before {\n margin-right: 4px;\n border-left: solid 1px transparent;\n border-radius: 4px 0;\n }\n\n & > input + span::after {\n flex-grow: 1;\n margin-left: 4px;\n border-right: solid 1px transparent;\n border-radius: 0 4px;\n }\n\n /* Hover */\n &:hover > input {\n border-color: ", ";\n border-top-color: transparent;\n }\n\n &:hover > input + span {\n color: ", ";\n }\n\n &:hover > input + span::before,\n &:hover > input + span::after {\n border-top-color: ", ";\n }\n\n &:hover > input:not(:focus):placeholder-shown {\n border-color: ", ";\n }\n\n /* Placeholder-shown */\n & > input:not(:focus):placeholder-shown {\n border-top-color: #ebedf4;\n }\n\n & > input:not(:focus):placeholder-shown + span {\n font-size: inherit;\n line-height: 68px;\n }\n\n &\n > input:not(:focus):placeholder-shown\n + span::before\n &\n > input:not(:focus):placeholder-shown\n + span::after {\n border-top-color: transparent;\n }\n\n /* Focus */\n & > input:focus {\n border-color: ", ";\n border-top-color: transparent;\n box-shadow: inset 1px 0\n ", ",\n inset -1px 0 ", ",\n inset 0 -1px ", ";\n outline: none;\n }\n\n & > input:focus + span {\n color: ", ";\n }\n\n & > input:focus + span::before,\n & > input:focus + span::after {\n border-top-color: ", " !important;\n box-shadow: inset 0 1px ", ";\n }\n\n /* Disabled */\n & > input:disabled,\n & > input:disabled + span {\n border-color: rgba(#ebedf4, 0.38) !important;\n border-top-color: transparent !important;\n color: rgba(74, 74, 74, 0.38);\n pointer-events: none;\n }\n\n & > input:disabled + span::before,\n & > input:disabled + span::after {\n border-top-color: rgba(#ebedf4, 0.38) !important;\n }\n\n & > input:disabled:placeholder-shown,\n & > input:disabled:placeholder-shown + span {\n border-top-color: rgba(#ebedf4, 0.38) !important;\n }\n\n & > input:disabled:placeholder-shown + span::before,\n & > input:disabled:placeholder-shown + span::after {\n border-top-color: transparent !important;\n }\n\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n & > input,\n & > input + span,\n & > input + span::before,\n & > input + span::after {\n transition-duration: 0.1s;\n }\n }\n }\n\n // Error\n & > p {\n position: absolute;\n bottom: -30px;\n padding-left: 16px;\n font-size: 12px;\n color: #e06354;\n }\n"]);
|
|
18
|
+
var _excluded = ["placeholder", "label", "errorText", "color"];
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
20
|
+
var _templateObject;
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var OutlineLabel = _styledComponents["default"].label(_templateObject(), function (_ref) {
|
|
22
|
+
var OutlineLabel = _styledComponents["default"].label(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: block;\n padding-top: 6px;\n\n & > input {\n box-sizing: border-box;\n margin: 0;\n border: 2px solid #ebedf4;\n border-top-color: transparent;\n border-radius: 4px;\n padding: 16px 12px;\n width: 100%;\n height: inherit;\n color: #4a4a4a;\n background-color: transparent;\n box-shadow: none; /* Firefox */\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n caret-color: #4a4a4a;\n transition: border 0.2s, box-shadow 0.2s;\n }\n\n /* Span */\n & > input + span {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n border-color: #ebedf4;\n width: 100%;\n max-height: 100%;\n color: #4a4a4a;\n font-size: 75%;\n line-height: 15px;\n cursor: text;\n transition: color 0.2s, font-size 0.2s, line-height 0.2s;\n }\n\n /* Corners */\n & > input + span::before,\n & > input + span::after {\n content: \"\";\n display: block;\n box-sizing: border-box;\n margin-top: 6px;\n border-top: solid 1px #ebedf4;\n min-width: 10px;\n height: 8px;\n pointer-events: none;\n box-shadow: inset 0 1px transparent;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n & > input + span::before {\n margin-right: 4px;\n border-left: solid 1px transparent;\n border-radius: 4px 0;\n }\n\n & > input + span::after {\n flex-grow: 1;\n margin-left: 4px;\n border-right: solid 1px transparent;\n border-radius: 0 4px;\n }\n\n /* Hover */\n &:hover > input {\n border-color: ", ";\n border-top-color: transparent;\n }\n\n &:hover > input + span {\n color: ", ";\n }\n\n &:hover > input + span::before,\n &:hover > input + span::after {\n border-top-color: ", ";\n }\n\n &:hover > input:not(:focus):placeholder-shown {\n border-color: ", ";\n }\n\n /* Placeholder-shown */\n & > input:not(:focus):placeholder-shown {\n border-top-color: #ebedf4;\n }\n\n & > input:not(:focus):placeholder-shown + span {\n font-size: inherit;\n line-height: 68px;\n }\n\n &\n > input:not(:focus):placeholder-shown\n + span::before\n &\n > input:not(:focus):placeholder-shown\n + span::after {\n border-top-color: transparent;\n }\n\n /* Focus */\n & > input:focus {\n border-color: ", ";\n border-top-color: transparent;\n box-shadow: inset 1px 0\n ", ",\n inset -1px 0 ", ",\n inset 0 -1px ", ";\n outline: none;\n }\n\n & > input:focus + span {\n color: ", ";\n }\n\n & > input:focus + span::before,\n & > input:focus + span::after {\n border-top-color: ", " !important;\n box-shadow: inset 0 1px ", ";\n }\n\n /* Disabled */\n & > input:disabled,\n & > input:disabled + span {\n border-color: rgba(#ebedf4, 0.38) !important;\n border-top-color: transparent !important;\n color: rgba(74, 74, 74, 0.38);\n pointer-events: none;\n }\n\n & > input:disabled + span::before,\n & > input:disabled + span::after {\n border-top-color: rgba(#ebedf4, 0.38) !important;\n }\n\n & > input:disabled:placeholder-shown,\n & > input:disabled:placeholder-shown + span {\n border-top-color: rgba(#ebedf4, 0.38) !important;\n }\n\n & > input:disabled:placeholder-shown + span::before,\n & > input:disabled:placeholder-shown + span::after {\n border-top-color: transparent !important;\n }\n\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n & > input,\n & > input + span,\n & > input + span::before,\n & > input + span::after {\n transition-duration: 0.1s;\n }\n }\n }\n\n // Error\n & > p {\n position: absolute;\n bottom: -30px;\n padding-left: 16px;\n font-size: 12px;\n color: #e06354;\n }\n"])), function (_ref) {
|
|
29
23
|
var color = _ref.color,
|
|
30
24
|
error = _ref.error;
|
|
31
25
|
return "rgba(".concat(error ? "#E06354" : color, ", 0.87)");
|
|
@@ -77,7 +71,7 @@ var OutlineInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref12, r
|
|
|
77
71
|
errorText = _ref12.errorText,
|
|
78
72
|
_ref12$color = _ref12.color,
|
|
79
73
|
color = _ref12$color === void 0 ? "#333333" : _ref12$color,
|
|
80
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref12,
|
|
74
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref12, _excluded);
|
|
81
75
|
return /*#__PURE__*/_react["default"].createElement(OutlineLabel, {
|
|
82
76
|
className: rest.className,
|
|
83
77
|
color: color,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
@@ -17,9 +17,7 @@ var _Button = _interopRequireDefault(require("../../Button/Button"));
|
|
|
17
17
|
|
|
18
18
|
var Styles = _interopRequireWildcard(require("./RegularInput.styles"));
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
+
var _excluded = ["color", "label", "hideUnderline", "helperText", "errorText", "placeholder", "leftIcon", "rightIcon", "showClear"];
|
|
23
21
|
|
|
24
22
|
var ClearSVG = function ClearSVG(props) {
|
|
25
23
|
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
@@ -61,7 +59,7 @@ var RegularInput = function RegularInput(_ref2) {
|
|
|
61
59
|
leftIcon = _ref2.leftIcon,
|
|
62
60
|
rightIcon = _ref2.rightIcon,
|
|
63
61
|
showClear = _ref2.showClear,
|
|
64
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref2,
|
|
62
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
|
65
63
|
return /*#__PURE__*/_react["default"].createElement(Styles.Wrapper, {
|
|
66
64
|
className: rest.className,
|
|
67
65
|
htmlFor: rest.name
|
|
@@ -1,93 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Wrapper = exports.Span = exports.RightIconWrapper = exports.LeftIconWrapper = exports.InputField = exports.HelperText = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n padding-right: 16px;\n padding-left: 16px;\n font-family: Raleway, sans-serif;\n color: ", ";\n font-size: 0.75rem;\n letter-spacing: 0.0333333333em;\n margin: 0;\n height: 1rem;\n margin-bottom: 5px;\n"]);
|
|
14
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
return data;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
return data;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _templateObject5() {
|
|
25
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: transparent;\n font-size: 1rem;\n font-family: Raleway, sans-serif;\n line-height: 1.75rem;\n color: rgba(0, 0, 0, 0.87);\n padding: ", ";\n margin-top: 0px;\n margin-bottom: 5px;\n display: block;\n border: none;\n text-indent: ", ";\n border-bottom: ", ";\n ::placeholder {\n opacity: 0;\n }\n :focus {\n outline: none;\n border-bottom: ", ";\n }\n :disabled ~ ", " {\n color: rgba(0, 0, 0, 0.38);\n }\n :disabled,\n :disabled ~ ", " {\n color: rgba(0, 0, 0, 0.38);\n }\n :focus ~ ", ", :disabled ~ ", ", :not(:placeholder-shown) ~ ", " {\n top: 7px;\n font-size: 0.75rem;\n }\n :focus ~ ", " {\n color: ", ";\n }\n :focus:placeholder-shown {\n ::placeholder {\n opacity: 1;\n }\n }\n"]);
|
|
26
|
-
|
|
27
|
-
_templateObject5 = function _templateObject5() {
|
|
28
|
-
return data;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return data;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _templateObject4() {
|
|
35
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n top: 15px;\n left: unset;\n right: 10px;\n"]);
|
|
36
|
-
|
|
37
|
-
_templateObject4 = function _templateObject4() {
|
|
38
|
-
return data;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return data;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function _templateObject3() {
|
|
45
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n top: 15px;\n left: 15px;\n\n img {\n vertical-align: middle;\n }\n"]);
|
|
46
|
-
|
|
47
|
-
_templateObject3 = function _templateObject3() {
|
|
48
|
-
return data;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return data;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function _templateObject2() {
|
|
55
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n color: rgba(0, 0, 0, 0.87);\n font-weight: normal;\n font-family: Raleway, sans-serif;\n position: absolute;\n pointer-events: none;\n left: ", ";\n transition: 0.2s ease all;\n top: 17px;\n"]);
|
|
56
|
-
|
|
57
|
-
_templateObject2 = function _templateObject2() {
|
|
58
|
-
return data;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return data;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function _templateObject() {
|
|
65
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n margin-bottom: 0px;\n display: flex;\n flex-direction: column-reverse;\n width: 100%;\n padding-top: 20px;\n"]);
|
|
66
|
-
|
|
67
|
-
_templateObject = function _templateObject() {
|
|
68
|
-
return data;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return data;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var Wrapper = _styledComponents["default"].label(_templateObject());
|
|
16
|
+
var Wrapper = _styledComponents["default"].label(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n margin-bottom: 0px;\n display: flex;\n flex-direction: column-reverse;\n width: 100%;\n padding-top: 20px;\n"])));
|
|
75
17
|
|
|
76
18
|
exports.Wrapper = Wrapper;
|
|
77
19
|
|
|
78
|
-
var Span = _styledComponents["default"].span(_templateObject2(), function (props) {
|
|
20
|
+
var Span = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: rgba(0, 0, 0, 0.87);\n font-weight: normal;\n font-family: Raleway, sans-serif;\n position: absolute;\n pointer-events: none;\n left: ", ";\n transition: 0.2s ease all;\n top: 17px;\n"])), function (props) {
|
|
79
21
|
return props.leftIcon ? "45px" : "5px";
|
|
80
22
|
});
|
|
81
23
|
|
|
82
24
|
exports.Span = Span;
|
|
83
25
|
|
|
84
|
-
var LeftIconWrapper = _styledComponents["default"].div(_templateObject3());
|
|
26
|
+
var LeftIconWrapper = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n top: 15px;\n left: 15px;\n\n img {\n vertical-align: middle;\n }\n"])));
|
|
85
27
|
|
|
86
28
|
exports.LeftIconWrapper = LeftIconWrapper;
|
|
87
|
-
var RightIconWrapper = (0, _styledComponents["default"])(LeftIconWrapper)(_templateObject4());
|
|
29
|
+
var RightIconWrapper = (0, _styledComponents["default"])(LeftIconWrapper)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n top: 15px;\n left: unset;\n right: 10px;\n"])));
|
|
88
30
|
exports.RightIconWrapper = RightIconWrapper;
|
|
89
31
|
|
|
90
|
-
var InputField = _styledComponents["default"].input(_templateObject5(), function (props) {
|
|
32
|
+
var InputField = _styledComponents["default"].input(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: transparent;\n font-size: 1rem;\n font-family: Raleway, sans-serif;\n line-height: 1.75rem;\n color: rgba(0, 0, 0, 0.87);\n padding: ", ";\n margin-top: 0px;\n margin-bottom: 5px;\n display: block;\n border: none;\n text-indent: ", ";\n border-bottom: ", ";\n ::placeholder {\n opacity: 0;\n }\n :focus {\n outline: none;\n border-bottom: ", ";\n }\n :disabled ~ ", " {\n color: rgba(0, 0, 0, 0.38);\n }\n :disabled,\n :disabled ~ ", " {\n color: rgba(0, 0, 0, 0.38);\n }\n :focus ~ ", ", :disabled ~ ", ", :not(:placeholder-shown) ~ ", " {\n top: 7px;\n font-size: 0.75rem;\n }\n :focus ~ ", " {\n color: ", ";\n }\n :focus:placeholder-shown {\n ::placeholder {\n opacity: 1;\n }\n }\n"])), function (props) {
|
|
91
33
|
return props.rightIcon ? "0px 40px 5px 10px" : "0px 10px 5px 10px";
|
|
92
34
|
}, function (props) {
|
|
93
35
|
return props.leftIcon ? "40px" : "0px";
|
|
@@ -101,7 +43,7 @@ var InputField = _styledComponents["default"].input(_templateObject5(), function
|
|
|
101
43
|
|
|
102
44
|
exports.InputField = InputField;
|
|
103
45
|
|
|
104
|
-
var HelperText = _styledComponents["default"].p(_templateObject6(), function (props) {
|
|
46
|
+
var HelperText = _styledComponents["default"].p(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n padding-right: 16px;\n padding-left: 16px;\n font-family: Raleway, sans-serif;\n color: ", ";\n font-size: 0.75rem;\n letter-spacing: 0.0333333333em;\n margin: 0;\n height: 1rem;\n margin-bottom: 5px;\n"])), function (props) {
|
|
105
47
|
return props.error ? "#e06354" : "rgba(0, 0, 0, 0.6)";
|
|
106
48
|
});
|
|
107
49
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
@@ -21,79 +21,9 @@ var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
|
21
21
|
|
|
22
22
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
var _excluded = ["icon", "disabled"];
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function _templateObject7() {
|
|
29
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 100px;\n"]);
|
|
30
|
-
|
|
31
|
-
_templateObject7 = function _templateObject7() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _templateObject6() {
|
|
39
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 100px;\n"]);
|
|
40
|
-
|
|
41
|
-
_templateObject6 = function _templateObject6() {
|
|
42
|
-
return data;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _templateObject5() {
|
|
49
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n margin: auto;\n line-height: 2;\n"]);
|
|
50
|
-
|
|
51
|
-
_templateObject5 = function _templateObject5() {
|
|
52
|
-
return data;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
return data;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function _templateObject4() {
|
|
59
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n position: relative;\n justify-content: ", ";\n height: 50px;\n align-items: center;\n"]);
|
|
60
|
-
|
|
61
|
-
_templateObject4 = function _templateObject4() {
|
|
62
|
-
return data;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function _templateObject3() {
|
|
69
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"]);
|
|
70
|
-
|
|
71
|
-
_templateObject3 = function _templateObject3() {
|
|
72
|
-
return data;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return data;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function _templateObject2() {
|
|
79
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"]);
|
|
80
|
-
|
|
81
|
-
_templateObject2 = function _templateObject2() {
|
|
82
|
-
return data;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return data;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _templateObject() {
|
|
89
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n vertical-align: middle;\n opacity: ", ";\n"]);
|
|
90
|
-
|
|
91
|
-
_templateObject = function _templateObject() {
|
|
92
|
-
return data;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
return data;
|
|
96
|
-
}
|
|
26
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
97
27
|
|
|
98
28
|
var ChevronLeftSVG = function ChevronLeftSVG(props) {
|
|
99
29
|
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
@@ -124,16 +54,16 @@ ChevronRightSVG.defaultProps = {
|
|
|
124
54
|
width: "24",
|
|
125
55
|
height: "24"
|
|
126
56
|
};
|
|
127
|
-
var pagnationIconStyles = (0, _styledComponents.css)(_templateObject(), function (props) {
|
|
57
|
+
var pagnationIconStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n vertical-align: middle;\n opacity: ", ";\n"])), function (props) {
|
|
128
58
|
return props.disabled ? 0.3 : 1;
|
|
129
59
|
});
|
|
130
|
-
var PageLeftIcon = (0, _styledComponents["default"])(ChevronLeftSVG)(_templateObject2(), pagnationIconStyles);
|
|
131
|
-
var PageRightIcon = (0, _styledComponents["default"])(ChevronRightSVG)(_templateObject3(), pagnationIconStyles);
|
|
60
|
+
var PageLeftIcon = (0, _styledComponents["default"])(ChevronLeftSVG)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), pagnationIconStyles);
|
|
61
|
+
var PageRightIcon = (0, _styledComponents["default"])(ChevronRightSVG)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), pagnationIconStyles);
|
|
132
62
|
|
|
133
63
|
var ActionIcon = function ActionIcon(_ref) {
|
|
134
64
|
var Icon = _ref.icon,
|
|
135
65
|
disabled = _ref.disabled,
|
|
136
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref,
|
|
66
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
137
67
|
return /*#__PURE__*/_react["default"].createElement(_Button["default"], Object.assign({
|
|
138
68
|
disabled: disabled,
|
|
139
69
|
flatIcon: true
|
|
@@ -142,15 +72,15 @@ var ActionIcon = function ActionIcon(_ref) {
|
|
|
142
72
|
}));
|
|
143
73
|
};
|
|
144
74
|
|
|
145
|
-
var Container = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
75
|
+
var Container = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n position: relative;\n justify-content: ", ";\n height: 50px;\n align-items: center;\n"])), function (props) {
|
|
146
76
|
return props.hideNavigation ? "flex-end" : "center";
|
|
147
77
|
});
|
|
148
78
|
|
|
149
|
-
var Navigation = _styledComponents["default"].div(_templateObject5());
|
|
79
|
+
var Navigation = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n margin: auto;\n line-height: 2;\n"])));
|
|
150
80
|
|
|
151
|
-
var RowSelectContainer = _styledComponents["default"].div(_templateObject6());
|
|
81
|
+
var RowSelectContainer = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100px;\n"])));
|
|
152
82
|
|
|
153
|
-
var EmptyDiv = _styledComponents["default"].div(_templateObject7());
|
|
83
|
+
var EmptyDiv = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100px;\n"])));
|
|
154
84
|
|
|
155
85
|
var Pagination = function Pagination(_ref2) {
|
|
156
86
|
var totalEntries = _ref2.totalEntries,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
@@ -19,77 +19,27 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
19
19
|
|
|
20
20
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
var _excluded = ["color", "inputProps", "labelProps", "checked", "disabled", "onChange", "label", "checkProps", "borderColor", "name", "defaultChecked"];
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 30px;\n margin-bottom: 1px;\n"]);
|
|
26
|
+
var ripple = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n 0% {\n box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.0);\n }\n 50% { \n box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0.1);\n }\n 100% {\n box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0);\n }\n"])));
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
return data;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return data;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _templateObject4() {
|
|
37
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-block;\n height: 20px;\n padding: 0 (20px + 10px);\n margin-bottom: 0;\n cursor: pointer;\n vertical-align: bottom;\n :before,\n :after {\n box-sizing: border-box;\n position: absolute;\n content: \"\";\n border-radius: 50%;\n transition: all 0.3s ease;\n transition-property: transform, border-color;\n }\n /* The box */\n :before {\n width: 22px;\n height: 22px;\n border: 2px solid ", ";\n }\n /* The check indicator */\n :after {\n content: \"\";\n top: 6px;\n left: 6px;\n width: 10px;\n height: 10px;\n transform: scale(0);\n background: ", ";\n }\n"]);
|
|
38
|
-
|
|
39
|
-
_templateObject4 = function _templateObject4() {
|
|
40
|
-
return data;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return data;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function _templateObject3() {
|
|
47
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: none;\n :checked + span:before {\n border-color: ", ";\n animation: ", " 0.2s linear forwards;\n }\n :checked + span:after {\n transform: scale(1);\n }\n /* Create the background for disabled status */\n :disabled + span:before {\n cursor: initial;\n border-color: #ccc;\n }\n :checked:disabled + span:after {\n cursor: initial;\n background-color: #ccc;\n border-color: #ccc;\n }\n"]);
|
|
48
|
-
|
|
49
|
-
_templateObject3 = function _templateObject3() {
|
|
50
|
-
return data;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
return data;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function _templateObject2() {
|
|
57
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: ", ";\n"]);
|
|
58
|
-
|
|
59
|
-
_templateObject2 = function _templateObject2() {
|
|
60
|
-
return data;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
return data;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function _templateObject() {
|
|
67
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n 0% {\n box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.0);\n }\n 50% { \n box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0.1);\n }\n 100% {\n box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0);\n }\n"]);
|
|
68
|
-
|
|
69
|
-
_templateObject = function _templateObject() {
|
|
70
|
-
return data;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
return data;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
var ripple = (0, _styledComponents.keyframes)(_templateObject());
|
|
77
|
-
|
|
78
|
-
var Wrapper = _styledComponents["default"].label(_templateObject2(), function (props) {
|
|
28
|
+
var Wrapper = _styledComponents["default"].label(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: ", ";\n"])), function (props) {
|
|
79
29
|
return props.disabled ? "default" : "pointer";
|
|
80
30
|
});
|
|
81
31
|
|
|
82
|
-
var Input = _styledComponents["default"].input(_templateObject3(), function (props) {
|
|
32
|
+
var Input = _styledComponents["default"].input(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: none;\n :checked + span:before {\n border-color: ", ";\n animation: ", " 0.2s linear forwards;\n }\n :checked + span:after {\n transform: scale(1);\n }\n /* Create the background for disabled status */\n :disabled + span:before {\n cursor: initial;\n border-color: #ccc;\n }\n :checked:disabled + span:after {\n cursor: initial;\n background-color: #ccc;\n border-color: #ccc;\n }\n"])), function (props) {
|
|
83
33
|
return props.checkedColor || "#000";
|
|
84
34
|
}, ripple);
|
|
85
35
|
|
|
86
|
-
var CheckIndicator = _styledComponents["default"].span(_templateObject4(), function (props) {
|
|
36
|
+
var CheckIndicator = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-block;\n height: 20px;\n padding: 0 (20px + 10px);\n margin-bottom: 0;\n cursor: pointer;\n vertical-align: bottom;\n :before,\n :after {\n box-sizing: border-box;\n position: absolute;\n content: \"\";\n border-radius: 50%;\n transition: all 0.3s ease;\n transition-property: transform, border-color;\n }\n /* The box */\n :before {\n width: 22px;\n height: 22px;\n border: 2px solid ", ";\n }\n /* The check indicator */\n :after {\n content: \"\";\n top: 6px;\n left: 6px;\n width: 10px;\n height: 10px;\n transform: scale(0);\n background: ", ";\n }\n"])), function (props) {
|
|
87
37
|
return props.borderColor || "rgba(0, 0, 0, 0.54)";
|
|
88
38
|
}, function (props) {
|
|
89
39
|
return props.checkedColor || "#000";
|
|
90
40
|
});
|
|
91
41
|
|
|
92
|
-
var Text = (0, _styledComponents["default"])(_Typography["default"])(_templateObject5());
|
|
42
|
+
var Text = (0, _styledComponents["default"])(_Typography["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 30px;\n margin-bottom: 1px;\n"])));
|
|
93
43
|
|
|
94
44
|
var Radio = function Radio(_ref) {
|
|
95
45
|
var color = _ref.color,
|
|
@@ -103,7 +53,7 @@ var Radio = function Radio(_ref) {
|
|
|
103
53
|
borderColor = _ref.borderColor,
|
|
104
54
|
name = _ref.name,
|
|
105
55
|
defaultChecked = _ref.defaultChecked,
|
|
106
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref,
|
|
56
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
107
57
|
return /*#__PURE__*/_react["default"].createElement(Wrapper, Object.assign({}, rest, {
|
|
108
58
|
disabled: disabled
|
|
109
59
|
}), /*#__PURE__*/_react["default"].createElement(Input, Object.assign({
|