@xaypay/tui 0.0.105 → 0.0.107

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.
Files changed (93) hide show
  1. package/.eslintrc.js +30 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.prettierrc +10 -0
  4. package/.storybook/main.js +42 -45
  5. package/.storybook/preview.js +7 -7
  6. package/cli-command.js +1 -1
  7. package/dist/index.es.js +105 -94
  8. package/dist/index.js +105 -94
  9. package/package.json +16 -4
  10. package/rollup.config.js +11 -11
  11. package/src/assets_old/icons/demo-files/demo.js +16 -18
  12. package/src/components/autocomplate/autocomplate.stories.js +30 -28
  13. package/src/components/autocomplate/index.js +145 -127
  14. package/src/components/button/button.stories.js +6 -6
  15. package/src/components/button/index.js +176 -126
  16. package/src/components/captcha/captcha.stories.js +12 -8
  17. package/src/components/captcha/index.js +47 -50
  18. package/src/components/checkbox/checkbox.stories.js +7 -7
  19. package/src/components/checkbox/index.js +77 -93
  20. package/src/components/file/file.stories.js +15 -15
  21. package/src/components/file/index.js +114 -116
  22. package/src/components/icon/Arrow.js +18 -18
  23. package/src/components/icon/CaptchaArrowDown.js +18 -18
  24. package/src/components/icon/CaptchaArrowUp.js +18 -18
  25. package/src/components/icon/CheckboxChecked.js +20 -20
  26. package/src/components/icon/CheckboxUnchecked.js +20 -20
  27. package/src/components/icon/Close.js +18 -18
  28. package/src/components/icon/CloseIcon.js +18 -18
  29. package/src/components/icon/CloseSlide.js +18 -18
  30. package/src/components/icon/DeleteComponent.js +19 -19
  31. package/src/components/icon/Dots.js +18 -18
  32. package/src/components/icon/HeartFilled.js +22 -23
  33. package/src/components/icon/HeartOutline.js +22 -22
  34. package/src/components/icon/Icon.js +3 -5
  35. package/src/components/icon/ListItemDelete.js +18 -18
  36. package/src/components/icon/ListItemJpeg.js +20 -20
  37. package/src/components/icon/ListItemJpg.js +20 -20
  38. package/src/components/icon/ListItemPdf.js +20 -20
  39. package/src/components/icon/ListItemPng.js +20 -20
  40. package/src/components/icon/Next.js +19 -19
  41. package/src/components/icon/Nextarrow.js +18 -18
  42. package/src/components/icon/PDF.js +18 -18
  43. package/src/components/icon/Prev.js +19 -19
  44. package/src/components/icon/RangeArrowDefault.js +41 -52
  45. package/src/components/icon/RangeArrowError.js +41 -52
  46. package/src/components/icon/RangeArrowSuccess.js +41 -52
  47. package/src/components/icon/RemoveFile.js +19 -19
  48. package/src/components/icon/ToasterClose.js +18 -18
  49. package/src/components/icon/ToasterError.js +18 -18
  50. package/src/components/icon/ToasterInfo.js +18 -18
  51. package/src/components/icon/ToasterSuccess.js +18 -18
  52. package/src/components/icon/ToasterWarning.js +18 -18
  53. package/src/components/icon/Tooltip.js +18 -18
  54. package/src/components/icon/Upload.js +24 -24
  55. package/src/components/input/index.js +267 -224
  56. package/src/components/input/input.stories.js +20 -21
  57. package/src/components/modal/index.js +172 -159
  58. package/src/components/modal/modal.stories.js +79 -78
  59. package/src/components/newAutocomplete/NewAutocomplete.stories.js +93 -51
  60. package/src/components/newAutocomplete/index.js +342 -216
  61. package/src/components/newFile/fileItem.js +214 -191
  62. package/src/components/newFile/index.js +235 -173
  63. package/src/components/newFile/newFile.stories.js +32 -35
  64. package/src/components/pagination/index.js +97 -122
  65. package/src/components/pagination/pagination.stories.js +362 -362
  66. package/src/components/pagination/paginationRange.js +42 -53
  67. package/src/components/radio/index.js +49 -62
  68. package/src/components/radio/radio.stories.js +7 -7
  69. package/src/components/select/index.js +318 -223
  70. package/src/components/select/select.stories.js +25 -14
  71. package/src/components/singleCheckbox/Checkbox.js +31 -34
  72. package/src/components/singleCheckbox/index.js +36 -45
  73. package/src/components/singleCheckbox/singleCheckbox.stories.js +16 -16
  74. package/src/components/stepper/index.js +35 -30
  75. package/src/components/stepper/stepper.stories.js +11 -11
  76. package/src/components/table/index.js +280 -148
  77. package/src/components/table/table.stories.js +105 -217
  78. package/src/components/table/td.js +80 -72
  79. package/src/components/table/th.js +19 -16
  80. package/src/components/textarea/index.js +86 -62
  81. package/src/components/textarea/textarea.stories.js +10 -13
  82. package/src/components/toaster/Toast.js +180 -158
  83. package/src/components/toaster/index.js +108 -111
  84. package/src/components/toaster/toaster.module.css +13 -0
  85. package/src/components/toaster/toaster.stories.js +582 -367
  86. package/src/components/tooltip/index.js +79 -46
  87. package/src/components/tooltip/tooltip.stories.js +9 -10
  88. package/src/components/typography/index.js +108 -101
  89. package/src/components/typography/typography.stories.js +16 -19
  90. package/src/index.js +20 -20
  91. package/src/stories/configuration.stories.mdx +1 -0
  92. package/src/utils/index.js +11 -11
  93. package/tui.config.js +343 -340
