@xaypay/tui 0.0.9 → 0.0.12
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/dist/index.es.js +142 -248
- package/dist/index.js +107 -236
- package/package.json +1 -1
- package/src/components/stepper/index.js +45 -0
- package/src/components/stepper/stepper.module.css +48 -0
- package/src/components/stepper/stepper.stories.js +17 -0
- package/src/index.js +2 -1
package/dist/index.js
CHANGED
|
@@ -9,26 +9,7 @@ var styled = require('styled-components');
|
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule) return e;
|
|
14
|
-
var n = Object.create(null);
|
|
15
|
-
if (e) {
|
|
16
|
-
Object.keys(e).forEach(function (k) {
|
|
17
|
-
if (k !== 'default') {
|
|
18
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return e[k]; }
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n["default"] = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
31
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React$1);
|
|
32
13
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
33
14
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
34
15
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
@@ -77,9 +58,9 @@ function styleInject(css, ref) {
|
|
|
77
58
|
}
|
|
78
59
|
}
|
|
79
60
|
|
|
80
|
-
var css_248z$
|
|
81
|
-
var styles$
|
|
82
|
-
styleInject(css_248z$
|
|
61
|
+
var css_248z$9 = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:capitalize;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
|
|
62
|
+
var styles$7 = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
|
|
63
|
+
styleInject(css_248z$9);
|
|
83
64
|
|
|
84
65
|
/**
|
|
85
66
|
* Primary UI component for user interaction
|
|
@@ -115,9 +96,9 @@ const Button = ({
|
|
|
115
96
|
outline,
|
|
116
97
|
...props
|
|
117
98
|
}) => {
|
|
118
|
-
console.log(styles$
|
|
99
|
+
console.log(styles$7);
|
|
119
100
|
console.log(backgroundColor);
|
|
120
|
-
const classProps = classnames__default["default"](styles$
|
|
101
|
+
const classProps = classnames__default["default"](styles$7.btn, styles$7[theme], styles$7[size], outline ? styles$7['type-outline'] : styles$7['type-filled'], className); // className='btn type-outline size-default'
|
|
121
102
|
|
|
122
103
|
console.log(classProps);
|
|
123
104
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
@@ -169,8 +150,8 @@ Button.defaultProps = {
|
|
|
169
150
|
outline: false
|
|
170
151
|
};
|
|
171
152
|
|
|
172
|
-
var css_248z$
|
|
173
|
-
styleInject(css_248z$
|
|
153
|
+
var css_248z$8 = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:16px;line-height:20px;line-height:22px;text-transform:uppercase}h5,p{font-weight:600;text-transform:capitalize}p{font-size:14px;line-height:20px}span{font-size:12px;font-weight:500;line-height:16px;text-transform:capitalize}i{font-family:icomoon;font-style:inherit}";
|
|
154
|
+
styleInject(css_248z$8);
|
|
174
155
|
|
|
175
156
|
const TypographyType = {
|
|
176
157
|
h1: 'h1',
|
|
@@ -219,9 +200,9 @@ Typography.defaultProps = {
|
|
|
219
200
|
variant: 'h1'
|
|
220
201
|
};
|
|
221
202
|
|
|
222
|
-
var css_248z$
|
|
223
|
-
var styles$
|
|
224
|
-
styleInject(css_248z$
|
|
203
|
+
var css_248z$7 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}";
|
|
204
|
+
var styles$6 = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I"};
|
|
205
|
+
styleInject(css_248z$7);
|
|
225
206
|
|
|
226
207
|
const Autocomplate = ({
|
|
227
208
|
className,
|
|
@@ -234,7 +215,7 @@ const Autocomplate = ({
|
|
|
234
215
|
searchCount,
|
|
235
216
|
...props
|
|
236
217
|
}) => {
|
|
237
|
-
classnames__default["default"](styles$
|
|
218
|
+
classnames__default["default"](styles$6.searchBox, className);
|
|
238
219
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
239
220
|
const [activeOption, setActiveOption] = React$1.useState(0);
|
|
240
221
|
const [filteredOptions, setFilteredOptions] = React$1.useState([]);
|
|
@@ -262,9 +243,9 @@ const Autocomplate = ({
|
|
|
262
243
|
if (showOptions && inputValue) {
|
|
263
244
|
if (filteredOptions.length && inputValue.length >= searchCount) {
|
|
264
245
|
optionList = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
265
|
-
className: styles$
|
|
246
|
+
className: styles$6['autocomplate-content-bottom']
|
|
266
247
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
267
|
-
className: styles$
|
|
248
|
+
className: styles$6['autocomplate-content-bottom-inner']
|
|
268
249
|
}, filteredOptions.map((optionName, index) => {
|
|
269
250
|
let className;
|
|
270
251
|
|
|
@@ -273,33 +254,33 @@ const Autocomplate = ({
|
|
|
273
254
|
}
|
|
274
255
|
|
|
275
256
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
276
|
-
className: styles$
|
|
257
|
+
className: styles$6[className],
|
|
277
258
|
key: optionName,
|
|
278
259
|
onClick: handleClick
|
|
279
260
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
280
|
-
className: styles$
|
|
261
|
+
className: styles$6['autocomplate-content-bottom-row']
|
|
281
262
|
}, optionName));
|
|
282
263
|
})));
|
|
283
264
|
} else {
|
|
284
265
|
optionList = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
285
|
-
className: styles$
|
|
266
|
+
className: styles$6['autocomplate-content-bottom']
|
|
286
267
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
287
|
-
className: styles$
|
|
268
|
+
className: styles$6['autocomplate-content-bottom-inner']
|
|
288
269
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
289
|
-
className: styles$
|
|
270
|
+
className: styles$6['autocomplate-content-bottom-row']
|
|
290
271
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
291
|
-
className: styles$
|
|
272
|
+
className: styles$6['no-option']
|
|
292
273
|
}, "No Option!"))));
|
|
293
274
|
}
|
|
294
275
|
}
|
|
295
276
|
|
|
296
277
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
297
|
-
className: styles$
|
|
278
|
+
className: styles$6.labelInput
|
|
298
279
|
}, label) : "", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
299
|
-
className: styles$
|
|
280
|
+
className: styles$6['autocomplate-content']
|
|
300
281
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
301
282
|
type: "text",
|
|
302
|
-
className: styles$
|
|
283
|
+
className: styles$6['autocomplate-content-top'],
|
|
303
284
|
required: required,
|
|
304
285
|
disabled: disabled,
|
|
305
286
|
onChange: handleChange,
|
|
@@ -322,9 +303,9 @@ Autocomplate.defaultProps = {
|
|
|
322
303
|
searchCount: 2
|
|
323
304
|
};
|
|
324
305
|
|
|
325
|
-
var css_248z$
|
|
326
|
-
var styles$
|
|
327
|
-
styleInject(css_248z$
|
|
306
|
+
var css_248z$6 = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
|
|
307
|
+
var styles$5 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
308
|
+
styleInject(css_248z$6);
|
|
328
309
|
|
|
329
310
|
const Checkbox = ({
|
|
330
311
|
disabled,
|
|
@@ -338,7 +319,7 @@ const Checkbox = ({
|
|
|
338
319
|
keyNames,
|
|
339
320
|
...props
|
|
340
321
|
}) => {
|
|
341
|
-
const classProps = classnames__default["default"](styles$
|
|
322
|
+
const classProps = classnames__default["default"](styles$5.checkbox, className);
|
|
342
323
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
343
324
|
const [data, setData] = React$1.useState(parseData);
|
|
344
325
|
|
|
@@ -362,7 +343,7 @@ const Checkbox = ({
|
|
|
362
343
|
|
|
363
344
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
|
|
364
345
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
365
|
-
className: styles$
|
|
346
|
+
className: styles$5["checkbox-wrap"],
|
|
366
347
|
key: element.value
|
|
367
348
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
368
349
|
type: "checkbox",
|
|
@@ -373,9 +354,9 @@ const Checkbox = ({
|
|
|
373
354
|
name: name ? name : element.name,
|
|
374
355
|
onChange: handleChange
|
|
375
356
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
376
|
-
className: styles$
|
|
357
|
+
className: styles$5["checkmark"]
|
|
377
358
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
378
|
-
className: styles$
|
|
359
|
+
className: styles$5.labelRadio
|
|
379
360
|
}, label ? label : element.label) : "");
|
|
380
361
|
}));
|
|
381
362
|
};
|
|
@@ -396,146 +377,19 @@ Checkbox.defaultProps = {
|
|
|
396
377
|
jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
|
|
397
378
|
};
|
|
398
379
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
enableBackground: "new 0 0 511.626 511.627"
|
|
410
|
-
},
|
|
411
|
-
xmlSpace: "preserve",
|
|
412
|
-
role: "img",
|
|
413
|
-
"aria-labelledby": titleId
|
|
414
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
415
|
-
id: titleId
|
|
416
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
417
|
-
d: "M475.366 71.951c-24.175-23.606-57.575-35.404-100.215-35.404-11.8 0-23.843 2.046-36.117 6.136-12.279 4.093-23.702 9.615-34.256 16.562-10.568 6.945-19.65 13.467-27.269 19.556a263.828 263.828 0 0 0-21.696 19.414 264.184 264.184 0 0 0-21.698-19.414c-7.616-6.089-16.702-12.607-27.268-19.556-10.564-6.95-21.985-12.468-34.261-16.562-12.275-4.089-24.316-6.136-36.116-6.136-42.637 0-76.039 11.801-100.211 35.404C12.087 95.552 0 128.288 0 170.162c0 12.753 2.24 25.889 6.711 39.398 4.471 13.514 9.566 25.031 15.275 34.546 5.708 9.514 12.181 18.796 19.414 27.837 7.233 9.042 12.519 15.27 15.846 18.699 3.33 3.422 5.948 5.899 7.851 7.419L243.25 469.937c3.427 3.429 7.614 5.144 12.562 5.144s9.138-1.715 12.563-5.137l177.87-171.307c43.588-43.583 65.38-86.41 65.38-128.475.001-41.874-12.088-74.61-36.259-98.211z",
|
|
418
|
-
fill: "currentColor"
|
|
419
|
-
}));
|
|
420
|
-
|
|
421
|
-
const SvgHeartOutline = ({
|
|
422
|
-
title,
|
|
423
|
-
titleId,
|
|
424
|
-
...props
|
|
425
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
426
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
427
|
-
viewBox: "0 0 471.701 471.701",
|
|
428
|
-
style: {
|
|
429
|
-
enableBackground: "new 0 0 471.701 471.701"
|
|
430
|
-
},
|
|
431
|
-
xmlSpace: "preserve",
|
|
432
|
-
width: "1em",
|
|
433
|
-
height: "1em",
|
|
434
|
-
role: "img",
|
|
435
|
-
"aria-labelledby": titleId
|
|
436
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
437
|
-
id: titleId
|
|
438
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
439
|
-
d: "M433.601 67.001c-24.7-24.7-57.4-38.2-92.3-38.2s-67.7 13.6-92.4 38.3l-12.9 12.9-13.1-13.1c-24.7-24.7-57.6-38.4-92.5-38.4-34.8 0-67.6 13.6-92.2 38.2-24.7 24.7-38.3 57.5-38.2 92.4 0 34.9 13.7 67.6 38.4 92.3l187.8 187.8c2.6 2.6 6.1 4 9.5 4 3.4 0 6.9-1.3 9.5-3.9l188.2-187.5c24.7-24.7 38.3-57.5 38.3-92.4.1-34.9-13.4-67.7-38.1-92.4zm-19.2 165.7-178.7 178-178.3-178.3c-19.6-19.6-30.4-45.6-30.4-73.3s10.7-53.7 30.3-73.2c19.5-19.5 45.5-30.3 73.1-30.3 27.7 0 53.8 10.8 73.4 30.4l22.6 22.6c5.3 5.3 13.8 5.3 19.1 0l22.4-22.4c19.6-19.6 45.7-30.4 73.3-30.4 27.6 0 53.6 10.8 73.2 30.3 19.6 19.6 30.3 45.6 30.3 73.3.1 27.7-10.7 53.7-30.3 73.3z",
|
|
440
|
-
fill: "currentColor"
|
|
441
|
-
}));
|
|
442
|
-
|
|
443
|
-
const SvgLikeFilled = ({
|
|
444
|
-
title,
|
|
445
|
-
titleId,
|
|
446
|
-
...props
|
|
447
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
448
|
-
width: "1em",
|
|
449
|
-
height: "1em",
|
|
450
|
-
viewBox: "0 0 23 20",
|
|
451
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
452
|
-
role: "img",
|
|
453
|
-
"aria-labelledby": titleId
|
|
454
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
455
|
-
id: titleId
|
|
456
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("g", {
|
|
457
|
-
fill: "none",
|
|
458
|
-
fillRule: "evenodd"
|
|
459
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
460
|
-
opacity: 0.87,
|
|
461
|
-
d: "M-1-1h24v24H-1z"
|
|
462
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
463
|
-
d: "M12.12 1.06 6.58 6.6c-.37.37-.58.88-.58 1.41V18c0 1.1.9 2 2 2h9c.8 0 1.52-.48 1.84-1.21l3.26-7.61C22.94 9.2 21.49 7 19.34 7h-5.65l.95-4.58c.1-.5-.05-1.01-.41-1.37-.59-.58-1.53-.58-2.11.01ZM2 20c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2s-2 .9-2 2v8c0 1.1.9 2 2 2Z",
|
|
464
|
-
fill: "currentColor"
|
|
465
|
-
})));
|
|
466
|
-
|
|
467
|
-
const SvgLikeOutline = ({
|
|
468
|
-
title,
|
|
469
|
-
titleId,
|
|
470
|
-
...props
|
|
471
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
472
|
-
width: "1em",
|
|
473
|
-
height: "1em",
|
|
474
|
-
viewBox: "0 0 22 20",
|
|
475
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
476
|
-
role: "img",
|
|
477
|
-
"aria-labelledby": titleId
|
|
478
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
479
|
-
id: titleId
|
|
480
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("g", {
|
|
481
|
-
fill: "none",
|
|
482
|
-
fillRule: "evenodd"
|
|
483
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
484
|
-
opacity: 0.87,
|
|
485
|
-
d: "M-1-1h24v24H-1z"
|
|
486
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
487
|
-
d: "M20 7h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L13.17 0 6.59 6.59C6.22 6.95 6 7.45 6 8v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73V9c0-1.1-.9-2-2-2Zm0 4-3 7H8V8l4.34-4.34L11.23 9H20v2ZM0 8h4v12H0V8Z",
|
|
488
|
-
fill: "currentColor"
|
|
489
|
-
})));
|
|
490
|
-
|
|
491
|
-
const SvgStarFilled = ({
|
|
492
|
-
title,
|
|
493
|
-
titleId,
|
|
494
|
-
...props
|
|
495
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
496
|
-
width: "1em",
|
|
497
|
-
height: "1em",
|
|
498
|
-
viewBox: "0 0 18 17",
|
|
499
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
500
|
-
role: "img",
|
|
501
|
-
"aria-labelledby": titleId
|
|
502
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
503
|
-
id: titleId
|
|
504
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("g", {
|
|
505
|
-
fill: "none",
|
|
506
|
-
fillRule: "evenodd"
|
|
507
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
508
|
-
d: "M-3-3h24v24H-3z"
|
|
509
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
510
|
-
d: "m9 14.27 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L6.19 5.63l-4.83.41C.48 6.11.12 7.21.79 7.79l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08L9 14.27Z",
|
|
511
|
-
fill: "currentColor"
|
|
512
|
-
})));
|
|
513
|
-
|
|
514
|
-
const SvgStarOutline = ({
|
|
515
|
-
title,
|
|
516
|
-
titleId,
|
|
517
|
-
...props
|
|
518
|
-
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
519
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
520
|
-
viewBox: "0 0 24 24",
|
|
521
|
-
fill: "none",
|
|
522
|
-
stroke: "currentColor",
|
|
523
|
-
strokeWidth: 2,
|
|
524
|
-
strokeLinecap: "round",
|
|
525
|
-
strokeLinejoin: "round",
|
|
526
|
-
className: "star-outline_svg__feather star-outline_svg__feather-star",
|
|
527
|
-
width: "1em",
|
|
528
|
-
height: "1em",
|
|
529
|
-
role: "img",
|
|
530
|
-
"aria-labelledby": titleId
|
|
531
|
-
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
532
|
-
id: titleId
|
|
533
|
-
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
534
|
-
d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
|
|
535
|
-
}));
|
|
380
|
+
var css_248z$5 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
|
|
381
|
+
styleInject(css_248z$5);
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Created by aleksanyan.tigran on 10/7/2022.
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
const Icon = props => /*#__PURE__*/React.createElement("i", {
|
|
388
|
+
className: css_248z$5[props.className]
|
|
389
|
+
});
|
|
536
390
|
|
|
537
391
|
var css_248z$4 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;text-transform:capitalize;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
|
|
538
|
-
var styles$
|
|
392
|
+
var styles$4 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF"};
|
|
539
393
|
styleInject(css_248z$4);
|
|
540
394
|
|
|
541
395
|
const InputTypes = {
|
|
@@ -578,11 +432,11 @@ const Input = ({
|
|
|
578
432
|
eMessage = regex.test(inputValue) ? "" : regexpError;
|
|
579
433
|
}
|
|
580
434
|
|
|
581
|
-
const classProps = classnames__default["default"](styles$
|
|
435
|
+
const classProps = classnames__default["default"](styles$4.input, styles$4[size], eMessage != '' ? styles$4['error-message'] : "", className);
|
|
582
436
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
583
|
-
className: styles$
|
|
437
|
+
className: styles$4['input-wrap']
|
|
584
438
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
585
|
-
className: styles$
|
|
439
|
+
className: styles$4.labelInput
|
|
586
440
|
}, label) : "", /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
|
|
587
441
|
type: type,
|
|
588
442
|
className: classProps,
|
|
@@ -593,7 +447,7 @@ const Input = ({
|
|
|
593
447
|
onChange: handleChange,
|
|
594
448
|
value: inputValue
|
|
595
449
|
})), eMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
596
|
-
className: styles$
|
|
450
|
+
className: styles$4.inputErrorMessages
|
|
597
451
|
}, eMessage) : "");
|
|
598
452
|
};
|
|
599
453
|
Input.propTypes = {
|
|
@@ -620,7 +474,7 @@ Input.defaultProps = {
|
|
|
620
474
|
};
|
|
621
475
|
|
|
622
476
|
var css_248z$3 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:16px;line-height:22px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
|
|
623
|
-
var styles$
|
|
477
|
+
var styles$3 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
|
|
624
478
|
styleInject(css_248z$3);
|
|
625
479
|
|
|
626
480
|
const Dots = "...";
|
|
@@ -674,17 +528,6 @@ const PaginationRange = ({
|
|
|
674
528
|
return paginationRange;
|
|
675
529
|
};
|
|
676
530
|
|
|
677
|
-
var css_248z$2 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
|
|
678
|
-
styleInject(css_248z$2);
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Created by aleksanyan.tigran on 10/7/2022.
|
|
682
|
-
*/
|
|
683
|
-
|
|
684
|
-
const Icon = props => /*#__PURE__*/React.createElement("i", {
|
|
685
|
-
className: css_248z$2[props.className]
|
|
686
|
-
});
|
|
687
|
-
|
|
688
531
|
const Pagination = ({
|
|
689
532
|
onChange,
|
|
690
533
|
totalCount,
|
|
@@ -722,7 +565,7 @@ const Pagination = ({
|
|
|
722
565
|
return null;
|
|
723
566
|
}
|
|
724
567
|
|
|
725
|
-
const classProps = classnames__default["default"](styles$
|
|
568
|
+
const classProps = classnames__default["default"](styles$3.list, className ? className : styles$3["pagination-bar"]);
|
|
726
569
|
|
|
727
570
|
const onNext = () => {
|
|
728
571
|
onPageChange(currentPageNumber + 1);
|
|
@@ -744,7 +587,7 @@ const Pagination = ({
|
|
|
744
587
|
return /*#__PURE__*/React$1.React.createElement("ul", {
|
|
745
588
|
className: classProps
|
|
746
589
|
}, /*#__PURE__*/React$1.React.createElement("button", {
|
|
747
|
-
className: styles$
|
|
590
|
+
className: styles$3["pagination-btn"],
|
|
748
591
|
onClick: onPrevious,
|
|
749
592
|
disabled: currentPage === 1 ? true : false
|
|
750
593
|
}, /*#__PURE__*/React$1.React.createElement(Icon, {
|
|
@@ -754,13 +597,13 @@ const Pagination = ({
|
|
|
754
597
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
755
598
|
return /*#__PURE__*/React$1.React.createElement("li", {
|
|
756
599
|
key: id,
|
|
757
|
-
className: classnames__default["default"](styles$
|
|
600
|
+
className: classnames__default["default"](styles$3['pagination-jump-next'], styles$3.listItem),
|
|
758
601
|
onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
|
|
759
602
|
disabled: currentPageIndex === 0 ? true : false
|
|
760
603
|
}, /*#__PURE__*/React$1.React.createElement("span", {
|
|
761
|
-
className: styles$
|
|
604
|
+
className: styles$3['pagination-jump-next-txt']
|
|
762
605
|
}, "..."), /*#__PURE__*/React$1.React.createElement("span", {
|
|
763
|
-
className: styles$
|
|
606
|
+
className: styles$3['pagination-jump-next-arrow']
|
|
764
607
|
}, /*#__PURE__*/React$1.React.createElement(Icon, {
|
|
765
608
|
className: "icon-arrow-jump-next"
|
|
766
609
|
})));
|
|
@@ -769,11 +612,11 @@ const Pagination = ({
|
|
|
769
612
|
return /*#__PURE__*/React$1.React.createElement("li", {
|
|
770
613
|
onClick: () => onPageChange(pageNumber),
|
|
771
614
|
key: id,
|
|
772
|
-
className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$
|
|
615
|
+
className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$3.selected : styles$3.listItem}`, styles$3['pagination-item'])
|
|
773
616
|
}, pageNumber);
|
|
774
617
|
}), /*#__PURE__*/React$1.React.createElement("button", {
|
|
775
618
|
onClick: onNext,
|
|
776
|
-
className: styles$
|
|
619
|
+
className: styles$3["pagination-btn"],
|
|
777
620
|
disabled: currentPageNumber === lastPage ? true : false
|
|
778
621
|
}, /*#__PURE__*/React$1.React.createElement(Icon, {
|
|
779
622
|
className: "icon-arrow"
|
|
@@ -791,9 +634,9 @@ Pagination.defaultProps = {
|
|
|
791
634
|
siblingCount: 2
|
|
792
635
|
};
|
|
793
636
|
|
|
794
|
-
var css_248z$
|
|
795
|
-
var styles$
|
|
796
|
-
styleInject(css_248z$
|
|
637
|
+
var css_248z$2 = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
|
|
638
|
+
var styles$2 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
639
|
+
styleInject(css_248z$2);
|
|
797
640
|
|
|
798
641
|
const Radio = ({
|
|
799
642
|
disabled,
|
|
@@ -807,11 +650,11 @@ const Radio = ({
|
|
|
807
650
|
keyNames,
|
|
808
651
|
...props
|
|
809
652
|
}) => {
|
|
810
|
-
const classProps = classnames__default["default"](styles$
|
|
653
|
+
const classProps = classnames__default["default"](styles$2.checkbox, className);
|
|
811
654
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
812
655
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
|
|
813
656
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
814
|
-
className: styles$
|
|
657
|
+
className: styles$2["radio-wrap"],
|
|
815
658
|
key: element.value
|
|
816
659
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
817
660
|
type: "radio",
|
|
@@ -822,9 +665,9 @@ const Radio = ({
|
|
|
822
665
|
value: value ? value : element.value,
|
|
823
666
|
name: name ? name : element.name
|
|
824
667
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
825
|
-
className: styles$
|
|
668
|
+
className: styles$2["radio-checkmark"]
|
|
826
669
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
827
|
-
className: styles$
|
|
670
|
+
className: styles$2.labelRadio
|
|
828
671
|
}, label ? label : element.label) : "");
|
|
829
672
|
}));
|
|
830
673
|
};
|
|
@@ -845,9 +688,9 @@ Radio.defaultProps = {
|
|
|
845
688
|
jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
|
|
846
689
|
};
|
|
847
690
|
|
|
848
|
-
var css_248z = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
|
|
849
|
-
var styles = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
|
|
850
|
-
styleInject(css_248z);
|
|
691
|
+
var css_248z$1 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
|
|
692
|
+
var styles$1 = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
|
|
693
|
+
styleInject(css_248z$1);
|
|
851
694
|
|
|
852
695
|
const Captcha = ({
|
|
853
696
|
onclick,
|
|
@@ -856,7 +699,7 @@ const Captcha = ({
|
|
|
856
699
|
const [data, setData] = React$1.useState("");
|
|
857
700
|
const [right, setRight] = React$1.useState(false);
|
|
858
701
|
let range = rangeCount <= 100 ? rangeCount : 0;
|
|
859
|
-
let rangeElement = document.getElementsByClassName(styles.range);
|
|
702
|
+
let rangeElement = document.getElementsByClassName(styles$1.range);
|
|
860
703
|
React$1.useEffect(() => {
|
|
861
704
|
for (let element of rangeElement) {
|
|
862
705
|
element.style.marginLeft = `${range - 3}%`;
|
|
@@ -866,9 +709,9 @@ const Captcha = ({
|
|
|
866
709
|
|
|
867
710
|
function sliderInput(event) {
|
|
868
711
|
setData(rangeCount == event.target.value ? 'green' : 'indianred');
|
|
869
|
-
let selector = document.getElementsByClassName(styles.selector);
|
|
870
|
-
let selectBtn = document.getElementsByClassName(styles.selectBtn);
|
|
871
|
-
let progressBar = document.getElementsByClassName(styles.progressBar);
|
|
712
|
+
let selector = document.getElementsByClassName(styles$1.selector);
|
|
713
|
+
let selectBtn = document.getElementsByClassName(styles$1.selectBtn);
|
|
714
|
+
let progressBar = document.getElementsByClassName(styles$1.progressBar);
|
|
872
715
|
selector[0].style.left = event.target.value + '%';
|
|
873
716
|
progressBar[0].style.width = event.target.value + '%';
|
|
874
717
|
|
|
@@ -884,23 +727,23 @@ const Captcha = ({
|
|
|
884
727
|
}
|
|
885
728
|
|
|
886
729
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
887
|
-
className: styles.main
|
|
730
|
+
className: styles$1.main
|
|
888
731
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
889
|
-
className: styles.range
|
|
732
|
+
className: styles$1.range
|
|
890
733
|
}, "\u25BC"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
891
734
|
type: "range",
|
|
892
|
-
className: styles.slider,
|
|
735
|
+
className: styles$1.slider,
|
|
893
736
|
onClick: right ? onclick : null,
|
|
894
737
|
onInput: sliderInput,
|
|
895
738
|
onMouseUp: sliderChange
|
|
896
739
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
897
|
-
className: styles.selector
|
|
740
|
+
className: styles$1.selector
|
|
898
741
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
899
|
-
className: styles.selectBtn
|
|
742
|
+
className: styles$1.selectBtn
|
|
900
743
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
901
|
-
className: styles.progressBar
|
|
744
|
+
className: styles$1.progressBar
|
|
902
745
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
903
|
-
className: styles.range
|
|
746
|
+
className: styles$1.range
|
|
904
747
|
}, "\u25B2")));
|
|
905
748
|
};
|
|
906
749
|
Captcha.propTypes = {
|
|
@@ -912,6 +755,39 @@ Captcha.defaultProps = {
|
|
|
912
755
|
onclick: undefined
|
|
913
756
|
};
|
|
914
757
|
|
|
758
|
+
var css_248z = ".stepper-module_bigRing__5GBm0{border:1px solid gray;border-radius:50%;cursor:pointer;height:30px;margin:10px;position:relative;width:30px}.stepper-module_smallRing__u-5a8{background-color:gray;border-radius:50%;color:#fff;font-size:12px;height:50%;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);width:50%}.stepper-module_activeRing__Lzvh1{border:1px solid blue;border-radius:50%;cursor:pointer;height:30px;margin:10px;position:relative;width:30px}.stepper-module_smallActiveRing__im-XG{background-color:blue;border-radius:50%;color:#fff;font-size:12px;height:50%;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);width:50%}";
|
|
759
|
+
var styles = {"bigRing":"stepper-module_bigRing__5GBm0","smallRing":"stepper-module_smallRing__u-5a8","activeRing":"stepper-module_activeRing__Lzvh1","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
|
|
760
|
+
styleInject(css_248z);
|
|
761
|
+
|
|
762
|
+
const Stepper = ({
|
|
763
|
+
className,
|
|
764
|
+
onChange,
|
|
765
|
+
stepLength,
|
|
766
|
+
activeSteps
|
|
767
|
+
}) => {
|
|
768
|
+
classnames__default["default"](className);
|
|
769
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (() => {
|
|
770
|
+
let steppers = [];
|
|
771
|
+
|
|
772
|
+
for (let step = 1; step <= stepLength; step++) {
|
|
773
|
+
steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
774
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles.activeRing : styles.bigRing}`),
|
|
775
|
+
key: step
|
|
776
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
777
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles.smallActiveRing : styles.smallRing}`)
|
|
778
|
+
}, step <= activeSteps ? step : "")));
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
return steppers;
|
|
782
|
+
})());
|
|
783
|
+
};
|
|
784
|
+
Stepper.propTypes = {
|
|
785
|
+
className: PropTypes__default["default"].string,
|
|
786
|
+
onChange: PropTypes__default["default"].func,
|
|
787
|
+
stepLength: PropTypes__default["default"].number,
|
|
788
|
+
activeSteps: PropTypes__default["default"].number
|
|
789
|
+
};
|
|
790
|
+
|
|
915
791
|
exports.Autocomplate = Autocomplate;
|
|
916
792
|
exports.Button = Button;
|
|
917
793
|
exports.ButtonSize = ButtonSize;
|
|
@@ -919,16 +795,11 @@ exports.ButtonTheme = ButtonTheme;
|
|
|
919
795
|
exports.ButtonType = ButtonType;
|
|
920
796
|
exports.Captcha = Captcha;
|
|
921
797
|
exports.Checkbox = Checkbox;
|
|
922
|
-
exports.HeartFilled = SvgHeartFilled;
|
|
923
|
-
exports.HeartOutline = SvgHeartOutline;
|
|
924
798
|
exports.Input = Input;
|
|
925
799
|
exports.InputSizes = InputSizes;
|
|
926
800
|
exports.InputTypes = InputTypes;
|
|
927
|
-
exports.LikeFilled = SvgLikeFilled;
|
|
928
|
-
exports.LikeOutline = SvgLikeOutline;
|
|
929
801
|
exports.Pagination = Pagination;
|
|
930
802
|
exports.Radio = Radio;
|
|
931
|
-
exports.
|
|
932
|
-
exports.StarOutline = SvgStarOutline;
|
|
803
|
+
exports.Stepper = Stepper;
|
|
933
804
|
exports.Typography = Typography;
|
|
934
805
|
exports.TypographyType = TypographyType;
|