@arquimedes.co/eureka-forms 3.0.27-test → 3.0.29-test

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.
@@ -114,11 +114,13 @@ export const useSetupApp = (isEmbedded, props) => {
114
114
  };
115
115
  useEffect(() => {
116
116
  void loadData();
117
+ // eslint-disable-next-line no-console
118
+ console.log('Changed!');
117
119
  return () => {
118
120
  dispatch({ type: 'CLEAR' });
119
121
  };
120
122
  // eslint-disable-next-line react-hooks/exhaustive-deps
121
- }, [props]);
123
+ }, [props.formData, props.valuesData]);
122
124
  const reload = useCallback(() => {
123
125
  if (!form)
124
126
  return;
@@ -135,7 +137,7 @@ export const useSetupApp = (isEmbedded, props) => {
135
137
  return {
136
138
  form,
137
139
  organization,
138
- branding: organization?.customBrandings ? form?.branding ?? organization.branding : organization?.branding,
140
+ branding: organization?.customBrandings ? (form?.branding ?? organization.branding) : organization?.branding,
139
141
  reload,
140
142
  };
141
143
  };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../@ErkIcon';
2
+ declare function WorkIcon(props: IconProps): JSX.Element;
3
+ export default WorkIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useIconProps } from '../@ErkIcon';
3
+ function WorkIcon(props) {
4
+ const iconProps = useIconProps(props);
5
+ return (_jsx("svg", { ...iconProps, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z" }) }));
6
+ }
7
+ export default WorkIcon;
@@ -10,6 +10,7 @@ import CheckListIcon from '../../Icons/Entities/CheckListIcon';
10
10
  import GenericEntityIcon from '../../Icons/Entities/GenericEntityIcon';
11
11
  import HandShakeIcon from '../../Icons/Entities/HandshakeIcon';
12
12
  import SupplierIcon from '../../Icons/Entities/SupplierIcon';
13
+ import WorkIcon from '../../Icons/Entities/WorkIcon';
13
14
  import LocationIcon from '../../Icons/LocationIcon';
14
15
  import PersonIcon from '../../Icons/PersonIcon';
15
16
  function InputIcon({ icon, ...others }) {
@@ -34,6 +35,8 @@ function InputIcon({ icon, ...others }) {
34
35
  return _jsx(SupplierIcon, { size: 24, ...others });
35
36
  case ErkIconTypes.CALENDAR:
36
37
  return _jsx(CalendarIcon, { size: 23, ...others });
38
+ case ErkIconTypes.WORK:
39
+ return _jsx(WorkIcon, { size: 23, ...others });
37
40
  case ErkIconTypes.LOCATION:
38
41
  return _jsx(LocationIcon, { size: 23, ...others });
39
42
  case ErkIconTypes.GENERIC:
@@ -10,5 +10,6 @@ export declare enum ErkIconTypes {
10
10
  SUPPLIER = "SUPPLIER",
11
11
  GENERIC = "GENERIC",
12
12
  LOCATION = "LOCATION",
13
- CALENDAR = "CALENDAR"
13
+ CALENDAR = "CALENDAR",
14
+ WORK = "WORK"
14
15
  }
@@ -12,4 +12,5 @@ export var ErkIconTypes;
12
12
  ErkIconTypes["GENERIC"] = "GENERIC";
13
13
  ErkIconTypes["LOCATION"] = "LOCATION";
14
14
  ErkIconTypes["CALENDAR"] = "CALENDAR";
15
+ ErkIconTypes["WORK"] = "WORK";
15
16
  })(ErkIconTypes || (ErkIconTypes = {}));
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.27-test",
4
+ "version":"3.0.29-test",
5
5
  "scripts": {
6
6
  "watch": "tsc --noEmit --watch --project tsconfig.app.json",
7
7
  "start": "vite",