@@ -1,103 +1,87 @@
1
- import React, { useState } from "react";
2
- import PropTypes from "prop-types";
3
- import classNames from "classnames";
4
- import styles from "./checkbox.module.css";
5
- import { useEffect } from "react";
1
+ import React, { useState } from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import classNames from 'classnames'
4
+ import styles from './checkbox.module.css'
5
+ import { useEffect } from 'react'
6
6
 
7
- export const Checkbox = ({
8
- disabled,
9
- required,
10
- className,
11
- name,
12
- value,
13
- jsonData,
14
- onChange,
15
- label,
16
- keyNames,
17
- onClick,
18
- ...props
19
- }) => {
20
- const classProps = classNames(styles.checkbox, className, 'checkbox-input-rem');
21
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
22
- const [data, setData] = useState(parseData);
7
+ export const Checkbox = ({ disabled, required, className, jsonData, onChange, keyNames, onClick, ...props }) => {
8
+ const classProps = classNames(styles.checkbox, className, 'checkbox-input-rem')
9
+ const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : []
10
+ const [data, setData] = useState(parseData)
23
11
 
12
+ useEffect(() => {
13
+ const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : []
14
+ setData(parseData)
15
+ }, [jsonData])
16
+ useEffect(() => {
17
+ onChange ? onChange(data.filter((d) => d.checked)) : ''
18
+ }, [data])
24
19
 
25
- useEffect(() => {
26
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
27
- setData(parseData);
28
- },[jsonData])
29
- useEffect(()=>{
30
- onChange ? onChange(data.filter(d => d.checked)) : '';
31
- },[data])
32
-
33
- const handleChange = e => {
34
- let id;
35
- data.forEach((value,key) => {
36
- if (value[keyNames.value] === e.target.value){
37
- id = key;
38
- }
39
- });
20
+ const handleChange = (e) => {
21
+ let id
22
+ data.forEach((value, key) => {
23
+ if (value[keyNames.value] === e.target.value) {
24
+ id = key
25
+ }
26
+ })
40
27
 
41
- let items = [...data];
42
- let item = {...items[id]};
43
- item.checked = !item.checked;
44
- items[id] = item;
45
- setData(items);
46
- };
28
+ let items = [...data]
29
+ let item = { ...items[id] }
30
+ item.checked = !item.checked
31
+ items[id] = item
32
+ setData(items)
33
+ }
47
34
 
48
- !keyNames ? keyNames = {id:'id',name:'name',value:'value', label: 'label'} : ''
35
+ !keyNames ? (keyNames = { id: 'id', name: 'name', value: 'value', label: 'label' }) : ''
49
36
 
50
- return (
51
- <>
52
- {data.map((element) => {
53
- return (
54
- <label className={`${styles["checkbox-wrap"]} checkbox-wrap-rem`} key={element.value}>
55
- <input
56
- type="checkbox"
57
- className={classProps}
58
- disabled={disabled}
59
- required={required}
60
- value={keyNames.value ? element[keyNames.value] : ''}
61
- name={keyNames.name ? element[keyNames.name] : ''}
62
- id={keyNames.id ? element[keyNames.id] : ''}
63
- onChange={handleChange}
64
- onClick={onClick ? onClick: ()=>{}}
65
- defaultChecked = {element.checked}
66
- {...props}
67
- />
68
- <span className={`${styles["checkmark"]} checkmark-rem`} />
69
- {element[keyNames.label] ? (
70
- <label
71
- className={styles.labelCheckbox}
72
- for={element[keyNames.id]}
73
- >
74
- {element[keyNames.label]}
75
- </label>
76
- ) : (
77
- ""
78
- )}
79
- </label>
80
- );
81
- })}
82
- </>
83
- );
84
- };
37
+ return (
38
+ <>
39
+ {data.map((element) => {
40
+ return (
41
+ <label className={`${styles['checkbox-wrap']} checkbox-wrap-rem`} key={element.value}>
42
+ <input
43
+ type="checkbox"
44
+ className={classProps}
45
+ disabled={disabled}
46
+ required={required}
47
+ value={keyNames.value ? element[keyNames.value] : ''}
48
+ name={keyNames.name ? element[keyNames.name] : ''}
49
+ id={keyNames.id ? element[keyNames.id] : ''}
50
+ onChange={handleChange}
51
+ onClick={onClick ? onClick : () => {}}
52
+ defaultChecked={element.checked}
53
+ {...props}
54
+ />
55
+ <span className={`${styles['checkmark']} checkmark-rem`} />
56
+ {element[keyNames.label] ? (
57
+ <label className={styles.labelCheckbox} htmlFor={element[keyNames.id]}>
58
+ {element[keyNames.label]}
59
+ </label>
60
+ ) : (
61
+ ''
62
+ )}
63
+ </label>
64
+ )
65
+ })}
66
+ </>
67
+ )
68
+ }
85
69
 
