jamespot-react-components 1.0.236 → 1.0.237
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 +511 -478
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +2 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +2 -0
- package/build/src/components/Form/Input/JRCStyledInput.d.ts +2 -0
- package/build/src/components/JRCCollapse/JRCCollapse.d.ts +8 -0
- package/build/src/components/JRCCollapse/JRCCollapse.stories.d.ts +9 -0
- package/build/src/components/JRCMessage/JRCMessage.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +1 -1
- package/build/src/components/Widgets/context/hooks.d.ts +1 -1
- package/build/src/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -42,6 +42,7 @@ export type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = Fie
|
|
|
42
42
|
margin?: string | undefined;
|
|
43
43
|
width?: string | undefined;
|
|
44
44
|
readOnly?: boolean;
|
|
45
|
+
noLabel?: boolean;
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
48
|
* Prop types for an input rendered by react-hook-form
|
|
@@ -52,4 +53,5 @@ export type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRende
|
|
|
52
53
|
margin?: string | undefined;
|
|
53
54
|
width?: string | undefined;
|
|
54
55
|
readOnly?: boolean;
|
|
56
|
+
noLabel?: boolean;
|
|
55
57
|
};
|
|
@@ -24,6 +24,7 @@ export type SelectProps = DataCy & {
|
|
|
24
24
|
multiple?: boolean;
|
|
25
25
|
getLabel?: ((option: any) => any) | string;
|
|
26
26
|
getValue?: ((option: any) => any) | string;
|
|
27
|
+
getDescription?: (option: any) => any;
|
|
27
28
|
disabled?: boolean;
|
|
28
29
|
readOnly?: boolean;
|
|
29
30
|
placeholder?: string;
|
|
@@ -58,6 +59,7 @@ export type SelectProps = DataCy & {
|
|
|
58
59
|
allowCustomOptions?: boolean;
|
|
59
60
|
loading?: boolean;
|
|
60
61
|
limit?: number;
|
|
62
|
+
size?: 'md' | 's';
|
|
61
63
|
};
|
|
62
64
|
/**
|
|
63
65
|
* Autocomplete
|
|
@@ -22,6 +22,7 @@ export declare const StyledInput: import("styled-components").StyledComponent<"i
|
|
|
22
22
|
}, never>;
|
|
23
23
|
export type StyledSelectProps = DataCy & IconsProps & {
|
|
24
24
|
searchable?: boolean;
|
|
25
|
+
sizeVariant?: 's' | 'md';
|
|
25
26
|
};
|
|
26
27
|
export declare const StyledSelect: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, DataCy & {
|
|
27
28
|
error?: boolean | undefined;
|
|
@@ -29,6 +30,7 @@ export declare const StyledSelect: import("styled-components").StyledComponent<"
|
|
|
29
30
|
readOnly?: boolean | undefined;
|
|
30
31
|
} & IconsProps & {
|
|
31
32
|
searchable?: boolean | undefined;
|
|
33
|
+
sizeVariant?: "s" | "md" | undefined;
|
|
32
34
|
}, never>;
|
|
33
35
|
export declare const MaxLengthIndicatorContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
34
36
|
export declare const MaxLengthIndicator: ({ maxLength, actualLength }: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
import { JRCCollapseProps } from './JRCCollapse';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: JRCCollapseProps) => React.JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: Story<JRCCollapseProps>;
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
type MessageVariants = 'success' | 'error' | 'warning' | 'info';
|
|
3
3
|
export type JRCMessageProps = {
|
|
4
4
|
variant: MessageVariants;
|
|
5
|
-
message
|
|
5
|
+
message?: string | React.ReactNode;
|
|
6
|
+
messages?: string[];
|
|
6
7
|
};
|
|
7
|
-
export declare const JRCMessage: ({ variant, message }: JRCMessageProps) => React.JSX.Element;
|
|
8
|
+
export declare const JRCMessage: ({ variant, message, messages }: JRCMessageProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -85,7 +85,7 @@ export declare const Primary: Story<{
|
|
|
85
85
|
backgroundColor?: string | undefined;
|
|
86
86
|
borderRadius?: string | undefined;
|
|
87
87
|
fontSize?: string | undefined;
|
|
88
|
-
buttonSize?: "
|
|
88
|
+
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
89
89
|
variant?: "contained" | "outlined" | undefined;
|
|
90
90
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
91
91
|
openingTypeLink?: {
|
|
@@ -79,7 +79,7 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
79
79
|
backgroundColor?: string | undefined;
|
|
80
80
|
borderRadius?: string | undefined;
|
|
81
81
|
fontSize?: string | undefined;
|
|
82
|
-
buttonSize?: "
|
|
82
|
+
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
83
83
|
variant?: "contained" | "outlined" | undefined;
|
|
84
84
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
85
85
|
openingTypeLink?: {
|
package/build/src/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export { JRCButtonDropdown } from './components/JRCButtonDropdown/JRCButtonDropd
|
|
|
98
98
|
export { JRCButtonFile } from './components/JRCButtonFile/JRCButtonFile';
|
|
99
99
|
export { JRCCard } from './components/JRCCard/JRCCard';
|
|
100
100
|
export { JRCCardImg } from './components/JRCCard/JRCCardImg';
|
|
101
|
+
export { JRCCollapse } from './components/JRCCollapse/JRCCollapse';
|
|
101
102
|
export { JRCColumnCenter } from './components/JRCColumnCenter/JRCColumnCenter';
|
|
102
103
|
export { JRCColumnLeft } from './components/JRCColumnLeft/JRCColumnLeft';
|
|
103
104
|
export { JRCColumnRight } from './components/JRCColumnRight/JRCColumnRight';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.237",
|
|
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.213",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|