@sellout/ui 0.0.399 → 0.0.401
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/build/Colors.js +38 -38
- package/build/Colors.js.map +1 -0
- package/build/{src/components → components}/AddressSearchDropdown.js +1 -1
- package/build/components/AddressSearchDropdown.js.map +1 -0
- package/build/components/Button.js +252 -267
- package/build/components/Button.js.map +1 -0
- package/build/components/CodeInput.js +90 -91
- package/build/components/CodeInput.js.map +1 -0
- package/build/components/Counter.js +17 -18
- package/build/components/Counter.js.map +1 -0
- package/build/components/Dropdown.js +41 -44
- package/build/components/Dropdown.js.map +1 -0
- package/build/components/Flex.js +6 -6
- package/build/components/Flex.js.map +1 -0
- package/build/components/FormattedInput.js +66 -70
- package/build/components/FormattedInput.js.map +1 -0
- package/build/{src/components → components}/FormattedfullInput.js +1 -1
- package/build/components/FormattedfullInput.js.map +1 -0
- package/build/components/Icon.js +28 -29
- package/build/components/Icon.js.map +1 -0
- package/build/components/Icons.js +189 -189
- package/build/components/Icons.js.map +1 -0
- package/build/components/Input.d.ts +13 -1
- package/build/components/Input.js +165 -176
- package/build/components/Input.js.map +1 -0
- package/build/components/Label.js +14 -14
- package/build/components/Label.js.map +1 -0
- package/build/components/Loader.js +29 -29
- package/build/components/Loader.js.map +1 -0
- package/build/components/MaxLength.js +12 -12
- package/build/components/MaxLength.js.map +1 -0
- package/build/components/Motion.js +33 -33
- package/build/components/Motion.js.map +1 -0
- package/build/components/PhoneNumberInput.js +37 -40
- package/build/components/PhoneNumberInput.js.map +1 -0
- package/build/components/Product.js +111 -110
- package/build/components/Product.js.map +1 -0
- package/build/{src/components → components}/SearchDropdown.js +1 -1
- package/build/components/SearchDropdown.js.map +1 -0
- package/build/{src/components → components}/SvgIcons.js +1 -1
- package/build/components/SvgIcons.js.map +1 -0
- package/build/{src/components → components}/SvgRendrer.js +1 -1
- package/build/components/SvgRendrer.js.map +1 -0
- package/build/components/TextButton.js +39 -40
- package/build/components/TextButton.js.map +1 -0
- package/build/components/Tip.js +10 -10
- package/build/components/Tip.js.map +1 -0
- package/build/components/UserImage.js +28 -29
- package/build/components/UserImage.js.map +1 -0
- package/build/components/UserInfo.d.ts +10 -4
- package/build/components/UserInfo.js +31 -31
- package/build/components/UserInfo.js.map +1 -0
- package/build/components/ValidationError.js +17 -17
- package/build/components/ValidationError.js.map +1 -0
- package/build/utils/ErrorUtil.js +15 -15
- package/build/utils/ErrorUtil.js.map +1 -0
- package/build/utils/MediaQuery.js +59 -59
- package/build/utils/MediaQuery.js.map +1 -0
- package/build/utils/Validation.js +44 -44
- package/build/utils/Validation.js.map +1 -0
- package/build/utils/makeEventHandler.js +8 -8
- package/build/utils/makeEventHandler.js.map +1 -0
- package/package.json +4 -6
- package/build/src/Colors.js +0 -42
- package/build/src/Colors.js.map +0 -1
- package/build/src/components/AddressSearchDropdown.js.map +0 -1
- package/build/src/components/Button.js +0 -264
- package/build/src/components/Button.js.map +0 -1
- package/build/src/components/CodeInput.js +0 -98
- package/build/src/components/CodeInput.js.map +0 -1
- package/build/src/components/Counter.js +0 -27
- package/build/src/components/Counter.js.map +0 -1
- package/build/src/components/Dropdown.js +0 -53
- package/build/src/components/Dropdown.js.map +0 -1
- package/build/src/components/Flex.js +0 -13
- package/build/src/components/Flex.js.map +0 -1
- package/build/src/components/FormattedInput.js +0 -81
- package/build/src/components/FormattedInput.js.map +0 -1
- package/build/src/components/FormattedfullInput.js.map +0 -1
- package/build/src/components/Icon.js +0 -38
- package/build/src/components/Icon.js.map +0 -1
- package/build/src/components/Icons.js +0 -200
- package/build/src/components/Icons.js.map +0 -1
- package/build/src/components/Input.js +0 -182
- package/build/src/components/Input.js.map +0 -1
- package/build/src/components/Label.js +0 -23
- package/build/src/components/Label.js.map +0 -1
- package/build/src/components/Loader.js +0 -37
- package/build/src/components/Loader.js.map +0 -1
- package/build/src/components/MaxLength.js +0 -20
- package/build/src/components/MaxLength.js.map +0 -1
- package/build/src/components/Motion.js +0 -40
- package/build/src/components/Motion.js.map +0 -1
- package/build/src/components/PhoneNumberInput.js +0 -50
- package/build/src/components/PhoneNumberInput.js.map +0 -1
- package/build/src/components/Product.js +0 -125
- package/build/src/components/Product.js.map +0 -1
- package/build/src/components/SearchDropdown.js.map +0 -1
- package/build/src/components/SvgIcons.js.map +0 -1
- package/build/src/components/SvgRendrer.js.map +0 -1
- package/build/src/components/TextButton.js +0 -48
- package/build/src/components/TextButton.js.map +0 -1
- package/build/src/components/Tip.js +0 -19
- package/build/src/components/Tip.js.map +0 -1
- package/build/src/components/UserImage.js +0 -37
- package/build/src/components/UserImage.js.map +0 -1
- package/build/src/components/UserInfo.js +0 -40
- package/build/src/components/UserInfo.js.map +0 -1
- package/build/src/components/ValidationError.js +0 -27
- package/build/src/components/ValidationError.js.map +0 -1
- package/build/src/index.js +0 -33
- package/build/src/utils/ErrorUtil.js +0 -19
- package/build/src/utils/ErrorUtil.js.map +0 -1
- package/build/src/utils/MediaQuery.js +0 -66
- package/build/src/utils/MediaQuery.js.map +0 -1
- package/build/src/utils/Validation.js +0 -50
- package/build/src/utils/Validation.js.map +0 -1
- package/build/src/utils/makeEventHandler.js +0 -12
- package/build/src/utils/makeEventHandler.js.map +0 -1
- /package/build/{src/index.js.map → index.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import * as Polished from 'polished';
|
|
@@ -7,272 +7,257 @@ import Icon from './Icon.js';
|
|
|
7
7
|
import Loader, { LoaderSizes } from './Loader.js';
|
|
8
8
|
import SvgRenderer from './SvgRendrer.js';
|
|
9
9
|
|
|
10
|
-
var ButtonTypes;
|
|
11
|
-
(function (ButtonTypes) {
|
|
12
|
-
ButtonTypes["Next"] = "Next";
|
|
13
|
-
ButtonTypes["Regular"] = "Regular";
|
|
14
|
-
ButtonTypes["Thin"] = "Thin";
|
|
15
|
-
ButtonTypes["Normal"] = "Normal";
|
|
16
|
-
ButtonTypes["CustomInputHeight"] = "CustomInputHeight";
|
|
17
|
-
})(ButtonTypes || (ButtonTypes = {}));
|
|
18
|
-
var ButtonStates;
|
|
19
|
-
(function (ButtonStates) {
|
|
20
|
-
ButtonStates["Active"] = "Active";
|
|
21
|
-
ButtonStates["Warning"] = "Warning";
|
|
22
|
-
ButtonStates["Disabled"] = "Disabled";
|
|
23
|
-
})(ButtonStates || (ButtonStates = {}));
|
|
24
|
-
var ButtonIconPosition;
|
|
25
|
-
(function (ButtonIconPosition) {
|
|
26
|
-
ButtonIconPosition["Left"] = "Left";
|
|
27
|
-
ButtonIconPosition["Right"] = "Right";
|
|
28
|
-
})(ButtonIconPosition || (ButtonIconPosition = {}));
|
|
29
|
-
var StyledButton = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n height: ", ";\n width: ", ";\n margin-bottom: ", ";\n display: flex;\n flex-direction: row;\n align-items: center;\n overflow: hidden;\n justify-content: ", ";\n white-space: nowrap;\n box-sizing: border-box;\n text-align: center;\n border-radius: 10px;\n transition: all 0.2s;\n margin: ", ";\n padding: ", ";\n background-color: ", ";\n border: ", ";\n\n &:hover {\n cursor: ", ";\n background-color: ", ";\n }\n\n &:active {\n cursor: ", ";\n background-color: ", ";\n }\n"], ["\n position: relative;\n height: ",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (props.type === ButtonTypes.
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
if (props.type === ButtonTypes.
|
|
73
|
-
return "
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (props.state === ButtonStates.
|
|
103
|
-
return
|
|
104
|
-
}
|
|
105
|
-
return props.
|
|
106
|
-
}, function (props) {
|
|
107
|
-
if (props.state === ButtonStates.
|
|
108
|
-
return
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (props.state === ButtonStates.
|
|
124
|
-
return Colors.
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (props.type === ButtonTypes.
|
|
148
|
-
return
|
|
149
|
-
}
|
|
150
|
-
if (props.type === ButtonTypes.
|
|
151
|
-
return
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return "
|
|
164
|
-
}
|
|
165
|
-
if (props.type === ButtonTypes.
|
|
166
|
-
return "
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
if (props.type === ButtonTypes.
|
|
181
|
-
return "
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
if (props.type === ButtonTypes.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (props.iconPosition === ButtonIconPosition.
|
|
203
|
-
return "0
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
if (loading) {
|
|
262
|
-
return (React.createElement(Fragment, null,
|
|
263
|
-
React.createElement(Loader, { size: LoaderSizes.VerySmall, color: iconColor })));
|
|
264
|
-
}
|
|
265
|
-
return (React.createElement(Fragment, null,
|
|
266
|
-
icon && iconPosition === ButtonIconPosition.Left && iconEl,
|
|
267
|
-
text && (React.createElement(Text, { type: type, state: state, icon: Boolean(icon), iconPosition: iconPosition, textColor: textColor, textTransform: textTransform, fontSize: fontSize, fontWeight: fontWeight, fontFamily: fontFamily, letterSpacing: letterSpacing, disabledbuttonTheme: disabledbuttonTheme, lineHeight: lineHeight, marginOnButtonText: marginOnButtonText, innerTextWhiteSpace: innerTextWhiteSpace }, text)),
|
|
268
|
-
icon &&
|
|
269
|
-
iconPosition === ButtonIconPosition.Right &&
|
|
270
|
-
iconEl,
|
|
271
|
-
svgIconName &&
|
|
272
|
-
React.createElement(SvgRenderer, { iconName: svgIconName, width: svgWidth, height: svgHeight, style: { margin: '2px 0px' } })));
|
|
273
|
-
})()));
|
|
274
|
-
})())));
|
|
275
|
-
}
|
|
10
|
+
var ButtonTypes;
|
|
11
|
+
(function (ButtonTypes) {
|
|
12
|
+
ButtonTypes["Next"] = "Next";
|
|
13
|
+
ButtonTypes["Regular"] = "Regular";
|
|
14
|
+
ButtonTypes["Thin"] = "Thin";
|
|
15
|
+
ButtonTypes["Normal"] = "Normal";
|
|
16
|
+
ButtonTypes["CustomInputHeight"] = "CustomInputHeight";
|
|
17
|
+
})(ButtonTypes || (ButtonTypes = {}));
|
|
18
|
+
var ButtonStates;
|
|
19
|
+
(function (ButtonStates) {
|
|
20
|
+
ButtonStates["Active"] = "Active";
|
|
21
|
+
ButtonStates["Warning"] = "Warning";
|
|
22
|
+
ButtonStates["Disabled"] = "Disabled";
|
|
23
|
+
})(ButtonStates || (ButtonStates = {}));
|
|
24
|
+
var ButtonIconPosition;
|
|
25
|
+
(function (ButtonIconPosition) {
|
|
26
|
+
ButtonIconPosition["Left"] = "Left";
|
|
27
|
+
ButtonIconPosition["Right"] = "Right";
|
|
28
|
+
})(ButtonIconPosition || (ButtonIconPosition = {}));
|
|
29
|
+
var StyledButton = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n height: ", ";\n width: ", ";\n margin-bottom: ", ";\n display: flex;\n flex-direction: row;\n align-items: center;\n overflow: hidden;\n justify-content: ", ";\n white-space: nowrap;\n box-sizing: border-box;\n text-align: center;\n border-radius: 10px;\n transition: all 0.2s;\n margin: ", ";\n padding: ", ";\n background-color: ", ";\n border: ", ";\n\n &:hover {\n cursor: ", ";\n background-color: ", ";\n }\n\n &:active {\n cursor: ", ";\n background-color: ", ";\n }\n"], ["\n position: relative;\n height: ", ";\n width: ", ";\n margin-bottom: ", ";\n display: flex;\n flex-direction: row;\n align-items: center;\n overflow: hidden;\n justify-content: ", ";\n white-space: nowrap;\n box-sizing: border-box;\n text-align: center;\n border-radius: 10px;\n transition: all 0.2s;\n margin: ", ";\n padding: ", ";\n background-color: ", ";\n border: ", ";\n\n &:hover {\n cursor: ", ";\n background-color: ", ";\n }\n\n &:active {\n cursor: ", ";\n background-color: ", ";\n }\n"])), function (props) {
|
|
30
|
+
if (props.CustomInputHeight) {
|
|
31
|
+
return "55px";
|
|
32
|
+
}
|
|
33
|
+
if (props.type === ButtonTypes.Next) {
|
|
34
|
+
return "48px";
|
|
35
|
+
}
|
|
36
|
+
if (props.type === ButtonTypes.CustomInputHeight) {
|
|
37
|
+
return "55px";
|
|
38
|
+
}
|
|
39
|
+
if (props.type === ButtonTypes.Regular) {
|
|
40
|
+
return "40px";
|
|
41
|
+
}
|
|
42
|
+
if (props.type === ButtonTypes.Normal) {
|
|
43
|
+
return "50px";
|
|
44
|
+
}
|
|
45
|
+
if (props.type === ButtonTypes.Thin) {
|
|
46
|
+
if (props.state === ButtonStates.Warning) {
|
|
47
|
+
return "30px";
|
|
48
|
+
}
|
|
49
|
+
return "30px";
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}, function (props) {
|
|
53
|
+
if (props.type === ButtonTypes.Next) {
|
|
54
|
+
return "100%";
|
|
55
|
+
}
|
|
56
|
+
if (props.type === ButtonTypes.Regular) {
|
|
57
|
+
return "fit-content";
|
|
58
|
+
}
|
|
59
|
+
if (props.type === ButtonTypes.Thin) {
|
|
60
|
+
return "fit-content";
|
|
61
|
+
}
|
|
62
|
+
if (props.type === ButtonTypes.Normal) {
|
|
63
|
+
return "50px";
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.marginBottam ? "".concat(props.marginBottam, " !important") : "0px !important";
|
|
68
|
+
}, function (props) { return props.contentAlign || "center"; }, function (props) { return (Boolean(props.margin) ? props.margin : "0px"); }, function (props) {
|
|
69
|
+
if (props.type === ButtonTypes.Next && props.paddingAround) {
|
|
70
|
+
return props.paddingAround;
|
|
71
|
+
}
|
|
72
|
+
if (props.type === ButtonTypes.Next) {
|
|
73
|
+
return "0px";
|
|
74
|
+
}
|
|
75
|
+
if (props.type === ButtonTypes.Regular) {
|
|
76
|
+
return "0 25px";
|
|
77
|
+
}
|
|
78
|
+
if (props.type === ButtonTypes.Thin) {
|
|
79
|
+
return "0 15px";
|
|
80
|
+
}
|
|
81
|
+
if (props.type === ButtonTypes.Normal) {
|
|
82
|
+
return "0 25px";
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
}, function (props) {
|
|
86
|
+
if (props.state === ButtonStates.Disabled && props.disabledbuttonTheme) {
|
|
87
|
+
return Colors.InteractiveBGSecondary;
|
|
88
|
+
}
|
|
89
|
+
if (props.state === ButtonStates.Disabled) {
|
|
90
|
+
return Colors.Grey6;
|
|
91
|
+
}
|
|
92
|
+
if (props.state === ButtonStates.Warning) {
|
|
93
|
+
return Colors.White;
|
|
94
|
+
}
|
|
95
|
+
return props.bgColor || Colors.Orange;
|
|
96
|
+
}, function (props) {
|
|
97
|
+
if (props.state === ButtonStates.Warning) {
|
|
98
|
+
return "1px solid ".concat(Colors.Grey5);
|
|
99
|
+
}
|
|
100
|
+
return null;
|
|
101
|
+
}, function (props) {
|
|
102
|
+
if (props.state === ButtonStates.Disabled) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return props.onClick ? "pointer" : null;
|
|
106
|
+
}, function (props) {
|
|
107
|
+
if (props.state === ButtonStates.Disabled && props.disabledbuttonTheme) {
|
|
108
|
+
return Colors.Grey1;
|
|
109
|
+
}
|
|
110
|
+
if (props.state === ButtonStates.Disabled) {
|
|
111
|
+
return Colors.Grey6;
|
|
112
|
+
}
|
|
113
|
+
if (props.state === ButtonStates.Warning) {
|
|
114
|
+
return Colors.White;
|
|
115
|
+
}
|
|
116
|
+
return Polished.lighten(0.025, props.bgColor || Colors.Orange);
|
|
117
|
+
}, function (props) {
|
|
118
|
+
if (props.state === ButtonStates.Disabled) {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
return props.onClick ? "pointer" : null;
|
|
122
|
+
}, function (props) {
|
|
123
|
+
if (props.state === ButtonStates.Disabled) {
|
|
124
|
+
return Colors.Grey6;
|
|
125
|
+
}
|
|
126
|
+
if (props.state === ButtonStates.Warning) {
|
|
127
|
+
return Colors.White;
|
|
128
|
+
}
|
|
129
|
+
return Polished.darken(0.025, props.bgColor || Colors.Orange);
|
|
130
|
+
});
|
|
131
|
+
var Text = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n line-height:", ";\n font-family: ", ";\n letter-spacing: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-transform: ", ";\n margin: ", ";\n color: ", ";\n top: ", ";\n white-space: ", ";\n"], ["\n position: relative;\n line-height:", ";\n font-family: ", ";\n letter-spacing: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-transform: ", ";\n margin: ", ";\n color: ", ";\n top: ", ";\n white-space: ", ";\n"])), function (props) { return props.lineHeight; }, function (props) { return props.fontFamily; }, function (props) { return props.letterSpacing; }, function (props) {
|
|
132
|
+
if (props.type === ButtonTypes.Next && props.fontSize) {
|
|
133
|
+
return props.fontSize;
|
|
134
|
+
}
|
|
135
|
+
if (props.type === ButtonTypes.Regular && props.fontSize) {
|
|
136
|
+
return props.fontSize;
|
|
137
|
+
}
|
|
138
|
+
if (props.type === ButtonTypes.Next) {
|
|
139
|
+
return "1.4rem";
|
|
140
|
+
}
|
|
141
|
+
if (props.type === ButtonTypes.Regular) {
|
|
142
|
+
return "1.4rem";
|
|
143
|
+
}
|
|
144
|
+
if (props.type === ButtonTypes.Regular) {
|
|
145
|
+
return "1.2rem";
|
|
146
|
+
}
|
|
147
|
+
if (props.type === ButtonTypes.Thin) {
|
|
148
|
+
return "1.2rem";
|
|
149
|
+
}
|
|
150
|
+
if (props.type === ButtonTypes.Normal) {
|
|
151
|
+
return "2.5rem";
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}, function (props) {
|
|
155
|
+
if (props.type === ButtonTypes.Next && props.fontWeight) {
|
|
156
|
+
return props.fontWeight;
|
|
157
|
+
}
|
|
158
|
+
if (props.type === ButtonTypes.Regular && props.fontWeight) {
|
|
159
|
+
return props.fontWeight;
|
|
160
|
+
}
|
|
161
|
+
if (props.type === ButtonTypes.Next) {
|
|
162
|
+
return "600";
|
|
163
|
+
// return "700";
|
|
164
|
+
}
|
|
165
|
+
if (props.type === ButtonTypes.Regular) {
|
|
166
|
+
return "600";
|
|
167
|
+
// return "700";
|
|
168
|
+
}
|
|
169
|
+
if (props.type === ButtonTypes.Thin) {
|
|
170
|
+
return "600";
|
|
171
|
+
}
|
|
172
|
+
if (props.type === ButtonTypes.Normal) {
|
|
173
|
+
return "500";
|
|
174
|
+
}
|
|
175
|
+
return null;
|
|
176
|
+
}, function (props) { return props.textTransform || "uppercase"; }, function (props) {
|
|
177
|
+
if (props.type === ButtonTypes.Next && props.marginOnButtonText) {
|
|
178
|
+
return "0 10px 0 0";
|
|
179
|
+
}
|
|
180
|
+
if (props.type === ButtonTypes.Next) {
|
|
181
|
+
return "0 10px";
|
|
182
|
+
}
|
|
183
|
+
if (props.type === ButtonTypes.Regular) {
|
|
184
|
+
if (props.iconPosition === ButtonIconPosition.Left) {
|
|
185
|
+
return "0 0 0 10px";
|
|
186
|
+
}
|
|
187
|
+
if (props.iconPosition === ButtonIconPosition.Right) {
|
|
188
|
+
return "0 10px 0 0";
|
|
189
|
+
}
|
|
190
|
+
return "0";
|
|
191
|
+
}
|
|
192
|
+
if (props.type === ButtonTypes.Normal) {
|
|
193
|
+
if (props.iconPosition === ButtonIconPosition.Left) {
|
|
194
|
+
return "0 0 0 10px";
|
|
195
|
+
}
|
|
196
|
+
if (props.iconPosition === ButtonIconPosition.Right) {
|
|
197
|
+
return "0 10px 0 0";
|
|
198
|
+
}
|
|
199
|
+
return "0";
|
|
200
|
+
}
|
|
201
|
+
if (props.type === ButtonTypes.Thin) {
|
|
202
|
+
if (props.iconPosition === ButtonIconPosition.Left) {
|
|
203
|
+
return "0 0 0 7px";
|
|
204
|
+
}
|
|
205
|
+
if (props.iconPosition === ButtonIconPosition.Right) {
|
|
206
|
+
return "0 7px 0 0";
|
|
207
|
+
}
|
|
208
|
+
return "0";
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
}, function (props) {
|
|
212
|
+
if (props.state === ButtonStates.Disabled && props.disabledbuttonTheme) {
|
|
213
|
+
return Colors.Grey3;
|
|
214
|
+
}
|
|
215
|
+
if (props.state)
|
|
216
|
+
if (props.state === ButtonStates.Disabled) {
|
|
217
|
+
return Colors.Grey5;
|
|
218
|
+
}
|
|
219
|
+
if (props.state === ButtonStates.Warning) {
|
|
220
|
+
return Colors.Grey3;
|
|
221
|
+
}
|
|
222
|
+
return props.textColor || Colors.White;
|
|
223
|
+
}, function (props) {
|
|
224
|
+
if (props.type === ButtonTypes.Thin) {
|
|
225
|
+
if (props.icon) {
|
|
226
|
+
return "-1px";
|
|
227
|
+
}
|
|
228
|
+
return "0";
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
}, function (props) { return props.innerTextWhiteSpace; });
|
|
232
|
+
function Button(_a) {
|
|
233
|
+
var _b = _a.type, type = _b === void 0 ? ButtonTypes.Next : _b, _c = _a.state, state = _c === void 0 ? ButtonStates.Active : _c, bgColor = _a.bgColor, textColor = _a.textColor, text = _a.text, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, icon = _a.icon, iconPosition = _a.iconPosition, _e = _a.iconSize, iconSize = _e === void 0 ? 14 : _e,
|
|
234
|
+
// label,
|
|
235
|
+
// tip,
|
|
236
|
+
// subLabel,
|
|
237
|
+
margin = _a.margin, marginBottam = _a.marginBottam, _f = _a.loading, loading = _f === void 0 ? false : _f, paddingAround = _a.paddingAround, contentAlign = _a.contentAlign, textTransform = _a.textTransform, fontSize = _a.fontSize, fontWeight = _a.fontWeight, fontFamily = _a.fontFamily, letterSpacing = _a.letterSpacing, disabledbuttonTheme = _a.disabledbuttonTheme, CustomInputHeight = _a.CustomInputHeight, lineHeight = _a.lineHeight, svgIconName = _a.svgIconName, svgHeight = _a.svgHeight, svgWidth = _a.svgWidth, marginOnButtonText = _a.marginOnButtonText, innerTextWhiteSpace = _a.innerTextWhiteSpace;
|
|
238
|
+
var iconColor = state === ButtonStates.Disabled ? Colors.Grey3 : Colors.White;
|
|
239
|
+
if (icon && !iconPosition)
|
|
240
|
+
iconPosition = ButtonIconPosition.Left;
|
|
241
|
+
var iconEl = (React.createElement(Icon, { icon: icon, color: iconColor, size: iconSize, top: iconSize < 14 ? "-1px" : undefined }));
|
|
242
|
+
var click = loading || state === ButtonStates.Disabled ? null : function () { return onClick(); };
|
|
243
|
+
return (React.createElement(React.Fragment, null,
|
|
244
|
+
React.createElement(StyledButton, { type: type, state: state, onClick: click, margin: margin, bgColor: bgColor, marginBottam: marginBottam, paddingAround: paddingAround, contentAlign: contentAlign, disabledbuttonTheme: disabledbuttonTheme, CustomInputHeight: CustomInputHeight }, (function () {
|
|
245
|
+
return (React.createElement(Fragment, null, (function () {
|
|
246
|
+
if (loading) {
|
|
247
|
+
return (React.createElement(Fragment, null,
|
|
248
|
+
React.createElement(Loader, { size: LoaderSizes.VerySmall, color: iconColor })));
|
|
249
|
+
}
|
|
250
|
+
return (React.createElement(Fragment, null,
|
|
251
|
+
icon && iconPosition === ButtonIconPosition.Left && iconEl,
|
|
252
|
+
text && (React.createElement(Text, { type: type, state: state, icon: Boolean(icon), iconPosition: iconPosition, textColor: textColor, textTransform: textTransform, fontSize: fontSize, fontWeight: fontWeight, fontFamily: fontFamily, letterSpacing: letterSpacing, disabledbuttonTheme: disabledbuttonTheme, lineHeight: lineHeight, marginOnButtonText: marginOnButtonText, innerTextWhiteSpace: innerTextWhiteSpace }, text)),
|
|
253
|
+
icon &&
|
|
254
|
+
iconPosition === ButtonIconPosition.Right &&
|
|
255
|
+
iconEl,
|
|
256
|
+
svgIconName &&
|
|
257
|
+
React.createElement(SvgRenderer, { iconName: svgIconName, width: svgWidth, height: svgHeight, style: { margin: '2px 0px' } })));
|
|
258
|
+
})()));
|
|
259
|
+
})())));
|
|
260
|
+
}
|
|
276
261
|
var templateObject_1, templateObject_2;
|
|
277
262
|
|
|
278
263
|
export { ButtonIconPosition, ButtonStates, ButtonTypes, Button as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/components/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;IAQY,YAMX;AAND,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa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