jamespot-react-components 1.3.50 → 1.3.52
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/dist/jamespot-react-components.cjs +1232 -1177
- package/dist/jamespot-react-components.js +11071 -10705
- package/dist/src/components/Common/Outline.d.ts +2 -2
- package/dist/src/components/Editors/components/EditorPositionToggle.d.ts +3 -2
- package/dist/src/components/Editors/components/EditorRichTextDialog.d.ts +14 -0
- package/dist/src/components/Form/Input/{JRCInputCSSPosition/JRCInputCSSPosition.d.ts → JRCInputPosition/JRCInputPosition.d.ts} +2 -1
- package/dist/src/components/Form/Input/{JRCInputCSSPosition/JRCInputCSSPositionRaw.d.ts → JRCInputPosition/JRCInputPositionRaw.d.ts} +2 -1
- package/dist/src/components/Form/Input/JRCInputPosition/const.d.ts +17 -0
- package/dist/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +8 -8
- package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +4 -4
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +2 -2
- package/dist/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +8 -8
- package/dist/src/components/JRCButton/types.d.ts +6 -6
- package/dist/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +2 -2
- package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +1 -0
- package/dist/src/components/JRCDragNDrop/OneLevelStyles.d.ts +4 -4
- package/dist/src/components/JRCDragNDrop/styles.d.ts +12 -12
- package/dist/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +1 -1
- package/dist/src/components/JRCIconButton/JRCIconButton.d.ts +13 -13
- package/dist/src/components/JRCTooltip/JRCBaseTooltip.d.ts +1 -0
- package/dist/src/components/JRCTypography/JRCTypography.d.d.ts +3 -3
- package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetText.d.ts +16 -0
- package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetTextEditor.d.ts +18 -0
- package/dist/src/components/Widgets/const.d.ts +40 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/styles/Theme.stories.d.ts +1 -1
- package/dist/src/styles/theme.d.ts +20 -8
- package/dist/src/translation/lang.json.d.ts +5 -0
- package/dist/src/types.d.ts +1 -1
- package/dist/src/utils/utils.color.d.ts +4 -1
- package/dist/src/utils/utils.string.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Colors } from '../../styles/theme';
|
|
2
2
|
export type OutlineProps = {
|
|
3
3
|
offset?: string;
|
|
4
|
-
color?:
|
|
4
|
+
color?: Colors;
|
|
5
5
|
};
|
|
6
6
|
export declare const Outline: (args?: OutlineProps) => import('styled-components').RuleSet<object>;
|
|
7
7
|
export declare const FocusVisibleOutline: (args?: OutlineProps) => import('styled-components').RuleSet<object>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Position } from '../../Widgets/const';
|
|
2
2
|
import { ButtonColors } from '../../JRCButton/types';
|
|
3
|
-
import { Sizes } from '../../Form/Input/
|
|
4
|
-
export declare const EditorPositionToggle: ({ label, initialValue, onChange, color, size, }: {
|
|
3
|
+
import { Sizes } from '../../Form/Input/JRCInputPosition/const';
|
|
4
|
+
export declare const EditorPositionToggle: ({ label, initialValue, onChange, color, size, disabled, }: {
|
|
5
5
|
label?: string;
|
|
6
6
|
initialValue?: Position;
|
|
7
7
|
width?: string;
|
|
8
8
|
onChange: (value: Position) => void;
|
|
9
9
|
color?: ButtonColors;
|
|
10
10
|
size?: Sizes;
|
|
11
|
+
disabled?: boolean;
|
|
11
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JFileApi } from 'jamespot-user-api';
|
|
2
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
+
import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/types';
|
|
4
|
+
export type EditorRichTextDialogProps = {
|
|
5
|
+
text: string;
|
|
6
|
+
onChange: (text: string) => void;
|
|
7
|
+
token?: string;
|
|
8
|
+
additionalExtensions?: Array<TinyMCEExtension>;
|
|
9
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'> & Partial<Pick<JRCInputTinyMCERawProps, 'tinymceScriptSrc'>>;
|
|
10
|
+
handlers: {
|
|
11
|
+
file: Pick<JFileApi, 'upload'>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const EditorRichTextDialog: ({ text, onChange, token, additionalExtensions, tinyMCECommonOptions, handlers, }: EditorRichTextDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Position, Sizes } from './const';
|
|
2
2
|
import { ButtonColors } from '../../../JRCButton/types';
|
|
3
3
|
import { FieldPath, Control, FieldValues } from 'react-hook-form';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const JRCInputPosition: <T extends FieldValues>({ label, initialValue, width, onChange, color, size, control, name, disabled, }: {
|
|
5
5
|
label?: string;
|
|
6
6
|
initialValue?: Position;
|
|
7
7
|
width?: string;
|
|
@@ -10,4 +10,5 @@ export declare const JRCInputCSSPosition: <T extends FieldValues>({ label, initi
|
|
|
10
10
|
size?: Sizes;
|
|
11
11
|
name: FieldPath<T>;
|
|
12
12
|
control: Control<T>;
|
|
13
|
+
disabled?: boolean;
|
|
13
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ButtonColors } from '../../../JRCButton/types';
|
|
2
2
|
import { Position, Sizes } from './const';
|
|
3
|
-
export declare const JRCInputCSSPositionRaw: ({ value, onChange, color, size, }: {
|
|
3
|
+
export declare const JRCInputCSSPositionRaw: ({ value, onChange, color, size, disabled, }: {
|
|
4
4
|
label?: string;
|
|
5
5
|
value?: Position;
|
|
6
6
|
width?: string;
|
|
7
7
|
onChange: (value: Position) => void;
|
|
8
8
|
color?: ButtonColors;
|
|
9
9
|
size?: Sizes;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum Position {
|
|
2
|
+
TopLeft = "top-left",
|
|
3
|
+
TopCenter = "top-center",
|
|
4
|
+
TopRight = "top-right",
|
|
5
|
+
CenterLeft = "center-left",
|
|
6
|
+
Center = "center",
|
|
7
|
+
CenterRight = "center-right",
|
|
8
|
+
BottomLeft = "bottom-left",
|
|
9
|
+
BottomCenter = "bottom-center",
|
|
10
|
+
BottomRight = "bottom-right"
|
|
11
|
+
}
|
|
12
|
+
export declare const PositionOptions: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: Position;
|
|
15
|
+
iconName: string;
|
|
16
|
+
}[];
|
|
17
|
+
export type Sizes = 's' | 'm' | 'l';
|
|
@@ -8,13 +8,13 @@ export declare const IconAfter: import('node_modules/styled-components/dist/type
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
type?: "submit" | "reset" | "button";
|
|
10
10
|
bgBaseGrey?: 0 | 1 | 2;
|
|
11
|
-
color?: import('../../../..').Colors |
|
|
11
|
+
color?: import('../../../..').Colors | "inherit";
|
|
12
12
|
tooltip?: Omit<import('../../../..').JRCTooltipProps, "children">;
|
|
13
13
|
variant?: "circle" | "square";
|
|
14
14
|
hasLicense?: boolean;
|
|
15
|
-
bg?: import('../../../..').Colors
|
|
16
|
-
bgHover?: import('../../../..').Colors
|
|
17
|
-
borderColor?: import('../../../..').Colors
|
|
15
|
+
bg?: import('../../../..').Colors;
|
|
16
|
+
bgHover?: import('../../../..').Colors;
|
|
17
|
+
borderColor?: import('../../../..').Colors;
|
|
18
18
|
iconSize?: number;
|
|
19
19
|
badgeNumber?: number;
|
|
20
20
|
colorVariant?: string;
|
|
@@ -30,13 +30,13 @@ export declare const IconAfter: import('node_modules/styled-components/dist/type
|
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
type?: "submit" | "reset" | "button";
|
|
32
32
|
bgBaseGrey?: 0 | 1 | 2;
|
|
33
|
-
color?: import('../../../..').Colors |
|
|
33
|
+
color?: import('../../../..').Colors | "inherit";
|
|
34
34
|
tooltip?: Omit<import('../../../..').JRCTooltipProps, "children">;
|
|
35
35
|
variant?: "circle" | "square";
|
|
36
36
|
hasLicense?: boolean;
|
|
37
|
-
bg?: import('../../../..').Colors
|
|
38
|
-
bgHover?: import('../../../..').Colors
|
|
39
|
-
borderColor?: import('../../../..').Colors
|
|
37
|
+
bg?: import('../../../..').Colors;
|
|
38
|
+
bgHover?: import('../../../..').Colors;
|
|
39
|
+
borderColor?: import('../../../..').Colors;
|
|
40
40
|
iconSize?: number;
|
|
41
41
|
badgeNumber?: number;
|
|
42
42
|
colorVariant?: string;
|
|
@@ -7,11 +7,11 @@ export declare const Required: import('node_modules/styled-components/dist/types
|
|
|
7
7
|
className?: string;
|
|
8
8
|
weight?: keyof import('../../../../styles/theme').FontWeight;
|
|
9
9
|
size?: import('../../../JRCTypography/JRCTypography.d').TSizes;
|
|
10
|
-
color?: import('../../../..').
|
|
10
|
+
color?: import('../../../..').Colors;
|
|
11
11
|
children: string | import('react').ReactNode;
|
|
12
12
|
variant?: import('../../../JRCTypography/JRCTypography.d').TVariants;
|
|
13
13
|
align?: "center" | "left" | "right";
|
|
14
|
-
hoverColor?: import('../../../..').
|
|
14
|
+
hoverColor?: import('../../../..').Colors;
|
|
15
15
|
ellipsis?: boolean;
|
|
16
16
|
maxWidth?: string | number;
|
|
17
17
|
}, import('../../../Common/FastCss').FastCssProps & {
|
|
@@ -19,11 +19,11 @@ export declare const Required: import('node_modules/styled-components/dist/types
|
|
|
19
19
|
className?: string;
|
|
20
20
|
weight?: keyof import('../../../../styles/theme').FontWeight;
|
|
21
21
|
size?: import('../../../JRCTypography/JRCTypography.d').TSizes;
|
|
22
|
-
color?: import('../../../..').
|
|
22
|
+
color?: import('../../../..').Colors;
|
|
23
23
|
children: string | import('react').ReactNode;
|
|
24
24
|
variant?: import('../../../JRCTypography/JRCTypography.d').TVariants;
|
|
25
25
|
align?: "center" | "left" | "right";
|
|
26
|
-
hoverColor?: import('../../../..').
|
|
26
|
+
hoverColor?: import('../../../..').Colors;
|
|
27
27
|
ellipsis?: boolean;
|
|
28
28
|
maxWidth?: string | number;
|
|
29
29
|
}>, never>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutocompleteLittle, JGroupApi, JUserApi } from 'jamespot-user-api';
|
|
2
2
|
import { ComponentType, RefObject } from 'react';
|
|
3
3
|
import { ControllerRenderProps, FieldValues } from 'react-hook-form';
|
|
4
|
-
import { Colors
|
|
4
|
+
import { Colors } from '../../../../styles/theme';
|
|
5
5
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
6
6
|
import { PartialBy } from '../../../../types/utils';
|
|
7
7
|
import { FoldersHandlers } from '../../../JRCFolders/types';
|
|
@@ -14,7 +14,7 @@ export type NativeSelectProps<T extends FieldValues = FieldValues, U = any> = Pa
|
|
|
14
14
|
export type JRCInputSelectProps<T extends FieldValues = FieldValues, U = any> = JRCInputFieldProps<T> & SelectProps<U> & IconsProp;
|
|
15
15
|
type IconBase = {
|
|
16
16
|
icon: string;
|
|
17
|
-
color?: Colors |
|
|
17
|
+
color?: Colors | 'inherit';
|
|
18
18
|
};
|
|
19
19
|
export type IconsProp = {
|
|
20
20
|
iconBefore?: IconBase | (IconBase & {
|
|
@@ -28,13 +28,13 @@ export declare const JRCIconButtonAppLeftColumn: import('node_modules/styled-com
|
|
|
28
28
|
disabled?: boolean;
|
|
29
29
|
type?: "submit" | "reset" | "button";
|
|
30
30
|
bgBaseGrey?: 0 | 1 | 2;
|
|
31
|
-
color?: import('../..').Colors |
|
|
31
|
+
color?: import('../..').Colors | "inherit";
|
|
32
32
|
tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
|
|
33
33
|
variant?: "circle" | "square";
|
|
34
34
|
hasLicense?: boolean;
|
|
35
|
-
bg?: import('../..').Colors
|
|
36
|
-
bgHover?: import('../..').Colors
|
|
37
|
-
borderColor?: import('../..').Colors
|
|
35
|
+
bg?: import('../..').Colors;
|
|
36
|
+
bgHover?: import('../..').Colors;
|
|
37
|
+
borderColor?: import('../..').Colors;
|
|
38
38
|
iconSize?: number;
|
|
39
39
|
badgeNumber?: number;
|
|
40
40
|
colorVariant?: string;
|
|
@@ -50,13 +50,13 @@ export declare const JRCIconButtonAppLeftColumn: import('node_modules/styled-com
|
|
|
50
50
|
disabled?: boolean;
|
|
51
51
|
type?: "submit" | "reset" | "button";
|
|
52
52
|
bgBaseGrey?: 0 | 1 | 2;
|
|
53
|
-
color?: import('../..').Colors |
|
|
53
|
+
color?: import('../..').Colors | "inherit";
|
|
54
54
|
tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
|
|
55
55
|
variant?: "circle" | "square";
|
|
56
56
|
hasLicense?: boolean;
|
|
57
|
-
bg?: import('../..').Colors
|
|
58
|
-
bgHover?: import('../..').Colors
|
|
59
|
-
borderColor?: import('../..').Colors
|
|
57
|
+
bg?: import('../..').Colors;
|
|
58
|
+
bgHover?: import('../..').Colors;
|
|
59
|
+
borderColor?: import('../..').Colors;
|
|
60
60
|
iconSize?: number;
|
|
61
61
|
badgeNumber?: number;
|
|
62
62
|
colorVariant?: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { Colors
|
|
2
|
+
import { Colors } from '../../styles/theme';
|
|
3
3
|
import { DataCy } from '../../types/dataAttributes';
|
|
4
4
|
import { OutlineProps } from '../Common/Outline';
|
|
5
5
|
export type ButtonType = {
|
|
6
6
|
color: Colors;
|
|
7
|
-
background:
|
|
7
|
+
background: Colors;
|
|
8
8
|
border: Colors;
|
|
9
9
|
active: {
|
|
10
|
-
background:
|
|
11
|
-
border:
|
|
10
|
+
background: Colors;
|
|
11
|
+
border: Colors;
|
|
12
12
|
'text-decoration'?: 'underline' | 'none';
|
|
13
13
|
};
|
|
14
14
|
hover: {
|
|
15
|
-
background:
|
|
16
|
-
border:
|
|
15
|
+
background: Colors;
|
|
16
|
+
border: Colors;
|
|
17
17
|
'text-decoration'?: 'underline' | 'none';
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Colors
|
|
1
|
+
import { Colors } from '../../styles/theme';
|
|
2
2
|
import { JRCButtonProps } from '../JRCButton/JRCButton';
|
|
3
3
|
/**
|
|
4
4
|
* Interface to provide JRCButtonDownloadProps props
|
|
@@ -9,7 +9,7 @@ export interface JRCButtonDownloadProps extends JRCButtonProps {
|
|
|
9
9
|
data: object | string;
|
|
10
10
|
isIconButton?: boolean;
|
|
11
11
|
fileName?: string;
|
|
12
|
-
iconColor?: Colors |
|
|
12
|
+
iconColor?: Colors | 'inherit';
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -14,11 +14,11 @@ export declare const OneLevelMainTitle: import('node_modules/styled-components/d
|
|
|
14
14
|
className?: string;
|
|
15
15
|
weight?: keyof import('../../styles/theme').FontWeight;
|
|
16
16
|
size?: import('../JRCTypography/JRCTypography.d').TSizes;
|
|
17
|
-
color?: import('../..').
|
|
17
|
+
color?: import('../..').Colors;
|
|
18
18
|
children: string | import('react').ReactNode;
|
|
19
19
|
variant?: import('../JRCTypography/JRCTypography.d').TVariants;
|
|
20
20
|
align?: "center" | "left" | "right";
|
|
21
|
-
hoverColor?: import('../..').
|
|
21
|
+
hoverColor?: import('../..').Colors;
|
|
22
22
|
ellipsis?: boolean;
|
|
23
23
|
maxWidth?: string | number;
|
|
24
24
|
}, never>> & string & Omit<({ variant, ellipsis, size, weight, color, align, hoverColor, maxWidth, ...props }: import('../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -32,11 +32,11 @@ export declare const OneLevelStackTitle: import('node_modules/styled-components/
|
|
|
32
32
|
className?: string;
|
|
33
33
|
weight?: keyof import('../../styles/theme').FontWeight;
|
|
34
34
|
size?: import('../JRCTypography/JRCTypography.d').TSizes;
|
|
35
|
-
color?: import('../..').
|
|
35
|
+
color?: import('../..').Colors;
|
|
36
36
|
children: string | import('react').ReactNode;
|
|
37
37
|
variant?: import('../JRCTypography/JRCTypography.d').TVariants;
|
|
38
38
|
align?: "center" | "left" | "right";
|
|
39
|
-
hoverColor?: import('../..').
|
|
39
|
+
hoverColor?: import('../..').Colors;
|
|
40
40
|
ellipsis?: boolean;
|
|
41
41
|
maxWidth?: string | number;
|
|
42
42
|
}, never>> & string & Omit<({ variant, ellipsis, size, weight, color, align, hoverColor, maxWidth, ...props }: import('../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -10,11 +10,11 @@ export declare const SectionsTitle: import('node_modules/styled-components/dist/
|
|
|
10
10
|
className?: string;
|
|
11
11
|
weight?: keyof import('../../styles/theme').FontWeight;
|
|
12
12
|
size?: import('../JRCTypography/JRCTypography.d').TSizes;
|
|
13
|
-
color?: import('../..').
|
|
13
|
+
color?: import('../..').Colors;
|
|
14
14
|
children: string | import('react').ReactNode;
|
|
15
15
|
variant?: import('../JRCTypography/JRCTypography.d').TVariants;
|
|
16
16
|
align?: "center" | "left" | "right";
|
|
17
|
-
hoverColor?: import('../..').
|
|
17
|
+
hoverColor?: import('../..').Colors;
|
|
18
18
|
ellipsis?: boolean;
|
|
19
19
|
maxWidth?: string | number;
|
|
20
20
|
}, never>> & string & Omit<({ variant, ellipsis, size, weight, color, align, hoverColor, maxWidth, ...props }: import('../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -48,13 +48,13 @@ export declare const RemoveButton: import('node_modules/styled-components/dist/t
|
|
|
48
48
|
disabled?: boolean;
|
|
49
49
|
type?: "submit" | "reset" | "button";
|
|
50
50
|
bgBaseGrey?: 0 | 1 | 2;
|
|
51
|
-
color?: import('../..').Colors |
|
|
51
|
+
color?: import('../..').Colors | "inherit";
|
|
52
52
|
tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
|
|
53
53
|
variant?: "circle" | "square";
|
|
54
54
|
hasLicense?: boolean;
|
|
55
|
-
bg?: import('../..').Colors
|
|
56
|
-
bgHover?: import('../..').Colors
|
|
57
|
-
borderColor?: import('../..').Colors
|
|
55
|
+
bg?: import('../..').Colors;
|
|
56
|
+
bgHover?: import('../..').Colors;
|
|
57
|
+
borderColor?: import('../..').Colors;
|
|
58
58
|
iconSize?: number;
|
|
59
59
|
badgeNumber?: number;
|
|
60
60
|
colorVariant?: string;
|
|
@@ -70,13 +70,13 @@ export declare const RemoveButton: import('node_modules/styled-components/dist/t
|
|
|
70
70
|
disabled?: boolean;
|
|
71
71
|
type?: "submit" | "reset" | "button";
|
|
72
72
|
bgBaseGrey?: 0 | 1 | 2;
|
|
73
|
-
color?: import('../..').Colors |
|
|
73
|
+
color?: import('../..').Colors | "inherit";
|
|
74
74
|
tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
|
|
75
75
|
variant?: "circle" | "square";
|
|
76
76
|
hasLicense?: boolean;
|
|
77
|
-
bg?: import('../..').Colors
|
|
78
|
-
bgHover?: import('../..').Colors
|
|
79
|
-
borderColor?: import('../..').Colors
|
|
77
|
+
bg?: import('../..').Colors;
|
|
78
|
+
bgHover?: import('../..').Colors;
|
|
79
|
+
borderColor?: import('../..').Colors;
|
|
80
80
|
iconSize?: number;
|
|
81
81
|
badgeNumber?: number;
|
|
82
82
|
colorVariant?: string;
|
|
@@ -97,11 +97,11 @@ export declare const OneLevelTitle: import('node_modules/styled-components/dist/
|
|
|
97
97
|
className?: string;
|
|
98
98
|
weight?: keyof import('../../styles/theme').FontWeight;
|
|
99
99
|
size?: import('../JRCTypography/JRCTypography.d').TSizes;
|
|
100
|
-
color?: import('../..').
|
|
100
|
+
color?: import('../..').Colors;
|
|
101
101
|
children: string | import('react').ReactNode;
|
|
102
102
|
variant?: import('../JRCTypography/JRCTypography.d').TVariants;
|
|
103
103
|
align?: "center" | "left" | "right";
|
|
104
|
-
hoverColor?: import('../..').
|
|
104
|
+
hoverColor?: import('../..').Colors;
|
|
105
105
|
ellipsis?: boolean;
|
|
106
106
|
maxWidth?: string | number;
|
|
107
107
|
}, never>> & string & Omit<({ variant, ellipsis, size, weight, color, align, hoverColor, maxWidth, ...props }: import('../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { CSSProperties } from 'styled-components';
|
|
3
|
-
type EmptySpaceBgColor = 'sandLight' | '
|
|
3
|
+
type EmptySpaceBgColor = 'sandLight' | 'skyLight' | 'transparent';
|
|
4
4
|
type Alignment = CSSProperties['justifyContent'];
|
|
5
5
|
type JRCEmptySpaceProps = {
|
|
6
6
|
img?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
2
|
-
import { Colors
|
|
2
|
+
import { Colors } from '../../styles/theme';
|
|
3
3
|
import { DataCy } from '../../types/dataAttributes';
|
|
4
4
|
import { JRCTooltipProps } from '../JRCTooltip/types';
|
|
5
5
|
declare const colorVariants: Record<string, {
|
|
6
|
-
color: Colors
|
|
7
|
-
bg: Colors
|
|
8
|
-
bgHover: Colors
|
|
9
|
-
borderColor: Colors
|
|
6
|
+
color: Colors;
|
|
7
|
+
bg: Colors;
|
|
8
|
+
bgHover: Colors;
|
|
9
|
+
borderColor: Colors;
|
|
10
10
|
}>;
|
|
11
11
|
/**
|
|
12
12
|
* IconButton props
|
|
@@ -31,13 +31,13 @@ export type JRCIconButtonProps = Omit<ComponentPropsWithoutRef<'button'>, 'onCli
|
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
type?: 'submit' | 'reset' | 'button';
|
|
33
33
|
bgBaseGrey?: 0 | 1 | 2;
|
|
34
|
-
color?: Colors |
|
|
34
|
+
color?: Colors | 'inherit';
|
|
35
35
|
tooltip?: Omit<JRCTooltipProps, 'children'>;
|
|
36
36
|
variant?: 'circle' | 'square';
|
|
37
37
|
hasLicense?: boolean;
|
|
38
|
-
bg?: Colors
|
|
39
|
-
bgHover?: Colors
|
|
40
|
-
borderColor?: Colors
|
|
38
|
+
bg?: Colors;
|
|
39
|
+
bgHover?: Colors;
|
|
40
|
+
borderColor?: Colors;
|
|
41
41
|
iconSize?: number;
|
|
42
42
|
badgeNumber?: number;
|
|
43
43
|
colorVariant?: keyof typeof colorVariants;
|
|
@@ -54,13 +54,13 @@ export declare const JRCIconButton: import('react').ForwardRefExoticComponent<Om
|
|
|
54
54
|
disabled?: boolean;
|
|
55
55
|
type?: "submit" | "reset" | "button";
|
|
56
56
|
bgBaseGrey?: 0 | 1 | 2;
|
|
57
|
-
color?: Colors |
|
|
57
|
+
color?: Colors | "inherit";
|
|
58
58
|
tooltip?: Omit<JRCTooltipProps, "children">;
|
|
59
59
|
variant?: "circle" | "square";
|
|
60
60
|
hasLicense?: boolean;
|
|
61
|
-
bg?: Colors
|
|
62
|
-
bgHover?: Colors
|
|
63
|
-
borderColor?: Colors
|
|
61
|
+
bg?: Colors;
|
|
62
|
+
bgHover?: Colors;
|
|
63
|
+
borderColor?: Colors;
|
|
64
64
|
iconSize?: number;
|
|
65
65
|
badgeNumber?: number;
|
|
66
66
|
colorVariant?: keyof typeof colorVariants;
|
|
@@ -23,6 +23,7 @@ export type JRCBaseTooltipProps = {
|
|
|
23
23
|
events?: any;
|
|
24
24
|
asBlock?: boolean;
|
|
25
25
|
height?: string;
|
|
26
|
+
disabled?: boolean;
|
|
26
27
|
};
|
|
27
28
|
export declare const JRCBaseTooltip: import('react').ForwardRefExoticComponent<JRCBaseTooltipProps & import('react').RefAttributes<TooltipRefProps>>;
|
|
28
29
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Colors, FontWeight } from '../../styles/theme';
|
|
3
3
|
import { FastCssProps } from '../Common/FastCss';
|
|
4
4
|
export type TSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
5
5
|
export type TVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
@@ -22,7 +22,7 @@ export type JRCTypographyProps = FastCssProps & {
|
|
|
22
22
|
/** You can change the font-size with the size property */
|
|
23
23
|
size?: TSizes;
|
|
24
24
|
/** Text color */
|
|
25
|
-
color?:
|
|
25
|
+
color?: Colors;
|
|
26
26
|
/**ReactNode | text content of the button */
|
|
27
27
|
children: string | ReactNode;
|
|
28
28
|
/** You can change the semantic element with the variant property */
|
|
@@ -30,7 +30,7 @@ export type JRCTypographyProps = FastCssProps & {
|
|
|
30
30
|
/** Horizontal alignment */
|
|
31
31
|
align?: TAlignment;
|
|
32
32
|
/** Text color on hover **/
|
|
33
|
-
hoverColor?:
|
|
33
|
+
hoverColor?: Colors;
|
|
34
34
|
ellipsis?: boolean;
|
|
35
35
|
maxWidth?: string | number;
|
|
36
36
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type JRCWidgetTextProps = {
|
|
2
|
+
css?: {
|
|
3
|
+
display?: string;
|
|
4
|
+
justifyContent?: string;
|
|
5
|
+
alignItems?: string;
|
|
6
|
+
background?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
fontWeight?: string;
|
|
9
|
+
fontSize?: string | number;
|
|
10
|
+
lineHeight?: string | number;
|
|
11
|
+
textAlign?: string;
|
|
12
|
+
};
|
|
13
|
+
text?: string;
|
|
14
|
+
padding?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const JRCWidgetText: ({ text, padding, css }: JRCWidgetTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JFileApi, WidgetTextContent } from 'jamespot-user-api';
|
|
2
|
+
import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/types';
|
|
3
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
4
|
+
export interface JRCWidgetTextEditorProps extends WidgetTextContent {
|
|
5
|
+
uniqid: string;
|
|
6
|
+
content: WidgetTextContent;
|
|
7
|
+
onChangeContent: (uniqid: string, content: WidgetTextContent) => void;
|
|
8
|
+
token: string | undefined;
|
|
9
|
+
additionalExtensions?: Array<TinyMCEExtension>;
|
|
10
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'> & Partial<Pick<JRCInputTinyMCERawProps, 'tinymceScriptSrc'>>;
|
|
11
|
+
handlers: {
|
|
12
|
+
file: Pick<JFileApi, 'upload'>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Widget Text editor component
|
|
17
|
+
*/
|
|
18
|
+
export declare const JRCWidgetTextEditor: ({ uniqid, content, onChangeContent, token, additionalExtensions, tinyMCECommonOptions, handlers, }: JRCWidgetTextEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -75,6 +75,45 @@ export declare const PositionOptions: {
|
|
|
75
75
|
value: Position;
|
|
76
76
|
iconName: string;
|
|
77
77
|
}[];
|
|
78
|
+
export declare const cssFromPosition: {
|
|
79
|
+
readonly "top-left": {
|
|
80
|
+
readonly justifyContent: "flex-start";
|
|
81
|
+
readonly alignItems: "flex-start";
|
|
82
|
+
};
|
|
83
|
+
readonly "top-center": {
|
|
84
|
+
readonly justifyContent: "center";
|
|
85
|
+
readonly alignItems: "flex-start";
|
|
86
|
+
};
|
|
87
|
+
readonly "top-right": {
|
|
88
|
+
readonly justifyContent: "flex-end";
|
|
89
|
+
readonly alignItems: "flex-start";
|
|
90
|
+
};
|
|
91
|
+
readonly "center-left": {
|
|
92
|
+
readonly justifyContent: "flex-start";
|
|
93
|
+
readonly alignItems: "center";
|
|
94
|
+
};
|
|
95
|
+
readonly center: {
|
|
96
|
+
readonly justifyContent: "center";
|
|
97
|
+
readonly alignItems: "center";
|
|
98
|
+
};
|
|
99
|
+
readonly "center-right": {
|
|
100
|
+
readonly justifyContent: "flex-end";
|
|
101
|
+
readonly alignItems: "center";
|
|
102
|
+
};
|
|
103
|
+
readonly "bottom-left": {
|
|
104
|
+
readonly justifyContent: "flex-start";
|
|
105
|
+
readonly alignItems: "flex-end";
|
|
106
|
+
};
|
|
107
|
+
readonly "bottom-center": {
|
|
108
|
+
readonly justifyContent: "center";
|
|
109
|
+
readonly alignItems: "flex-end";
|
|
110
|
+
};
|
|
111
|
+
readonly "bottom-right": {
|
|
112
|
+
readonly justifyContent: "flex-end";
|
|
113
|
+
readonly alignItems: "flex-end";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare function getPositionFromCss(justifyContent: string | undefined, alignItems: string | undefined): Position;
|
|
78
117
|
export declare enum ProfileDisplayType {
|
|
79
118
|
OnlyPicture = "1",
|
|
80
119
|
WithFirstName = "2",
|
|
@@ -96,6 +135,7 @@ export declare const ProfilePictureSizeOptions: {
|
|
|
96
135
|
export declare enum TextFontWeight {
|
|
97
136
|
Normal = 400,
|
|
98
137
|
Medium = 500,
|
|
138
|
+
SemiBold = 600,
|
|
99
139
|
Bold = 700
|
|
100
140
|
}
|
|
101
141
|
export declare const TextFontWeightOptions: {
|
|
@@ -6,6 +6,10 @@ export { JRCDraggingPlaceholder } from './Common/JRCDraggingPlaceholder';
|
|
|
6
6
|
export { SkipToContent } from './Common/SkipToContent';
|
|
7
7
|
export { Deprecated_ClickAwayListener } from './Deprecated/Deprecated_ClickAwayListener/Deprecated_ClickAwayListener';
|
|
8
8
|
export { Deprecated_JRCEllipsis } from './Deprecated/Deprecated_JRCEllipsis/Deprecated_JRCEllipsis';
|
|
9
|
+
export { EditorButtonToggle } from './Editors/components/EditorButtonToggle';
|
|
10
|
+
export { EditorCheckbox } from './Editors/components/EditorCheckbox';
|
|
11
|
+
export { CSSEditorComponentSeparator } from './Editors/components/Editor.style';
|
|
12
|
+
export { TextFontWeightOptions, TextFontWeight, TextAlignOptions, TextAlign } from './Widgets/const';
|
|
9
13
|
export { JRCDriveDropbox } from './Drives/JRCDriveDropbox';
|
|
10
14
|
export { JRCDriveMSGraph } from './Drives/JRCDriveMSGraph';
|
|
11
15
|
export { JRCCheckbox } from './Form/Input/JRCInputCheckbox/components/JRCCheckbox';
|
|
@@ -178,6 +182,8 @@ export { JRCWidgetDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidg
|
|
|
178
182
|
export { JRCWidgetExcelDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor';
|
|
179
183
|
export { JRCWidgetTable } from './Widgets/JRCWidgetTable/JRCWidgetTable';
|
|
180
184
|
export { JRCWidgetTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetTableEditor';
|
|
185
|
+
export { JRCWidgetText } from './Widgets/JRCWidgetText/JRCWidgetText';
|
|
186
|
+
export { JRCWidgetTextEditor } from './Widgets/JRCWidgetText/JRCWidgetTextEditor';
|
|
181
187
|
export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile';
|
|
182
188
|
export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
|
|
183
189
|
export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
|
|
@@ -19,16 +19,28 @@ export type ThemeConfigOptions = {
|
|
|
19
19
|
bgColorNotLogged: string;
|
|
20
20
|
forest: string;
|
|
21
21
|
};
|
|
22
|
-
export type
|
|
23
|
-
|
|
22
|
+
export type ColorPalette = {
|
|
23
|
+
light: string;
|
|
24
|
+
medium: string;
|
|
25
|
+
base: string;
|
|
26
|
+
strong: string;
|
|
27
|
+
dark: string;
|
|
28
|
+
};
|
|
29
|
+
type PaletteVariants = Capitalize<keyof Omit<ColorPalette, 'base'>>;
|
|
30
|
+
export type GeneratedPaletteKeys<T extends string> = `${T}${PaletteVariants}`;
|
|
31
|
+
export declare const paletteColorsPrimary: readonly ["primary", "secondary", "green", "red"];
|
|
32
|
+
type PaletteColorsPrimaryKey = (typeof paletteColorsPrimary)[number];
|
|
33
|
+
type PaletteColorsPrimaryKeys = `${PaletteColorsPrimaryKey}${PaletteVariants}` | `${PaletteColorsPrimaryKey}`;
|
|
34
|
+
export declare const paletteColorsSecondary: readonly ["lavender", "navy", "overseas", "night1", "night2", "sky", "sand", "yellow"];
|
|
35
|
+
export type PaletteColorsSecondaryKey = (typeof paletteColorsSecondary)[number];
|
|
36
|
+
type PaletteColorsSecondaryKeys = `${PaletteColorsSecondaryKey}${PaletteVariants}` | `${PaletteColorsSecondaryKey}`;
|
|
37
|
+
export declare const paletteColorsGreys: readonly ["grey0", "grey1", "grey2", "grey3", "grey4", "grey5", "grey6"];
|
|
38
|
+
export declare const paletteColorsUtils: readonly ["black", "black10", "black15", "black20", "white", "transparent", "transparentHexa"];
|
|
39
|
+
export declare const paletteColorsPlatform: readonly ["headerColor", "headerTextColor", "headerUserBackground", "headerUserTextColor", "headerSearchBarTextColor", "headerSearchBarBackgroundColor", "navBackground", "navTextColor"];
|
|
40
|
+
export type Colors = PaletteColorsPrimaryKeys | PaletteColorsSecondaryKeys | (typeof paletteColorsGreys)[number] | (typeof paletteColorsUtils)[number] | (typeof paletteColorsPlatform)[number];
|
|
24
41
|
type ThemeConfigColorType = {
|
|
25
42
|
[color in Colors]: string;
|
|
26
43
|
};
|
|
27
|
-
export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'primaryLight' | 'primaryLightHover' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'greenLight' | 'greenLightHover' | 'raspberryL95' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20' | 'orangeLight' | 'orangeLightHover' | 'yellowL80' | 'yellowL90';
|
|
28
|
-
type ThemeConfigShadeType = {
|
|
29
|
-
[color in Shades]: string;
|
|
30
|
-
};
|
|
31
|
-
export type ColorsOrShades = Colors | Shades;
|
|
32
44
|
export type FontWeight = {
|
|
33
45
|
light: number;
|
|
34
46
|
normal: number;
|
|
@@ -49,7 +61,7 @@ export type ThemeType = {
|
|
|
49
61
|
lineHeight: string;
|
|
50
62
|
weight: FontWeight;
|
|
51
63
|
};
|
|
52
|
-
color: ThemeConfigColorType
|
|
64
|
+
color: ThemeConfigColorType;
|
|
53
65
|
zIndex: {
|
|
54
66
|
forceTop: number;
|
|
55
67
|
tinyMCEModal: number;
|