86
70
  Checkbox.propTypes = {
87
- className: PropTypes.string,
88
- onChange: PropTypes.func,
89
- onClick: PropTypes.func,
90
- required: PropTypes.bool,
91
- disabled: PropTypes.bool,
92
- name: PropTypes.string,
93
- value: PropTypes.string,
94
- jsonData: PropTypes.string,
95
- label: PropTypes.string,
96
- keyNames: PropTypes.object,
97
- };
71
+ className: PropTypes.string,
72
+ onChange: PropTypes.func,
73
+ onClick: PropTypes.func,
74
+ required: PropTypes.bool,
75
+ disabled: PropTypes.bool,
76
+ name: PropTypes.string,
77
+ value: PropTypes.string,
78
+ jsonData: PropTypes.string,
79
+ label: PropTypes.string,
80
+ keyNames: PropTypes.object,
81
+ }
98
82
 
99
83
  Checkbox.defaultProps = {
100
- onChange: undefined,
101
- jsonData:
102
- '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]',
103
- };
84
+ onChange: undefined,
85
+ jsonData:
86
+ '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]',
87
+ }
@@ -1,20 +1,20 @@
1
- import React from "react";
2
- import { File } from "./index";
1
+ import React from 'react'
2
+ import { File } from './index'
3
3
 
4
4
  export default {
5
- component: File,
6
- title: "Components/File",
7
- };
5
+ component: File,
6
+ title: 'Components/File',
7
+ }
8
8
 
9
- const Template = (args) => <File {...args} />;
9
+ const Template = (args) => <File {...args} />
10
10
 
11
- export const Default = Template.bind({});
11
+ export const Default = Template.bind({})
12
12
  Default.args = {
13
- label: 'ssa',
14
- onChange: _ => _,
15
- defaultData: {
16
- url: 'https://images.pexels.com/photos/753626/pexels-photo-753626.jpeg?auto=compress&cs=tinysrgb&w=1600',
17
- type: "image/png",
18
- },
19
- name: 'sss'
20
- };
13
+ label: 'ssa',
14
+ onChange: (_) => _,
15
+ defaultData: {
16
+ url: 'https://images.pexels.com/photos/753626/pexels-photo-753626.jpeg?auto=compress&cs=tinysrgb&w=1600',
17
+ type: 'image/png',
18
+ },
19
+ name: 'sss',
20
+ }
@@ -1,134 +1,132 @@
1
- import React, { useState } from "react";
2
- import PropTypes from "prop-types";
3
- import classnames from "classnames";
1
+ import React, { useState } from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import classnames from 'classnames'
4
4
 
5
- import PDF from './../icon/PDF';
5
+ import PDF from './../icon/PDF'
6
6
 
7
- import styles from "./file.module.css";
7
+ import styles from './file.module.css'
8
8
 
