@arquimedes.co/eureka-forms 3.0.1-refactor → 3.0.3-refactor
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/FormSteps/AYFStepMapper.js +2 -12
- package/dist/FormSteps/CBRStepMapper.js +1 -7
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +1 -1
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.js +4 -4
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +16 -18
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +2 -2
- package/dist/Icons/@ErkIcon.d.ts +14 -0
- package/dist/Icons/@ErkIcon.js +10 -0
- package/dist/Icons/ArrowLeftIcon.d.ts +2 -2
- package/dist/Icons/ArrowLeftIcon.js +4 -3
- package/dist/Icons/ArrowRightIcon.d.ts +2 -2
- package/dist/Icons/ArrowRightIcon.js +4 -3
- package/dist/Icons/CalendarIcon.d.ts +2 -2
- package/dist/Icons/CalendarIcon.js +4 -3
- package/dist/Icons/CheckCircleIcon.d.ts +2 -2
- package/dist/Icons/CheckCircleIcon.js +4 -3
- package/dist/Icons/CheckboxCheckedIcon.d.ts +2 -2
- package/dist/Icons/CheckboxCheckedIcon.js +4 -3
- package/dist/Icons/CheckboxUncheckedIcon.d.ts +2 -2
- package/dist/Icons/CheckboxUncheckedIcon.js +4 -3
- package/dist/Icons/ClockIcon.d.ts +2 -2
- package/dist/Icons/ClockIcon.js +4 -3
- package/dist/Icons/CloseIcon.d.ts +2 -2
- package/dist/Icons/CloseIcon.js +4 -3
- package/dist/Icons/Construction/LeakIcon.d.ts +2 -2
- package/dist/Icons/Construction/LeakIcon.js +4 -3
- package/dist/Icons/Construction/ProjectIcon.d.ts +2 -2
- package/dist/Icons/Construction/ProjectIcon.js +4 -3
- package/dist/Icons/Construction/PropertyIcon.d.ts +2 -2
- package/dist/Icons/Construction/PropertyIcon.js +5 -4
- package/dist/Icons/Construction/SpaceIcon.d.ts +2 -2
- package/dist/Icons/Construction/SpaceIcon.js +4 -3
- package/dist/Icons/DeleteIcon.d.ts +2 -2
- package/dist/Icons/DeleteIcon.js +4 -3
- package/dist/Icons/DocumentIcon.d.ts +2 -2
- package/dist/Icons/DocumentIcon.js +4 -3
- package/dist/Icons/Entities/CheckListIcon.d.ts +2 -2
- package/dist/Icons/Entities/CheckListIcon.js +4 -3
- package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -2
- package/dist/Icons/Entities/GenericEntityIcon.js +4 -3
- package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -2
- package/dist/Icons/Entities/HandshakeIcon.js +4 -3
- package/dist/Icons/Entities/SupplierIcon.d.ts +2 -2
- package/dist/Icons/Entities/SupplierIcon.js +4 -3
- package/dist/Icons/ErrorIcon.d.ts +2 -2
- package/dist/Icons/ErrorIcon.js +4 -3
- package/dist/Icons/ExpandLessIcon.d.ts +2 -2
- package/dist/Icons/ExpandLessIcon.js +4 -3
- package/dist/Icons/ExpandMoreIcon.d.ts +2 -2
- package/dist/Icons/ExpandMoreIcon.js +4 -3
- package/dist/Icons/FileIcon.d.ts +2 -2
- package/dist/Icons/FileIcon.js +4 -3
- package/dist/Icons/InfoIcon.d.ts +2 -2
- package/dist/Icons/InfoIcon.js +4 -3
- package/dist/Icons/LocationIcon.d.ts +2 -2
- package/dist/Icons/LocationIcon.js +4 -3
- package/dist/Icons/PersonIcon.d.ts +2 -2
- package/dist/Icons/PersonIcon.js +5 -4
- package/dist/Icons/Ratings/DislikeIcon.d.ts +2 -2
- package/dist/Icons/Ratings/DislikeIcon.js +4 -3
- package/dist/Icons/Ratings/DissatisfiedIcon.d.ts +2 -2
- package/dist/Icons/Ratings/DissatisfiedIcon.js +4 -3
- package/dist/Icons/Ratings/LikeIcon.d.ts +2 -2
- package/dist/Icons/Ratings/LikeIcon.js +4 -3
- package/dist/Icons/Ratings/SatisfiedIcon.d.ts +2 -2
- package/dist/Icons/Ratings/SatisfiedIcon.js +4 -3
- package/dist/Icons/Ratings/StarIcon.d.ts +2 -2
- package/dist/Icons/Ratings/StarIcon.js +4 -3
- package/dist/Icons/Ratings/VeryDissatisfiedIcon.d.ts +2 -2
- package/dist/Icons/Ratings/VeryDissatisfiedIcon.js +4 -3
- package/dist/Icons/Ratings/VerySatisfiedIcon.d.ts +2 -2
- package/dist/Icons/Ratings/VerySatisfiedIcon.js +4 -3
- package/dist/Icons/WarningIcon.d.ts +2 -2
- package/dist/Icons/WarningIcon.js +4 -3
- package/dist/Shared/ErkDatePicker/ErkDatePicker.js +7 -13
- package/dist/Shared/ErkPhoneInput/EkrPhoneInput.js +3 -3
- package/dist/Shared/ErkSelect/ErkSelect.js +12 -12
- package/dist/Shared/ErkSmartSelect/ErkSmartSelect.js +5 -5
- package/dist/Shared/ErkTextField/ErkTextField.js +10 -9
- package/dist/Shared/ErkTimePicker/ErkTimePicker.js +1 -1
- package/dist/Shared/InputIcon/InputIcon.js +2 -10
- package/dist/Shared/Rating/Ratings/ScaleRating.js +3 -3
- package/dist/Shared/Toggle/Toggle.js +1 -1
- package/dist/Utils/MaterialProviders.d.ts +0 -1
- package/dist/Utils/MaterialProviders.js +0 -1
- package/dist/Utils/MuiClassnameSetup.d.ts +1 -1
- package/dist/Utils/MuiClassnameSetup.js +1 -1
- package/dist/Widget.d.ts +1 -1
- package/dist/Widget.js +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/package.json +26 -26
- package/dist/Icons/@IconTypes.d.ts +0 -6
- package/dist/Icons/@IconTypes.js +0 -1
- package/dist/Icons/{ErkIcon.module.css → @ErkIcon.css} +1 -1
|
@@ -5,6 +5,7 @@ import { useAppSelector } from '../../hooks';
|
|
|
5
5
|
export const StyledTextField = styled(MuiTextField)(({ theme, padding = '6px 12px', ...props }) => ({
|
|
6
6
|
borderRadius: 10,
|
|
7
7
|
opacity: props.disabled ? 0.5 : 1,
|
|
8
|
+
backgroundColor: theme.palette.stepBackgroundColor.default,
|
|
8
9
|
'& input, textarea': {
|
|
9
10
|
cursor: props.disabled || props.readOnly ? 'default' : 'text',
|
|
10
11
|
padding,
|
|
@@ -15,7 +16,7 @@ export const StyledTextField = styled(MuiTextField)(({ theme, padding = '6px 12p
|
|
|
15
16
|
height: '1.188em', //Esto.
|
|
16
17
|
borderRadius: 10,
|
|
17
18
|
},
|
|
18
|
-
'& .
|
|
19
|
+
'& .Erk-MuiFormLabel-root:not(.Erk-MuiInputLabel-shrink)': {
|
|
19
20
|
transform: 'translate(12px, 5px) scale(1)', //Quitando esto y el height queda con height de 40px
|
|
20
21
|
},
|
|
21
22
|
'& label': {
|
|
@@ -25,12 +26,12 @@ export const StyledTextField = styled(MuiTextField)(({ theme, padding = '6px 12p
|
|
|
25
26
|
textOverflow: 'ellipsis',
|
|
26
27
|
},
|
|
27
28
|
'& input + fieldset': {},
|
|
28
|
-
'& .
|
|
29
|
+
'& .Erk-MuiOutlinedInput-root': {
|
|
29
30
|
'&.Mui-focused fieldset': {
|
|
30
31
|
borderColor: theme.palette.primary.main,
|
|
31
32
|
borderWidth: 2,
|
|
32
33
|
},
|
|
33
|
-
'& .
|
|
34
|
+
'& .Erk-MuiOutlinedInput-notchedOutline': {
|
|
34
35
|
borderRadius: 10,
|
|
35
36
|
borderColor: theme.palette.outline.main,
|
|
36
37
|
'& legend': {
|
|
@@ -38,7 +39,7 @@ export const StyledTextField = styled(MuiTextField)(({ theme, padding = '6px 12p
|
|
|
38
39
|
},
|
|
39
40
|
},
|
|
40
41
|
},
|
|
41
|
-
'& .
|
|
42
|
+
'& .Erk-MuiOutlinedInput-root:hover:not(.Mui-readOnly) .Erk-MuiOutlinedInput-notchedOutline': {
|
|
42
43
|
borderColor: props.disabled || props.readOnly ? theme.palette.outline.main : theme.palette.primary.main,
|
|
43
44
|
},
|
|
44
45
|
'& label.Mui-focused': {
|
|
@@ -47,23 +48,23 @@ export const StyledTextField = styled(MuiTextField)(({ theme, padding = '6px 12p
|
|
|
47
48
|
'& .Mui-error': {
|
|
48
49
|
color: theme.palette.error.main,
|
|
49
50
|
},
|
|
50
|
-
'& .
|
|
51
|
+
'& .Erk-MuiInputBase-adornedEnd': {
|
|
51
52
|
paddingRight: '7px',
|
|
52
53
|
},
|
|
53
|
-
'& .
|
|
54
|
+
'& .Erk-MuiFormHelperText-root': {
|
|
54
55
|
color: theme.palette.helperText.primary,
|
|
55
56
|
position: 'relative',
|
|
56
57
|
marginRight: props.maxLength ? 40 : 14,
|
|
57
58
|
overflow: 'hidden',
|
|
58
59
|
textOverflow: 'ellipsis',
|
|
59
60
|
},
|
|
60
|
-
'& .
|
|
61
|
+
'& .Erk-MuiFormHelperText-root.Mui-error': {
|
|
61
62
|
color: theme.palette.error.main,
|
|
62
63
|
},
|
|
63
|
-
'& .
|
|
64
|
+
'& .Erk-MuiInputBase-multiline': {
|
|
64
65
|
padding: 0,
|
|
65
66
|
},
|
|
66
|
-
'& .
|
|
67
|
+
'& .Erk-MuiInputAdornment-root': {
|
|
67
68
|
paddingTop: 2,
|
|
68
69
|
marginRight: 0,
|
|
69
70
|
},
|
|
@@ -85,7 +85,7 @@ function CustomSelect({ value, onChange, label, error, required, pickDays, helpe
|
|
|
85
85
|
if (!readOnly && !disabled)
|
|
86
86
|
setOpen(!open);
|
|
87
87
|
}, children: _jsx(ClockIcon, {}) }), onFocus: (e) => {
|
|
88
|
-
if (!e.relatedTarget?.closest('.
|
|
88
|
+
if (!e.relatedTarget?.closest('.Erk-MuiPaper-root') && !readOnly && !disabled) {
|
|
89
89
|
setOpen(true);
|
|
90
90
|
}
|
|
91
91
|
}, onOpen: () => {
|
|
@@ -33,11 +33,7 @@ function InputIcon({ icon, fill, ...others }) {
|
|
|
33
33
|
width: 23,
|
|
34
34
|
}, fill: fill, ...others }));
|
|
35
35
|
case IconTypes.PERSON:
|
|
36
|
-
return
|
|
37
|
-
display: 'flex',
|
|
38
|
-
height: 23,
|
|
39
|
-
width: 23,
|
|
40
|
-
}, fill: fill, ...others }));
|
|
36
|
+
return _jsx(PersonIcon, { fill: fill, ...others });
|
|
41
37
|
case IconTypes.LEAK:
|
|
42
38
|
return (_jsx(LeakIcon, { style: {
|
|
43
39
|
display: 'flex',
|
|
@@ -70,11 +66,7 @@ function InputIcon({ icon, fill, ...others }) {
|
|
|
70
66
|
width: 24,
|
|
71
67
|
}, fill: fill, ...others }));
|
|
72
68
|
case IconTypes.CALENDAR:
|
|
73
|
-
return
|
|
74
|
-
display: 'flex',
|
|
75
|
-
height: 23,
|
|
76
|
-
width: 23,
|
|
77
|
-
}, fill: fill, ...others }));
|
|
69
|
+
return _jsx(CalendarIcon, { fill: fill, ...others });
|
|
78
70
|
case IconTypes.LOCATION:
|
|
79
71
|
return (_jsx(LocationIcon, { style: {
|
|
80
72
|
display: 'flex',
|
|
@@ -6,13 +6,13 @@ const StyledRating = styled(MuiRating)(({ theme }) => ({
|
|
|
6
6
|
'&.Mui-disabled': {
|
|
7
7
|
opacity: 1,
|
|
8
8
|
},
|
|
9
|
-
'& .
|
|
9
|
+
'& .Erk-MuiRating-iconFilled': {
|
|
10
10
|
color: theme.palette.primary.main,
|
|
11
11
|
},
|
|
12
|
-
'& .
|
|
12
|
+
'& .Erk-MuiRating-iconEmpty': {
|
|
13
13
|
color: theme.palette.outline.main,
|
|
14
14
|
},
|
|
15
|
-
'& .
|
|
15
|
+
'& .Erk-MuiRating-visuallyHidden': {
|
|
16
16
|
display: 'none',
|
|
17
17
|
},
|
|
18
18
|
}));
|
|
@@ -3,7 +3,7 @@ import { styled, Switch as MuiSwitch } from '@mui/material';
|
|
|
3
3
|
const Styled = styled(MuiSwitch)(({ theme, checked }) => ({
|
|
4
4
|
marginTop: -6,
|
|
5
5
|
marginBottom: -6,
|
|
6
|
-
'& .
|
|
6
|
+
'& .Erk-MuiSwitch-track': {
|
|
7
7
|
backgroundColor: checked ? theme.palette.primary.main : undefined,
|
|
8
8
|
},
|
|
9
9
|
}));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import '../Utils/MuiClassnameSetup';
|
|
3
2
|
import { esES as DatePickersEs } from '@mui/x-date-pickers/locales';
|
|
4
3
|
import { createTheme, ThemeProvider } from '@mui/material';
|
|
5
4
|
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SEED = "
|
|
1
|
+
export declare const SEED = "Erk";
|
package/dist/Widget.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './Utils/MuiClassnameSetup';
|
package/dist/Widget.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import App from './App/App';
|
|
4
|
+
import './Utils/MuiClassnameSetup';
|
|
4
5
|
const WIDGET_ID = document.currentScript?.getAttribute('data-id') ?? 'widget:eureka';
|
|
5
6
|
const element = document.getElementById(WIDGET_ID);
|
|
6
7
|
const props = {};
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom/client';
|
|
|
4
4
|
import styles from './index.module.css';
|
|
5
5
|
import App from './App/App';
|
|
6
6
|
import './index.css';
|
|
7
|
+
import './Utils/MuiClassnameSetup';
|
|
7
8
|
const urlParams = new URLSearchParams(window.location.search);
|
|
8
9
|
const values = urlParams.get('data-values');
|
|
9
10
|
let dataValues = undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arquimedes.co/eureka-forms",
|
|
3
3
|
"repository": "git://github.com/Arquimede5/Eureka-Forms.git",
|
|
4
|
-
"version":"3.0.
|
|
4
|
+
"version":"3.0.3-refactor",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"watch": "tsc --noEmit --watch --project tsconfig.app.json",
|
|
7
7
|
"start": "vite",
|
|
@@ -16,24 +16,20 @@
|
|
|
16
16
|
"cypress": "DISPLAY=:0 cypress open"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@emotion/styled": "^11.13.0",
|
|
21
|
-
"@mui/material": "^6.1.3",
|
|
22
|
-
"@mui/x-date-pickers": "^7.19.0",
|
|
23
|
-
"@reduxjs/toolkit": "^2.2.8",
|
|
19
|
+
"@reduxjs/toolkit": "^2.4.0",
|
|
24
20
|
"axios": "^1.7.7",
|
|
25
21
|
"date-fns": "^4.1.0",
|
|
26
22
|
"draft-js": "^0.11.7",
|
|
27
|
-
"i18n-iso-countries": "^7.
|
|
28
|
-
"libphonenumber-js": "^1.11.
|
|
23
|
+
"i18n-iso-countries": "^7.13.0",
|
|
24
|
+
"libphonenumber-js": "^1.11.14",
|
|
29
25
|
"logrocket": "^9.0.0",
|
|
30
26
|
"nanoid": "^5.0.7",
|
|
31
27
|
"react-draft-wysiwyg": "^1.15.0",
|
|
32
28
|
"react-google-recaptcha": "^3.1.0",
|
|
33
|
-
"react-hook-form": "^7.53.
|
|
29
|
+
"react-hook-form": "^7.53.2",
|
|
34
30
|
"react-international-phone": "^4.3.0",
|
|
35
31
|
"react-redux": "^9.1.2",
|
|
36
|
-
"typescript": "^5.
|
|
32
|
+
"typescript": "^5.7.2"
|
|
37
33
|
},
|
|
38
34
|
"eslintConfig": {},
|
|
39
35
|
"browserslist": {
|
|
@@ -50,10 +46,10 @@
|
|
|
50
46
|
},
|
|
51
47
|
"devDependencies": {
|
|
52
48
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
53
|
-
"@babel/preset-env": "^7.
|
|
54
|
-
"@babel/preset-react": "^7.25.
|
|
55
|
-
"@babel/preset-typescript": "^7.
|
|
56
|
-
"@faker-js/faker": "^9.0
|
|
49
|
+
"@babel/preset-env": "^7.26.0",
|
|
50
|
+
"@babel/preset-react": "^7.25.9",
|
|
51
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
52
|
+
"@faker-js/faker": "^9.2.0",
|
|
57
53
|
"@storybook/addon-coverage": "^1.0.4",
|
|
58
54
|
"@storybook/addon-essentials": "^8.3.5",
|
|
59
55
|
"@storybook/addon-interactions": "^8.3.5",
|
|
@@ -66,19 +62,19 @@
|
|
|
66
62
|
"@storybook/test": "^8.3.5",
|
|
67
63
|
"@storybook/testing-library": "^0.2.2",
|
|
68
64
|
"@testing-library/dom": "^10.4.0",
|
|
69
|
-
"@testing-library/jest-dom": "^6.
|
|
65
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
70
66
|
"@testing-library/react": "^16.0.1",
|
|
71
67
|
"@testing-library/user-event": "^14.5.2",
|
|
72
68
|
"@types/draft-js": "^0.11.18",
|
|
73
|
-
"@types/react": "^18.3.
|
|
74
|
-
"@types/react-dom": "^18.3.
|
|
69
|
+
"@types/react": "^18.3.12",
|
|
70
|
+
"@types/react-dom": "^18.3.1",
|
|
75
71
|
"@types/react-draft-wysiwyg": "^1.13.8",
|
|
76
72
|
"@types/react-google-recaptcha": "^2.1.9",
|
|
77
73
|
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
78
74
|
"@typescript-eslint/parser": "^8.8.1",
|
|
79
|
-
"@vitejs/plugin-react-swc": "^3.7.
|
|
80
|
-
"chromatic": "^11.
|
|
81
|
-
"cypress": "^13.
|
|
75
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
76
|
+
"chromatic": "^11.19.0",
|
|
77
|
+
"cypress": "^13.16.0",
|
|
82
78
|
"dotenv-webpack": "^8.1.0",
|
|
83
79
|
"eslint": "^8.57.1",
|
|
84
80
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -88,18 +84,22 @@
|
|
|
88
84
|
"eslint-plugin-storybook": "^0.9.0",
|
|
89
85
|
"identity-obj-proxy": "^3.0.0",
|
|
90
86
|
"jsdom": "^25.0.1",
|
|
91
|
-
"prettier": "3.
|
|
87
|
+
"prettier": "3.4.1",
|
|
92
88
|
"react-docgen-typescript": "^2.2.2",
|
|
93
89
|
"react-refresh": "^0.14.2",
|
|
94
|
-
"storybook": "^8.
|
|
90
|
+
"storybook": "^8.4.5",
|
|
95
91
|
"storybook-mock-date-decorator": "^2.0.6",
|
|
96
|
-
"vite": "^
|
|
97
|
-
"vite-plugin-svgr": "^4.
|
|
98
|
-
"vitest": "^2.1.
|
|
92
|
+
"vite": "^6.0.1",
|
|
93
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
94
|
+
"vitest": "^2.1.6"
|
|
99
95
|
},
|
|
100
96
|
"peerDependencies": {
|
|
101
97
|
"react": "^18.x.x",
|
|
102
|
-
"react-dom": "^18.x.x"
|
|
98
|
+
"react-dom": "^18.x.x",
|
|
99
|
+
"@emotion/react": "^11.x.x",
|
|
100
|
+
"@emotion/styled": "^11.x.x",
|
|
101
|
+
"@mui/material": "^6.x.x",
|
|
102
|
+
"@mui/x-date-pickers": "^7.x.x"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
package/dist/Icons/@IconTypes.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|