@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 CHANGED
@@ -1,5 +1,4 @@
1
- import * as React$1 from 'react';
2
- import React__default, { useState, useMemo, useEffect, React as React$2 } from 'react';
1
+ import React$1, { useState, useMemo, useEffect, React as React$2 } from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import classnames from 'classnames';
5
4
  import styled from 'styled-components';
@@ -48,9 +47,9 @@ function styleInject(css, ref) {
48
47
  }
49
48
  }
50
49
 
51
- var css_248z$8 = ".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}";
52
- var styles$6 = {"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"};
53
- styleInject(css_248z$8);
50
+ 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}";
51
+ 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"};
52
+ styleInject(css_248z$9);
54
53
 
55
54
  /**
56
55
  * Primary UI component for user interaction
@@ -86,12 +85,12 @@ const Button = ({
86
85
  outline,
87
86
  ...props
88
87
  }) => {
89
- console.log(styles$6);
88
+ console.log(styles$7);
90
89
  console.log(backgroundColor);
91
- const classProps = classnames(styles$6.btn, styles$6[theme], styles$6[size], outline ? styles$6['type-outline'] : styles$6['type-filled'], className); // className='btn type-outline size-default'
90
+ const classProps = classnames(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'
92
91
 
93
92
  console.log(classProps);
94
- return /*#__PURE__*/React__default.createElement("button", _extends({
93
+ return /*#__PURE__*/React$1.createElement("button", _extends({
95
94
  type: "button",
96
95
  className: classProps,
97
96
  style: backgroundColor && {
@@ -140,8 +139,8 @@ Button.defaultProps = {
140
139
  outline: false
141
140
  };
142
141
 
143
- var css_248z$7 = "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}";
144
- styleInject(css_248z$7);
142
+ 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}";
143
+ styleInject(css_248z$8);
145
144
 
146
145
  const TypographyType = {
147
146
  h1: 'h1',
@@ -176,7 +175,7 @@ const Typography = ({
176
175
  ${color ? 'color: ' + color + ';' : ''}
177
176
  ${bold ? 'font-weight: bold;' : ''}
178
177
  `;
179
- return /*#__PURE__*/React__default.createElement(StyledTypograpy, {
178
+ return /*#__PURE__*/React$1.createElement(StyledTypograpy, {
180
179
  className: classProps
181
180
  }, " ", children, " ");
182
181
  };
@@ -190,9 +189,9 @@ Typography.defaultProps = {
190
189
  variant: 'h1'
191
190
  };
192
191
 
193
- var css_248z$6 = ".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}";
194
- var styles$5 = {"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"};
195
- styleInject(css_248z$6);
192
+ 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}";
193
+ 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"};
194
+ styleInject(css_248z$7);
196
195
 
197
196
  const Autocomplate = ({
198
197
  className,
@@ -205,7 +204,7 @@ const Autocomplate = ({
205
204
  searchCount,
206
205
  ...props
207
206
  }) => {
208
- classnames(styles$5.searchBox, className);
207
+ classnames(styles$6.searchBox, className);
209
208
  const [inputValue, setInputValue] = useState("");
210
209
  const [activeOption, setActiveOption] = useState(0);
211
210
  const [filteredOptions, setFilteredOptions] = useState([]);
@@ -232,10 +231,10 @@ const Autocomplate = ({
232
231
 
233
232
  if (showOptions && inputValue) {
234
233
  if (filteredOptions.length && inputValue.length >= searchCount) {
235
- optionList = /*#__PURE__*/React__default.createElement("div", {
236
- className: styles$5['autocomplate-content-bottom']
237
- }, /*#__PURE__*/React__default.createElement("div", {
238
- className: styles$5['autocomplate-content-bottom-inner']
234
+ optionList = /*#__PURE__*/React$1.createElement("div", {
235
+ className: styles$6['autocomplate-content-bottom']
236
+ }, /*#__PURE__*/React$1.createElement("div", {
237
+ className: styles$6['autocomplate-content-bottom-inner']
239
238
  }, filteredOptions.map((optionName, index) => {
240
239
  let className;
241
240
 
@@ -243,34 +242,34 @@ const Autocomplate = ({
243
242
  className = "option-active";
244
243
  }
245
244
 
246
- return /*#__PURE__*/React__default.createElement("div", {
247
- className: styles$5[className],
245
+ return /*#__PURE__*/React$1.createElement("div", {
246
+ className: styles$6[className],
248
247
  key: optionName,
249
248
  onClick: handleClick
250
- }, /*#__PURE__*/React__default.createElement("div", {
251
- className: styles$5['autocomplate-content-bottom-row']
249
+ }, /*#__PURE__*/React$1.createElement("div", {
250
+ className: styles$6['autocomplate-content-bottom-row']
252
251
  }, optionName));
253
252
  })));
254
253
  } else {
255
- optionList = /*#__PURE__*/React__default.createElement("div", {
256
- className: styles$5['autocomplate-content-bottom']
257
- }, /*#__PURE__*/React__default.createElement("div", {
258
- className: styles$5['autocomplate-content-bottom-inner']
259
- }, /*#__PURE__*/React__default.createElement("div", {
260
- className: styles$5['autocomplate-content-bottom-row']
261
- }, /*#__PURE__*/React__default.createElement("div", {
262
- className: styles$5['no-option']
254
+ optionList = /*#__PURE__*/React$1.createElement("div", {
255
+ className: styles$6['autocomplate-content-bottom']
256
+ }, /*#__PURE__*/React$1.createElement("div", {
257
+ className: styles$6['autocomplate-content-bottom-inner']
258
+ }, /*#__PURE__*/React$1.createElement("div", {
259
+ className: styles$6['autocomplate-content-bottom-row']
260
+ }, /*#__PURE__*/React$1.createElement("div", {
261
+ className: styles$6['no-option']
263
262
  }, "No Option!"))));
264
263
  }
265
264
  }
266
265
 
267
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
268
- className: styles$5.labelInput
269
- }, label) : "", /*#__PURE__*/React__default.createElement("div", {
270
- className: styles$5['autocomplate-content']
271
- }, /*#__PURE__*/React__default.createElement("input", _extends({
266
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, label ? /*#__PURE__*/React$1.createElement("label", {
267
+ className: styles$6.labelInput
268
+ }, label) : "", /*#__PURE__*/React$1.createElement("div", {
269
+ className: styles$6['autocomplate-content']
270
+ }, /*#__PURE__*/React$1.createElement("input", _extends({
272
271
  type: "text",
273
- className: styles$5['autocomplate-content-top'],
272
+ className: styles$6['autocomplate-content-top'],
274
273
  required: required,
275
274
  disabled: disabled,
276
275
  onChange: handleChange,
@@ -293,9 +292,9 @@ Autocomplate.defaultProps = {
293
292
  searchCount: 2
294
293
  };
295
294
 
296
- var css_248z$5 = ".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}";
297
- var styles$4 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
298
- styleInject(css_248z$5);
295
+ 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}";
296
+ var styles$5 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
297
+ styleInject(css_248z$6);
299
298
 
300
299
  const Checkbox = ({
301
300
  disabled,
@@ -309,7 +308,7 @@ const Checkbox = ({
309
308
  keyNames,
310
309
  ...props
311
310
  }) => {
312
- const classProps = classnames(styles$4.checkbox, className);
311
+ const classProps = classnames(styles$5.checkbox, className);
313
312
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
314
313
  const [data, setData] = useState(parseData);
315
314
 
@@ -331,11 +330,11 @@ const Checkbox = ({
331
330
  }
332
331
  };
333
332
 
334
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
335
- return /*#__PURE__*/React__default.createElement("label", {
336
- className: styles$4["checkbox-wrap"],
333
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, data.map(element => {
334
+ return /*#__PURE__*/React$1.createElement("label", {
335
+ className: styles$5["checkbox-wrap"],
337
336
  key: element.value
338
- }, /*#__PURE__*/React__default.createElement("input", _extends({
337
+ }, /*#__PURE__*/React$1.createElement("input", _extends({
339
338
  type: "checkbox",
340
339
  className: classProps,
341
340
  disabled: disabled,
@@ -343,10 +342,10 @@ const Checkbox = ({
343
342
  value: value ? value : element.value,
344
343
  name: name ? name : element.name,
345
344
  onChange: handleChange
346
- }, props)), /*#__PURE__*/React__default.createElement("span", {
347
- className: styles$4["checkmark"]
348
- }), element.label ? /*#__PURE__*/React__default.createElement("span", {
349
- className: styles$4.labelRadio
345
+ }, props)), /*#__PURE__*/React$1.createElement("span", {
346
+ className: styles$5["checkmark"]
347
+ }), element.label ? /*#__PURE__*/React$1.createElement("span", {
348
+ className: styles$5.labelRadio
350
349
  }, label ? label : element.label) : "");
351
350
  }));
352
351
  };
@@ -367,146 +366,19 @@ Checkbox.defaultProps = {
367
366
  jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
368
367
  };
369
368
 
370
- const SvgHeartFilled = ({
371
- title,
372
- titleId,
373
- ...props
374
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
375
- xmlns: "http://www.w3.org/2000/svg",
376
- width: "1em",
377
- height: "1em",
378
- viewBox: "0 0 511.626 511.627",
379
- style: {
380
- enableBackground: "new 0 0 511.626 511.627"
381
- },
382
- xmlSpace: "preserve",
383
- role: "img",
384
- "aria-labelledby": titleId
385
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
386
- id: titleId
387
- }, title) : null, /*#__PURE__*/React$1.createElement("path", {
388
- 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",
389
- fill: "currentColor"
390
- }));
391
-
392
- const SvgHeartOutline = ({
393
- title,
394
- titleId,
395
- ...props
396
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
397
- xmlns: "http://www.w3.org/2000/svg",
398
- viewBox: "0 0 471.701 471.701",
399
- style: {
400
- enableBackground: "new 0 0 471.701 471.701"
401
- },
402
- xmlSpace: "preserve",
403
- width: "1em",
404
- height: "1em",
405
- role: "img",
406
- "aria-labelledby": titleId
407
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
408
- id: titleId
409
- }, title) : null, /*#__PURE__*/React$1.createElement("path", {
410
- 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",
411
- fill: "currentColor"
412
- }));
413
-
414
- const SvgLikeFilled = ({
415
- title,
416
- titleId,
417
- ...props
418
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
419
- width: "1em",
420
- height: "1em",
421
- viewBox: "0 0 23 20",
422
- xmlns: "http://www.w3.org/2000/svg",
423
- role: "img",
424
- "aria-labelledby": titleId
425
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
426
- id: titleId
427
- }, title) : null, /*#__PURE__*/React$1.createElement("g", {
428
- fill: "none",
429
- fillRule: "evenodd"
430
- }, /*#__PURE__*/React$1.createElement("path", {
431
- opacity: 0.87,
432
- d: "M-1-1h24v24H-1z"
433
- }), /*#__PURE__*/React$1.createElement("path", {
434
- 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",
435
- fill: "currentColor"
436
- })));
437
-
438
- const SvgLikeOutline = ({
439
- title,
440
- titleId,
441
- ...props
442
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
443
- width: "1em",
444
- height: "1em",
445
- viewBox: "0 0 22 20",
446
- xmlns: "http://www.w3.org/2000/svg",
447
- role: "img",
448
- "aria-labelledby": titleId
449
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
450
- id: titleId
451
- }, title) : null, /*#__PURE__*/React$1.createElement("g", {
452
- fill: "none",
453
- fillRule: "evenodd"
454
- }, /*#__PURE__*/React$1.createElement("path", {
455
- opacity: 0.87,
456
- d: "M-1-1h24v24H-1z"
457
- }), /*#__PURE__*/React$1.createElement("path", {
458
- 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",
459
- fill: "currentColor"
460
- })));
461
-
462
- const SvgStarFilled = ({
463
- title,
464
- titleId,
465
- ...props
466
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
467
- width: "1em",
468
- height: "1em",
469
- viewBox: "0 0 18 17",
470
- xmlns: "http://www.w3.org/2000/svg",
471
- role: "img",
472
- "aria-labelledby": titleId
473
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
474
- id: titleId
475
- }, title) : null, /*#__PURE__*/React$1.createElement("g", {
476
- fill: "none",
477
- fillRule: "evenodd"
478
- }, /*#__PURE__*/React$1.createElement("path", {
479
- d: "M-3-3h24v24H-3z"
480
- }), /*#__PURE__*/React$1.createElement("path", {
481
- 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",
482
- fill: "currentColor"
483
- })));
484
-
485
- const SvgStarOutline = ({
486
- title,
487
- titleId,
488
- ...props
489
- }) => /*#__PURE__*/React$1.createElement("svg", _extends({
490
- xmlns: "http://www.w3.org/2000/svg",
491
- viewBox: "0 0 24 24",
492
- fill: "none",
493
- stroke: "currentColor",
494
- strokeWidth: 2,
495
- strokeLinecap: "round",
496
- strokeLinejoin: "round",
497
- className: "star-outline_svg__feather star-outline_svg__feather-star",
498
- width: "1em",
499
- height: "1em",
500
- role: "img",
501
- "aria-labelledby": titleId
502
- }, props), title ? /*#__PURE__*/React$1.createElement("title", {
503
- id: titleId
504
- }, title) : null, /*#__PURE__*/React$1.createElement("path", {
505
- 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"
506
- }));
369
+ 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\"}";
370
+ styleInject(css_248z$5);
371
+
372
+ /**
373
+ * Created by aleksanyan.tigran on 10/7/2022.
374
+ */
375
+
376
+ const Icon = props => /*#__PURE__*/React.createElement("i", {
377
+ className: css_248z$5[props.className]
378
+ });
507
379
 
508
380
  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)}}";
509
- var styles$3 = {"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"};
381
+ 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"};
510
382
  styleInject(css_248z$4);
511
383
 
512
384
  const InputTypes = {
@@ -549,12 +421,12 @@ const Input = ({
549
421
  eMessage = regex.test(inputValue) ? "" : regexpError;
550
422
  }
551
423
 
552
- const classProps = classnames(styles$3.input, styles$3[size], eMessage != '' ? styles$3['error-message'] : "", className);
553
- return /*#__PURE__*/React__default.createElement("div", {
554
- className: styles$3['input-wrap']
555
- }, label ? /*#__PURE__*/React__default.createElement("label", {
556
- className: styles$3.labelInput
557
- }, label) : "", /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
424
+ const classProps = classnames(styles$4.input, styles$4[size], eMessage != '' ? styles$4['error-message'] : "", className);
425
+ return /*#__PURE__*/React$1.createElement("div", {
426
+ className: styles$4['input-wrap']
427
+ }, label ? /*#__PURE__*/React$1.createElement("label", {
428
+ className: styles$4.labelInput
429
+ }, label) : "", /*#__PURE__*/React$1.createElement("input", _extends({}, props, {
558
430
  type: type,
559
431
  className: classProps,
560
432
  style: color && {
@@ -563,8 +435,8 @@ const Input = ({
563
435
  disabled: disabled ? disabled : "",
564
436
  onChange: handleChange,
565
437
  value: inputValue
566
- })), eMessage ? /*#__PURE__*/React__default.createElement("span", {
567
- className: styles$3.inputErrorMessages
438
+ })), eMessage ? /*#__PURE__*/React$1.createElement("span", {
439
+ className: styles$4.inputErrorMessages
568
440
  }, eMessage) : "");
569
441
  };
570
442
  Input.propTypes = {
@@ -591,7 +463,7 @@ Input.defaultProps = {
591
463
  };
592
464
 
593
465
  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}";
594
- var styles$2 = {"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"};
466
+ 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"};
595
467
  styleInject(css_248z$3);
596
468
 
597
469
  const Dots = "...";
@@ -645,17 +517,6 @@ const PaginationRange = ({
645
517
  return paginationRange;
646
518
  };
647
519
 
648
- 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\"}";
649
- styleInject(css_248z$2);
650
-
651
- /**
652
- * Created by aleksanyan.tigran on 10/7/2022.
653
- */
654
-
655
- const Icon = props => /*#__PURE__*/React.createElement("i", {
656
- className: css_248z$2[props.className]
657
- });
658
-
659
520
  const Pagination = ({
660
521
  onChange,
661
522
  totalCount,
@@ -693,7 +554,7 @@ const Pagination = ({
693
554
  return null;
694
555
  }
695
556
 
696
- const classProps = classnames(styles$2.list, className ? className : styles$2["pagination-bar"]);
557
+ const classProps = classnames(styles$3.list, className ? className : styles$3["pagination-bar"]);
697
558
 
698
559
  const onNext = () => {
699
560
  onPageChange(currentPageNumber + 1);
@@ -715,7 +576,7 @@ const Pagination = ({
715
576
  return /*#__PURE__*/React$2.createElement("ul", {
716
577
  className: classProps
717
578
  }, /*#__PURE__*/React$2.createElement("button", {
718
- className: styles$2["pagination-btn"],
579
+ className: styles$3["pagination-btn"],
719
580
  onClick: onPrevious,
720
581
  disabled: currentPage === 1 ? true : false
721
582
  }, /*#__PURE__*/React$2.createElement(Icon, {
@@ -725,13 +586,13 @@ const Pagination = ({
725
586
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
726
587
  return /*#__PURE__*/React$2.createElement("li", {
727
588
  key: id,
728
- className: classnames(styles$2['pagination-jump-next'], styles$2.listItem),
589
+ className: classnames(styles$3['pagination-jump-next'], styles$3.listItem),
729
590
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
730
591
  disabled: currentPageIndex === 0 ? true : false
731
592
  }, /*#__PURE__*/React$2.createElement("span", {
732
- className: styles$2['pagination-jump-next-txt']
593
+ className: styles$3['pagination-jump-next-txt']
733
594
  }, "..."), /*#__PURE__*/React$2.createElement("span", {
734
- className: styles$2['pagination-jump-next-arrow']
595
+ className: styles$3['pagination-jump-next-arrow']
735
596
  }, /*#__PURE__*/React$2.createElement(Icon, {
736
597
  className: "icon-arrow-jump-next"
737
598
  })));
@@ -740,11 +601,11 @@ const Pagination = ({
740
601
  return /*#__PURE__*/React$2.createElement("li", {
741
602
  onClick: () => onPageChange(pageNumber),
742
603
  key: id,
743
- className: classnames(`${pageNumber === currentPageNumber ? styles$2.selected : styles$2.listItem}`, styles$2['pagination-item'])
604
+ className: classnames(`${pageNumber === currentPageNumber ? styles$3.selected : styles$3.listItem}`, styles$3['pagination-item'])
744
605
  }, pageNumber);
745
606
  }), /*#__PURE__*/React$2.createElement("button", {
746
607
  onClick: onNext,
747
- className: styles$2["pagination-btn"],
608
+ className: styles$3["pagination-btn"],
748
609
  disabled: currentPageNumber === lastPage ? true : false
749
610
  }, /*#__PURE__*/React$2.createElement(Icon, {
750
611
  className: "icon-arrow"
@@ -762,9 +623,9 @@ Pagination.defaultProps = {
762
623
  siblingCount: 2
763
624
  };
764
625
 
765
- var css_248z$1 = ".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}";
766
- var styles$1 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
767
- styleInject(css_248z$1);
626
+ 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}";
627
+ var styles$2 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
628
+ styleInject(css_248z$2);
768
629
 
769
630
  const Radio = ({
770
631
  disabled,
@@ -778,13 +639,13 @@ const Radio = ({
778
639
  keyNames,
779
640
  ...props
780
641
  }) => {
781
- const classProps = classnames(styles$1.checkbox, className);
642
+ const classProps = classnames(styles$2.checkbox, className);
782
643
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
783
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
784
- return /*#__PURE__*/React__default.createElement("label", {
785
- className: styles$1["radio-wrap"],
644
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, parseData.map((element, id) => {
645
+ return /*#__PURE__*/React$1.createElement("label", {
646
+ className: styles$2["radio-wrap"],
786
647
  key: element.value
787
- }, /*#__PURE__*/React__default.createElement("input", _extends({
648
+ }, /*#__PURE__*/React$1.createElement("input", _extends({
788
649
  type: "radio",
789
650
  className: classProps,
790
651
  disabled: disabled,
@@ -792,10 +653,10 @@ const Radio = ({
792
653
  defaultChecked: id === 0 ? defaultChecked : "",
793
654
  value: value ? value : element.value,
794
655
  name: name ? name : element.name
795
- }, props)), /*#__PURE__*/React__default.createElement("span", {
796
- className: styles$1["radio-checkmark"]
797
- }), element.label ? /*#__PURE__*/React__default.createElement("span", {
798
- className: styles$1.labelRadio
656
+ }, props)), /*#__PURE__*/React$1.createElement("span", {
657
+ className: styles$2["radio-checkmark"]
658
+ }), element.label ? /*#__PURE__*/React$1.createElement("span", {
659
+ className: styles$2.labelRadio
799
660
  }, label ? label : element.label) : "");
800
661
  }));
801
662
  };
@@ -816,9 +677,9 @@ Radio.defaultProps = {
816
677
  jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
817
678
  };
818
679
 
819
- 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}";
820
- 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"};
821
- styleInject(css_248z);
680
+ 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}";
681
+ 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"};
682
+ styleInject(css_248z$1);
822
683
 
823
684
  const Captcha = ({
824
685
  onclick,
@@ -827,7 +688,7 @@ const Captcha = ({
827
688
  const [data, setData] = useState("");
828
689
  const [right, setRight] = useState(false);
829
690
  let range = rangeCount <= 100 ? rangeCount : 0;
830
- let rangeElement = document.getElementsByClassName(styles.range);
691
+ let rangeElement = document.getElementsByClassName(styles$1.range);
831
692
  useEffect(() => {
832
693
  for (let element of rangeElement) {
833
694
  element.style.marginLeft = `${range - 3}%`;
@@ -837,9 +698,9 @@ const Captcha = ({
837
698
 
838
699
  function sliderInput(event) {
839
700
  setData(rangeCount == event.target.value ? 'green' : 'indianred');
840
- let selector = document.getElementsByClassName(styles.selector);
841
- let selectBtn = document.getElementsByClassName(styles.selectBtn);
842
- let progressBar = document.getElementsByClassName(styles.progressBar);
701
+ let selector = document.getElementsByClassName(styles$1.selector);
702
+ let selectBtn = document.getElementsByClassName(styles$1.selectBtn);
703
+ let progressBar = document.getElementsByClassName(styles$1.progressBar);
843
704
  selector[0].style.left = event.target.value + '%';
844
705
  progressBar[0].style.width = event.target.value + '%';
845
706
 
@@ -854,24 +715,24 @@ const Captcha = ({
854
715
  setRight(rangeCount == e.target.value ? true : false);
855
716
  }
856
717
 
857
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
858
- className: styles.main
859
- }, /*#__PURE__*/React__default.createElement("div", {
860
- className: styles.range
861
- }, "\u25BC"), /*#__PURE__*/React__default.createElement("input", {
718
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
719
+ className: styles$1.main
720
+ }, /*#__PURE__*/React$1.createElement("div", {
721
+ className: styles$1.range
722
+ }, "\u25BC"), /*#__PURE__*/React$1.createElement("input", {
862
723
  type: "range",
863
- className: styles.slider,
724
+ className: styles$1.slider,
864
725
  onClick: right ? onclick : null,
865
726
  onInput: sliderInput,
866
727
  onMouseUp: sliderChange
867
- }), /*#__PURE__*/React__default.createElement("div", {
868
- className: styles.selector
869
- }, /*#__PURE__*/React__default.createElement("div", {
870
- className: styles.selectBtn
871
- })), /*#__PURE__*/React__default.createElement("div", {
872
- className: styles.progressBar
873
- }), /*#__PURE__*/React__default.createElement("div", {
874
- className: styles.range
728
+ }), /*#__PURE__*/React$1.createElement("div", {
729
+ className: styles$1.selector
730
+ }, /*#__PURE__*/React$1.createElement("div", {
731
+ className: styles$1.selectBtn
732
+ })), /*#__PURE__*/React$1.createElement("div", {
733
+ className: styles$1.progressBar
734
+ }), /*#__PURE__*/React$1.createElement("div", {
735
+ className: styles$1.range
875
736
  }, "\u25B2")));
876
737
  };
877
738
  Captcha.propTypes = {
@@ -883,4 +744,37 @@ Captcha.defaultProps = {
883
744
  onclick: undefined
884
745
  };
885
746
 
886
- export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, SvgHeartFilled as HeartFilled, SvgHeartOutline as HeartOutline, Input, InputSizes, InputTypes, SvgLikeFilled as LikeFilled, SvgLikeOutline as LikeOutline, Pagination, Radio, SvgStarFilled as StarFilled, SvgStarOutline as StarOutline, Typography, TypographyType };
747
+ 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%}";
748
+ var styles = {"bigRing":"stepper-module_bigRing__5GBm0","smallRing":"stepper-module_smallRing__u-5a8","activeRing":"stepper-module_activeRing__Lzvh1","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
749
+ styleInject(css_248z);
750
+
751
+ const Stepper = ({
752
+ className,
753
+ onChange,
754
+ stepLength,
755
+ activeSteps
756
+ }) => {
757
+ classnames(className);
758
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (() => {
759
+ let steppers = [];
760
+
761
+ for (let step = 1; step <= stepLength; step++) {
762
+ steppers.push( /*#__PURE__*/React$1.createElement("div", {
763
+ className: classnames(`${step <= activeSteps ? styles.activeRing : styles.bigRing}`),
764
+ key: step
765
+ }, /*#__PURE__*/React$1.createElement("div", {
766
+ className: classnames(`${step <= activeSteps ? styles.smallActiveRing : styles.smallRing}`)
767
+ }, step <= activeSteps ? step : "")));
768
+ }
769
+
770
+ return steppers;
771
+ })());
772
+ };
773
+ Stepper.propTypes = {
774
+ className: PropTypes.string,
775
+ onChange: PropTypes.func,
776
+ stepLength: PropTypes.number,
777
+ activeSteps: PropTypes.number
778
+ };
779
+
780
+ export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, Input, InputSizes, InputTypes, Pagination, Radio, Stepper, Typography, TypographyType };