jamespot-react-components 1.0.220 → 1.0.222
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 +802 -781
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputColor/JRCInputColor.styles.d.ts +1 -1
- package/build/src/components/JRCAppContainer/JRCAppContainer.d.ts +2 -1
- package/build/src/components/JRCButton/JRCButton.d.ts +1 -1
- package/build/src/components/JRCButton/JRCButtonConfig.d.ts +4 -32
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +2 -2
- package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +1 -1
- package/build/src/components/JRCFlex/JRCFlexBox.d.ts +3 -2
- package/build/src/components/JRCProgressBar/JRCProgressBar.d.ts +6 -3
- package/build/src/components/JRCTooltip/JRCBaseTooltip.d.ts +1 -0
- package/build/src/components/Templates/JRCBase.template.d.ts +7 -1
- package/build/src/components/Templates/template.type.d.ts +6 -1
- package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey.d.ts +1 -1
- package/build/src/utils/index.d.ts +2 -1
- package/build/src/utils/utils.icons.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CSSColorPicker: import("styled-components").StyledComponent<"
|
|
1
|
+
export declare const CSSColorPicker: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
2
2
|
disabled?: boolean | undefined;
|
|
3
3
|
}, never>;
|
|
4
4
|
export declare const CSSColorPickerIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const CONTAINER_PADDING = 32;
|
|
3
3
|
export interface JRCAppContainerProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
maxWidth?: string;
|
|
5
6
|
}
|
|
6
|
-
declare const JRCAppContainer: (
|
|
7
|
+
declare const JRCAppContainer: ({ maxWidth, children }: JRCAppContainerProps) => React.JSX.Element;
|
|
7
8
|
export { JRCAppContainer };
|
|
@@ -39,7 +39,7 @@ export declare const transformColor: (color?: string) => JRCIconProps['color'];
|
|
|
39
39
|
* Button styling. May be used as a <a> tag
|
|
40
40
|
*/
|
|
41
41
|
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
42
|
-
themeButton: ButtonType;
|
|
42
|
+
$themeButton: ButtonType;
|
|
43
43
|
hasLabel: boolean;
|
|
44
44
|
} & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
|
|
45
45
|
/** Color of the background of the button */
|
|
@@ -1,48 +1,20 @@
|
|
|
1
1
|
import { Colors, ColorsOrShades } from '../../styles/theme';
|
|
2
2
|
import { ButtonColors } from './JRCButton';
|
|
3
|
-
|
|
4
|
-
color: string;
|
|
5
|
-
background: string;
|
|
6
|
-
border: string;
|
|
7
|
-
active: {
|
|
8
|
-
background: string;
|
|
9
|
-
border: string;
|
|
10
|
-
'text-decoration': string;
|
|
11
|
-
};
|
|
12
|
-
hover: {
|
|
13
|
-
background: string;
|
|
14
|
-
border: string;
|
|
15
|
-
'text-decoration': string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type Config = {
|
|
3
|
+
export type ButtonType = {
|
|
19
4
|
color: Colors;
|
|
20
5
|
background: Colors;
|
|
21
6
|
border: Colors;
|
|
22
7
|
active: {
|
|
23
8
|
background: ColorsOrShades;
|
|
24
9
|
border: ColorsOrShades;
|
|
10
|
+
'text-decoration'?: 'underline' | 'none';
|
|
25
11
|
};
|
|
26
12
|
hover: {
|
|
27
13
|
background: ColorsOrShades;
|
|
28
14
|
border: ColorsOrShades;
|
|
15
|
+
'text-decoration'?: 'underline' | 'none';
|
|
29
16
|
};
|
|
30
17
|
};
|
|
31
|
-
type ButtonConfig = Record<'contained' | 'outlined', Record<ButtonColors | 'disabled',
|
|
18
|
+
type ButtonConfig = Record<'contained' | 'outlined', Record<ButtonColors | 'disabled', ButtonType>> & Record<'link', Record<ButtonColors | 'disabled', ButtonType>>;
|
|
32
19
|
export declare const BUTTON_CONFIG: ButtonConfig;
|
|
33
|
-
export type ButtonType = {
|
|
34
|
-
color: string;
|
|
35
|
-
background: string;
|
|
36
|
-
border: string;
|
|
37
|
-
active: {
|
|
38
|
-
background: string;
|
|
39
|
-
border: string;
|
|
40
|
-
'text-decoration'?: string;
|
|
41
|
-
};
|
|
42
|
-
hover: {
|
|
43
|
-
background: string;
|
|
44
|
-
border: string;
|
|
45
|
-
'text-decoration'?: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
20
|
export {};
|
|
@@ -27,7 +27,7 @@ export type JRCButtonDropdownProps = {
|
|
|
27
27
|
export type ButtonProps = {
|
|
28
28
|
borderLeft?: boolean;
|
|
29
29
|
borderRight?: boolean;
|
|
30
|
-
themeButton: ButtonType;
|
|
30
|
+
$themeButton: ButtonType;
|
|
31
31
|
open?: boolean;
|
|
32
32
|
darker?: boolean;
|
|
33
33
|
};
|
|
@@ -36,7 +36,7 @@ export type OpenDirection = {
|
|
|
36
36
|
};
|
|
37
37
|
export type MenuWithTitleProps = OpenDirection & {
|
|
38
38
|
label: string;
|
|
39
|
-
themeButton: ButtonProps['themeButton'];
|
|
39
|
+
themeButton: ButtonProps['$themeButton'];
|
|
40
40
|
children: React.ReactNode;
|
|
41
41
|
};
|
|
42
42
|
export type DropdownOptionProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FastCssProps } from '../Common/FastCss';
|
|
2
|
+
export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
2
3
|
type FlexBoxProps = Omit<FastCssProps, 'display'> & {
|
|
3
|
-
direction?:
|
|
4
|
+
direction?: FlexDirection;
|
|
4
5
|
inline?: boolean;
|
|
5
6
|
flex?: boolean | string;
|
|
6
7
|
gap?: number;
|
|
@@ -9,7 +10,7 @@ type FlexBoxProps = Omit<FastCssProps, 'display'> & {
|
|
|
9
10
|
childFull?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export declare const JRCFlexBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Omit<FastCssProps, "display"> & {
|
|
12
|
-
direction?:
|
|
13
|
+
direction?: FlexDirection | undefined;
|
|
13
14
|
inline?: boolean | undefined;
|
|
14
15
|
flex?: string | boolean | undefined;
|
|
15
16
|
gap?: number | undefined;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Colors } from 'styles/theme';
|
|
2
3
|
export declare const CSSProgressBarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export declare const CSSProgressBar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
5
|
width: number;
|
|
5
6
|
color: string;
|
|
6
7
|
}, never>;
|
|
7
|
-
export
|
|
8
|
+
export type JRCProgressBarProps = {
|
|
8
9
|
value: number;
|
|
9
10
|
total: number;
|
|
10
|
-
threshold?: number
|
|
11
|
-
|
|
11
|
+
threshold?: number;
|
|
12
|
+
colorProgressBar?: Colors;
|
|
13
|
+
};
|
|
14
|
+
export declare const JRCProgressBar: ({ value, total, threshold, colorProgressBar }: JRCProgressBarProps) => React.JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LayoutMode } from './template.type';
|
|
2
3
|
export type JRCTemplateBaseProps = {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
isLoading: boolean;
|
|
6
|
+
loader?: React.ReactNode;
|
|
5
7
|
title?: React.ReactNode;
|
|
8
|
+
mode?: LayoutMode;
|
|
9
|
+
maxWidth?: string;
|
|
6
10
|
};
|
|
7
11
|
export declare const ChildrenContainerStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const
|
|
12
|
+
export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const Main: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
+
export declare const ChildrenContainer: ({ title, isLoading, loader, children }: Omit<JRCTemplateBaseProps, 'maxWidth'>) => React.JSX.Element;
|
|
9
15
|
export declare const JRCTemplateBase: React.FC<any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { FlexDirection } from '../JRCFlex/JRCFlexBox';
|
|
3
|
+
export type LayoutMode = 'fluid' | 'center' | 'centerTop';
|
|
3
4
|
export type ColumnPosition = 'left' | 'right';
|
|
4
5
|
export type JRCBasicAutoMarginContainerProps = {
|
|
5
6
|
children: React.ReactNode;
|
|
@@ -8,6 +9,8 @@ export type JRCContainerProps = {
|
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
className?: string;
|
|
10
11
|
mode?: LayoutMode;
|
|
12
|
+
maxWidth?: string;
|
|
13
|
+
flexDirection?: FlexDirection;
|
|
11
14
|
};
|
|
12
15
|
export type JRCColumnProps = {
|
|
13
16
|
children: React.ReactNode;
|
|
@@ -16,12 +19,14 @@ export type JRCColumnProps = {
|
|
|
16
19
|
padding?: string;
|
|
17
20
|
mode?: LayoutMode;
|
|
18
21
|
position?: ColumnPosition;
|
|
22
|
+
flex?: boolean;
|
|
19
23
|
};
|
|
20
24
|
export type JRCMainColumnProps = {
|
|
21
25
|
children: React.ReactNode;
|
|
22
26
|
className?: string;
|
|
23
27
|
mode?: LayoutMode;
|
|
24
28
|
padding?: string;
|
|
29
|
+
flex?: boolean;
|
|
25
30
|
};
|
|
26
31
|
export type JRCTabEntry = {
|
|
27
32
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WidgetQuickSurveyContentArr, WidgetQuickSurveyResponses
|
|
1
|
+
import { WidgetLegacyMixedBoolean, WidgetQuickSurveyContentArr, WidgetQuickSurveyResponses } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type JRCWidgetQuickSurveyProps = {
|
|
4
4
|
limit: number;
|
|
@@ -2,6 +2,7 @@ import * as array from './utils.array';
|
|
|
2
2
|
import * as color from './utils.color';
|
|
3
3
|
import * as date from './utils.date';
|
|
4
4
|
import * as document from './utils.document';
|
|
5
|
+
import * as icons from './utils.icons';
|
|
5
6
|
import * as image from './utils.image';
|
|
6
7
|
import * as file from './utils.files';
|
|
7
8
|
import * as misc from './utils.misc';
|
|
@@ -9,4 +10,4 @@ import * as object from './utils.object';
|
|
|
9
10
|
import * as regexp from './utils.regexp';
|
|
10
11
|
import * as string from './utils.string';
|
|
11
12
|
import * as time from './utils.time';
|
|
12
|
-
export { array, color, date, document, file, image, misc, object, regexp, string, time };
|
|
13
|
+
export { array, color, date, document, file, icons, image, misc, object, regexp, string, time };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const list: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.222",
|
|
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.202",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|