9
9
  export const File = ({
10
- name,
11
- label,
12
- maxSize,
13
- required,
14
- disabled,
15
- onChange,
16
- className,
17
- defaultData,
18
- errorMessage,
19
- fileExtensions,
20
- ...props
10
+ name,
11
+ label,
12
+ maxSize,
13
+ required,
14
+ disabled,
15
+ onChange,
16
+ defaultData,
17
+ errorMessage,
18
+ fileExtensions,
21
19
  }) => {
22
- const [error, setError] = useState('');
23
- const [fileName, setFileName] = useState('no selected file');
24
- const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : 'pdf' : null);
20
+ const [error, setError] = useState('')
21
+ const [fileName, setFileName] = useState('no selected file')
22
+ const [image, setImage] = useState(
23
+ defaultData ? (defaultData.type != 'application/pdf' ? defaultData.url : 'pdf') : null
24
+ )
25
25
 
26
- const handleCheckFile = (e) => {
27
- const file = e.target.files;
26
+ const handleCheckFile = (e) => {
27
+ const file = e.target.files
28
28
 
29
- if (file[0]) {
30
- if (file[0].size <= maxSize * Math.pow(2, 20)) {
31
- if (fileExtensions.includes(file[0].type.split('/')[1])) {
32
- if (file[0].type === 'application/pdf') {
33
- setError('');
34
- onChange({file});
35
- setImage('pdf');
36
- } else {
37
- setError('');
38
- onChange({file});
39
- setFileName(file[0].name);
40
- setImage(URL.createObjectURL(file[0]));
41
- }
29
+ if (file[0]) {
30
+ if (file[0].size <= maxSize * Math.pow(2, 20)) {
31
+ if (fileExtensions.includes(file[0].type.split('/')[1])) {
32
+ if (file[0].type === 'application/pdf') {
33
+ setError('')
34
+ onChange({ file })
35
+ setImage('pdf')
36
+ } else {
37
+ setError('')
38
+ onChange({ file })
39
+ setFileName(file[0].name)
40
+ setImage(URL.createObjectURL(file[0]))
41
+ }
42
+ } else {
43
+ setImage(null)
44
+ setError('ֆայլի սխալ ֆորմատ')
45
+ setFileName('no selected file')
46
+ }
47
+ } else {
48
+ setImage(null)
49
+ setError('առավելագույն ծավալ')
50
+ setFileName('no selected file')
51
+ }
42
52
  } else {
43
- setImage(null)
44
- setError('ֆայլի սխալ ֆորմատ');
45
- setFileName('no selected file');
53
+ setImage(null)
54
+ setError('Ֆայլը ընտրված չէ')
55
+ setFileName('no selected file')
46
56
  }
47
- } else {
48
- setImage(null)
49
- setError('առավելագույն ծավալ');
50
- setFileName('no selected file');
51
- }
52
- } else {
53
- setImage(null)
54
- setError('Ֆայլը ընտրված չէ');
55
- setFileName('no selected file');
56
57
  }
57
- };
58
58
 
59
- const handleRemoveFile = () => {
60
- setImage(null);
61
- onChange({ target: null });
62
- setFileName('no selected file');
63
- document.querySelector(`.${name}`).value = "";
64
- };
59
+ const handleRemoveFile = () => {
60
+ setImage(null)
61
+ onChange({ target: null })
62
+ setFileName('no selected file')
63
+ document.querySelector(`.${name}`).value = ''
64
+ }
65
65
 
66
- return (
67
- <>
68
- <p className={`${styles['file-form-title']} ile-form-title-rem`}>
69
- {label} {required && <sup style={{color: "#ee0000"}}>*</sup>}
70
- </p>
71
- <div className={classnames(`${styles['file-form-wrap']} file-form-wrap-rem`,image ? styles['active'] : '')}>
72
- <div
73
- className={`${styles['file-form']} file-form-rem ${error || errorMessage ? styles['error'] : '' }`}
74
- onClick={() => document.querySelector(`.${name}`).click()}
75
- >
76
- <input
77
- hidden
78
- type='file'
79
- className={name}
80
- disabled={disabled}
81
- onChange={(e) => handleCheckFile(e)}
82
- />
83
- {
84
- image ?
85
- <div className={`${styles['upload-file-content']} upload-file-content-rem`}>
86
- {
87
- image === 'pdf' ? <PDF /> : <img src={image} alt={fileName} />
88
- }
89
- </div> :
90
- <div className={`${styles['file-form-inner-upload']} ile-form-inner-upload-rem`}>
91
- <img src="../../assets/upload.svg" alt="" />
92
- <span className={`${styles['upload-info']} upload-info-rem`}>
93
- <span className={`${styles['upload-info-txt']} upload-info-txt-rem`}>Բեռնել</span>
94
- </span>
95
- <span className={`${styles['upload-info-size']} upload-info-size-rem`}>
96
- Առավելագույնը {maxSize}ՄԲ ( { fileExtensions.toString().split(',').join(', ') } )
97
- </span>
98
- </div>
99
- }
100
- </div>
101
- {
102
- !disabled && <div
103
- className={`${styles['delete-upload-icon']} delete-upload-icon-rem`}
104
- onClick={handleRemoveFile}
66
+ return (
67
+ <>
68
+ <p className={`${styles['file-form-title']} ile-form-title-rem`}>
69
+ {label} {required && <sup style={{ color: '#ee0000' }}>*</sup>}
70
+ </p>
71
+ <div
72
+ className={classnames(`${styles['file-form-wrap']} file-form-wrap-rem`, image ? styles['active'] : '')}
105
73
  >
106
- <i className="icon-delete" />
74
+ <div
75
+ className={`${styles['file-form']} file-form-rem ${error || errorMessage ? styles['error'] : ''}`}
76
+ onClick={() => document.querySelector(`.${name}`).click()}
77
+ >
78
+ <input
79
+ hidden
80
+ type="file"
81
+ className={name}
82
+ disabled={disabled}
83
+ onChange={(e) => handleCheckFile(e)}
84
+ />
85
+ {image ? (
86
+ <div className={`${styles['upload-file-content']} upload-file-content-rem`}>
87
+ {image === 'pdf' ? <PDF /> : <img src={image} alt={fileName} />}
88
+ </div>
89
+ ) : (
90
+ <div className={`${styles['file-form-inner-upload']} ile-form-inner-upload-rem`}>
91
+ <img src="../../assets/upload.svg" alt="" />
92
+ <span className={`${styles['upload-info']} upload-info-rem`}>
93
+ <span className={`${styles['upload-info-txt']} upload-info-txt-rem`}>Բեռնել</span>
94
+ </span>
95
+ <span className={`${styles['upload-info-size']} upload-info-size-rem`}>
96
+ Առավելագույնը {maxSize}ՄԲ ( {fileExtensions.toString().split(',').join(', ')} )
97
+ </span>
98
+ </div>
99
+ )}
100
+ </div>
101
+ {!disabled && (
102
+ <div
103
+ className={`${styles['delete-upload-icon']} delete-upload-icon-rem`}
104
+ onClick={handleRemoveFile}
105
+ >
106
+ <i className="icon-delete" />
107
+ </div>
108
+ )}
109
+
110
+ {error || errorMessage ? <span style={{ color: 'red' }}>{error || errorMessage}</span> : null}
107
111
  </div>
108
- }
109
-
110
- {
111
- error || errorMessage ? <span style={{ color: 'red' }}>{error || errorMessage}</span> : null
112
- }
113
- </div>
114
- </>
115
- );
116
- };
112
+ </>
113
+ )
114
+ }
117
115
 
