jamespot-react-components 1.0.149 → 1.0.151
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 +210 -207
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +4 -3
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +2 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +1 -0
- package/build/src/components/JRCModal/JRCModal.d.ts +1 -1
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +4 -4
- package/build/src/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -20,16 +20,17 @@ export type CheckboxProps<TFieldValues> = DataCy & {
|
|
|
20
20
|
backgroundOnHover?: boolean;
|
|
21
21
|
backgroundOnSelect?: boolean;
|
|
22
22
|
valueTypeIsBoolean?: boolean;
|
|
23
|
-
setOptionsChecked?: (string | number | TFieldValues)[] | undefined;
|
|
24
|
-
getOptionsChecked?: (options: (string | number | TFieldValues)[] | undefined) => void;
|
|
25
23
|
readOnly?: boolean;
|
|
26
24
|
getReadOnlyLabel?: (value: TFieldValues) => React.ReactNode;
|
|
27
25
|
};
|
|
28
26
|
export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
29
|
-
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
27
|
+
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value' | 'ref'> & {
|
|
28
|
+
ref?: React.ForwardedRef<HTMLInputElement>;
|
|
29
|
+
} & {
|
|
30
30
|
value: TFieldValues | TFieldValues[];
|
|
31
31
|
};
|
|
32
32
|
export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
33
|
+
export declare const JRCInputCheckboxRaw: <T extends FieldValues = FieldValues>(props: NativeCheckboxProps<T>) => JSX.Element;
|
|
33
34
|
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
|
|
34
35
|
export declare namespace JRCInputCheckbox {
|
|
35
36
|
var defaultProps: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputSelectProps, NativeSelectProps } from './JRCInputSelect.types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
|
-
export declare const Select: <T extends FieldValues = FieldValues>(props: NativeSelectProps<T>) => JSX.Element;
|
|
4
|
+
export declare const Select: <T extends FieldValues = FieldValues>(props: Pick<Partial<NativeSelectProps<T>>, "ref"> & Omit<NativeSelectProps<T>, "ref">) => JSX.Element;
|
|
5
5
|
export declare function JRCInputSelect<T extends FieldValues = FieldValues>(props: JRCInputSelectProps<T>): React.JSX.Element;
|
|
6
|
+
export declare const JRCInputSelectRaw: <T extends FieldValues = FieldValues>(props: Pick<Partial<NativeSelectProps<T>>, "ref"> & Omit<NativeSelectProps<T>, "ref">) => JSX.Element;
|
|
@@ -42,7 +42,7 @@ export interface JRCModalProps {
|
|
|
42
42
|
showIconClose?: boolean;
|
|
43
43
|
enableClickAwayCloseModal?: boolean;
|
|
44
44
|
contentFull?: boolean;
|
|
45
|
-
overflow?: 'hidden' | 'scroll';
|
|
45
|
+
overflow?: 'hidden' | 'scroll' | 'visible';
|
|
46
46
|
radius?: ModalBorderRadius;
|
|
47
47
|
isFull?: boolean;
|
|
48
48
|
isFullHeight?: boolean;
|
|
@@ -8,21 +8,21 @@ export declare const JRCModalContainerFull: import("styled-components").StyledCo
|
|
|
8
8
|
}, never>;
|
|
9
9
|
export declare const JRCModalContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
10
|
isFullHeight?: boolean | undefined;
|
|
11
|
-
overflow?: "hidden" | "scroll" | undefined;
|
|
11
|
+
overflow?: "hidden" | "visible" | "scroll" | undefined;
|
|
12
12
|
radius?: ModalBorderRadius | undefined;
|
|
13
13
|
maxHeight?: string | undefined;
|
|
14
14
|
}, never>;
|
|
15
15
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
16
|
export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
17
|
export declare const JRCModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
18
|
-
overflow?: "hidden" | "scroll" | undefined;
|
|
18
|
+
overflow?: "hidden" | "visible" | "scroll" | undefined;
|
|
19
19
|
}, never>;
|
|
20
20
|
export declare const JRCModalContentFull: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
21
|
export declare const JRCModalContentScrollbox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
22
22
|
export declare const JRCModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
23
|
-
overflow?: "hidden" | "scroll" | undefined;
|
|
23
|
+
overflow?: "hidden" | "visible" | "scroll" | undefined;
|
|
24
24
|
}, never>;
|
|
25
25
|
export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
26
|
-
overflow?: "hidden" | "scroll" | undefined;
|
|
26
|
+
overflow?: "hidden" | "visible" | "scroll" | undefined;
|
|
27
27
|
}, never>;
|
|
28
28
|
export declare const JRCModalClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export { JRCImageStepper } from './components/Stepper/JRCImageStepper';
|
|
|
90
90
|
export { JRCImg } from './components/JRCImg/JRCImg';
|
|
91
91
|
export { JRCInputAudience } from './components/Form/Input/JRCSelect/JRCInputAudience';
|
|
92
92
|
export { JRCInputAutocomplete } from './components/Form/Input/JRCSelect/JRCInputAutocomplete';
|
|
93
|
-
export { JRCInputCheckbox } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox';
|
|
93
|
+
export { JRCInputCheckbox, JRCInputCheckboxRaw } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox';
|
|
94
94
|
export { JRCInputCommunity } from './components/Form/Input/JRCSelect/JRCAutocompleteCommunity';
|
|
95
95
|
export { JRCInputDate } from './components/Form/Input/JRCInputDate/JRCInputDate';
|
|
96
96
|
export { JRCInputEmail } from './components/Form/Input/JRCFormEmail/JRCInputEmail';
|
|
@@ -100,6 +100,7 @@ export { JRCInputReorderCheckbox } from './components/Form/Input/JRCInputCheckbo
|
|
|
100
100
|
export { JRCInputRichText } from './components/Form/Input/JRCInputRichText/JRCInputRichText';
|
|
101
101
|
export { JRCInputSearch } from './components/Form/Input/JRCInputSearch/JRCInputSearch';
|
|
102
102
|
export { JRCInputSelect } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
103
|
+
export { JRCInputSelectRaw } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
103
104
|
export { JRCInputSelectHierarchicalTree } from './components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree';
|
|
104
105
|
export { JRCInputSelectList } from './components/Form/Input/JRCSelect/JRCInputSelectList';
|
|
105
106
|
export { JRCInputTaxonomy } from './components/Form/Input/JRCSelect/JRCInputTaxonomy';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.151",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"chroma-js": "^2.1.1",
|
|
90
90
|
"classnames": "^2.3.1",
|
|
91
91
|
"dompurify": "^3.0.5",
|
|
92
|
-
"jamespot-user-api": "^1.0.
|
|
92
|
+
"jamespot-user-api": "^1.0.124",
|
|
93
93
|
"moment": "^2.29.1",
|
|
94
94
|
"react": "^17.x",
|
|
95
95
|
"react-beautiful-dnd": "^13.1.1",
|