@arquimedes.co/eureka-forms 3.0.48-test → 3.0.49-new-steps
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/@Types/AvailabilityFormStep.d.ts +48 -0
- package/dist/@Types/AvailabilityFormStep.js +24 -0
- package/dist/@Types/BankAccountFormStep.d.ts +67 -0
- package/dist/@Types/BankAccountFormStep.js +14 -0
- package/dist/@Types/BookingFormStep.d.ts +156 -0
- package/dist/@Types/BookingFormStep.js +44 -0
- package/dist/@Types/CalendarFormStep.d.ts +192 -0
- package/dist/@Types/CalendarFormStep.js +48 -0
- package/dist/@Types/CommunicationChannelFormStep.d.ts +51 -0
- package/dist/@Types/CommunicationChannelFormStep.js +15 -0
- package/dist/@Types/Condition.d.ts +4 -6
- package/dist/@Types/ConsentFormStep.d.ts +36 -0
- package/dist/@Types/ConsentFormStep.js +8 -0
- package/dist/@Types/EntityFormFormStep.d.ts +66 -0
- package/dist/@Types/EntityFormFormStep.js +20 -0
- package/dist/@Types/EventFormStep.d.ts +52 -0
- package/dist/@Types/EventFormStep.js +13 -0
- package/dist/@Types/ExternalReferenceFormStep.d.ts +74 -0
- package/dist/@Types/ExternalReferenceFormStep.js +20 -0
- package/dist/@Types/Form.d.ts +0 -1
- package/dist/@Types/FormStep.d.ts +8 -10
- package/dist/@Types/FormStep.js +2 -1
- package/dist/@Types/LocationFormStep.d.ts +159 -0
- package/dist/@Types/LocationFormStep.js +46 -0
- package/dist/@Types/NumericFormSteps.d.ts +108 -0
- package/dist/@Types/NumericFormSteps.js +20 -0
- package/dist/@Types/PredefinedSelectorFormStep.d.ts +51 -0
- package/dist/@Types/PredefinedSelectorFormStep.js +39 -0
- package/dist/@Types/StepRef.d.ts +135 -0
- package/dist/@Types/StepRef.js +49 -0
- package/dist/App/App.js +1 -1
- package/dist/App/AppFunctions.js +3 -8
- package/dist/App/AppHooks.js +1 -20
- package/dist/Form/Form.js +2 -6
- package/dist/Form/Form.module.css +39 -48
- package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +4 -8
- package/dist/FormSteps/BookingStep/BookingStep.d.ts +17 -0
- package/dist/FormSteps/BookingStep/BookingStep.js +14 -0
- package/dist/FormSteps/BookingStep/MaterialBookingStep/MaterialBookingStep.d.ts +3 -0
- package/dist/FormSteps/BookingStep/MaterialBookingStep/MaterialBookingStep.js +362 -0
- package/dist/FormSteps/BookingStep/MaterialBookingStep/MaterialBookingStep.module.css +174 -0
- package/dist/FormSteps/CBRStepMapper.js +1 -1
- package/dist/FormSteps/CalendarStep/CalendarStep.d.ts +7 -0
- package/dist/FormSteps/CalendarStep/CalendarStep.js +14 -0
- package/dist/FormSteps/CalendarStep/MaterialCalendarStep/MaterialCalendarStep.d.ts +3 -0
- package/dist/FormSteps/CalendarStep/MaterialCalendarStep/MaterialCalendarStep.js +269 -0
- package/dist/FormSteps/CalendarStep/MaterialCalendarStep/MaterialCalendarStep.module.css +531 -0
- package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +2 -2
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +4 -52
- package/dist/FormSteps/LocationStep/LocationStep.d.ts +10 -0
- package/dist/FormSteps/LocationStep/LocationStep.js +14 -0
- package/dist/FormSteps/LocationStep/MaterialLocationStep/MaterialLocationStep.d.ts +3 -0
- package/dist/FormSteps/LocationStep/MaterialLocationStep/MaterialLocationStep.js +47 -0
- package/dist/FormSteps/LocationStep/MaterialLocationStep/MaterialLocationStep.module.css +18 -0
- package/dist/FormSteps/NumberStep/MaterialNumberStep/MaterialNumberStep.d.ts +3 -0
- package/dist/FormSteps/NumberStep/MaterialNumberStep/MaterialNumberStep.js +168 -0
- package/dist/FormSteps/NumberStep/MaterialNumberStep/MaterialNumberStep.module.css +94 -0
- package/dist/FormSteps/NumberStep/NumberStep.d.ts +10 -0
- package/dist/FormSteps/NumberStep/NumberStep.js +14 -0
- package/dist/FormSteps/Step.js +16 -0
- package/dist/FormSteps/StepFunctions.js +23 -6
- package/dist/FormSteps/StepFunctions.test.js +57 -3
- package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.js +1 -2
- package/dist/Icons/@ErkIcon.d.ts +2 -2
- package/dist/Icons/@ErkIcon.js +2 -2
- package/dist/Icons/AddIcon.d.ts +3 -0
- package/dist/Icons/AddIcon.js +7 -0
- package/dist/Icons/EditIcon.d.ts +3 -0
- package/dist/Icons/{EmailIcon.js → EditIcon.js} +3 -3
- package/dist/Icons/RemoveIcon.d.ts +3 -0
- package/dist/Icons/RemoveIcon.js +7 -0
- package/dist/Icons/ViewDayIcon.d.ts +3 -0
- package/dist/Icons/ViewDayIcon.js +7 -0
- package/dist/Icons/ViewWeekIcon.d.ts +3 -0
- package/dist/Icons/ViewWeekIcon.js +7 -0
- package/dist/Services/DraftService.js +1 -4
- package/dist/Shared/ErkAddressAutocomplete/ErkAddressAutocomplete.d.ts +19 -0
- package/dist/Shared/ErkAddressAutocomplete/ErkAddressAutocomplete.js +80 -0
- package/dist/Shared/ErkAddressAutocomplete/ErkAddressAutocomplete.module.css +82 -0
- package/dist/Shared/ErkAddressAutocomplete/googlePlaces.d.ts +29 -0
- package/dist/Shared/ErkAddressAutocomplete/googlePlaces.js +139 -0
- package/dist/Shared/ErkDatePicker/ErkDatePicker.js +1 -3
- package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.d.ts +2 -3
- package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.js +1 -2
- package/dist/Shared/ErkLocationField/ErkLocationField.d.ts +23 -0
- package/dist/Shared/ErkLocationField/ErkLocationField.js +73 -0
- package/dist/Shared/ErkLocationField/ErkLocationField.module.css +29 -0
- package/dist/Shared/ErkLocationField/addressFields.d.ts +12 -0
- package/dist/Shared/ErkLocationField/addressFields.js +34 -0
- package/dist/Shared/ErkLocationField/locationRestrictions.d.ts +6 -0
- package/dist/Shared/ErkLocationField/locationRestrictions.js +51 -0
- package/dist/Shared/ErkLocationInput/ErkLocationInput.d.ts +15 -0
- package/dist/Shared/ErkLocationInput/ErkLocationInput.js +499 -0
- package/dist/Shared/ErkLocationInput/ErkLocationInput.module.css +115 -0
- package/dist/Shared/ErkNumberField/ErkNumberField.d.ts +42 -0
- package/dist/Shared/ErkNumberField/ErkNumberField.js +170 -0
- package/dist/Shared/ErkSelect/ErkSelect.d.ts +2 -2
- package/dist/Shared/InputIcon/InputIcon.js +0 -6
- package/dist/Shared/Navbar/Navbar.d.ts +1 -2
- package/dist/Shared/Navbar/Navbar.js +3 -22
- package/dist/Shared/Navbar/Navbar.module.css +8 -22
- package/dist/Shared/SmartDraftRenderer/SmartDraftRenderer.js +2 -8
- package/dist/States/GlobalSlice.d.ts +1 -4
- package/dist/States/GlobalSlice.js +1 -8
- package/dist/constants/ErkIconTypes.d.ts +1 -3
- package/dist/constants/ErkIconTypes.js +0 -2
- package/dist/constants/FormStepTypes.d.ts +6 -3
- package/dist/constants/FormStepTypes.js +4 -1
- package/dist/hooks.d.ts +0 -3
- package/dist/hooks.js +1 -17
- package/package.json +3 -9
- package/dist/@Types/ErkValue.d.ts +0 -16
- package/dist/@Types/ErkValue.js +0 -1
- package/dist/@Types/User.d.ts +0 -13
- package/dist/@Types/User.js +0 -1
- package/dist/Icons/EmailIcon.d.ts +0 -3
- package/dist/Icons/Entities/SchoolIcon.d.ts +0 -3
- package/dist/Icons/Entities/SchoolIcon.js +0 -7
- package/dist/Icons/GroupIcon.d.ts +0 -3
- package/dist/Icons/GroupIcon.js +0 -7
- package/dist/Icons/LockedIcon.d.ts +0 -3
- package/dist/Icons/LockedIcon.js +0 -7
- package/dist/Login/Login.module.css +0 -135
- package/dist/Login/LoginLayout.module.css +0 -68
- package/dist/Login/LoginPage.d.ts +0 -10
- package/dist/Login/LoginPage.js +0 -101
- package/dist/Login/LoginTextField.d.ts +0 -14
- package/dist/Login/LoginTextField.js +0 -29
- package/dist/Services/ApiSelectorService.d.ts +0 -366
- package/dist/Services/ApiSelectorService.js +0 -173
- package/dist/Services/ApiSelectorService.test.d.ts +0 -1
- package/dist/Services/ApiSelectorService.test.js +0 -87
- package/dist/Services/IntegrationService.d.ts +0 -21
- package/dist/Services/IntegrationService.js +0 -22
- package/dist/Services/UserService.d.ts +0 -10
- package/dist/Services/UserService.js +0 -21
- package/dist/Shared/SmartDraftRenderer/LinkDecorator.d.ts +0 -14
- package/dist/Shared/SmartDraftRenderer/LinkDecorator.js +0 -48
- package/dist/constants/ErkValueTypes.d.ts +0 -6
- package/dist/constants/ErkValueTypes.js +0 -7
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
|
|
4
|
+
import { FormControl, FormHelperText, InputAdornment, InputLabel, OutlinedInput, styled, useTheme, } from '@mui/material';
|
|
5
|
+
import { alpha } from '@mui/material/styles';
|
|
6
|
+
import AddIcon from '../../Icons/AddIcon';
|
|
7
|
+
import RemoveIcon from '../../Icons/RemoveIcon';
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// Styled FormControl shell — same conventions as ErkTextField / ErkSelect
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
const StyledFormControl = styled(FormControl)(({ theme, size }) => ({
|
|
12
|
+
'& .Erk-MuiOutlinedInput-root': {
|
|
13
|
+
borderRadius: 10,
|
|
14
|
+
backgroundColor: theme.palette.stepBackgroundColor.default,
|
|
15
|
+
minHeight: size === 'small' ? 31 : size === 'medium' ? 40 : undefined,
|
|
16
|
+
'&.Mui-focused .Erk-MuiOutlinedInput-notchedOutline': {
|
|
17
|
+
borderColor: theme.palette.primary.main,
|
|
18
|
+
borderWidth: 2,
|
|
19
|
+
},
|
|
20
|
+
// ErkNF-readOnly is set manually via className — Mui-readOnly is unreliable here
|
|
21
|
+
'&:hover:not(.ErkNF-readOnly) .Erk-MuiOutlinedInput-notchedOutline': {
|
|
22
|
+
borderColor: theme.palette.primary.main,
|
|
23
|
+
},
|
|
24
|
+
'&.ErkNF-readOnly.Mui-focused .Erk-MuiOutlinedInput-notchedOutline': {
|
|
25
|
+
borderColor: theme.palette.outline.main,
|
|
26
|
+
borderWidth: 1,
|
|
27
|
+
},
|
|
28
|
+
'&.ErkNF-readOnly': {
|
|
29
|
+
cursor: 'default',
|
|
30
|
+
'& input': { cursor: 'default' },
|
|
31
|
+
},
|
|
32
|
+
'& .Erk-MuiOutlinedInput-notchedOutline': {
|
|
33
|
+
borderRadius: 10,
|
|
34
|
+
borderColor: theme.palette.outline.main,
|
|
35
|
+
'& legend': { fontSize: '0.75rem' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
'& .Erk-MuiOutlinedInput-root.Mui-error .Erk-MuiOutlinedInput-notchedOutline': {
|
|
39
|
+
borderColor: theme.palette.error.main,
|
|
40
|
+
},
|
|
41
|
+
'& .Erk-MuiOutlinedInput-root.Mui-error.Mui-focused .Erk-MuiOutlinedInput-notchedOutline': {
|
|
42
|
+
borderWidth: 2,
|
|
43
|
+
},
|
|
44
|
+
'& .Erk-MuiFormLabel-root': {
|
|
45
|
+
color: alpha(theme.palette.text.primary, 0.54),
|
|
46
|
+
},
|
|
47
|
+
'& label.Mui-focused': { color: theme.palette.primary.main },
|
|
48
|
+
'& label.Mui-error': { color: theme.palette.error.main },
|
|
49
|
+
'& .Erk-MuiFormLabel-root:not(.Erk-MuiInputLabel-shrink)': {
|
|
50
|
+
fontSize: '1rem',
|
|
51
|
+
transform: `translate(12px, ${size === 'small' ? 5 : 9}px) scale(1)`,
|
|
52
|
+
},
|
|
53
|
+
'& .Erk-MuiFormHelperText-root': {
|
|
54
|
+
color: theme.palette.helperText.primary,
|
|
55
|
+
minHeight: 20,
|
|
56
|
+
overflow: 'hidden',
|
|
57
|
+
textOverflow: 'ellipsis',
|
|
58
|
+
},
|
|
59
|
+
'& .Erk-MuiFormHelperText-root.Mui-error': { color: theme.palette.error.main },
|
|
60
|
+
'& input': {
|
|
61
|
+
fontSize: '1rem',
|
|
62
|
+
padding: '6px 12px',
|
|
63
|
+
lineHeight: size === 'small' ? '1.188em' : '1.75em',
|
|
64
|
+
height: size === 'small' ? '1.188em' : '1.75em',
|
|
65
|
+
color: theme.palette.text.primary,
|
|
66
|
+
MozAppearance: 'textfield',
|
|
67
|
+
'&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
|
|
68
|
+
WebkitAppearance: 'none',
|
|
69
|
+
margin: 0,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
}));
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// SSR label-shrink hint — muiName='Input' lets FormControl know an input
|
|
75
|
+
// exists so it can compute the initial shrink state before hydration.
|
|
76
|
+
// ---------------------------------------------------------------------------
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
78
|
+
function SSRInitialFilled(_props) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
SSRInitialFilled.muiName = 'Input';
|
|
82
|
+
function SpinnerBtn({ children, style, ...rest }) {
|
|
83
|
+
const theme = useTheme();
|
|
84
|
+
const [hovered, setHovered] = React.useState(false);
|
|
85
|
+
const [active, setActive] = React.useState(false);
|
|
86
|
+
return (_jsx("button", { type: "button", tabIndex: -1, ...rest, onMouseEnter: (e) => {
|
|
87
|
+
setHovered(true);
|
|
88
|
+
rest.onMouseEnter?.(e);
|
|
89
|
+
}, onMouseLeave: (e) => {
|
|
90
|
+
setHovered(false);
|
|
91
|
+
setActive(false);
|
|
92
|
+
rest.onMouseLeave?.(e);
|
|
93
|
+
}, onMouseDown: (e) => {
|
|
94
|
+
setActive(true);
|
|
95
|
+
rest.onMouseDown?.(e);
|
|
96
|
+
}, onMouseUp: (e) => {
|
|
97
|
+
setActive(false);
|
|
98
|
+
rest.onMouseUp?.(e);
|
|
99
|
+
}, style: {
|
|
100
|
+
display: 'inline-flex',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
justifyContent: 'center',
|
|
103
|
+
width: 22,
|
|
104
|
+
height: 22,
|
|
105
|
+
minWidth: 22,
|
|
106
|
+
padding: 0,
|
|
107
|
+
border: 'none',
|
|
108
|
+
borderRadius: 4,
|
|
109
|
+
background: active
|
|
110
|
+
? alpha(theme.palette.primary.main, 0.16)
|
|
111
|
+
: hovered
|
|
112
|
+
? alpha(theme.palette.primary.main, 0.08)
|
|
113
|
+
: 'transparent',
|
|
114
|
+
cursor: rest.disabled ? 'default' : 'pointer',
|
|
115
|
+
color: hovered && !rest.disabled ? theme.palette.primary.main : alpha(theme.palette.text.primary, 0.6),
|
|
116
|
+
flexShrink: 0,
|
|
117
|
+
transition: 'color 0.15s, background-color 0.15s',
|
|
118
|
+
opacity: rest.disabled ? 0.35 : 1,
|
|
119
|
+
pointerEvents: rest.disabled ? 'none' : undefined,
|
|
120
|
+
...style,
|
|
121
|
+
}, children: children }));
|
|
122
|
+
}
|
|
123
|
+
// ---------------------------------------------------------------------------
|
|
124
|
+
// Implementation
|
|
125
|
+
// ---------------------------------------------------------------------------
|
|
126
|
+
function CustomErkNumberField({ value, onChange, label, min, max, step = 1, decimals, required, error, errorBorder, helperText, disabled, readOnly, placeholder, size = 'small', fullWidth = true, suffix, spinner = true, inputRef, }) {
|
|
127
|
+
const theme = useTheme();
|
|
128
|
+
const id = React.useId();
|
|
129
|
+
// Rounds to max decimals on spinner click / arrow key / wheel scrub.
|
|
130
|
+
// Typing restriction is handled separately inside slotProps.input.onChange.
|
|
131
|
+
const handleValueChange = (num) => {
|
|
132
|
+
if (num === null || decimals === undefined) {
|
|
133
|
+
onChange?.(num);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const factor = Math.pow(10, decimals);
|
|
137
|
+
onChange?.(Math.round(num * factor) / factor);
|
|
138
|
+
};
|
|
139
|
+
return (_jsxs(BaseNumberField.Root, { value: value ?? null, onValueChange: handleValueChange, min: min, max: max, step: step, format: decimals !== undefined ? { minimumFractionDigits: 0, maximumFractionDigits: decimals } : undefined, disabled: disabled, readOnly: readOnly, ref: inputRef, render: (rootProps, rootState) => (_jsx(StyledFormControl, { ref: rootProps.ref, size: size, disabled: rootState.disabled, required: required, error: error && !!errorBorder, variant: "outlined", fullWidth: fullWidth, children: rootProps.children })), children: [_jsx(SSRInitialFilled, { value: value ?? undefined }), label && (_jsx(InputLabel, { htmlFor: id, size: size === 'small' ? 'small' : undefined, disabled: disabled, children: label })), _jsx(BaseNumberField.Input, { id: id, render: (inputProps, inputState) => {
|
|
140
|
+
return (_jsx(OutlinedInput, { label: label, className: readOnly ? 'ErkNF-readOnly' : undefined, inputRef: inputProps.ref, value: inputState.inputValue, onBlur: inputProps.onBlur, onChange: inputProps.onChange, onKeyUp: inputProps.onKeyUp, onKeyDown: inputProps.onKeyDown, onFocus: inputProps.onFocus, placeholder: placeholder, slotProps: {
|
|
141
|
+
input: {
|
|
142
|
+
...inputProps, // Base UI handlers + ref + aria attrs
|
|
143
|
+
},
|
|
144
|
+
}, endAdornment: suffix || spinner ? (_jsxs(InputAdornment, { position: "end", sx: { gap: '2px', mr: '2px', alignItems: 'center' }, children: [suffix && (_jsx("span", { style: {
|
|
145
|
+
fontSize: 13,
|
|
146
|
+
fontWeight: 600,
|
|
147
|
+
color: theme.palette.primary.main,
|
|
148
|
+
userSelect: 'none',
|
|
149
|
+
whiteSpace: 'nowrap',
|
|
150
|
+
marginRight: spinner ? 2 : 4,
|
|
151
|
+
}, children: suffix })), spinner && (_jsxs(_Fragment, { children: [_jsx(BaseNumberField.Decrement, { render: (decProps) => {
|
|
152
|
+
const { disabled: baseDisabled, ...restDec } = decProps;
|
|
153
|
+
return (_jsx(SpinnerBtn, { ...restDec, disabled: !!readOnly || !!baseDisabled, children: _jsx(RemoveIcon, { size: 14 }) }));
|
|
154
|
+
} }), _jsx(BaseNumberField.Increment, { render: (incProps) => {
|
|
155
|
+
const { disabled: baseDisabled, ...restInc } = incProps;
|
|
156
|
+
return (_jsx(SpinnerBtn, { ...restInc, disabled: !!readOnly || !!baseDisabled, children: _jsx(AddIcon, { size: 14 }) }));
|
|
157
|
+
} })] }))] })) : undefined, sx: { pr: suffix || spinner ? 0 : undefined } }));
|
|
158
|
+
} }), helperText && _jsx(FormHelperText, { error: error && !!errorBorder, children: helperText })] }));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Pure number input built on Base UI NumberField + MUI styling.
|
|
162
|
+
* No form-step system dependency.
|
|
163
|
+
* Class wrapper for react-hook-form ref compatibility.
|
|
164
|
+
*/
|
|
165
|
+
class ErkNumberField extends React.Component {
|
|
166
|
+
render() {
|
|
167
|
+
return _jsx(CustomErkNumberField, { ...this.props });
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export default ErkNumberField;
|
|
@@ -5,12 +5,12 @@ export interface SelectorStyleProps {
|
|
|
5
5
|
readOnly?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const StyledSelect: import("@emotion/styled").StyledComponent<(import("@mui/material").FilledSelectProps & import("@mui/material").BaseSelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>) | (import("@mui/material").StandardSelectProps & import("@mui/material").BaseSelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>) | (import("@mui/material").OutlinedSelectProps & import("@mui/material").BaseSelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>), {}, {}>;
|
|
8
|
-
export declare const StyledInputLabel: import("@emotion/styled").StyledComponent<import("@mui/material").InputLabelOwnProps & Pick<import("@mui/material").FormLabelOwnProps, "color" | "filled"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "required" | "size" | "color" | "children" | "className" | "style" | "classes" | "
|
|
8
|
+
export declare const StyledInputLabel: import("@emotion/styled").StyledComponent<import("@mui/material").InputLabelOwnProps & Pick<import("@mui/material").FormLabelOwnProps, "color" | "filled"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "required" | "size" | "color" | "children" | "className" | "style" | "classes" | "disabled" | "sx" | "margin" | "error" | "filled" | "variant" | "focused" | "disableAnimation" | "shrink"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
9
9
|
component?: React.ElementType | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
open: boolean;
|
|
12
12
|
}, {}, {}>;
|
|
13
|
-
export declare const StyledHelperText: import("@emotion/styled").StyledComponent<import("@mui/material").FormHelperTextOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "required" | "children" | "className" | "style" | "classes" | "
|
|
13
|
+
export declare const StyledHelperText: import("@emotion/styled").StyledComponent<import("@mui/material").FormHelperTextOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "required" | "children" | "className" | "style" | "classes" | "disabled" | "sx" | "margin" | "error" | "filled" | "variant" | "focused"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
14
14
|
component?: React.ElementType | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export type ErkSelectValue<Type extends string | number, Multiple, Clearable> = Multiple extends true ? Type[] : Clearable extends true ? Type | undefined : Type;
|
|
@@ -9,10 +9,8 @@ import DocumentIcon from '../../Icons/DocumentIcon';
|
|
|
9
9
|
import CheckListIcon from '../../Icons/Entities/CheckListIcon';
|
|
10
10
|
import GenericEntityIcon from '../../Icons/Entities/GenericEntityIcon';
|
|
11
11
|
import HandShakeIcon from '../../Icons/Entities/HandshakeIcon';
|
|
12
|
-
import SchoolIcon from '../../Icons/Entities/SchoolIcon';
|
|
13
12
|
import SupplierIcon from '../../Icons/Entities/SupplierIcon';
|
|
14
13
|
import WorkIcon from '../../Icons/Entities/WorkIcon';
|
|
15
|
-
import GroupIcon from '../../Icons/GroupIcon';
|
|
16
14
|
import LocationIcon from '../../Icons/LocationIcon';
|
|
17
15
|
import PersonIcon from '../../Icons/PersonIcon';
|
|
18
16
|
function InputIcon({ icon, ...others }) {
|
|
@@ -39,10 +37,6 @@ function InputIcon({ icon, ...others }) {
|
|
|
39
37
|
return _jsx(CalendarIcon, { size: 23, ...others });
|
|
40
38
|
case ErkIconTypes.WORK:
|
|
41
39
|
return _jsx(WorkIcon, { size: 23, ...others });
|
|
42
|
-
case ErkIconTypes.SCHOOL:
|
|
43
|
-
return _jsx(SchoolIcon, { size: 23, ...others });
|
|
44
|
-
case ErkIconTypes.GROUP:
|
|
45
|
-
return _jsx(GroupIcon, { size: 23, ...others });
|
|
46
40
|
case ErkIconTypes.LOCATION:
|
|
47
41
|
return _jsx(LocationIcon, { size: 23, ...others });
|
|
48
42
|
case ErkIconTypes.GENERIC:
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
interface NavBarProps {
|
|
2
|
-
apiKey?: string;
|
|
3
2
|
/** Url of the current logo of the current organization */
|
|
4
3
|
logo?: string;
|
|
5
4
|
/** The color of the navbar */
|
|
6
5
|
color?: string;
|
|
7
6
|
}
|
|
8
|
-
declare function Navbar({ logo, color
|
|
7
|
+
declare function Navbar({ logo, color }: NavBarProps): JSX.Element;
|
|
9
8
|
export default Navbar;
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import { useState } from 'react';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import styles from './Navbar.module.css';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { useAppSelector } from '../../hooks';
|
|
7
|
-
function Navbar({ logo, color, apiKey }) {
|
|
8
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
|
9
|
-
const user = useAppSelector((state) => state.global.user);
|
|
10
|
-
const handleLogout = async () => {
|
|
11
|
-
setAnchorEl(null);
|
|
12
|
-
if (apiKey) {
|
|
13
|
-
try {
|
|
14
|
-
await logout(apiKey);
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
console.error(err);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
localStorage.removeItem('token');
|
|
21
|
-
window.location.reload();
|
|
22
|
-
};
|
|
23
|
-
return (_jsxs("div", { className: styles.navContainer, style: { backgroundColor: color }, children: [_jsx("img", { src: logo, alt: "Organization Logo", className: styles.navImage }), user && apiKey && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.navBarAvatar, children: _jsx(IconButton, { style: { width: 42, height: 42, padding: 0, margin: 'auto' }, "aria-label": "Mi Perfil", "aria-haspopup": "true", onClick: (event) => setAnchorEl(event.currentTarget), children: _jsx(Avatar, { style: { fontSize: '40px' }, alt: user?.name ?? user?.email }) }) }), _jsx(Menu, { id: "simple-menu", anchorEl: anchorEl, anchorOrigin: { vertical: 'bottom', horizontal: 'right' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, open: Boolean(anchorEl), onClose: () => setAnchorEl(null), children: _jsx(MenuItem, { onClick: () => void handleLogout(), children: "Cerrar sesi\u00F3n" }) })] }))] }));
|
|
3
|
+
function Navbar({ logo, color }) {
|
|
4
|
+
return (_jsx("div", { className: styles.navContainer, style: { backgroundColor: color }, children: _jsx("img", { src: logo, alt: "Organization Logo", className: styles.navImage }) }));
|
|
24
5
|
}
|
|
25
6
|
export default Navbar;
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
.navContainer {
|
|
2
|
-
height: 60px;
|
|
3
|
-
display: flex;
|
|
4
|
-
}
|
|
5
|
-
.navImage {
|
|
6
|
-
height: 40px;
|
|
7
|
-
margin: auto 0 auto 15px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.navBarAvatar {
|
|
11
|
-
height: 60px;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
margin-left: auto;
|
|
16
|
-
margin-right: 15px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.navBarAvatarIcon {
|
|
20
|
-
width: 100px;
|
|
21
|
-
height: 100px;
|
|
22
|
-
}
|
|
1
|
+
.navContainer {
|
|
2
|
+
height: 60px;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
.navImage {
|
|
6
|
+
height: 40px;
|
|
7
|
+
margin: auto 0 auto 15px;
|
|
8
|
+
}
|
|
@@ -6,7 +6,6 @@ import { Editor } from 'react-draft-wysiwyg';
|
|
|
6
6
|
import { produce } from 'immer';
|
|
7
7
|
import CustomContext from '../../Contexts/CustomContext';
|
|
8
8
|
import { FormDecoratorsStrategy, FormDecorator } from './FormDecorator';
|
|
9
|
-
import { linkDecorator } from './LinkDecorator';
|
|
10
9
|
import { skipToken } from '@reduxjs/toolkit/query';
|
|
11
10
|
import { useAppSelector } from '../../hooks';
|
|
12
11
|
import { IdFormContext } from '../../Contexts/FormContext';
|
|
@@ -45,18 +44,13 @@ function cleanUpDraftParams(draft) {
|
|
|
45
44
|
for (const block of draft.blocks) {
|
|
46
45
|
for (const entity of block.entityRanges) {
|
|
47
46
|
const { offset, length } = entity;
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
// (a value-based replace would also blank the wrong text on collisions).
|
|
51
|
-
const chars = [...block.text];
|
|
52
|
-
chars.splice(offset, length, ...' '.repeat(length));
|
|
53
|
-
block.text = chars.join('');
|
|
47
|
+
//Change text into spaces
|
|
48
|
+
block.text = block.text.replace(block.text.substring(offset, offset + length), ' '.repeat(length));
|
|
54
49
|
}
|
|
55
50
|
}
|
|
56
51
|
});
|
|
57
52
|
}
|
|
58
53
|
const customDecorators = [
|
|
59
|
-
linkDecorator,
|
|
60
54
|
{
|
|
61
55
|
strategy: FormDecoratorsStrategy,
|
|
62
56
|
component: FormDecorator,
|
|
@@ -3,7 +3,6 @@ import { type Reducer } from '@reduxjs/toolkit';
|
|
|
3
3
|
import { SiteState } from './SiteSlice';
|
|
4
4
|
import { EurekaDraft } from '../@Types/Draft/Draft';
|
|
5
5
|
import { CountryCode } from 'libphonenumber-js';
|
|
6
|
-
import { User } from '../@Types/User';
|
|
7
6
|
export interface GlobalState {
|
|
8
7
|
apiKey?: string;
|
|
9
8
|
idOrganization: string;
|
|
@@ -21,8 +20,6 @@ export interface GlobalState {
|
|
|
21
20
|
partial: boolean;
|
|
22
21
|
internal: boolean;
|
|
23
22
|
loaded: boolean;
|
|
24
|
-
/** Current User */
|
|
25
|
-
user: User | null | undefined;
|
|
26
23
|
}
|
|
27
24
|
interface GlobalSliceAPI {
|
|
28
25
|
reducer: Reducer<GlobalState>;
|
|
@@ -30,6 +27,6 @@ interface GlobalSliceAPI {
|
|
|
30
27
|
name: string;
|
|
31
28
|
reducerPath: string;
|
|
32
29
|
}
|
|
33
|
-
export declare const reset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Omit<GlobalState, "loaded"> & SiteState, "global/reset"
|
|
30
|
+
export declare const reset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Omit<GlobalState, "loaded"> & SiteState, "global/reset">;
|
|
34
31
|
export declare const GlobalSlice: GlobalSliceAPI;
|
|
35
32
|
export default GlobalSlice;
|
|
@@ -15,7 +15,6 @@ const initialState = {
|
|
|
15
15
|
partial: false,
|
|
16
16
|
internal: false,
|
|
17
17
|
loaded: false,
|
|
18
|
-
user: undefined,
|
|
19
18
|
};
|
|
20
19
|
const _GlobalSlice = createSlice({
|
|
21
20
|
name: 'global',
|
|
@@ -24,14 +23,8 @@ const _GlobalSlice = createSlice({
|
|
|
24
23
|
reset: (state, action) => {
|
|
25
24
|
return { ...state, ...action.payload, loaded: true };
|
|
26
25
|
},
|
|
27
|
-
setUser: (state, action) => {
|
|
28
|
-
state.user = action.payload;
|
|
29
|
-
if (action.payload?._id) {
|
|
30
|
-
state.idCurrentAgent = action.payload._id;
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
26
|
},
|
|
34
27
|
});
|
|
35
|
-
export const { reset
|
|
28
|
+
export const { reset } = _GlobalSlice.actions;
|
|
36
29
|
export const GlobalSlice = _GlobalSlice;
|
|
37
30
|
export default GlobalSlice;
|
|
@@ -21,7 +21,11 @@ export declare enum FormStepTypes {
|
|
|
21
21
|
COLLAPSIBLE = "COLLAPSIBLE",
|
|
22
22
|
MAPPER = "MAPPER",
|
|
23
23
|
ENTITYVALUEPICKER = "ENTITYVALUEPICKER",
|
|
24
|
-
API_SELECTOR = "API_SELECTOR"
|
|
24
|
+
API_SELECTOR = "API_SELECTOR",
|
|
25
|
+
LOCATION = "LOCATION",
|
|
26
|
+
NUMBER = "NUMBER",
|
|
27
|
+
CALENDAR = "CALENDAR",
|
|
28
|
+
BOOKING = "BOOKING"
|
|
25
29
|
}
|
|
26
30
|
export declare enum OptionTypes {
|
|
27
31
|
DEFAULT = "DEFAULT",
|
|
@@ -58,8 +62,7 @@ export declare enum MapperStyleTypes {
|
|
|
58
62
|
export declare enum EntityValueDataTypes {
|
|
59
63
|
STEP = "STEP",
|
|
60
64
|
VALUE = "VALUE",
|
|
61
|
-
CURRENT_AGENT = "CURRENT_AGENT"
|
|
62
|
-
INTEGRATION = "INTEGRATION"
|
|
65
|
+
CURRENT_AGENT = "CURRENT_AGENT"
|
|
63
66
|
}
|
|
64
67
|
export declare enum ApiSelectorParamTypes {
|
|
65
68
|
STEP = "STEP",
|
|
@@ -25,6 +25,10 @@ export var FormStepTypes;
|
|
|
25
25
|
FormStepTypes["MAPPER"] = "MAPPER";
|
|
26
26
|
FormStepTypes["ENTITYVALUEPICKER"] = "ENTITYVALUEPICKER";
|
|
27
27
|
FormStepTypes["API_SELECTOR"] = "API_SELECTOR";
|
|
28
|
+
FormStepTypes["LOCATION"] = "LOCATION";
|
|
29
|
+
FormStepTypes["NUMBER"] = "NUMBER";
|
|
30
|
+
FormStepTypes["CALENDAR"] = "CALENDAR";
|
|
31
|
+
FormStepTypes["BOOKING"] = "BOOKING";
|
|
28
32
|
})(FormStepTypes || (FormStepTypes = {}));
|
|
29
33
|
export var OptionTypes;
|
|
30
34
|
(function (OptionTypes) {
|
|
@@ -69,7 +73,6 @@ export var EntityValueDataTypes;
|
|
|
69
73
|
EntityValueDataTypes["STEP"] = "STEP";
|
|
70
74
|
EntityValueDataTypes["VALUE"] = "VALUE";
|
|
71
75
|
EntityValueDataTypes["CURRENT_AGENT"] = "CURRENT_AGENT";
|
|
72
|
-
EntityValueDataTypes["INTEGRATION"] = "INTEGRATION";
|
|
73
76
|
})(EntityValueDataTypes || (EntityValueDataTypes = {}));
|
|
74
77
|
export var ApiSelectorParamTypes;
|
|
75
78
|
(function (ApiSelectorParamTypes) {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { TypedUseSelectorHook } from 'react-redux';
|
|
2
2
|
import { type RootState, type AppDispatch } from './Utils/store';
|
|
3
|
-
import { ThunkAction } from '@reduxjs/toolkit';
|
|
4
|
-
import { QueryActionCreatorResult, QueryDefinition, ResultTypeFrom } from '@reduxjs/toolkit/query';
|
|
5
3
|
export declare const useAppDispatch: () => AppDispatch;
|
|
6
4
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
7
5
|
export declare const selectBreakPoint: (state: RootState) => number;
|
|
8
|
-
export declare function useApiSubscribe(): <D extends QueryDefinition<any, any, any, any>>(subscription: ThunkAction<QueryActionCreatorResult<D>, any, any, any>) => Promise<ResultTypeFrom<D> | undefined>;
|
package/dist/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createDispatchHook, createSelectorHook } from 'react-redux';
|
|
2
2
|
import { defaultRootState } from './Utils/store';
|
|
3
|
-
import {
|
|
3
|
+
import { useContext } from 'react';
|
|
4
4
|
import { IdFormContext } from './Contexts/FormContext';
|
|
5
5
|
import { StoreContext } from './Utils/StoreContext';
|
|
6
6
|
const useSelector = createSelectorHook(StoreContext);
|
|
@@ -20,19 +20,3 @@ export const useAppSelector = (selector, options) => {
|
|
|
20
20
|
return useSelector((state) => selector(state.forms[idForm] ?? defaultRootState), options);
|
|
21
21
|
};
|
|
22
22
|
export const selectBreakPoint = (state) => state.widthStats.currentBreakPoint;
|
|
23
|
-
export function useApiSubscribe() {
|
|
24
|
-
const dispatch = useAppDispatch();
|
|
25
|
-
const subscriptions = useRef([]);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
const subs = subscriptions.current;
|
|
28
|
-
return () => {
|
|
29
|
-
subs.forEach((unsubscribe) => unsubscribe());
|
|
30
|
-
};
|
|
31
|
-
}, []);
|
|
32
|
-
const subscribe = useCallback(async (subscription) => {
|
|
33
|
-
const result = dispatch(subscription);
|
|
34
|
-
result.unsubscribe();
|
|
35
|
-
return (await result).data;
|
|
36
|
-
}, [dispatch]);
|
|
37
|
-
return subscribe;
|
|
38
|
-
}
|
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.49-new-steps",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"watch": "tsgo --noEmit --watch --project tsconfig.app.json",
|
|
7
7
|
"start": "vite",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"build-storybook": "storybook build"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
+
"@base-ui/react": "^1.6.0",
|
|
19
20
|
"@reduxjs/toolkit": "2.11.2",
|
|
20
21
|
"axios": "1.16.0",
|
|
21
22
|
"date-fns": "4.1.0",
|
|
22
23
|
"draft-js": "0.11.7",
|
|
23
24
|
"i18n-iso-countries": "7.14.0",
|
|
24
|
-
"jwt-decode": "4.0.0",
|
|
25
25
|
"libphonenumber-js": "1.12.42",
|
|
26
26
|
"logrocket": "12.1.1",
|
|
27
27
|
"nanoid": "5.1.11",
|
|
@@ -112,11 +112,5 @@
|
|
|
112
112
|
"main": "./dist/index.lib.js",
|
|
113
113
|
"files": [
|
|
114
114
|
"/dist"
|
|
115
|
-
]
|
|
116
|
-
"allowScripts": {
|
|
117
|
-
"@mui/x-telemetry@9.2.0": true,
|
|
118
|
-
"core-js@3.49.0": true,
|
|
119
|
-
"cypress@15.7.1": true,
|
|
120
|
-
"esbuild@0.27.7": true
|
|
121
|
-
}
|
|
115
|
+
]
|
|
122
116
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import ErkValueTypes from '../constants/ErkValueTypes';
|
|
2
|
-
import { EurekaDraft } from './Draft/Draft';
|
|
3
|
-
export type ErkValue = StepErkValue | DraftErkValue | BooleanErkValue;
|
|
4
|
-
interface StepErkValue {
|
|
5
|
-
type: ErkValueTypes.STEP;
|
|
6
|
-
idStep: string;
|
|
7
|
-
}
|
|
8
|
-
interface DraftErkValue {
|
|
9
|
-
type: ErkValueTypes.DRAFT;
|
|
10
|
-
value: EurekaDraft;
|
|
11
|
-
}
|
|
12
|
-
interface BooleanErkValue {
|
|
13
|
-
type: ErkValueTypes.BOOLEAN;
|
|
14
|
-
value: boolean;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
package/dist/@Types/ErkValue.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/@Types/User.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The currently active user
|
|
3
|
-
*/
|
|
4
|
-
export interface User {
|
|
5
|
-
/** The User's id (if capta agent)*/
|
|
6
|
-
_id?: string;
|
|
7
|
-
/** The User's name */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** The user's Email*/
|
|
10
|
-
email: string;
|
|
11
|
-
/** The expiration of the token */
|
|
12
|
-
exp: number;
|
|
13
|
-
}
|
package/dist/@Types/User.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useIconProps } from '../@ErkIcon';
|
|
3
|
-
function SchoolIcon(props) {
|
|
4
|
-
const iconProps = useIconProps(props);
|
|
5
|
-
return (_jsx("svg", { ...iconProps, version: "1.1", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M5 13.18v2.81c0 .73.4 1.41 1.04 1.76l5 2.73c.6.33 1.32.33 1.92 0l5-2.73c.64-.35 1.04-1.03 1.04-1.76v-2.81l-6.04 3.3c-.6.33-1.32.33-1.92 0zm6.04-9.66-8.43 4.6c-.69.38-.69 1.38 0 1.76l8.43 4.6c.6.33 1.32.33 1.92 0L21 10.09V16c0 .55.45 1 1 1s1-.45 1-1V9.59c0-.37-.2-.7-.52-.88l-9.52-5.19a2.04 2.04 0 0 0-1.92 0" }) }));
|
|
6
|
-
}
|
|
7
|
-
export default SchoolIcon;
|
package/dist/Icons/GroupIcon.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useIconProps } from './@ErkIcon';
|
|
3
|
-
function GroupIcon(props) {
|
|
4
|
-
const iconProps = useIconProps(props);
|
|
5
|
-
return (_jsx("svg", { ...iconProps, version: "1.1", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V17c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V17c0 .55.45 1 1 1h3.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H23c.55 0 1-.45 1-1zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3" }) }));
|
|
6
|
-
}
|
|
7
|
-
export default GroupIcon;
|
package/dist/Icons/LockedIcon.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useIconProps } from './@ErkIcon';
|
|
3
|
-
function LockedIcon(props) {
|
|
4
|
-
const iconProps = useIconProps(props);
|
|
5
|
-
return (_jsx("svg", { ...iconProps, version: "1.1", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M81.9,49.6c0-9-0.4-9.4-9.3-9.7c0,0,0,0,0,0c0-4,0-9-0.1-12.1C72,16,64.7,8.9,53,8.7c-2,0-4,0-6.1,0 c-13,0.1-20.6,8-20.4,20.9c0,0,0,0.1,0,0.1V40c-0.7,0-1.4,0-2.2,0c-5.8,0-7.1,1.4-7.1,7.2c0,12.3,0.1,24.6-0.1,36.9 c-0.1,4.7,1.8,6.9,6.5,6.9c17.4,0,34.7,0,52.1,0c4.4,0,6.4-2,6.3-6.5C81.8,72.9,81.9,61.3,81.9,49.6z M53.1,67.5v5.8 c0,2-1.6,3.5-3.5,3.5S46,75.2,46,73.3v-5.8c-2.9-1.3-5-4.3-5-7.8c0-4.7,3.8-8.5,8.5-8.5c4.7,0,8.5,3.8,8.5,8.5 C58.1,63.2,56,66.2,53.1,67.5z M61.7,39.9C61.7,39.9,61.7,39.9,61.7,39.9c-8.1,0-16.1,0.1-24.2,0.1v-8.5c0.1-0.6,0.1-1.2,0.1-1.7 c-0.1-7.3,4-10.3,13-10.1c7.4,0.1,11.1,3.6,11.1,10.6C61.7,33.5,61.7,36.7,61.7,39.9z" }) }));
|
|
6
|
-
}
|
|
7
|
-
export default LockedIcon;
|