118
116
  File.propTypes = {
119
- label: PropTypes.string,
120
- required: PropTypes.bool,
121
- disabled: PropTypes.bool,
122
- onChange: PropTypes.func,
123
- maxSize: PropTypes.number,
124
- className: PropTypes.string,
125
- errorMessage: PropTypes.string,
126
- defaultData: PropTypes.object,
127
- fileExtensions: PropTypes.arrayOf(PropTypes.string)
128
- };
117
+ label: PropTypes.string,
118
+ required: PropTypes.bool,
119
+ disabled: PropTypes.bool,
120
+ onChange: PropTypes.func,
121
+ maxSize: PropTypes.number,
122
+ className: PropTypes.string,
123
+ errorMessage: PropTypes.string,
124
+ defaultData: PropTypes.object,
125
+ fileExtensions: PropTypes.arrayOf(PropTypes.string),
126
+ }
129
127
 
130
128
  File.defaultProps = {
131
- maxSize: 5,
132
- required: false,
133
- fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
134
- };
129
+ maxSize: 5,
130
+ required: false,
131
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf'],
132
+ }
@@ -1,19 +1,19 @@
1
- import * as React from "react";
1
+ import * as React from 'react'
2
2
  const SvgArrow = ({ title, titleId, fillColor, ...props }) => (
3
- <svg
4
- width="15"
5
- height="9"
6
- viewBox="0 0 15 9"
7
- fill="none"
8
- xmlns="http://www.w3.org/2000/svg"
9
- aria-labelledby={titleId}
10
- {...props}
11
- >
12
- {title ? <title id={titleId}>{title}</title> : null}
13
- <path
14
- d="M7.988 8a.997.997 0 0 1-.64-.23l-5.989-5a1.002 1.002 0 0 1 .548-1.767.998.998 0 0 1 .73.227l5.35 4.48 5.351-4.32a.997.997 0 0 1 1.408.15 1 1 0 0 1-.14 1.46l-5.99 4.83a.997.997 0 0 1-.628.17Z"
15
- fill={fillColor ? fillColor : '#3C393E'}
16
- />
17
- </svg>
18
- );
19
- export default SvgArrow;
3
+ <svg
4
+ width="15"
5
+ height="9"
6
+ viewBox="0 0 15 9"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ aria-labelledby={titleId}
10
+ {...props}
11
+ >
12
+ {title ? <title id={titleId}>{title}</title> : null}
13
+ <path
14
+ d="M7.988 8a.997.997 0 0 1-.64-.23l-5.989-5a1.002 1.002 0 0 1 .548-1.767.998.998 0 0 1 .73.227l5.35 4.48 5.351-4.32a.997.997 0 0 1 1.408.15 1 1 0 0 1-.14 1.46l-5.99 4.83a.997.997 0 0 1-.628.17Z"
15
+ fill={fillColor ? fillColor : '#3C393E'}
16
+ />
17
+ </svg>
18
+ )
19
+ export default SvgArrow
@@ -1,19 +1,19 @@
1
- import * as React from "react";
1
+ import * as React from 'react'
2
2
  const SvgCaptchaArrowDown = ({ title, titleId, fillColor, ...props }) => (
3
- <svg
4
- width="12"
5
- height="15"
6
- viewBox="0 0 12 15"
7
- fill="none"
8
- xmlns="http://www.w3.org/2000/svg"
9
- aria-labelledby={titleId}
10
- {...props}
11
- >
12
- {title ? <title id={titleId}>{title}</title> : null}
13
- <path
14
- d="M6 0.00146537C5.77271 0.00146539 5.55473 0.0936418 5.39402 0.257718C5.2333 0.421795 5.14301 0.64433 5.14301 0.876368L5.14301 11.013L1.46482 7.25615C1.38514 7.17481 1.29055 7.11028 1.18644 7.06626C1.08233 7.02224 0.970753 6.99958 0.85807 6.99958C0.745386 6.99958 0.633807 7.02224 0.529701 7.06626C0.425595 7.11028 0.331002 7.17481 0.251322 7.25616C0.171643 7.3375 0.108438 7.43407 0.0653156 7.54035C0.0221934 7.64663 -5.45598e-07 7.76055 -5.35541e-07 7.87559C-5.25484e-07 7.99063 0.0221934 8.10454 0.0653157 8.21082C0.108438 8.3171 0.171643 8.41367 0.251322 8.49502L5.39325 13.7444C5.47286 13.8259 5.56743 13.8905 5.67155 13.9347C5.77566 13.9788 5.88728 14.0015 6 14.0015C6.11272 14.0015 6.22434 13.9788 6.32846 13.9347C6.43257 13.8905 6.52714 13.8259 6.60675 13.7444L11.7487 8.49502C11.9096 8.33073 12 8.10792 12 7.87559C12 7.64325 11.9096 7.42044 11.7487 7.25615C11.5878 7.09187 11.3695 6.99958 11.1419 6.99958C10.9144 6.99958 10.6961 7.09187 10.5352 7.25615L6.85699 11.013L6.85699 0.876368C6.85699 0.64433 6.7667 0.421794 6.60598 0.257718C6.44526 0.0936418 6.22729 0.00146535 6 0.00146537Z"
15
- fill={fillColor ? fillColor : '#00236A'}
16
- />
17
- </svg>
18
- );
19
- export default SvgCaptchaArrowDown;
3
+ <svg
4
+ width="12"
5
+ height="15"
6
+ viewBox="0 0 12 15"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ aria-labelledby={titleId}
10
+ {...props}
11
+ >
12
+ {title ? <title id={titleId}>{title}</title> : null}
13
+ <path
14
+ d="M6 0.00146537C5.77271 0.00146539 5.55473 0.0936418 5.39402 0.257718C5.2333 0.421795 5.14301 0.64433 5.14301 0.876368L5.14301 11.013L1.46482 7.25615C1.38514 7.17481 1.29055 7.11028 1.18644 7.06626C1.08233 7.02224 0.970753 6.99958 0.85807 6.99958C0.745386 6.99958 0.633807 7.02224 0.529701 7.06626C0.425595 7.11028 0.331002 7.17481 0.251322 7.25616C0.171643 7.3375 0.108438 7.43407 0.0653156 7.54035C0.0221934 7.64663 -5.45598e-07 7.76055 -5.35541e-07 7.87559C-5.25484e-07 7.99063 0.0221934 8.10454 0.0653157 8.21082C0.108438 8.3171 0.171643 8.41367 0.251322 8.49502L5.39325 13.7444C5.47286 13.8259 5.56743 13.8905 5.67155 13.9347C5.77566 13.9788 5.88728 14.0015 6 14.0015C6.11272 14.0015 6.22434 13.9788 6.32846 13.9347C6.43257 13.8905 6.52714 13.8259 6.60675 13.7444L11.7487 8.49502C11.9096 8.33073 12 8.10792 12 7.87559C12 7.64325 11.9096 7.42044 11.7487 7.25615C11.5878 7.09187 11.3695 6.99958 11.1419 6.99958C10.9144 6.99958 10.6961 7.09187 10.5352 7.25615L6.85699 11.013L6.85699 0.876368C6.85699 0.64433 6.7667 0.421794 6.60598 0.257718C6.44526 0.0936418 6.22729 0.00146535 6 0.00146537Z"
15
+ fill={fillColor ? fillColor : '#00236A'}
16
+ />
17
+ </svg>
18
+ )
19
+ export default SvgCaptchaArrowDown
@@ -1,19 +1,19 @@
1
- import * as React from "react";
1
+ import * as React from 'react'
2
2
  const SvgCaptchaArrowUp = ({ title, titleId, fillColor, ...props }) => (
3
- <svg
4
- width="12"
5
- height="15"
6
- viewBox="0 0 12 15"
7
- fill="none"
8
- xmlns="http://www.w3.org/2000/svg"
9
- aria-labelledby={titleId}
10
- {...props}
11
- >
12
- {title ? <title id={titleId}>{title}</title> : null}
13
- <path
14
- d="M6 14.9988C6.22729 14.9988 6.44527 14.9066 6.60598 14.7425C6.7667 14.5785 6.85699 14.3559 6.85699 14.1239L6.85699 3.98726L10.5352 7.74409C10.6149 7.82543 10.7095 7.88996 10.8136 7.93398C10.9177 7.97801 11.0292 8.00067 11.1419 8.00067C11.2546 8.00067 11.3662 7.97801 11.4703 7.93398C11.5744 7.88996 11.669 7.82543 11.7487 7.74409C11.8284 7.66274 11.8916 7.56617 11.9347 7.45989C11.9778 7.35361 12 7.2397 12 7.12466C12 7.00962 11.9778 6.89571 11.9347 6.78943C11.8916 6.68314 11.8284 6.58657 11.7487 6.50523L6.60675 1.25581C6.52714 1.17434 6.43257 1.1097 6.32845 1.06559C6.22434 1.02148 6.11272 0.998779 6 0.998779C5.88728 0.998779 5.77566 1.02148 5.67154 1.06559C5.56743 1.1097 5.47286 1.17434 5.39325 1.25581L0.251323 6.50523C0.0904038 6.66951 0 6.89233 0 7.12466C0 7.35699 0.0904038 7.57981 0.251323 7.74409C0.412243 7.90837 0.630497 8.00067 0.858071 8.00067C1.08565 8.00067 1.3039 7.90837 1.46482 7.74409L5.14301 3.98726L5.14301 14.1239C5.14301 14.3559 5.2333 14.5785 5.39402 14.7425C5.55473 14.9066 5.77271 14.9988 6 14.9988Z"
15
- fill={fillColor ? fillColor : '#00236A'}
16
- />
17
- </svg>
18
- );
19
- export default SvgCaptchaArrowUp;
3
+ <svg
4
+ width="12"
5
+ height="15"
6
+ viewBox="0 0 12 15"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ aria-labelledby={titleId}
10
+ {...props}
11
+ >
12
+ {title ? <title id={titleId}>{title}</title> : null}
13
+ <path
14
+ d="M6 14.9988C6.22729 14.9988 6.44527 14.9066 6.60598 14.7425C6.7667 14.5785 6.85699 14.3559 6.85699 14.1239L6.85699 3.98726L10.5352 7.74409C10.6149 7.82543 10.7095 7.88996 10.8136 7.93398C10.9177 7.97801 11.0292 8.00067 11.1419 8.00067C11.2546 8.00067 11.3662 7.97801 11.4703 7.93398C11.5744 7.88996 11.669 7.82543 11.7487 7.74409C11.8284 7.66274 11.8916 7.56617 11.9347 7.45989C11.9778 7.35361 12 7.2397 12 7.12466C12 7.00962 11.9778 6.89571 11.9347 6.78943C11.8916 6.68314 11.8284 6.58657 11.7487 6.50523L6.60675 1.25581C6.52714 1.17434 6.43257 1.1097 6.32845 1.06559C6.22434 1.02148 6.11272 0.998779 6 0.998779C5.88728 0.998779 5.77566 1.02148 5.67154 1.06559C5.56743 1.1097 5.47286 1.17434 5.39325 1.25581L0.251323 6.50523C0.0904038 6.66951 0 6.89233 0 7.12466C0 7.35699 0.0904038 7.57981 0.251323 7.74409C0.412243 7.90837 0.630497 8.00067 0.858071 8.00067C1.08565 8.00067 1.3039 7.90837 1.46482 7.74409L5.14301 3.98726L5.14301 14.1239C5.14301 14.3559 5.2333 14.5785 5.39402 14.7425C5.55473 14.9066 5.77271 14.9988 6 14.9988Z"
15
+ fill={fillColor ? fillColor : '#00236A'}
16
+ />
17
+ </svg>
18
+ )
19
+ export default SvgCaptchaArrowUp
@@ -1,21 +1,21 @@
1
- import * as React from "react";
1
+ import * as React from 'react'
2
2
  const SvgCheckboxChecked = ({ title, titleId, fillColor, ...props }) => (
3
- <svg
4
- width="16"
5
- height="16"
6
- viewBox="0 0 16 16"
7
- fill="none"
8
- xmlns="http://www.w3.org/2000/svg"
9
- aria-labelledby={titleId}
10
- {...props}
11
- >
12
- {title ? <title id={titleId}>{title}</title> : null}
13
- <path
14
- fillRule="evenodd"
15
- clipRule="evenodd"
16
- d="M12.8 0H3.2A3.2 3.2 0 0 0 0 3.2v9.6A3.2 3.2 0 0 0 3.2 16h9.6a3.2 3.2 0 0 0 3.2-3.2V3.2A3.2 3.2 0 0 0 12.8 0ZM6.85 10.966c.068.023.14.034.218.034.078 0 .151-.011.219-.034a.515.515 0 0 0 .19-.114l5.363-4.94A.496.496 0 0 0 13 5.53a.496.496 0 0 0-.16-.382.589.589 0 0 0-.415-.148.59.59 0 0 0-.416.148l-4.94 4.55-2.085-1.92a.579.579 0 0 0-.408-.147.579.579 0 0 0-.408.148A.52.52 0 0 0 4 8.16a.476.476 0 0 0 .154.383l2.506 2.308a.515.515 0 0 0 .19.114Z"
17
- fill={fillColor ? fillColor : '#00236A'}
18
- />
19
- </svg>
20
- );
21
- export default SvgCheckboxChecked;
3
+ <svg
4
+ width="16"
5
+ height="16"
6
+ viewBox="0 0 16 16"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ aria-labelledby={titleId}
10
+ {...props}
11
+ >
12
+ {title ? <title id={titleId}>{title}</title> : null}
13
+ <path
14
+ fillRule="evenodd"
15
+ clipRule="evenodd"
16
+ d="M12.8 0H3.2A3.2 3.2 0 0 0 0 3.2v9.6A3.2 3.2 0 0 0 3.2 16h9.6a3.2 3.2 0 0 0 3.2-3.2V3.2A3.2 3.2 0 0 0 12.8 0ZM6.85 10.966c.068.023.14.034.218.034.078 0 .151-.011.219-.034a.515.515 0 0 0 .19-.114l5.363-4.94A.496.496 0 0 0 13 5.53a.496.496 0 0 0-.16-.382.589.589 0 0 0-.415-.148.59.59 0 0 0-.416.148l-4.94 4.55-2.085-1.92a.579.579 0 0 0-.408-.147.579.579 0 0 0-.408.148A.52.52 0 0 0 4 8.16a.476.476 0 0 0 .154.383l2.506 2.308a.515.515 0 0 0 .19.114Z"
17
+ fill={fillColor ? fillColor : '#00236A'}
18
+ />
19
+ </svg>
20
+ )
21
+ export default SvgCheckboxChecked