jamespot-react-components 1.0.199 → 1.0.201

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.
@@ -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,16 @@
1
+ import React from 'react';
2
+ export type JRCDisplayCardProps = {
3
+ children: React.ReactNode;
4
+ loading?: boolean;
5
+ skeleton?: {
6
+ width?: string;
7
+ height?: string;
8
+ aspectRatio?: number;
9
+ };
10
+ width?: string;
11
+ height?: string;
12
+ aspectRatio?: number;
13
+ href?: string;
14
+ onClick?: () => void;
15
+ };
16
+ export declare const JRCDisplayCard: ({ children, href, ...props }: JRCDisplayCardProps) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { JRCDisplayCardProps } from './JRCDisplayCard';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ children, href, ...props }: JRCDisplayCardProps) => React.JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const Default: Story<JRCDisplayCardProps>;
10
+ export declare const Loading: Story<JRCDisplayCardProps>;
@@ -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>;
@@ -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';
@@ -100,6 +99,7 @@ export { JRCColumnLeft } from './components/JRCColumnLeft/JRCColumnLeft';
100
99
  export { JRCColumnRight } from './components/JRCColumnRight/JRCColumnRight';
101
100
  export { JRCCommentsBloc } from './components/JRCCommentsBloc/JRCCommentsBloc';
102
101
  export { JRCDate } from './components/JRCDate/JRCDate';
102
+ export { JRCDisplayCard } from './components/JRCDisplayCard/JRCDisplayCard';
103
103
  export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
104
104
  export { JRCEllipsis } from './components/JRCEllipsis/JRCEllipsis';
105
105
  export { JRCEmptySpace } from './components/JRCEmptySpace/JRCEmptySpace';
@@ -118,6 +118,7 @@ export { JRCImg } from './components/JRCImg/JRCImg';
118
118
  export { JRCList } from './components/JRCList/JRCList';
119
119
  export { JRCLoader } from './components/JRCLoader/JRCLoader';
120
120
  export { JRCMenu } from './components/JRCMenu/JRCMenu';
121
+ export { JRCMessage } from './components/JRCMessage/JRCMessage';
121
122
  export { JRCModalContent } from './components/JRCModal/JRCModalContent';
122
123
  export { JRCModalContentForm } from './components/JRCModal/JRCModalContentForm';
123
124
  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.199",
3
+ "version": "1.0.201",
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.172",
84
+ "jamespot-user-api": "^1.0.176",
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>>;