react-restyle-components 0.1.58 → 0.1.60
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/lib/package.json +4 -5
- package/package.json +5 -6
- package/src/App.css +38 -0
- package/src/App.test.tsx +9 -0
- package/src/App.tsx +26 -0
- package/src/core-components/atoms/buttons/button.stories.tsx +42 -0
- package/src/core-components/atoms/buttons/buttons.component.tsx +33 -0
- package/src/core-components/atoms/buttons/buttons.test.tsx +13 -0
- package/src/core-components/atoms/check-box/checkBox.component.tsx +54 -0
- package/src/core-components/atoms/check-box/checkBox.stories.tsx +29 -0
- package/src/core-components/atoms/check-box/checkBox.test.tsx +11 -0
- package/src/core-components/atoms/date-picker/date-picker.component.tsx +60 -0
- package/src/core-components/atoms/date-picker/date-picker.stories.tsx +23 -0
- package/src/core-components/atoms/date-picker/date-picker.test.tsx +17 -0
- package/src/core-components/atoms/form/form.component.tsx +604 -0
- package/src/core-components/atoms/form/form.test.tsx +120 -0
- package/src/core-components/atoms/icons/icons.component.tsx +65 -0
- package/src/core-components/atoms/icons/icons.stories.tsx +24 -0
- package/src/core-components/atoms/icons/icons.test.tsx +15 -0
- package/src/core-components/atoms/input/input-otp.component.tsx +107 -0
- package/src/core-components/atoms/input/input-otp.styles.css +35 -0
- package/src/core-components/atoms/input/input-pin.component.tsx +144 -0
- package/src/core-components/atoms/input/input-pin.stories.tsx +25 -0
- package/src/core-components/atoms/input/input-pin.test.tsx +30 -0
- package/src/core-components/atoms/input/input.component.tsx +74 -0
- package/src/core-components/atoms/input/input.stories.tsx +26 -0
- package/src/core-components/atoms/input/input.styles.css +35 -0
- package/src/core-components/atoms/input/input.test.tsx +32 -0
- package/src/core-components/atoms/input-dropdown/input-dropdown.component.tsx +91 -0
- package/src/core-components/atoms/input-dropdown/input-dropdown.stories.tsx +22 -0
- package/src/core-components/atoms/input-dropdown/input-dropdown.test.tsx +16 -0
- package/src/core-components/atoms/loader/loader.component.tsx +78 -0
- package/src/core-components/atoms/loader/loader.stories.tsx +18 -0
- package/src/core-components/atoms/loader/loader.test.tsx +9 -0
- package/src/core-components/atoms/radio/radio.component.tsx +48 -0
- package/src/core-components/atoms/radio/radio.stories.tsx +27 -0
- package/src/core-components/atoms/radio/radio.test.tsx +11 -0
- package/src/core-components/atoms/stepper/stepper.component.tsx +72 -0
- package/src/core-components/atoms/stepper/stepper.stories.tsx +23 -0
- package/src/core-components/atoms/stepper/stepper.test.tsx +14 -0
- package/src/core-components/atoms/tabs/tabs.component.tsx +41 -0
- package/src/core-components/atoms/tabs/tabs.stories.tsx +27 -0
- package/src/core-components/atoms/tabs/tabs.test.tsx +19 -0
- package/src/core-components/atoms/timer/timer.component.tsx +89 -0
- package/src/core-components/atoms/timer/timer.test.tsx +16 -0
- package/src/core-components/atoms/tooltip/tooltip.component.test.tsx +10 -0
- package/src/core-components/atoms/tooltip/tooltip.component.tsx +54 -0
- package/src/core-components/atoms/tooltip/tooltip.stories.tsx +18 -0
- package/src/core-components/index.ts +21 -0
- package/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.tsx +18 -0
- package/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.tsx +182 -0
- package/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.tsx +55 -0
- package/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.tsx +23 -0
- package/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.tsx +190 -0
- package/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.tsx +35 -0
- package/src/core-components/molecules/css-multiline-input/css-multiline-input.component.tsx +135 -0
- package/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.tsx +18 -0
- package/src/core-components/molecules/css-multiline-input/css-multiline-input.test.tsx +11 -0
- package/src/core-components/molecules/css-multiline-input/css-properties.ts +177 -0
- package/src/core-utils/index.ts +1 -0
- package/src/core-utils/unit-test.utils.tsx +12 -0
- package/src/custom.d.ts +4 -0
- package/src/index.css +17 -0
- package/src/index.ts +1 -0
- package/src/index.tsx +18 -0
- package/src/library/assets/svg/DownArrow.svg +14 -0
- package/src/library/assets/svg/UpArrow.svg +14 -0
- package/src/library/assets/svg/checkedBox.svg +14 -0
- package/src/library/assets/svg/checkedRadio.svg +13 -0
- package/src/library/assets/svg/datePicker.svg +3 -0
- package/src/library/assets/svg/index.ts +38 -0
- package/src/library/assets/svg/timer copy.svg +3 -0
- package/src/library/assets/svg/timer.svg +3 -0
- package/src/library/assets/svg/unCheckbox.svg +3 -0
- package/src/library/assets/svg/uncheckRadio.svg +3 -0
- package/src/logo.svg +1 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/reportWebVitals.ts +16 -0
- package/src/setupTests.ts +5 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {AutoCompleteFilterSingleSelectMultiFieldsDisplay} from './auto-complete-filter-single-select-multiple-fields-display.component';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof AutoCompleteFilterSingleSelectMultiFieldsDisplay> = {
|
|
6
|
+
title:
|
|
7
|
+
'Design System/Molecules/AutoCompleteFilterSingleSelectMultiFieldsDisplay',
|
|
8
|
+
component: AutoCompleteFilterSingleSelectMultiFieldsDisplay,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
componentSubtitle: `import { AutoCompleteFilterSingleSelectMultiFieldsDisplay } from 'react-restyle-components'`,
|
|
12
|
+
// backgrounds: {
|
|
13
|
+
// default: 'light-gray',
|
|
14
|
+
// },
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof AutoCompleteFilterSingleSelectMultiFieldsDisplay>;
|
|
20
|
+
|
|
21
|
+
export const Primary: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
data: {
|
|
24
|
+
list: [
|
|
25
|
+
{code: 'Code1', name: 'Value1'},
|
|
26
|
+
{code: 'Code2', name: 'Value2'},
|
|
27
|
+
{code: 'Code3', name: 'Value3'},
|
|
28
|
+
],
|
|
29
|
+
displayKey: ['name'],
|
|
30
|
+
},
|
|
31
|
+
onSelect: (item) => {
|
|
32
|
+
console.log({item});
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import React, {useEffect, useState, useRef} from 'react';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import {Form} from '../..';
|
|
4
|
+
import {properties as propertiesObj} from './css-properties';
|
|
5
|
+
|
|
6
|
+
interface CSSMultilineProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: any;
|
|
12
|
+
onChange(item): void;
|
|
13
|
+
}
|
|
14
|
+
const mapToArray = (arr: any) => {
|
|
15
|
+
const res: any = [];
|
|
16
|
+
arr.forEach(function (obj, index) {
|
|
17
|
+
const key = Object.keys(obj)[0];
|
|
18
|
+
const value = key;
|
|
19
|
+
res.push([value, obj[key]]);
|
|
20
|
+
});
|
|
21
|
+
return res;
|
|
22
|
+
};
|
|
23
|
+
const data = mapToArray(propertiesObj);
|
|
24
|
+
export const CSSMultiline = ({
|
|
25
|
+
label = 'Main Box CSS',
|
|
26
|
+
defaultValue = '',
|
|
27
|
+
className = '',
|
|
28
|
+
style = {},
|
|
29
|
+
placeholder = "Like fontSize: 12,backgroundColor:'#000000',",
|
|
30
|
+
onChange,
|
|
31
|
+
}: CSSMultilineProps) => {
|
|
32
|
+
const value = useRef('');
|
|
33
|
+
const [properties, setProperties] = useState<Array<any>>([]);
|
|
34
|
+
const [isListOpen, setIsListOpen] = useState<boolean>(false);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
value.current = defaultValue;
|
|
37
|
+
setProperties(data);
|
|
38
|
+
}, [defaultValue]);
|
|
39
|
+
const useOutsideAlerter = (ref) => {
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
function handleClickOutside(event) {
|
|
42
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
43
|
+
setIsListOpen(false);
|
|
44
|
+
onChange(value.current);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
48
|
+
return () => {
|
|
49
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
50
|
+
};
|
|
51
|
+
}, [ref]);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const wrapperRef = useRef(null);
|
|
55
|
+
useOutsideAlerter(wrapperRef);
|
|
56
|
+
|
|
57
|
+
const list: Array<any> = [];
|
|
58
|
+
const filter = (css: string) => {
|
|
59
|
+
let matchString: any = css?.split(',');
|
|
60
|
+
matchString = matchString[matchString?.length - 1];
|
|
61
|
+
matchString = matchString?.split(':')[0];
|
|
62
|
+
matchString = matchString?.split("'")[0];
|
|
63
|
+
if (css?.length == 0) return setProperties(data);
|
|
64
|
+
else {
|
|
65
|
+
data?.map((item) => {
|
|
66
|
+
const innerItem: Array<any> = [];
|
|
67
|
+
const isItems = item[0]?.startsWith(matchString);
|
|
68
|
+
if (isItems) innerItem.push(item[0]);
|
|
69
|
+
if (innerItem?.length > 0) list.push([item[0], item[1]]);
|
|
70
|
+
});
|
|
71
|
+
setProperties(list);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const onKeyUp = (e) => {
|
|
76
|
+
setIsListOpen(true);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div className="flex flex-col w-full" ref={wrapperRef}>
|
|
81
|
+
<Form.MultilineInput
|
|
82
|
+
label={label}
|
|
83
|
+
style={{color: '#ffffff', backgroundColor: '#000000', ...style}}
|
|
84
|
+
placeholder={placeholder}
|
|
85
|
+
value={value.current}
|
|
86
|
+
className={className}
|
|
87
|
+
onKeyUp={onKeyUp}
|
|
88
|
+
onChange={(css) => {
|
|
89
|
+
value.current = css;
|
|
90
|
+
filter(css);
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
{isListOpen && (
|
|
94
|
+
<div style={{marginTop: -10}}>
|
|
95
|
+
<ul className="flex flex-col max-h-40 bg-black m-2 text-white overflow-y-scroll ">
|
|
96
|
+
{properties?.map((item, index) => (
|
|
97
|
+
<li key={index} className="flex flex-col gap-4 p-2">
|
|
98
|
+
<span className="underline">{item[0]}</span>
|
|
99
|
+
{item[1]?.map((prop) => (
|
|
100
|
+
<li
|
|
101
|
+
className="flex -mt-2 px-2 h-8 bg-slate-800 rounded-md items-center cursor-pointer"
|
|
102
|
+
onClick={() => {
|
|
103
|
+
let existsString: any = value.current?.split(',');
|
|
104
|
+
if (value.current.includes(',')) {
|
|
105
|
+
existsString = existsString.map((item) => {
|
|
106
|
+
if (item?.includes(':')) return item;
|
|
107
|
+
});
|
|
108
|
+
if (prop != 'number')
|
|
109
|
+
existsString.push(`${item[0]}:'${prop}',`);
|
|
110
|
+
else existsString.push(`${item[0]}:1,`);
|
|
111
|
+
value.current = existsString
|
|
112
|
+
.join(',')
|
|
113
|
+
.replaceAll(',,', ',');
|
|
114
|
+
} else {
|
|
115
|
+
if (prop != 'number')
|
|
116
|
+
value.current = `${item[0]}:'${prop}',`;
|
|
117
|
+
else {
|
|
118
|
+
value.current = `${item[0]}:1,`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
filter(existsString.join(''));
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
{' '}
|
|
125
|
+
{prop}{' '}
|
|
126
|
+
</li>
|
|
127
|
+
))}
|
|
128
|
+
</li>
|
|
129
|
+
))}
|
|
130
|
+
</ul>
|
|
131
|
+
</div>
|
|
132
|
+
)}
|
|
133
|
+
</div>
|
|
134
|
+
);
|
|
135
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {CSSMultiline} from './css-multiline-input.component';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof CSSMultiline> = {
|
|
6
|
+
title: 'Design System/Molecules/CSSMultiline',
|
|
7
|
+
component: CSSMultiline,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: {
|
|
10
|
+
componentSubtitle: `import { CSSMultiline } from 'react-restyle-components'`,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof CSSMultiline>;
|
|
15
|
+
|
|
16
|
+
export const Primary: Story = {
|
|
17
|
+
args: {},
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable testing-library/await-async-query */
|
|
2
|
+
/* eslint-disable testing-library/prefer-screen-queries */
|
|
3
|
+
/* eslint-disable testing-library/render-result-naming-convention */
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import {render} from '@core-utils';
|
|
6
|
+
import {CSSMultiline} from './css-multiline-input.component';
|
|
7
|
+
|
|
8
|
+
it('render CSSMultiline correctly', () => {
|
|
9
|
+
const result = render(<CSSMultiline onChange={() => {}} />);
|
|
10
|
+
expect(result).toMatchSnapshot();
|
|
11
|
+
});
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/* eslint-disable no-sparse-arrays */
|
|
2
|
+
export const properties = [
|
|
3
|
+
{
|
|
4
|
+
alignContent: [
|
|
5
|
+
'flex-start',
|
|
6
|
+
'flex-end',
|
|
7
|
+
'center',
|
|
8
|
+
'stretch',
|
|
9
|
+
'space-between',
|
|
10
|
+
'space-around',
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
{ alignItems: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline'] },
|
|
14
|
+
{
|
|
15
|
+
alignSelf: [
|
|
16
|
+
'auto',
|
|
17
|
+
'flex-start',
|
|
18
|
+
'flex-end',
|
|
19
|
+
'center',
|
|
20
|
+
'baseline',
|
|
21
|
+
'stretch',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{ flex: ['number', 'string'] },
|
|
25
|
+
{ flexDirection: ['row', 'row-reverse', 'column', 'column-reverse'] },
|
|
26
|
+
{ flexWrap: ['nowrap', 'wrap', 'wrap-reverse'] },
|
|
27
|
+
{ flexFlow: ['number'] },
|
|
28
|
+
{ flexGrow: ['number'] },
|
|
29
|
+
{ flexShrink: ['number'] },
|
|
30
|
+
{ flexBasis: ['number', 'string'] },
|
|
31
|
+
{
|
|
32
|
+
justifyContent: [
|
|
33
|
+
,
|
|
34
|
+
'flex-start',
|
|
35
|
+
'flex-end',
|
|
36
|
+
'center',
|
|
37
|
+
'space-around',
|
|
38
|
+
'space-between',
|
|
39
|
+
'space-evenly',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{ gap: ['number', 'string'] },
|
|
43
|
+
{ rowGap: ['number'] },
|
|
44
|
+
{ columnGap: ['number'] },
|
|
45
|
+
|
|
46
|
+
// Layout
|
|
47
|
+
|
|
48
|
+
{ aspectRatio: ['number', 'string'] },
|
|
49
|
+
{ bottom: ['number', 'string'] },
|
|
50
|
+
{ display: ['flex', 'none'] },
|
|
51
|
+
{ left: ['number', 'string'] },
|
|
52
|
+
{ position: ['absolute', 'relative'] },
|
|
53
|
+
{ right: ['number', 'string'] },
|
|
54
|
+
{ top: ['number', 'string'] },
|
|
55
|
+
{ overflow: ['hidden'] },
|
|
56
|
+
{ zIndex: ['number', 'string'] },
|
|
57
|
+
|
|
58
|
+
// Dimension
|
|
59
|
+
|
|
60
|
+
{ height: ['number', 'string'] },
|
|
61
|
+
{ maxHeight: ['number', 'string'] },
|
|
62
|
+
{ maxWidth: ['number', 'string'] },
|
|
63
|
+
{ minHeight: ['number', 'string'] },
|
|
64
|
+
{ minWidth: ['number', 'string'] },
|
|
65
|
+
{ width: ['number', 'string'] },
|
|
66
|
+
|
|
67
|
+
// Color
|
|
68
|
+
|
|
69
|
+
{ backgroundColor: ['string'] },
|
|
70
|
+
{ color: ['string'] },
|
|
71
|
+
{ opacity: ['number'] },
|
|
72
|
+
|
|
73
|
+
// Text
|
|
74
|
+
|
|
75
|
+
{ fontSize: ['number', 'string'] },
|
|
76
|
+
{ fontFamily: ['string'] },
|
|
77
|
+
{ fontStyle: ['string', 'normal'] },
|
|
78
|
+
{
|
|
79
|
+
fontWeight: [
|
|
80
|
+
,
|
|
81
|
+
'number',
|
|
82
|
+
'thin',
|
|
83
|
+
'hairline',
|
|
84
|
+
'ultralight',
|
|
85
|
+
'extralight',
|
|
86
|
+
'light',
|
|
87
|
+
'normal',
|
|
88
|
+
'medium',
|
|
89
|
+
'semibold',
|
|
90
|
+
'demibold',
|
|
91
|
+
'bold',
|
|
92
|
+
'ultrabold',
|
|
93
|
+
'extrabold',
|
|
94
|
+
'heavy',
|
|
95
|
+
'black',
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{ letterSpacing: ['number', 'string'] },
|
|
99
|
+
{ lineHeight: ['number', 'string'] },
|
|
100
|
+
{ maxLines: ['number'] }, // ']
|
|
101
|
+
{ textAlign: ['left', 'right', 'center', 'justify'] }, // ']
|
|
102
|
+
{
|
|
103
|
+
textDecoration: [
|
|
104
|
+
,
|
|
105
|
+
'line-through',
|
|
106
|
+
'underline',
|
|
107
|
+
'none',
|
|
108
|
+
'line-through underline',
|
|
109
|
+
'underline line-through',
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{ textDecorationColor: ['string'] },
|
|
113
|
+
{ textDecorationStyle: ['dashed', 'dotted', 'solid', 'string'] }, // ']
|
|
114
|
+
{ textIndent: ['any'] }, // ']
|
|
115
|
+
{ textOverflow: ['ellipsis'] },
|
|
116
|
+
{ textTransform: ['capitalize', 'lowercase', 'uppercase'] },
|
|
117
|
+
{ verticalAlign: ['sub', 'super'] },
|
|
118
|
+
|
|
119
|
+
// Sizing/positioning
|
|
120
|
+
|
|
121
|
+
{ objectFit: ['string'] },
|
|
122
|
+
{ objectPosition: ['number', 'string'] },
|
|
123
|
+
{ objectPositionX: ['number', 'string'] },
|
|
124
|
+
{ objectPositionY: ['number', 'string'] },
|
|
125
|
+
|
|
126
|
+
// Margin/padding
|
|
127
|
+
|
|
128
|
+
{ margin: ['number', 'string'] },
|
|
129
|
+
{ marginHorizontal: ['number', 'string'] },
|
|
130
|
+
{ marginVertical: ['number', 'string'] },
|
|
131
|
+
{ marginTop: ['number', 'string'] },
|
|
132
|
+
{ marginRight: ['number', 'string'] },
|
|
133
|
+
{ marginBottom: ['number', 'string'] },
|
|
134
|
+
{ marginLeft: ['number', 'string'] },
|
|
135
|
+
{ padding: ['number', 'string'] },
|
|
136
|
+
{ paddingHorizontal: ['number', 'string'] },
|
|
137
|
+
{ paddingVertical: ['number', 'string'] },
|
|
138
|
+
{ paddingTop: ['number', 'string'] },
|
|
139
|
+
{ paddingRight: ['number', 'string'] },
|
|
140
|
+
{ paddingBottom: ['number', 'string'] },
|
|
141
|
+
{ paddingLeft: ['number', 'string'] },
|
|
142
|
+
|
|
143
|
+
// Transformations
|
|
144
|
+
|
|
145
|
+
{ transform: ['string'] },
|
|
146
|
+
{ transformOrigin: ['number', 'string'] },
|
|
147
|
+
{ transformOriginX: ['number', 'string'] },
|
|
148
|
+
{ transformOriginY: ['number', 'string'] },
|
|
149
|
+
|
|
150
|
+
// Borders
|
|
151
|
+
|
|
152
|
+
{ border: ['number', 'string'] },
|
|
153
|
+
{ borderWidth: ['number', 'string'] },
|
|
154
|
+
{ borderColor: ['string'] },
|
|
155
|
+
{ borderStyle: ['dashed', 'dotted', 'solid'] },
|
|
156
|
+
{ borderTop: ['number', 'string'] },
|
|
157
|
+
{ borderTopColor: ['string'] },
|
|
158
|
+
{ borderTopStyle: ['dashed', 'dotted', 'solid'] }, // ']
|
|
159
|
+
{ borderTopWidth: ['number', 'string'] },
|
|
160
|
+
{ borderRight: ['number', 'string'] },
|
|
161
|
+
{ borderRightColor: ['string'] },
|
|
162
|
+
{ borderRightStyle: ['dashed', 'dotted', 'solid'] }, // ']
|
|
163
|
+
{ borderRightWidth: ['number', 'string'] },
|
|
164
|
+
{ borderBottom: ['number', 'string'] },
|
|
165
|
+
{ borderBottomColor: ['string'] },
|
|
166
|
+
{ borderBottomStyle: ['dashed', 'dotted', 'solid'] }, // ']
|
|
167
|
+
{ borderBottomWidth: ['number', 'string'] },
|
|
168
|
+
{ borderLeft: ['number', 'string'] },
|
|
169
|
+
{ borderLeftColor: ['string'] },
|
|
170
|
+
{ borderLeftStyle: ['dashed', 'dotted', 'solid'] }, // ']
|
|
171
|
+
{ borderLeftWidth: ['number', 'string'] },
|
|
172
|
+
{ borderTopLeftRadius: ['number', 'string'] },
|
|
173
|
+
{ borderTopRightRadius: ['number', 'string'] },
|
|
174
|
+
{ borderBottomRightRadius: ['number', 'string'] },
|
|
175
|
+
{ borderBottomLeftRadius: ['number', 'string'] },
|
|
176
|
+
{ borderRadius: ['number', 'string'] },
|
|
177
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './unit-test.utils';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {render as renderComponent} from '@testing-library/react';
|
|
3
|
+
|
|
4
|
+
const Providers = ({children}: any) => {
|
|
5
|
+
return <div>{children}</div>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const render = (Component: JSX.Element) => {
|
|
9
|
+
return renderComponent(Component, {wrapper: Providers});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {render, Providers};
|
package/src/custom.d.ts
ADDED
package/src/index.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
|
8
|
+
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
9
|
+
sans-serif;
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
code {
|
|
15
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
|
16
|
+
monospace;
|
|
17
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './core-components';
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import App from './App';
|
|
5
|
+
import reportWebVitals from './reportWebVitals';
|
|
6
|
+
|
|
7
|
+
const root = ReactDOM.createRoot(
|
|
8
|
+
document.getElementById('root') as HTMLElement
|
|
9
|
+
);
|
|
10
|
+
root.render(
|
|
11
|
+
<div>
|
|
12
|
+
<App />
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
// If you want to start measuring performance in your app, pass a function
|
|
16
|
+
// to log results (for example: reportWebVitals(console.log))
|
|
17
|
+
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
18
|
+
reportWebVitals();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
className="ml-2 w-4 h-4 absolute right-0"
|
|
3
|
+
fill="none"
|
|
4
|
+
stroke="#E7503E"
|
|
5
|
+
viewBox="0 -6 20 20"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
strokeLinecap="round"
|
|
10
|
+
strokeLinejoin="round"
|
|
11
|
+
strokeWidth="2"
|
|
12
|
+
d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
className="ml-2 w-4 h-4 absolute right-0"
|
|
3
|
+
fill="none"
|
|
4
|
+
stroke="#E7503E"
|
|
5
|
+
viewBox="0 -6 20 20"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
strokeLinecap="round"
|
|
10
|
+
strokeLinejoin="round"
|
|
11
|
+
strokeWidth="2"
|
|
12
|
+
d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" >
|
|
2
|
+
<rect width="15" height="15" fill="#E5E5E5"/>
|
|
3
|
+
<g clip-path="url(#clip0_0_1)">
|
|
4
|
+
<rect width="360" height="640" transform="translate(-20 -399)" fill="white"/>
|
|
5
|
+
<rect x="0.5" y="0.5" width="14" height="14" rx="1.5" fill="white" />
|
|
6
|
+
<rect x="0.5" y="0.5" width="14" height="14" rx="1.5" />
|
|
7
|
+
<path d="M4 7.33333L6.33333 10L11.6667 5" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_0_1">
|
|
11
|
+
<rect width="360" height="640" fill="white" transform="translate(-20 -399)"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" >
|
|
2
|
+
<rect width="20" height="20" fill="#E5E5E5"/>
|
|
3
|
+
<g clip-path="url(#clip0_0_1)">
|
|
4
|
+
<rect width="360" height="2645" transform="translate(-253 -1410)" fill="white"/>
|
|
5
|
+
<circle cx="10" cy="10" r="9.5" stroke="#E7503D"/>
|
|
6
|
+
<circle cx="10" cy="10" r="6" fill="#E7503D"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_0_1">
|
|
10
|
+
<rect width="360" height="2645" fill="white" transform="translate(-253 -1410)"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.4 1.2H11.4V0.3C11.4 0.220435 11.3684 0.144129 11.3121 0.087868C11.2559 0.0316071 11.1796 0 11.1 0C11.0204 0 10.9441 0.0316071 10.8879 0.087868C10.8316 0.144129 10.8 0.220435 10.8 0.3V1.2H4.2V0.3C4.2 0.220435 4.16839 0.144129 4.11213 0.087868C4.05587 0.0316071 3.97957 0 3.9 0C3.82044 0 3.74413 0.0316071 3.68787 0.087868C3.63161 0.144129 3.6 0.220435 3.6 0.3V1.2H0.6C0.44087 1.2 0.288258 1.26321 0.175736 1.37574C0.0632141 1.48826 0 1.64087 0 1.8L0 13.8C0 13.9591 0.0632141 14.1117 0.175736 14.2243C0.288258 14.3368 0.44087 14.4 0.6 14.4H14.4C14.5591 14.4 14.7117 14.3368 14.8243 14.2243C14.9368 14.1117 15 13.9591 15 13.8V1.8C15 1.64087 14.9368 1.48826 14.8243 1.37574C14.7117 1.26321 14.5591 1.2 14.4 1.2ZM14.4 13.8H0.6V4.8H14.4V13.8ZM14.4 4.2H0.6V1.8H14.4V4.2Z" fill="#E7503D" stroke="#E7503D" stroke-width="0.5"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import UnCheckbox from '../../../library/assets/svg/unCheckbox.svg';
|
|
2
|
+
import CheckedBox from '../../../library/assets/svg/checkedBox.svg';
|
|
3
|
+
import DatePickerSvg from '../../../library/assets/svg/datePicker.svg';
|
|
4
|
+
import CheckedRadio from '../../../library/assets/svg/checkedRadio.svg';
|
|
5
|
+
import UncheckRadio from '../../../library/assets/svg/uncheckRadio.svg';
|
|
6
|
+
import TimerSVG from '../../../library/assets/svg/timer.svg';
|
|
7
|
+
import UpArrow from '../../../library/assets/svg/UpArrow.svg';
|
|
8
|
+
import DownArrow from '../../../library/assets/svg/DownArrow.svg';
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
UnCheckbox,
|
|
12
|
+
CheckedBox,
|
|
13
|
+
DatePickerSvg,
|
|
14
|
+
CheckedRadio,
|
|
15
|
+
UncheckRadio,
|
|
16
|
+
TimerSVG,
|
|
17
|
+
UpArrow,
|
|
18
|
+
DownArrow,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// import {ReactComponent as UnCheckbox} from '../../../library/assets/svg/unCheckbox.svg';
|
|
22
|
+
// import {ReactComponent as CheckedBox} from '../../../library/assets/svg/checkedBox.svg';
|
|
23
|
+
// import {ReactComponent as DatePickerSvg} from '../../../library/assets/svg/datePicker.svg';
|
|
24
|
+
// import {ReactComponent as CheckedRadio} from '../../../library/assets/svg/checkedRadio.svg';
|
|
25
|
+
// import {ReactComponent as UncheckRadio} from '../../../library/assets/svg/uncheckRadio.svg';
|
|
26
|
+
// import {ReactComponent as TimerSVG} from '../../../library/assets/svg/timer.svg';
|
|
27
|
+
// import {ReactComponent as UpArrow} from '../../../library/assets/svg/UpArrow.svg';
|
|
28
|
+
// import {ReactComponent as DownArrow} from '../../../library/assets/svg/DownArrow.svg';
|
|
29
|
+
// export {
|
|
30
|
+
// UnCheckbox,
|
|
31
|
+
// CheckedBox,
|
|
32
|
+
// DatePickerSvg,
|
|
33
|
+
// CheckedRadio,
|
|
34
|
+
// UncheckRadio,
|
|
35
|
+
// TimerSVG,
|
|
36
|
+
// UpArrow,
|
|
37
|
+
// DownArrow,
|
|
38
|
+
// };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.0001 8.50005C16.0001 9.73343 15.6959 10.9478 15.1145 12.0355C14.533 13.1233 13.6923 14.0508 12.6668 14.736C11.6413 15.4213 10.4626 15.843 9.23515 15.9639C8.0077 16.0848 6.76939 15.9011 5.62989 15.4291C4.49039 14.9571 3.48489 14.2114 2.70244 13.2579C1.91999 12.3045 1.38474 11.1728 1.14412 9.96316C0.903492 8.75348 0.964912 7.50312 1.32294 6.32285C1.68096 5.14257 2.32454 4.06881 3.19667 3.19667C3.25817 3.13727 3.34054 3.1044 3.42604 3.10514C3.51154 3.10588 3.59332 3.14018 3.65378 3.20064C3.71424 3.2611 3.74854 3.34289 3.74928 3.42838C3.75002 3.51388 3.71716 3.59625 3.65776 3.65776C2.54364 4.76703 1.84472 6.22559 1.67816 7.78893C1.51161 9.35226 1.88754 10.9253 2.74293 12.2444C3.59833 13.5635 4.8812 14.5485 6.37648 15.0342C7.87176 15.5199 9.48855 15.4768 10.9558 14.9121C12.4231 14.3474 13.6517 13.2955 14.4356 11.9327C15.2195 10.5699 15.511 8.97903 15.2614 7.42679C15.0118 5.87456 14.2362 4.45531 13.0645 3.40697C11.8929 2.35863 10.3965 1.74493 8.82614 1.66874V4.58698C8.82614 4.67346 8.79178 4.75641 8.73063 4.81756C8.66947 4.87871 8.58653 4.91307 8.50005 4.91307C8.41356 4.91307 8.33062 4.87871 8.26947 4.81756C8.20831 4.75641 8.17396 4.67346 8.17396 4.58698V1.32609C8.17396 1.23961 8.20831 1.15666 8.26947 1.09551C8.33062 1.03436 8.41356 1 8.50005 1C10.4885 1.00226 12.3948 1.79317 13.8009 3.19921C15.2069 4.60525 15.9978 6.5116 16.0001 8.50005ZM8.26944 8.80977C8.29966 8.84027 8.33562 8.8645 8.37524 8.88107C8.41485 8.89764 8.45735 8.90622 8.5003 8.90632C8.54324 8.90642 8.58578 8.89804 8.62547 8.88165C8.66517 8.86527 8.70123 8.8412 8.7316 8.81084C8.76197 8.78048 8.78605 8.74442 8.80244 8.70473C8.81884 8.66504 8.82723 8.62251 8.82714 8.57956C8.82706 8.53662 8.81849 8.49412 8.80193 8.4545C8.78537 8.41487 8.76115 8.37891 8.73066 8.34868L5.39059 5.00861C5.32919 4.94873 5.24666 4.91546 5.16089 4.916C5.07513 4.91653 4.99303 4.95084 4.93237 5.01148C4.87172 5.07213 4.8374 5.15422 4.83685 5.23999C4.8363 5.32576 4.86957 5.40829 4.92944 5.4697L8.26944 8.80977ZM1.65218 2.30436C1.78117 2.30436 1.90726 2.26611 2.01451 2.19444C2.12176 2.12278 2.20535 2.02093 2.25471 1.90176C2.30407 1.78259 2.31699 1.65145 2.29182 1.52494C2.26666 1.39843 2.20455 1.28223 2.11334 1.19102C2.02213 1.09981 1.90592 1.0377 1.77941 1.01253C1.6529 0.987367 1.52177 1.00028 1.4026 1.04964C1.28343 1.09901 1.18157 1.1826 1.10991 1.28985C1.03825 1.3971 1 1.52319 1 1.65218C1 1.82515 1.06871 1.99103 1.19102 2.11334C1.31333 2.23564 1.47921 2.30436 1.65218 2.30436Z" fill="#212721" stroke="#E7503D"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.0001 8.50005C16.0001 9.73343 15.6959 10.9478 15.1145 12.0355C14.533 13.1233 13.6923 14.0508 12.6668 14.736C11.6413 15.4213 10.4626 15.843 9.23515 15.9639C8.0077 16.0848 6.76939 15.9011 5.62989 15.4291C4.49039 14.9571 3.48489 14.2114 2.70244 13.2579C1.91999 12.3045 1.38474 11.1728 1.14412 9.96316C0.903492 8.75348 0.964912 7.50312 1.32294 6.32285C1.68096 5.14257 2.32454 4.06881 3.19667 3.19667C3.25817 3.13727 3.34054 3.1044 3.42604 3.10514C3.51154 3.10588 3.59332 3.14018 3.65378 3.20064C3.71424 3.2611 3.74854 3.34289 3.74928 3.42838C3.75002 3.51388 3.71716 3.59625 3.65776 3.65776C2.54364 4.76703 1.84472 6.22559 1.67816 7.78893C1.51161 9.35226 1.88754 10.9253 2.74293 12.2444C3.59833 13.5635 4.8812 14.5485 6.37648 15.0342C7.87176 15.5199 9.48855 15.4768 10.9558 14.9121C12.4231 14.3474 13.6517 13.2955 14.4356 11.9327C15.2195 10.5699 15.511 8.97903 15.2614 7.42679C15.0118 5.87456 14.2362 4.45531 13.0645 3.40697C11.8929 2.35863 10.3965 1.74493 8.82614 1.66874V4.58698C8.82614 4.67346 8.79178 4.75641 8.73063 4.81756C8.66947 4.87871 8.58653 4.91307 8.50005 4.91307C8.41356 4.91307 8.33062 4.87871 8.26947 4.81756C8.20831 4.75641 8.17396 4.67346 8.17396 4.58698V1.32609C8.17396 1.23961 8.20831 1.15666 8.26947 1.09551C8.33062 1.03436 8.41356 1 8.50005 1C10.4885 1.00226 12.3948 1.79317 13.8009 3.19921C15.2069 4.60525 15.9978 6.5116 16.0001 8.50005ZM8.26944 8.80977C8.29966 8.84027 8.33562 8.8645 8.37524 8.88107C8.41485 8.89764 8.45735 8.90622 8.5003 8.90632C8.54324 8.90642 8.58578 8.89804 8.62547 8.88165C8.66517 8.86527 8.70123 8.8412 8.7316 8.81084C8.76197 8.78048 8.78605 8.74442 8.80244 8.70473C8.81884 8.66504 8.82723 8.62251 8.82714 8.57956C8.82706 8.53662 8.81849 8.49412 8.80193 8.4545C8.78537 8.41487 8.76115 8.37891 8.73066 8.34868L5.39059 5.00861C5.32919 4.94873 5.24666 4.91546 5.16089 4.916C5.07513 4.91653 4.99303 4.95084 4.93237 5.01148C4.87172 5.07213 4.8374 5.15422 4.83685 5.23999C4.8363 5.32576 4.86957 5.40829 4.92944 5.4697L8.26944 8.80977ZM1.65218 2.30436C1.78117 2.30436 1.90726 2.26611 2.01451 2.19444C2.12176 2.12278 2.20535 2.02093 2.25471 1.90176C2.30407 1.78259 2.31699 1.65145 2.29182 1.52494C2.26666 1.39843 2.20455 1.28223 2.11334 1.19102C2.02213 1.09981 1.90592 1.0377 1.77941 1.01253C1.6529 0.987367 1.52177 1.00028 1.4026 1.04964C1.28343 1.09901 1.18157 1.1826 1.10991 1.28985C1.03825 1.3971 1 1.52319 1 1.65218C1 1.82515 1.06871 1.99103 1.19102 2.11334C1.31333 2.23564 1.47921 2.30436 1.65218 2.30436Z" fill="#212721" stroke="#E7503D"/>
|
|
3
|
+
</svg>
|
package/src/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="react-scripts" />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// import {ReportHandler} from 'web-vitals';
|
|
2
|
+
|
|
3
|
+
// const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
4
|
+
// if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
5
|
+
// import('web-vitals').then(({getCLS, getFID, getFCP, getLCP, getTTFB}) => {
|
|
6
|
+
// getCLS(onPerfEntry);
|
|
7
|
+
// getFID(onPerfEntry);
|
|
8
|
+
// getFCP(onPerfEntry);
|
|
9
|
+
// getLCP(onPerfEntry);
|
|
10
|
+
// getTTFB(onPerfEntry);
|
|
11
|
+
// });
|
|
12
|
+
// }
|
|
13
|
+
// };
|
|
14
|
+
|
|
15
|
+
// export default reportWebVitals;
|
|
16
|
+
export {};
|