jamespot-react-components 1.0.199 → 1.0.200
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 +418 -424
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +3 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.d.ts +1 -1
- package/build/src/components/JRCMessage/JRCMessage.d.ts +8 -0
- package/build/src/components/JRCMessage/JRCMessage.stories.d.ts +8 -0
- package/build/src/index.d.ts +1 -1
- package/package.json +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputTaxonomy.d.ts +0 -9
- package/build/src/components/Form/Input/JRCSelect/JRCInputTaxonomy.stories.d.ts +0 -5
|
@@ -57,6 +57,7 @@ export type SelectProps = DataCy & {
|
|
|
57
57
|
required?: boolean;
|
|
58
58
|
allowCustomOptions?: boolean;
|
|
59
59
|
loading?: boolean;
|
|
60
|
+
limit?: number;
|
|
60
61
|
};
|
|
61
62
|
/**
|
|
62
63
|
* Autocomplete
|
|
@@ -67,7 +68,7 @@ export type AutocompleteLittle = {
|
|
|
67
68
|
uri: string;
|
|
68
69
|
title: string;
|
|
69
70
|
};
|
|
70
|
-
export type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & {
|
|
71
|
+
export type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & IconsProp & {
|
|
71
72
|
options?: Array<AutocompleteLittle>;
|
|
72
73
|
asyncPromise?: (inputValue: string) => Promise<Array<AutocompleteLittle>>;
|
|
73
74
|
allowCustomOption?: boolean;
|
|
@@ -76,4 +77,5 @@ export type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & {
|
|
|
76
77
|
icon?: string;
|
|
77
78
|
}>;
|
|
78
79
|
loading?: boolean;
|
|
80
|
+
limit?: number;
|
|
79
81
|
};
|
|
@@ -8,4 +8,4 @@ export type JRCInputSelectListProps<T extends FieldValues = FieldValues> = Omit<
|
|
|
8
8
|
displayModal?: boolean;
|
|
9
9
|
onChange: (values: BaseAutocomplete[]) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const JRCInputSelectList: <T extends FieldValues = FieldValues>({ asyncPromise, displayModal, inPlace, width, placeholder, onChange, control, name, ...props }: JRCInputSelectListProps<T>) => React.JSX.Element;
|
|
11
|
+
export declare const JRCInputSelectList: <T extends FieldValues = FieldValues>({ asyncPromise, displayModal, inPlace, width, placeholder, onChange, control, name, allowCustomOptions, ...props }: JRCInputSelectListProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type MessageVariants = 'success' | 'error' | 'warning' | 'info';
|
|
3
|
+
export type JRCMessageProps = {
|
|
4
|
+
variant: MessageVariants;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCMessage: ({ variant, message }: JRCMessageProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { JRCMessageProps } from './JRCMessage';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Info: Story<JRCMessageProps>;
|
|
6
|
+
export declare const Success: Story<JRCMessageProps>;
|
|
7
|
+
export declare const Warning: Story<JRCMessageProps>;
|
|
8
|
+
export declare const Error: Story<JRCMessageProps>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -81,7 +81,6 @@ export { JRCInputAutocomplete } from './components/Form/Input/JRCSelect/JRCInput
|
|
|
81
81
|
export { JRCInputSelect, JRCInputSelectRaw } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
82
82
|
export { JRCInputSelectHierarchicalTree } from './components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree';
|
|
83
83
|
export { JRCInputSelectList } from './components/Form/Input/JRCSelect/JRCInputSelectList';
|
|
84
|
-
export { JRCInputTaxonomy } from './components/Form/Input/JRCSelect/JRCInputTaxonomy';
|
|
85
84
|
export { JRCAlert } from './components/JRCAlert/JRCAlert';
|
|
86
85
|
export { JRCAppContainer } from './components/JRCAppContainer/JRCAppContainer';
|
|
87
86
|
export { JRCAppHeader } from './components/JRCAppHeader/JRCAppHeader';
|
|
@@ -118,6 +117,7 @@ export { JRCImg } from './components/JRCImg/JRCImg';
|
|
|
118
117
|
export { JRCList } from './components/JRCList/JRCList';
|
|
119
118
|
export { JRCLoader } from './components/JRCLoader/JRCLoader';
|
|
120
119
|
export { JRCMenu } from './components/JRCMenu/JRCMenu';
|
|
120
|
+
export { JRCMessage } from './components/JRCMessage/JRCMessage';
|
|
121
121
|
export { JRCModalContent } from './components/JRCModal/JRCModalContent';
|
|
122
122
|
export { JRCModalContentForm } from './components/JRCModal/JRCModalContentForm';
|
|
123
123
|
export { JRCModalLayout } from './components/JRCModal/JRCModalLayout';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.200",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"chroma-js": "^2.1.1",
|
|
82
82
|
"classnames": "^2.3.1",
|
|
83
83
|
"dompurify": "^3.0.5",
|
|
84
|
-
"jamespot-user-api": "^1.0.
|
|
84
|
+
"jamespot-user-api": "^1.0.174",
|
|
85
85
|
"moment": "2.29.4",
|
|
86
86
|
"react": "^17.x",
|
|
87
87
|
"react-beautiful-dnd": "^13.1.1",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FieldValues } from 'react-hook-form/dist/types';
|
|
3
|
-
import { JRCAutocompleteProps } from './JRCInputSelect.types';
|
|
4
|
-
export type JRCInputTaxonomyProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
|
|
5
|
-
type: string;
|
|
6
|
-
taxonomyId: string;
|
|
7
|
-
asyncPromise?: (inputValue: string) => Promise<any[]>;
|
|
8
|
-
};
|
|
9
|
-
export declare function JRCInputTaxonomy<T extends FieldValues = FieldValues>({ taxonomyId, type, asyncPromise, ...props }: JRCInputTaxonomyProps<T>): React.JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import { JRCInputTaxonomyProps } from './JRCInputTaxonomy';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const InputTaxonomy: Story<JRCInputTaxonomyProps<import("react-hook-form").FieldValues>>;
|