jamespot-react-components 1.0.237 → 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 +994 -985
- package/build/jamespot-react-components.js.map +1 -1
- 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/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/JRCModal/JRCModal.styles.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.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/styles/theme.d.ts +2 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
};
|
|
@@ -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/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",
|