@web-site-utilities/feedback 0.0.18 → 0.0.19-dev.60aa6a2
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/index.cjs.js +255 -73
- package/dist/index.d.ts +94 -53
- package/dist/index.es.js +255 -73
- package/dist/index.iife.js +255 -73
- package/dist/{common → src/common}/components/Checkbox.d.ts +5 -5
- package/dist/{common → src/common}/components/ErrorMessage.d.ts +1 -1
- package/dist/src/common/components/Modal.d.ts +19 -0
- package/dist/{common → src/common}/components/QuestionMatrix.d.ts +6 -4
- package/dist/{common → src/common}/components/Radio.d.ts +3 -3
- package/dist/{common → src/common}/components/RangeSlide.d.ts +5 -5
- package/dist/{common → src/common}/components/Rating.d.ts +1 -1
- package/dist/{common → src/common}/components/Select.d.ts +4 -4
- package/dist/{common → src/common}/components/Step.d.ts +3 -2
- package/dist/{common → src/common}/components/StepsProgress.d.ts +1 -1
- package/dist/{common → src/common}/components/TextInput.d.ts +3 -3
- package/dist/{common → src/common}/components/Textarea.d.ts +2 -2
- package/dist/{common → src/common}/components/Typography.d.ts +2 -2
- package/dist/src/common/conf/endpoints.d.ts +5 -0
- package/dist/src/common/conf.d.ts +1 -0
- package/dist/src/common/conf.template.d.ts +1 -0
- package/dist/{common → src/common}/hooks/useStepper.d.ts +3 -0
- package/dist/{common → src/common}/theme/ThemeProvider.d.ts +1 -0
- package/dist/src/common/theme/breakpoints.d.ts +17 -0
- package/dist/src/common/types/DTO.d.ts +2288 -0
- package/dist/src/common/types/EndpointsConfig.d.ts +8 -0
- package/dist/{common → src/common}/types/FormConfig.d.ts +1 -1
- package/dist/{form → src/common}/types/InitiateFeedbackModuleOptions.d.ts +2 -1
- package/dist/{fields → src/fields}/Field/Field.d.ts +1 -2
- package/dist/{form → src/form}/App.d.ts +3 -4
- package/dist/{form → src/form}/api/baseApi.d.ts +3 -1
- package/dist/src/form/api/getFormConf.d.ts +8 -0
- package/dist/src/form/api/saveForm.d.ts +3 -0
- package/dist/src/form/api/useRequest.d.ts +13 -0
- package/dist/{form → src/form}/features/InPlaceForm/InPlaceForm.d.ts +10 -4
- package/dist/src/form/features/PopupForm/PopupForm.d.ts +11 -0
- package/dist/{form → src/form}/index.d.ts +4 -5
- package/package.json +6 -7
- package/tsconfig.json +7 -6
- package/dist/common/components/Modal.d.ts +0 -23
- package/dist/form/api/getFormConf.d.ts +0 -8
- package/dist/form/api/saveForm.d.ts +0 -2
- package/dist/form/api/useRequest.d.ts +0 -9
- package/dist/form/features/PopupForm/PopupForm.d.ts +0 -9
- /package/dist/{common → src/common}/components/Button.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/useForm.d.ts +0 -0
- /package/dist/{common → src/common}/types/CommonFieldProps.d.ts +0 -0
- /package/dist/{common → src/common}/types/FormError.d.ts +0 -0
- /package/dist/{common → src/common}/types/Locale.d.ts +0 -0
- /package/dist/{common → src/common}/types/Nullable.d.ts +0 -0
- /package/dist/{common → src/common}/types/Option.d.ts +0 -0
- /package/dist/{common → src/common}/types/ValidationPerStep.d.ts +0 -0
- /package/dist/{common → src/common}/types/isNil.d.ts +0 -0
- /package/dist/{form → src/form}/components/FeedbackInput/FeedbackInput.d.ts +0 -0
- /package/dist/{form → src/form}/hooks/useIsClient.d.ts +0 -0
- /package/dist/{form → src/form}/index.dev.d.ts +0 -0
|
@@ -12,16 +12,16 @@ type CheckboxProps = {
|
|
|
12
12
|
name: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const Checkbox: (props: CheckboxProps) => React.DOMElement<{
|
|
15
|
-
selected: boolean
|
|
15
|
+
selected: boolean;
|
|
16
16
|
children: (React.DOMElement<{
|
|
17
17
|
id: string;
|
|
18
18
|
type: string;
|
|
19
|
-
selected: boolean
|
|
20
|
-
colorVariant: Variants
|
|
19
|
+
selected: boolean;
|
|
20
|
+
colorVariant: Variants;
|
|
21
21
|
onChange: () => void;
|
|
22
22
|
name: string;
|
|
23
23
|
}, Element> | React.FunctionComponentElement<{
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
25
25
|
linear?: boolean;
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
}>)[];
|
|
@@ -36,7 +36,7 @@ export type CheckboxGroupProps = {
|
|
|
36
36
|
} & CommonFieldProps;
|
|
37
37
|
export declare const CheckboxGroup: (props: CheckboxGroupProps) => React.DetailedReactHTMLElement<{
|
|
38
38
|
children: (React.FunctionComponentElement<{
|
|
39
|
-
variant?: "
|
|
39
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
40
40
|
linear?: boolean;
|
|
41
41
|
children?: React.ReactNode;
|
|
42
42
|
}> | React.DOMElement<{
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ModalProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
heading: React.ReactNode;
|
|
7
|
+
footer: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const Modal: (props: ModalProps) => React.DOMElement<{
|
|
10
|
+
$visible: boolean;
|
|
11
|
+
onClick: React.MouseEventHandler<HTMLDialogElement>;
|
|
12
|
+
ref: React.RefObject<HTMLDialogElement>;
|
|
13
|
+
id: string;
|
|
14
|
+
children: React.DOMElement<{
|
|
15
|
+
$visible: boolean;
|
|
16
|
+
children: React.ReactNode[];
|
|
17
|
+
}, Element>;
|
|
18
|
+
}, HTMLDialogElement>;
|
|
19
|
+
export {};
|
|
@@ -24,17 +24,19 @@ export type QuestionMatrixProps = {
|
|
|
24
24
|
} & CommonFieldProps;
|
|
25
25
|
export declare const QuestionMatrix: (props: QuestionMatrixProps) => React.DetailedReactHTMLElement<{
|
|
26
26
|
children: (React.FunctionComponentElement<{
|
|
27
|
-
variant?: "
|
|
27
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
28
28
|
linear?: boolean;
|
|
29
29
|
children?: React.ReactNode;
|
|
30
30
|
}> | React.FunctionComponentElement<{
|
|
31
31
|
errors?: import("../types/FormError").FormError[];
|
|
32
32
|
}> | React.DOMElement<{
|
|
33
|
-
withText: string
|
|
33
|
+
$withText: string;
|
|
34
|
+
key: string;
|
|
34
35
|
children: (React.DOMElement<{
|
|
35
|
-
min: boolean;
|
|
36
|
+
$min: boolean;
|
|
37
|
+
key: string;
|
|
36
38
|
children: string;
|
|
37
|
-
}, Element> | React.FunctionComponentElement<QuestionMatrixItemProps>[]
|
|
39
|
+
}, Element> | React.FunctionComponentElement<QuestionMatrixItemProps>[])[];
|
|
38
40
|
}, Element>)[];
|
|
39
41
|
}, HTMLElement>;
|
|
40
42
|
export {};
|
|
@@ -15,13 +15,13 @@ export declare const Radio: (props: RadioProps) => React.DOMElement<{
|
|
|
15
15
|
selected: boolean;
|
|
16
16
|
htmlFor: string;
|
|
17
17
|
children: (React.FunctionComponentElement<{
|
|
18
|
-
variant?: "
|
|
18
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
19
19
|
linear?: boolean;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
}> | React.DOMElement<{
|
|
22
22
|
id: string;
|
|
23
23
|
type: string;
|
|
24
|
-
variant: Variants
|
|
24
|
+
variant: Variants;
|
|
25
25
|
selected: boolean;
|
|
26
26
|
onChange: () => void;
|
|
27
27
|
name: string;
|
|
@@ -37,7 +37,7 @@ export type RadioGroupProps = {
|
|
|
37
37
|
} & CommonFieldProps;
|
|
38
38
|
export declare const RadioGroup: (props: RadioGroupProps) => React.DetailedReactHTMLElement<{
|
|
39
39
|
children: (React.FunctionComponentElement<{
|
|
40
|
-
variant?: "
|
|
40
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
41
41
|
linear?: boolean;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
}> | React.FunctionComponentElement<{
|
|
@@ -13,7 +13,7 @@ export type RangeSlideProps = {
|
|
|
13
13
|
} & CommonFieldProps;
|
|
14
14
|
export declare const RangeSlide: (props: RangeSlideProps) => React.DOMElement<{
|
|
15
15
|
children: (React.FunctionComponentElement<{
|
|
16
|
-
variant?: "
|
|
16
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
17
17
|
linear?: boolean;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
}> | React.FunctionComponentElement<{
|
|
@@ -23,15 +23,15 @@ export declare const RangeSlide: (props: RangeSlideProps) => React.DOMElement<{
|
|
|
23
23
|
type: string;
|
|
24
24
|
min: number;
|
|
25
25
|
max: number;
|
|
26
|
-
useThemeColors: Variants
|
|
27
|
-
value:
|
|
28
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
26
|
+
useThemeColors: Variants;
|
|
27
|
+
value: number;
|
|
28
|
+
onChange: React.ChangeEventHandler<HTMLInputElement, Element>;
|
|
29
29
|
}, Element> | React.DOMElement<{
|
|
30
30
|
type: string;
|
|
31
31
|
value: string;
|
|
32
32
|
max: number;
|
|
33
33
|
min: number;
|
|
34
|
-
colorVariant: Variants
|
|
34
|
+
colorVariant: Variants;
|
|
35
35
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
36
36
|
}, Element>)[];
|
|
37
37
|
}, Element>)[];
|
|
@@ -19,7 +19,7 @@ export declare const Rating: ({ value, max, errors, label, onChange }: RatingPro
|
|
|
19
19
|
value: number;
|
|
20
20
|
max: number;
|
|
21
21
|
children: (React.FunctionComponentElement<{
|
|
22
|
-
variant?: "
|
|
22
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
23
23
|
linear?: boolean;
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
}> | React.FunctionComponentElement<{
|
|
@@ -12,16 +12,16 @@ export type SelectProps = {
|
|
|
12
12
|
} & CommonFieldProps;
|
|
13
13
|
export declare const Select: (props: SelectProps) => React.DetailedReactHTMLElement<{
|
|
14
14
|
children: (React.FunctionComponentElement<{
|
|
15
|
-
variant?: "
|
|
15
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
16
16
|
linear?: boolean;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
}> | React.FunctionComponentElement<{
|
|
19
19
|
errors?: import("../types/FormError").FormError[];
|
|
20
20
|
}> | React.DOMElement<{
|
|
21
|
-
colorVariant: Variants
|
|
22
|
-
value: string
|
|
21
|
+
colorVariant: Variants;
|
|
22
|
+
value: string;
|
|
23
23
|
defaultChecked: boolean;
|
|
24
|
-
defaultValue:
|
|
24
|
+
defaultValue: any;
|
|
25
25
|
onChange: React.ChangeEventHandler<HTMLSelectElement>;
|
|
26
26
|
children: (React.DOMElement<{
|
|
27
27
|
value: string;
|
|
@@ -7,8 +7,9 @@ type StepProps = {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
};
|
|
9
9
|
export declare const Step: (props: StepProps) => React.DOMElement<{
|
|
10
|
-
ref: React.RefObject<HTMLDivElement
|
|
11
|
-
|
|
10
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
11
|
+
key: string;
|
|
12
|
+
$height: number;
|
|
12
13
|
$isVisible: boolean;
|
|
13
14
|
children: React.ReactNode;
|
|
14
15
|
}, HTMLDivElement>;
|
|
@@ -9,7 +9,7 @@ type CheckboxGroupProps = {
|
|
|
9
9
|
export declare const StepsProgress: (props: CheckboxGroupProps) => React.DOMElement<{
|
|
10
10
|
children: React.DOMElement<{
|
|
11
11
|
key: string;
|
|
12
|
-
colorVariant: Variants
|
|
12
|
+
colorVariant: Variants;
|
|
13
13
|
shouldBeFilled: boolean;
|
|
14
14
|
children: string;
|
|
15
15
|
}, Element>[][];
|
|
@@ -14,8 +14,8 @@ export type TextInputProps = {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
} & CommonFieldProps;
|
|
16
16
|
export declare const TextInput: (props: TextInputProps) => React.DetailedReactHTMLElement<{
|
|
17
|
-
children: (
|
|
18
|
-
variant?: "
|
|
17
|
+
children: (React.FunctionComponentElement<{
|
|
18
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
19
19
|
linear?: boolean;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
}> | React.FunctionComponentElement<{
|
|
@@ -23,7 +23,7 @@ export declare const TextInput: (props: TextInputProps) => React.DetailedReactHT
|
|
|
23
23
|
}> | React.DOMElement<{
|
|
24
24
|
value: string;
|
|
25
25
|
type: string;
|
|
26
|
-
useThemeColors: Variants
|
|
26
|
+
useThemeColors: Variants;
|
|
27
27
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
28
28
|
}, Element>)[];
|
|
29
29
|
}, HTMLElement>;
|
|
@@ -12,14 +12,14 @@ export type TextareaProps = {
|
|
|
12
12
|
} & CommonFieldProps;
|
|
13
13
|
export declare const Textarea: (props: TextareaProps) => React.DOMElement<{
|
|
14
14
|
children: (React.FunctionComponentElement<{
|
|
15
|
-
variant?: "
|
|
15
|
+
variant?: "section" | "title" | "subtitle" | "subsection" | "paragraph";
|
|
16
16
|
linear?: boolean;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
}> | React.FunctionComponentElement<{
|
|
19
19
|
errors?: import("../types/FormError").FormError[];
|
|
20
20
|
}> | React.DOMElement<{
|
|
21
21
|
value: string;
|
|
22
|
-
|
|
22
|
+
key: string;
|
|
23
23
|
rows: number;
|
|
24
24
|
onChange: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
25
25
|
}, Element>)[];
|
|
@@ -6,8 +6,8 @@ type Props = {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export declare const Typography: (props: Props) => React.DOMElement<{
|
|
9
|
-
$variant: Variants
|
|
10
|
-
$linear: boolean
|
|
9
|
+
$variant: Variants;
|
|
10
|
+
$linear: boolean;
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
}, Element>;
|
|
13
13
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const env = "DEV";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const env = "__SITE_UTILS_ENV__";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { FormError } from '../types/FormError';
|
|
2
2
|
import { ValidationPerStep } from '../types/ValidationPerStep';
|
|
3
|
+
import { InitiateFeedbackModuleOptionsCmp } from '../types/InitiateFeedbackModuleOptions';
|
|
3
4
|
type UseStepperProps = {
|
|
4
5
|
state: Record<string, any>;
|
|
5
6
|
formId: string;
|
|
7
|
+
options: InitiateFeedbackModuleOptionsCmp;
|
|
6
8
|
stepsCount: number;
|
|
7
9
|
formType: string;
|
|
10
|
+
versionId: string;
|
|
8
11
|
validationsPerStep: ValidationPerStep;
|
|
9
12
|
domainId: string;
|
|
10
13
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StandardLonghandProperties } from "csstype";
|
|
2
|
+
export declare const breakpoints: {
|
|
3
|
+
xs: string;
|
|
4
|
+
s: string;
|
|
5
|
+
m: string;
|
|
6
|
+
l: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
type CSSObject = StandardLonghandProperties;
|
|
10
|
+
export declare const mq: (query: string) => (styles: CSSObject) => CSSObject;
|
|
11
|
+
export declare const media: {
|
|
12
|
+
mobile: (styles: CSSObject) => CSSObject;
|
|
13
|
+
tablet: (styles: CSSObject) => CSSObject;
|
|
14
|
+
laptop: (styles: CSSObject) => CSSObject;
|
|
15
|
+
desktop: (styles: CSSObject) => CSSObject;
|
|
16
|
+
};
|
|
17
|
+
export {};
|