@xaypay/tui 0.0.11 → 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';
@@ -91,7 +90,7 @@ const Button = ({
91
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 && {
@@ -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
  };
@@ -232,9 +231,9 @@ const Autocomplate = ({
232
231
 
233
232
  if (showOptions && inputValue) {
234
233
  if (filteredOptions.length && inputValue.length >= searchCount) {
235
- optionList = /*#__PURE__*/React__default.createElement("div", {
234
+ optionList = /*#__PURE__*/React$1.createElement("div", {
236
235
  className: styles$6['autocomplate-content-bottom']
237
- }, /*#__PURE__*/React__default.createElement("div", {
236
+ }, /*#__PURE__*/React$1.createElement("div", {
238
237
  className: styles$6['autocomplate-content-bottom-inner']
239
238
  }, filteredOptions.map((optionName, index) => {
240
239
  let className;
@@ -243,32 +242,32 @@ const Autocomplate = ({
243
242
  className = "option-active";
244
243
  }
245
244
 
246
- return /*#__PURE__*/React__default.createElement("div", {
245
+ return /*#__PURE__*/React$1.createElement("div", {
247
246
  className: styles$6[className],
248
247
  key: optionName,
249
248
  onClick: handleClick
250
- }, /*#__PURE__*/React__default.createElement("div", {
249
+ }, /*#__PURE__*/React$1.createElement("div", {
251
250
  className: styles$6['autocomplate-content-bottom-row']
252
251
  }, optionName));
253
252
  })));
254
253
  } else {
255
- optionList = /*#__PURE__*/React__default.createElement("div", {
254
+ optionList = /*#__PURE__*/React$1.createElement("div", {
256
255
  className: styles$6['autocomplate-content-bottom']
257
- }, /*#__PURE__*/React__default.createElement("div", {
256
+ }, /*#__PURE__*/React$1.createElement("div", {
258
257
  className: styles$6['autocomplate-content-bottom-inner']
259
- }, /*#__PURE__*/React__default.createElement("div", {
258
+ }, /*#__PURE__*/React$1.createElement("div", {
260
259
  className: styles$6['autocomplate-content-bottom-row']
261
- }, /*#__PURE__*/React__default.createElement("div", {
260
+ }, /*#__PURE__*/React$1.createElement("div", {
262
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", {
266
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, label ? /*#__PURE__*/React$1.createElement("label", {
268
267
  className: styles$6.labelInput
269
- }, label) : "", /*#__PURE__*/React__default.createElement("div", {
268
+ }, label) : "", /*#__PURE__*/React$1.createElement("div", {
270
269
  className: styles$6['autocomplate-content']
271
- }, /*#__PURE__*/React__default.createElement("input", _extends({
270
+ }, /*#__PURE__*/React$1.createElement("input", _extends({
272
271
  type: "text",
273
272
  className: styles$6['autocomplate-content-top'],
274
273
  required: required,
@@ -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", {
333
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, data.map(element => {
334
+ return /*#__PURE__*/React$1.createElement("label", {
336
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,9 +342,9 @@ 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", {
345
+ }, props)), /*#__PURE__*/React$1.createElement("span", {
347
346
  className: styles$5["checkmark"]
348
- }), element.label ? /*#__PURE__*/React__default.createElement("span", {
347
+ }), element.label ? /*#__PURE__*/React$1.createElement("span", {
349
348
  className: styles$5.labelRadio
350
349
  }, label ? label : element.label) : "");
351
350
  }));
@@ -367,148 +366,21 @@ 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
- }));
507
-
508
- var css_248z$5 = ".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$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"};
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\"}";
510
370
  styleInject(css_248z$5);
511
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
+ });
379
+
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)}}";
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"};
382
+ styleInject(css_248z$4);
383
+
512
384
  const InputTypes = {
513
385
  TEXT: "text",
514
386
  PASSWORD: "password",
@@ -550,11 +422,11 @@ const Input = ({
550
422
  }
551
423
 
552
424
  const classProps = classnames(styles$4.input, styles$4[size], eMessage != '' ? styles$4['error-message'] : "", className);
553
- return /*#__PURE__*/React__default.createElement("div", {
425
+ return /*#__PURE__*/React$1.createElement("div", {
554
426
  className: styles$4['input-wrap']
555
- }, label ? /*#__PURE__*/React__default.createElement("label", {
427
+ }, label ? /*#__PURE__*/React$1.createElement("label", {
556
428
  className: styles$4.labelInput
557
- }, label) : "", /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
429
+ }, label) : "", /*#__PURE__*/React$1.createElement("input", _extends({}, props, {
558
430
  type: type,
559
431
  className: classProps,
560
432
  style: color && {
@@ -563,7 +435,7 @@ const Input = ({
563
435
  disabled: disabled ? disabled : "",
564
436
  onChange: handleChange,
565
437
  value: inputValue
566
- })), eMessage ? /*#__PURE__*/React__default.createElement("span", {
438
+ })), eMessage ? /*#__PURE__*/React$1.createElement("span", {
567
439
  className: styles$4.inputErrorMessages
568
440
  }, eMessage) : "");
569
441
  };
@@ -590,9 +462,9 @@ Input.defaultProps = {
590
462
  type: "text"
591
463
  };
592
464
 
593
- var css_248z$4 = ".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}";
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
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
- styleInject(css_248z$4);
467
+ styleInject(css_248z$3);
596
468
 
597
469
  const Dots = "...";
598
470
 
@@ -645,17 +517,6 @@ const PaginationRange = ({
645
517
  return paginationRange;
646
518
  };
647
519
 
648
- var css_248z$3 = "@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$3);
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$3[props.className]
657
- });
658
-
659
520
  const Pagination = ({
660
521
  onChange,
661
522
  totalCount,
@@ -780,11 +641,11 @@ const Radio = ({
780
641
  }) => {
781
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", {
644
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, parseData.map((element, id) => {
645
+ return /*#__PURE__*/React$1.createElement("label", {
785
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,9 +653,9 @@ 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", {
656
+ }, props)), /*#__PURE__*/React$1.createElement("span", {
796
657
  className: styles$2["radio-checkmark"]
797
- }), element.label ? /*#__PURE__*/React__default.createElement("span", {
658
+ }), element.label ? /*#__PURE__*/React$1.createElement("span", {
798
659
  className: styles$2.labelRadio
799
660
  }, label ? label : element.label) : "");
800
661
  }));
@@ -854,23 +715,23 @@ 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", {
718
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
858
719
  className: styles$1.main
859
- }, /*#__PURE__*/React__default.createElement("div", {
720
+ }, /*#__PURE__*/React$1.createElement("div", {
860
721
  className: styles$1.range
861
- }, "\u25BC"), /*#__PURE__*/React__default.createElement("input", {
722
+ }, "\u25BC"), /*#__PURE__*/React$1.createElement("input", {
862
723
  type: "range",
863
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", {
728
+ }), /*#__PURE__*/React$1.createElement("div", {
868
729
  className: styles$1.selector
869
- }, /*#__PURE__*/React__default.createElement("div", {
730
+ }, /*#__PURE__*/React$1.createElement("div", {
870
731
  className: styles$1.selectBtn
871
- })), /*#__PURE__*/React__default.createElement("div", {
732
+ })), /*#__PURE__*/React$1.createElement("div", {
872
733
  className: styles$1.progressBar
873
- }), /*#__PURE__*/React__default.createElement("div", {
734
+ }), /*#__PURE__*/React$1.createElement("div", {
874
735
  className: styles$1.range
875
736
  }, "\u25B2")));
876
737
  };
@@ -894,14 +755,14 @@ const Stepper = ({
894
755
  activeSteps
895
756
  }) => {
896
757
  classnames(className);
897
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (() => {
758
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (() => {
898
759
  let steppers = [];
899
760
 
900
761
  for (let step = 1; step <= stepLength; step++) {
901
- steppers.push( /*#__PURE__*/React__default.createElement("div", {
762
+ steppers.push( /*#__PURE__*/React$1.createElement("div", {
902
763
  className: classnames(`${step <= activeSteps ? styles.activeRing : styles.bigRing}`),
903
764
  key: step
904
- }, /*#__PURE__*/React__default.createElement("div", {
765
+ }, /*#__PURE__*/React$1.createElement("div", {
905
766
  className: classnames(`${step <= activeSteps ? styles.smallActiveRing : styles.smallRing}`)
906
767
  }, step <= activeSteps ? step : "")));
907
768
  }
@@ -916,4 +777,4 @@ Stepper.propTypes = {
916
777
  activeSteps: PropTypes.number
917
778
  };
918
779
 
919
- 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, Stepper, Typography, TypographyType };
780
+ export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, Input, InputSizes, InputTypes, Pagination, Radio, Stepper, Typography, TypographyType };
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);
@@ -396,148 +377,21 @@ 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
- const SvgHeartFilled = ({
400
- title,
401
- titleId,
402
- ...props
403
- }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
404
- xmlns: "http://www.w3.org/2000/svg",
405
- width: "1em",
406
- height: "1em",
407
- viewBox: "0 0 511.626 511.627",
408
- style: {
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
- }));
536
-
537
- var css_248z$5 = ".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$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"};
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\"}";
539
381
  styleInject(css_248z$5);
540
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
+ });
390
+
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)}}";
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"};
393
+ styleInject(css_248z$4);
394
+
541
395
  const InputTypes = {
542
396
  TEXT: "text",
543
397
  PASSWORD: "password",
@@ -619,9 +473,9 @@ Input.defaultProps = {
619
473
  type: "text"
620
474
  };
621
475
 
622
- var css_248z$4 = ".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}";
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
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
- styleInject(css_248z$4);
478
+ styleInject(css_248z$3);
625
479
 
626
480
  const Dots = "...";
627
481
 
@@ -674,17 +528,6 @@ const PaginationRange = ({
674
528
  return paginationRange;
675
529
  };
676
530
 
677
- var css_248z$3 = "@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$3);
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$3[props.className]
686
- });
687
-
688
531
  const Pagination = ({
689
532
  onChange,
690
533
  totalCount,
@@ -952,17 +795,11 @@ exports.ButtonTheme = ButtonTheme;
952
795
  exports.ButtonType = ButtonType;
953
796
  exports.Captcha = Captcha;
954
797
  exports.Checkbox = Checkbox;
955
- exports.HeartFilled = SvgHeartFilled;
956
- exports.HeartOutline = SvgHeartOutline;
957
798
  exports.Input = Input;
958
799
  exports.InputSizes = InputSizes;
959
800
  exports.InputTypes = InputTypes;
960
- exports.LikeFilled = SvgLikeFilled;
961
- exports.LikeOutline = SvgLikeOutline;
962
801
  exports.Pagination = Pagination;
963
802
  exports.Radio = Radio;
964
- exports.StarFilled = SvgStarFilled;
965
- exports.StarOutline = SvgStarOutline;
966
803
  exports.Stepper = Stepper;
967
804
  exports.Typography = Typography;
968
805
  exports.TypographyType = TypographyType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/index.js CHANGED
@@ -2,7 +2,7 @@ export * from './components/button';
2
2
  export * from './components/typography';
3
3
  export * from './components/autocomplate';
4
4
  export * from './components/checkbox';
5
- export * from './components/icon';
5
+ export * from './components/icon/Icon';
6
6
  export * from './components/input';
7
7
  export * from './components/pagination';
8
8
  export * from './components/radio';