jamespot-react-components 1.0.236 → 1.0.238
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 +1028 -986
- 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/Deprecated/JRCFormFile/components/File.d.ts +3 -2
- package/build/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw.d.ts +4 -1
- 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/JRCButton/JRCButton.d.ts +3 -0
- package/build/src/components/JRCButton/JRCButtonConfig.d.ts +1 -0
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.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/JRCModal/JRCModal.styles.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +1 -1
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +1 -1
- package/build/src/components/Widgets/context/hooks.d.ts +1 -1
- package/build/src/components/api/jamespot/mock_jamespot.d.ts +1 -1
- package/build/src/components/api/jamespot/mocks/application/application.d.ts +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/styles/theme.d.ts +2 -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
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FileWithId } from '../../../JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
3
4
|
export declare const File: ({ file, index, token, step, attrName, onUploadSuccess, onDeleteSuccess, }: {
|
|
4
|
-
file:
|
|
5
|
+
file: FileWithId;
|
|
5
6
|
index: number;
|
|
6
7
|
step: number;
|
|
7
8
|
token: string | undefined;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Drive, JFileApi, JFilebankApi, jFileLittle, Network } from 'jamespot-user-api';
|
|
2
|
+
import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { WrappedFieldInputProps } from 'redux-form';
|
|
4
|
-
|
|
5
|
+
export type FileWithId = File & {
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
5
8
|
export type DriveOrFilebank = Drive | 'fileBank';
|
|
6
9
|
export interface JRCInputFileAdavancedProps extends React.ComponentPropsWithoutRef<'input'> {
|
|
7
10
|
required?: boolean;
|
|
@@ -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 }: {
|
|
@@ -7,6 +7,7 @@ export type ButtonColors = 'primary' | 'valid' | 'danger' | 'secondary' | 'cance
|
|
|
7
7
|
export type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
|
|
8
8
|
/** Color of the background of the button */
|
|
9
9
|
color?: ButtonColors;
|
|
10
|
+
themeCustom?: ButtonType;
|
|
10
11
|
/** Indicates loading of content on the button */
|
|
11
12
|
loader?: boolean;
|
|
12
13
|
/** This Boolean attribute specifies that the button should have input focus when the page loads */
|
|
@@ -42,6 +43,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
|
|
|
42
43
|
} & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
|
|
43
44
|
/** Color of the background of the button */
|
|
44
45
|
color?: ButtonColors | undefined;
|
|
46
|
+
themeCustom?: ButtonType | undefined;
|
|
45
47
|
/** Indicates loading of content on the button */
|
|
46
48
|
loader?: boolean | undefined;
|
|
47
49
|
/** This Boolean attribute specifies that the button should have input focus when the page loads */
|
|
@@ -71,6 +73,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
|
|
|
71
73
|
export declare const JRCButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
|
|
72
74
|
/** Color of the background of the button */
|
|
73
75
|
color?: ButtonColors | undefined;
|
|
76
|
+
themeCustom?: ButtonType | undefined;
|
|
74
77
|
/** Indicates loading of content on the button */
|
|
75
78
|
loader?: boolean | undefined;
|
|
76
79
|
/** This Boolean attribute specifies that the button should have input focus when the page loads */
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ButtonProps, MenuWithTitleProps, DropdownOptionProps } from './JRCButtonDropdown.types';
|
|
3
|
+
import { ButtonType } from '../JRCButton/JRCButtonConfig';
|
|
3
4
|
export declare const MarginLessJRCButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("../../types/dataAttributes").DataCy & {
|
|
4
5
|
color?: import("../JRCButton/JRCButton").ButtonColors | undefined;
|
|
6
|
+
themeCustom?: ButtonType | undefined;
|
|
5
7
|
loader?: boolean | undefined;
|
|
6
8
|
autofocus?: boolean | undefined;
|
|
7
9
|
value?: string | undefined;
|
|
@@ -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 {};
|
|
@@ -18,12 +18,12 @@ export declare const JRCModalContainer: import("styled-components").StyledCompon
|
|
|
18
18
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
19
|
export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
20
|
export declare const JRCModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
21
|
-
modalOverflow?: "hidden" | "scroll" | "visible" | undefined;
|
|
21
|
+
modalOverflow?: "hidden" | "auto" | "scroll" | "visible" | undefined;
|
|
22
22
|
}, never>;
|
|
23
23
|
export declare const JRCModalContentFull: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
24
24
|
export declare const JRCModalContentScrollbox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
25
|
export declare const JRCModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
26
|
-
modalOverflow?: "hidden" | "scroll" | "visible" | undefined;
|
|
26
|
+
modalOverflow?: "hidden" | "auto" | "scroll" | "visible" | undefined;
|
|
27
27
|
}, never>;
|
|
28
28
|
export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
29
29
|
modalOverflow?: "hidden" | "scroll" | "visible" | undefined;
|
|
@@ -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?: {
|
|
@@ -5,7 +5,7 @@ export type WidgetDatasourceHandlers = Handlers & {
|
|
|
5
5
|
jamespot: {
|
|
6
6
|
datasource: Omit<JDatasourceApi, 'jApi' | 'network'>;
|
|
7
7
|
network: Pick<Network, 'token' | 'postFile'>;
|
|
8
|
-
application: Pick<JApplicationApi, '
|
|
8
|
+
application: Pick<JApplicationApi, 'studioGet' | 'studioList'>;
|
|
9
9
|
filebank: JFilebankApi;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -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?: {
|
|
@@ -12,4 +12,4 @@ export declare const mock_api_network_default: Pick<import("jamespot-user-api").
|
|
|
12
12
|
export declare const mock_api_network_excel: Pick<import("jamespot-user-api").Network, "token" | "postFile" | "getUrl">;
|
|
13
13
|
export declare const mock_api_datasource_excel: Omit<import("jamespot-user-api").JDatasourceApi, "jApi" | "network">;
|
|
14
14
|
export declare const mock_api_datasource_studio: Omit<import("jamespot-user-api").JDatasourceApi, "jApi" | "network">;
|
|
15
|
-
export declare const mock_api_application: Pick<import("jamespot-user-api").JApplicationApi, "
|
|
15
|
+
export declare const mock_api_application: Pick<import("jamespot-user-api").JApplicationApi, "studioGet" | "studioList">;
|
|
@@ -3,7 +3,7 @@ export type ApplicationMocks = {
|
|
|
3
3
|
list: StudioApplicationBase[];
|
|
4
4
|
app: StudioApplicationBase;
|
|
5
5
|
};
|
|
6
|
-
export declare function getApplicationApiMock(mocks: ApplicationMocks): Pick<JApplicationApi, '
|
|
6
|
+
export declare function getApplicationApiMock(mocks: ApplicationMocks): Pick<JApplicationApi, 'studioGet' | 'studioList'>;
|
|
7
7
|
export declare const mock_studio_datasource_model: DatasourceModel;
|
|
8
8
|
export declare const mock_studio_datasource_data: any;
|
|
9
9
|
export declare const mock_studio_datasource_result: DatasourceResult<any>;
|
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.238",
|
|
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.214",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|