jamespot-react-components 1.0.131 → 1.0.132
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 +169 -86
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +3 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +16 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.d.ts +59 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.stories.d.ts +4 -0
- package/build/src/components/JRCSkeleton/JRCSkeletonList.d.ts +6 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -20,12 +20,14 @@ export declare 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;
|
|
23
25
|
};
|
|
24
26
|
export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
25
27
|
export declare type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
26
28
|
value: TFieldValues | TFieldValues[];
|
|
27
29
|
};
|
|
28
|
-
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper,
|
|
30
|
+
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
29
31
|
export declare namespace JRCInputCheckbox {
|
|
30
32
|
var defaultProps: {
|
|
31
33
|
direction: string;
|
|
@@ -279,12 +279,28 @@ export declare const TimesIcon: import("styled-components").StyledComponent<"i",
|
|
|
279
279
|
className: "react-icon icon-times";
|
|
280
280
|
}, "className">;
|
|
281
281
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
282
|
+
export declare const IconButtonSearch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
283
|
+
export declare const InputSelectHierarchySearch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
284
|
+
export declare const InputSelectCheckboxWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
285
|
+
export declare const CheckboxTags: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
286
|
+
export declare const CheckboxLabelButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
282
287
|
export declare const InputSelectSearch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
283
288
|
export declare const OptionSelectCell: import("styled-components").StyledComponent<"button", any, {
|
|
284
289
|
isSelected: boolean;
|
|
285
290
|
}, never>;
|
|
286
291
|
export declare const ModaContentInputSelectList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
287
292
|
export declare const ModaContentInputSelect: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
293
|
+
export declare const FlexBoxTreeDescription: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
294
|
+
export declare const FlexBoxTree: import("styled-components").StyledComponent<"div", any, Omit<import("../../../Common/FastCss").FastCssProps, "display"> & {
|
|
295
|
+
direction?: "row" | "column" | "column-reverse" | "row-reverse" | undefined;
|
|
296
|
+
inline?: boolean | undefined;
|
|
297
|
+
flex?: string | boolean | undefined;
|
|
298
|
+
gap?: number | undefined;
|
|
299
|
+
x?: "center" | "flex-end" | "flex-start" | undefined;
|
|
300
|
+
y?: "center" | "flex-end" | "flex-start" | undefined;
|
|
301
|
+
childFull?: boolean | undefined;
|
|
302
|
+
}, never>;
|
|
303
|
+
export declare const NoResult: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
288
304
|
export declare const WrapperList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
289
305
|
export declare const ModaContentList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
290
306
|
export declare const NoOptionList: import("styled-components").StyledComponent<"div", any, Omit<import("../../../Common/FastCss").FastCssProps, "display"> & {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JRCInputSelectProps } from './JRCInputSelect.types';
|
|
3
|
+
import { JRCModalProps } from 'components/JRCModal/JRCModal';
|
|
4
|
+
export declare type JRCInputSelectHierarchicalTreeProps = JRCInputSelectProps & JRCModalProps & {
|
|
5
|
+
hierarchicalTaxonomyPromise: (uriConcept: string) => Promise<any[]>;
|
|
6
|
+
displayModal?: boolean;
|
|
7
|
+
checkboxOptions: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: any;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare type SKOSTree = {
|
|
13
|
+
title: string;
|
|
14
|
+
uri: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const JRCInputSelectHierarchicalTree: React.ForwardRefExoticComponent<import("../Common/JRCFormFieldRenderer.types").FieldRenderProps & Required<Pick<import("react-hook-form").UseControllerProps<import("react-hook-form").FieldValues, string>, "name" | "control">> & {
|
|
17
|
+
rules?: import("../Common/useFormControls").FormControls | undefined;
|
|
18
|
+
rulesValidate?: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>> | undefined;
|
|
19
|
+
margin?: string | undefined;
|
|
20
|
+
width?: string | undefined;
|
|
21
|
+
} & import("../../../../types/dataAttributes").DataCy & {
|
|
22
|
+
options?: any[] | undefined;
|
|
23
|
+
asyncPromise?: ((inputValue: string, page?: number | undefined) => Promise<any[]>) | undefined;
|
|
24
|
+
multiple?: boolean | undefined;
|
|
25
|
+
getLabel?: string | ((option: any) => any) | undefined;
|
|
26
|
+
getValue?: string | ((option: any) => any) | undefined;
|
|
27
|
+
disabled?: boolean | undefined;
|
|
28
|
+
placeholder?: string | undefined;
|
|
29
|
+
searchable?: boolean | undefined;
|
|
30
|
+
getSearch?: string | ((option: any) => any) | undefined;
|
|
31
|
+
group?: boolean | undefined;
|
|
32
|
+
getGroup?: string | ((option: any) => any) | undefined;
|
|
33
|
+
views?: ("group" | "user" | "folder" | "community")[] | undefined;
|
|
34
|
+
onConfirm?: ((values: any) => void) | undefined;
|
|
35
|
+
hideSelectedOption?: boolean | undefined;
|
|
36
|
+
displayOption?: boolean | undefined;
|
|
37
|
+
displayIndicator?: boolean | undefined;
|
|
38
|
+
getOptionsSelected?: ((options: any) => void) | undefined;
|
|
39
|
+
setOptionsSelected?: any;
|
|
40
|
+
components?: {
|
|
41
|
+
Option?: React.ComponentType<{
|
|
42
|
+
option: any;
|
|
43
|
+
}> | undefined;
|
|
44
|
+
SelectedOption?: React.ComponentType<{
|
|
45
|
+
option: any;
|
|
46
|
+
}> | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
showAsyncResultOnEmptySearch?: boolean | undefined;
|
|
49
|
+
className?: string | undefined;
|
|
50
|
+
htmlFor?: string | undefined;
|
|
51
|
+
required?: boolean | undefined;
|
|
52
|
+
} & import("./JRCInputSelect.types").IconsProp & JRCModalProps & {
|
|
53
|
+
hierarchicalTaxonomyPromise: (uriConcept: string) => Promise<any[]>;
|
|
54
|
+
displayModal?: boolean | undefined;
|
|
55
|
+
checkboxOptions: Array<{
|
|
56
|
+
label: string;
|
|
57
|
+
value: any;
|
|
58
|
+
}>;
|
|
59
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export { JRCInputFile } from './components/Form/Input/JRCInputFile/JRCInputFile'
|
|
|
92
92
|
export { JRCInputImage } from './components/Form/Input/JRCInputImage/JRCInputImage';
|
|
93
93
|
export { JRCInputRichText } from './components/Form/Input/JRCInputRichText/JRCInputRichText';
|
|
94
94
|
export { JRCInputSelect } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
95
|
+
export { JRCInputSelectHierarchicalTree } from './components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree';
|
|
95
96
|
export { JRCInputSelectList } from './components/Form/Input/JRCSelect/JRCInputSelectList';
|
|
96
97
|
export { JRCInputText } from './components/Form/Input/JRCInputText/JRCInputText';
|
|
97
98
|
export { JRCInputTextIconButton } from './components/Form/Input/JRCInputText/JRCInputTextIconButton';
|
|
@@ -106,6 +107,7 @@ export { JRCModalImg } from './components/JRCModalImg/JRCModalImg';
|
|
|
106
107
|
export { JRCPagination } from './components/JRCPagination/JRCPagination';
|
|
107
108
|
export { JRCPanel } from './components/Templates/JRCPanel';
|
|
108
109
|
export { JRCSkeletonLine } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
110
|
+
export { JRCSkeletonList } from './components/JRCSkeleton/JRCSkeletonList';
|
|
109
111
|
export { JRCSkeletonSquare } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
110
112
|
export { JRCStepper } from './components/Stepper/JRCStepper';
|
|
111
113
|
export { JRCStepperPage } from './components/Templates/JRCStepperPage';
|
package/build/src/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { JRCAppLeftColumnProps, SectionEntry } from './components/JRCAppLeftColu
|
|
|
7
7
|
export { JRCAutocompleteAudienceProps } from './components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience';
|
|
8
8
|
export { JRCAutocompleteCommunityProps } from './components/Form/Input/JRCSelect/JRCAutocompleteCommunity';
|
|
9
9
|
export { JRCAutocompleteProps } from './components/Form/Input/JRCSelect/JRCInputSelect.types';
|
|
10
|
+
export { JRCInputSelectHierarchicalTreeProps } from './components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree';
|
|
10
11
|
export { JRCInputSelectListProps } from './components/Form/Input/JRCSelect/JRCInputSelectList';
|
|
11
12
|
export { JRCAutocompleteTaxonomyProps } from './components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy';
|
|
12
13
|
export { JRCAvatarProps } from './components/JRCAvatar/JRCAvatar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.132",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@tiptap/starter-kit": "^2.0.0-beta.203",
|
|
102
102
|
"chroma-js": "^2.1.1",
|
|
103
103
|
"classnames": "^2.3.1",
|
|
104
|
-
"jamespot-user-api": "^1.0.
|
|
104
|
+
"jamespot-user-api": "^1.0.103",
|
|
105
105
|
"moment": "^2.29.1",
|
|
106
106
|
"react": "^17.x",
|
|
107
107
|
"react-beautiful-dnd": "^13.1.1",
|