jamespot-react-components 1.0.243 → 1.0.244
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/build/jamespot-react-components.js +5 -4
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +1 -0
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +5 -0
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.styles.d.ts +2 -0
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues>
|
|
|
32
32
|
ref?: React.ForwardedRef<HTMLInputElement>;
|
|
33
33
|
} & {
|
|
34
34
|
value: TFieldValues | TFieldValues[];
|
|
35
|
+
htmlFor?: string;
|
|
35
36
|
};
|
|
36
37
|
export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
37
38
|
export declare const StyledDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -3,9 +3,14 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form';
|
|
5
5
|
import { jFileLittle } from 'jamespot-user-api';
|
|
6
|
+
export type DropZoneDimensions = {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
6
10
|
export type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
|
|
7
11
|
token?: string | undefined;
|
|
8
12
|
attrName?: string;
|
|
13
|
+
dzDimensions?: DropZoneDimensions;
|
|
9
14
|
onLoading?: (state: boolean) => void;
|
|
10
15
|
aspectRatio?: number | undefined;
|
|
11
16
|
defaultImages?: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DropZoneDimensions } from './JRCInputImage';
|
|
1
2
|
export declare const InputFileWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const Grid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
4
|
position?: "right" | "bottom" | undefined;
|
|
@@ -6,6 +7,7 @@ export declare const Grid: import("styled-components").StyledComponent<"div", im
|
|
|
6
7
|
export declare const DropZone: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
8
|
position?: "right" | "bottom" | undefined;
|
|
8
9
|
columnCount: number;
|
|
10
|
+
dzDimensions?: DropZoneDimensions | undefined;
|
|
9
11
|
}, never>;
|
|
10
12
|
export declare const ReadOnlyImg: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
11
13
|
export declare const DropZoneButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.244",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"chroma-js": "^2.1.1",
|
|
81
81
|
"classnames": "^2.3.1",
|
|
82
82
|
"dompurify": "^3.0.5",
|
|
83
|
-
"jamespot-user-api": "^1.0.
|
|
83
|
+
"jamespot-user-api": "^1.0.218",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|