jamespot-react-components 1.3.63 → 1.3.65

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.
Files changed (30) hide show
  1. package/dist/jamespot-react-components.cjs +1185 -1066
  2. package/dist/jamespot-react-components.js +27866 -21787
  3. package/dist/src/components/Common/Outline.d.ts +1 -1
  4. package/dist/src/components/Form/Common/FormHelper.d.ts +1 -1
  5. package/dist/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +8 -8
  6. package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +4 -4
  7. package/dist/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions.d.ts +7 -12
  8. package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +1 -1
  9. package/dist/src/components/JRCAlert/JRCAlert.d.ts +1 -1
  10. package/dist/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +8 -8
  11. package/dist/src/components/JRCButton/types.d.ts +1 -1
  12. package/dist/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +1 -1
  13. package/dist/src/components/JRCCalendar/useResponseStatus.d.ts +1 -1
  14. package/dist/src/components/JRCCard/JRCCard.d.ts +1 -1
  15. package/dist/src/components/JRCDragNDrop/OneLevelStyles.d.ts +4 -4
  16. package/dist/src/components/JRCDragNDrop/styles.d.ts +12 -12
  17. package/dist/src/components/JRCDropDown/JRCDropDown.d.ts +1 -1
  18. package/dist/src/components/JRCIconButton/JRCIconButton.d.ts +1 -1
  19. package/dist/src/components/JRCLoader/JRCLoader.d.ts +1 -1
  20. package/dist/src/components/JRCProgressBar/JRCProgressBar.d.ts +1 -1
  21. package/dist/src/components/JRCQRCode/JRCQRCode.d.ts +1 -1
  22. package/dist/src/components/JRCStyledHref/JRCStyledHref.d.ts +1 -1
  23. package/dist/src/components/JRCTypography/JRCTypography.d.d.ts +2 -1
  24. package/dist/src/components/Templates/template.styles.d.ts +1 -1
  25. package/dist/src/components/Templates/template.type.d.ts +1 -1
  26. package/dist/src/styles/theme.d.ts +1 -38
  27. package/dist/src/types.d.ts +2 -2
  28. package/dist/src/utils/index.d.ts +0 -2
  29. package/package.json +6 -4
  30. package/dist/src/utils/utils.color.d.ts +0 -96
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  export type OutlineProps = {
3
3
  offset?: string;
4
4
  color?: Colors;
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  import { JRCTooltipProps } from '../../JRCTooltip/types';
3
3
  /**
4
4
  * interface HelperProps props of the Form Helper Icon
@@ -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 | "inherit";
11
+ color?: import('jamespot-front-business').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('jamespot-front-business').Colors;
16
+ bgHover?: import('jamespot-front-business').Colors;
17
+ borderColor?: import('jamespot-front-business').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 | "inherit";
33
+ color?: import('jamespot-front-business').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('jamespot-front-business').Colors;
38
+ bgHover?: import('jamespot-front-business').Colors;
39
+ borderColor?: import('jamespot-front-business').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('../../../..').Colors;
10
+ color?: import('jamespot-front-business').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('../../../..').Colors;
14
+ hoverColor?: import('jamespot-front-business').Colors;
15
15
  ellipsis?: boolean;
16
16
  maxWidth?: string | number;
17
17
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -20,11 +20,11 @@ export declare const Required: import('node_modules/styled-components/dist/types
20
20
  className?: string;
21
21
  weight?: keyof import('../../../../styles/theme').FontWeight;
22
22
  size?: import('../../../JRCTypography/JRCTypography.d').TSizes;
23
- color?: import('../../../..').Colors;
23
+ color?: import('jamespot-front-business').Colors;
24
24
  children: string | import('react').ReactNode;
25
25
  variant?: import('../../../JRCTypography/JRCTypography.d').TVariants;
26
26
  align?: "center" | "left" | "right";
27
- hoverColor?: import('../../../..').Colors;
27
+ hoverColor?: import('jamespot-front-business').Colors;
28
28
  ellipsis?: boolean;
29
29
  maxWidth?: string | number;
30
30
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -1,13 +1,8 @@
1
- export declare const JTinyMCEExtensionsBuilders: {
2
- readonly jia: import('../types').TinyMCEExtensionBuilder<[{
3
- summarize: (text: string) => Promise<string>;
4
- develop: (text: string) => Promise<string>;
5
- tldr: (text: string) => Promise<string>;
6
- en: (text: string) => Promise<string>;
7
- es: (text: string) => Promise<string>;
8
- formal: (text: string) => Promise<string>;
9
- funny: (text: string) => Promise<string>;
10
- }, import('react-intl').IntlShape]>;
11
- readonly markdown: import('../types').TinyMCEExtensionBuilder<[(editor: import('tinymce').Editor) => void, import('react-intl').IntlShape]>;
12
- readonly gifs: import('../types').TinyMCEExtensionBuilder<[(editor: import('tinymce').Editor) => void, () => void]>;
1
+ import { TinyMCEExtensionBuilder } from '../types';
2
+ type TinyMCEExtensionBuilders = {
3
+ jia: TinyMCEExtensionBuilder<any[]>;
4
+ markdown: TinyMCEExtensionBuilder<any[]>;
5
+ gifs: TinyMCEExtensionBuilder<any[]>;
13
6
  };
7
+ export declare const JTinyMCEExtensionsBuilders: TinyMCEExtensionBuilders;
8
+ export {};
@@ -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 } from '../../../../styles/theme';
4
+ import { Colors } from 'jamespot-front-business';
5
5
  import { DataCy } from '../../../../types/dataAttributes';
6
6
  import { PartialBy } from '../../../../types/utils';
7
7
  import { FoldersHandlers } from '../../../JRCFolders/types';
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { MessageType } from '../../utils/utils.color';
2
+ import { MessageType } from 'jamespot-front-business';
3
3
  import { JRCButtonProps } from '../JRCButton/JRCButton';
4
4
  export interface JRCAlertProps extends ComponentPropsWithoutRef<'div'> {
5
5
  /** Alert title */
@@ -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 | "inherit";
31
+ color?: import('jamespot-front-business').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('jamespot-front-business').Colors;
36
+ bgHover?: import('jamespot-front-business').Colors;
37
+ borderColor?: import('jamespot-front-business').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 | "inherit";
53
+ color?: import('jamespot-front-business').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('jamespot-front-business').Colors;
58
+ bgHover?: import('jamespot-front-business').Colors;
59
+ borderColor?: import('jamespot-front-business').Colors;
60
60
  iconSize?: number;
61
61
  badgeNumber?: number;
62
62
  colorVariant?: string;
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { Colors } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
3
  import { DataCy } from '../../types/dataAttributes';
4
4
  import { OutlineProps } from '../Common/Outline';
5
5
  export type ButtonType = {
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  import { JRCButtonProps } from '../JRCButton/JRCButton';
3
3
  /**
4
4
  * Interface to provide JRCButtonDownloadProps props
@@ -1,5 +1,5 @@
1
1
  import { UserResponseStatus } from 'jamespot-user-api';
2
- import { Colors } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
3
  export declare const useResponseStatus: () => {
4
4
  getStatusColor: (status: UserResponseStatus | null) => Colors;
5
5
  getStatusLabel: (status: UserResponseStatus | null) => string;
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { MessageType } from '../../utils/utils.color';
2
+ import { MessageType } from 'jamespot-front-business';
3
3
  declare const PADDING: {
4
4
  mini: string;
5
5
  small: string;
@@ -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('../..').Colors;
17
+ color?: import('jamespot-front-business').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('../..').Colors;
21
+ hoverColor?: import('jamespot-front-business').Colors;
22
22
  ellipsis?: boolean;
23
23
  maxWidth?: string | number;
24
24
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -33,11 +33,11 @@ export declare const OneLevelStackTitle: import('node_modules/styled-components/
33
33
  className?: string;
34
34
  weight?: keyof import('../../styles/theme').FontWeight;
35
35
  size?: import('../JRCTypography/JRCTypography.d').TSizes;
36
- color?: import('../..').Colors;
36
+ color?: import('jamespot-front-business').Colors;
37
37
  children: string | import('react').ReactNode;
38
38
  variant?: import('../JRCTypography/JRCTypography.d').TVariants;
39
39
  align?: "center" | "left" | "right";
40
- hoverColor?: import('../..').Colors;
40
+ hoverColor?: import('jamespot-front-business').Colors;
41
41
  ellipsis?: boolean;
42
42
  maxWidth?: string | number;
43
43
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -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('../..').Colors;
13
+ color?: import('jamespot-front-business').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('../..').Colors;
17
+ hoverColor?: import('jamespot-front-business').Colors;
18
18
  ellipsis?: boolean;
19
19
  maxWidth?: string | number;
20
20
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -49,13 +49,13 @@ export declare const RemoveButton: import('node_modules/styled-components/dist/t
49
49
  disabled?: boolean;
50
50
  type?: "submit" | "reset" | "button";
51
51
  bgBaseGrey?: 0 | 1 | 2;
52
- color?: import('../..').Colors | "inherit";
52
+ color?: import('jamespot-front-business').Colors | "inherit";
53
53
  tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
54
54
  variant?: "circle" | "square";
55
55
  hasLicense?: boolean;
56
- bg?: import('../..').Colors;
57
- bgHover?: import('../..').Colors;
58
- borderColor?: import('../..').Colors;
56
+ bg?: import('jamespot-front-business').Colors;
57
+ bgHover?: import('jamespot-front-business').Colors;
58
+ borderColor?: import('jamespot-front-business').Colors;
59
59
  iconSize?: number;
60
60
  badgeNumber?: number;
61
61
  colorVariant?: string;
@@ -71,13 +71,13 @@ export declare const RemoveButton: import('node_modules/styled-components/dist/t
71
71
  disabled?: boolean;
72
72
  type?: "submit" | "reset" | "button";
73
73
  bgBaseGrey?: 0 | 1 | 2;
74
- color?: import('../..').Colors | "inherit";
74
+ color?: import('jamespot-front-business').Colors | "inherit";
75
75
  tooltip?: Omit<import('../..').JRCTooltipProps, "children">;
76
76
  variant?: "circle" | "square";
77
77
  hasLicense?: boolean;
78
- bg?: import('../..').Colors;
79
- bgHover?: import('../..').Colors;
80
- borderColor?: import('../..').Colors;
78
+ bg?: import('jamespot-front-business').Colors;
79
+ bgHover?: import('jamespot-front-business').Colors;
80
+ borderColor?: import('jamespot-front-business').Colors;
81
81
  iconSize?: number;
82
82
  badgeNumber?: number;
83
83
  colorVariant?: string;
@@ -98,11 +98,11 @@ export declare const OneLevelTitle: import('node_modules/styled-components/dist/
98
98
  className?: string;
99
99
  weight?: keyof import('../../styles/theme').FontWeight;
100
100
  size?: import('../JRCTypography/JRCTypography.d').TSizes;
101
- color?: import('../..').Colors;
101
+ color?: import('jamespot-front-business').Colors;
102
102
  children: string | import('react').ReactNode;
103
103
  variant?: import('../JRCTypography/JRCTypography.d').TVariants;
104
104
  align?: "center" | "left" | "right";
105
- hoverColor?: import('../..').Colors;
105
+ hoverColor?: import('jamespot-front-business').Colors;
106
106
  ellipsis?: boolean;
107
107
  maxWidth?: string | number;
108
108
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
- import { Colors } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
3
  export type JRCDropDownProps = {
4
4
  trigger: ReactElement | ((props: {
5
5
  role: 'button';
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, MouseEvent } from 'react';
2
- import { Colors } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
3
  import { DataCy } from '../../types/dataAttributes';
4
4
  import { JRCTooltipProps } from '../JRCTooltip/types';
5
5
  declare const colorVariants: Record<string, {
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  /**
3
3
  * Props type for JRCLoader
4
4
  * @member color string based on theme.tsx colors
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  type JRCProgressBarProps = {
3
3
  value: number;
4
4
  total: number;
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  export type JRCQRCodeProps = {
3
3
  value: string;
4
4
  color?: Colors;
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { Colors } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
3
  import { DataCy } from '../../types/dataAttributes';
4
4
  import { ButtonColors, ButtonSizes, ButtonType } from '../JRCButton/types';
5
5
  /**
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { Colors, FontWeight } from '../../styles/theme';
2
+ import { Colors } from 'jamespot-front-business';
3
+ import { FontWeight } from '../../styles/theme';
3
4
  import { FastCssProps } from '../Common/FastCss';
4
5
  export type TSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
5
6
  export type TVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
@@ -1,4 +1,4 @@
1
- import { Colors } from '../../styles/theme';
1
+ import { Colors } from 'jamespot-front-business';
2
2
  import { FlexDirection } from '../JRCFlex/JRCFlexBox';
3
3
  import { Closing, ColumnPosition, LayoutMode, Open } from './template.type';
4
4
  export declare const BasicAutoMarginWrapper: import('node_modules/styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
+ import { Colors } from 'jamespot-front-business';
2
3
  import { FlexDirection } from '../JRCFlex/JRCFlexBox';
3
- import { Colors } from '../../styles/theme';
4
4
  export type LayoutMode = 'fluid' | 'center' | 'centerTop' | 'full';
5
5
  export type ColumnPosition = 'left' | 'right';
6
6
  export type JRCBasicAutoMarginContainerProps = {
@@ -1,46 +1,10 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
+ import { ThemeConfigColorType, ThemeConfigOptions } from 'jamespot-front-business';
2
3
  interface ITheme {
3
4
  config: DefaultTheme | undefined;
4
5
  get: () => DefaultTheme;
5
6
  initTheme: (options?: ThemeConfigOptions) => DefaultTheme;
6
7
  }
7
- export type ThemeConfigOptions = {
8
- fontFamily?: string;
9
- linkColor: string;
10
- buttonColor: string;
11
- headerColor?: string;
12
- headerTextColor: string;
13
- headerUserBackground: string;
14
- headerUserTextColor: string;
15
- headerSearchBarTextColor: string;
16
- headerSearchBarBackgroundColor?: string;
17
- navBackground: string;
18
- navTextColor: string;
19
- bgColorNotLogged: string;
20
- forest: string;
21
- };
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];
41
- type ThemeConfigColorType = {
42
- [color in Colors]: string;
43
- };
44
8
  export type FontWeight = {
45
9
  light: number;
46
10
  normal: number;
@@ -90,6 +54,5 @@ export type ThemeType = {
90
54
  };
91
55
  };
92
56
  export declare function getColor(theme: ThemeType, color: string): string;
93
- export declare const defaultColors: ThemeConfigOptions;
94
57
  declare const Theme: ITheme;
95
58
  export default Theme;
@@ -82,8 +82,8 @@ export type { JRCTypographyProps } from './components/JRCTypography/JRCTypograph
82
82
  export type { JRCTemplateBaseProps } from './components/Templates/JRCBase.template';
83
83
  export type { JRCTemplateTwoColumnsProps } from './components/Templates/JRCTwoColumns.template';
84
84
  export type { JRCAppColumnProps, JRCAppTabsProps, JRCColumnProps, JRCContainerProps, JRCMainColumnProps, JRCTabEntry, LayoutMode, TabEventProps, } from './components/Templates/template.type';
85
+ export type { ThemeType } from './styles/theme';
85
86
  export type { JRCWidgetCheckListEntries } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
86
- export type { Colors, ThemeConfigOptions, ThemeType } from './styles/theme';
87
- export type { MessageType } from './utils/utils.color';
87
+ export type { MessageType } from 'jamespot-front-business';
88
88
  export type { OneLevelMainItemComponentProps, OneLevelStackItemComponentProps, OneLevelEmptyStateComponentProps, JRCDndOneLevelWithStackProps, } from './components/JRCDragNDrop/types';
89
89
  export { OneLevelItemTypes } from './components/JRCDragNDrop/types';
@@ -1,5 +1,4 @@
1
1
  import * as array from './utils.array';
2
- import * as color from './utils.color';
3
2
  import * as date from './utils.date';
4
3
  import * as document from './utils.document';
5
4
  import * as file from './utils.files';
@@ -13,7 +12,6 @@ import * as string from './utils.string';
13
12
  import * as time from './utils.time';
14
13
  export declare const Utils: {
15
14
  array: typeof array;
16
- color: typeof color;
17
15
  date: typeof date;
18
16
  document: typeof document;
19
17
  file: typeof file;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.63",
3
+ "version": "1.3.65",
4
4
  "description": "",
5
- "main": "dist/jamespot-react-components.js",
6
- "module": "dist/jamespot-react-components.mjs",
5
+ "main": "dist/jamespot-react-components.cjs",
6
+ "module": "dist/jamespot-react-components.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "type": "module",
9
9
  "nyc": {
@@ -16,6 +16,7 @@
16
16
  "@tanstack/react-table": "^8.21.3",
17
17
  "@types/react": "^19.2.9",
18
18
  "@types/react-dom": "^19.2.3",
19
+ "jamespot-front-business": "*",
19
20
  "jamespot-user-api": "*",
20
21
  "react": "^19.2.3",
21
22
  "react-dnd": "^14.0.5",
@@ -78,7 +79,8 @@
78
79
  "globals": "^16.5.0",
79
80
  "html2canvas": "^1.4.1",
80
81
  "husky": "^9.1.7",
81
- "jamespot-user-api": "^1.3.64",
82
+ "jamespot-front-business": "^1.3.66",
83
+ "jamespot-user-api": "^1.3.66",
82
84
  "jest": "^30.2.0",
83
85
  "jest-environment-jsdom": "^30.2.0",
84
86
  "knip": "^5.82.1",
@@ -1,96 +0,0 @@
1
- import { ColorPalette, GeneratedPaletteKeys } from '../styles/theme';
2
- type ColorTransparencyPercent = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
3
- export declare function colorTransparency(color: string, percent: ColorTransparencyPercent): string;
4
- export declare const colorimetry: {
5
- isValid: typeof isValidHexColor;
6
- rgb: (r: number, g: number, b: number) => {
7
- toHex: () => {
8
- string: () => string;
9
- };
10
- toHsb: () => {
11
- values: () => number[];
12
- hue: () => number;
13
- staturation: () => number;
14
- brightness: () => number;
15
- };
16
- };
17
- hsl: (hue: number, saturation: number, lightness: number) => {
18
- toHex: () => {
19
- values: () => string[];
20
- string: () => string;
21
- };
22
- };
23
- hsb: (hue: number, saturation: number, brightness: number) => {
24
- toRgb: () => {
25
- values: () => number[];
26
- red: () => number;
27
- green: () => number;
28
- blue: () => number;
29
- };
30
- };
31
- hex: (hex: string) => {
32
- toRgbaColor: (opacity: number) => string;
33
- toRgbColor: () => string;
34
- toRgb: () => {
35
- values: () => {
36
- r: number;
37
- g: number;
38
- b: number;
39
- };
40
- red: () => number;
41
- green: () => number;
42
- blue: () => number;
43
- };
44
- toHsl: () => {
45
- values: () => number[];
46
- hue: () => number;
47
- saturation: () => number;
48
- luminance: () => number;
49
- string: () => string;
50
- };
51
- };
52
- };
53
- export declare const getContrast50: (hexcolor: string) => "black" | "white";
54
- export declare const getContrastYIQ: (hexcolor: string) => "black" | "white";
55
- export declare function isValidHexColor(color: string): boolean;
56
- export declare const hexToRgb: (hex: string) => {
57
- r: number;
58
- g: number;
59
- b: number;
60
- };
61
- /**
62
- * @param hexColor a color in the format #XXX or #XXXXXX
63
- * @param adjustPercent a number between -1 and 1, <0 for darkening, >0 for lightening
64
- * @returns a string of the form #XXXXXX representing the modified color. Returns undefined if parameters are invalid.
65
- */
66
- export declare const modifyColorBrightness: (hexColor: string, adjustPercent: number) => string | undefined;
67
- export declare const HSBToRGB: (hue: number, saturation: number, brightness: number) => number[];
68
- export declare const RGBToHSB: (r: number, g: number, b: number) => number[];
69
- export declare const hexToHSL: (H: any) => number[];
70
- export declare function hlsToHex(h: number, s: number, l: number): string[];
71
- export declare const colorContrast: (color: string) => string;
72
- export declare const brightness: (color: string) => number;
73
- export declare const rgbToHex: (r: number, g: number, b: number) => string;
74
- /**
75
- * Darkens the color following a linear distorsion
76
- * @param hex Color in hexadecimal format, beginning with the # character
77
- * @param darkPercentage dark percentage (bewteen 0 and 1, 0 beeing the same color, 1 beeing black)
78
- * @returns hexadecimal color
79
- */
80
- export declare const getDarkShade: (hex: string, darkPercentage: number) => string;
81
- /**
82
- * Lightens the color following a linear distorsion
83
- * @param hex Color in hexadecimal format, beginning with the # character
84
- * @param lightPercentage light percentage (bewteen 0 and 1, 0 beeing the same color, 1 beeing white)
85
- * @returns hexadecimal color
86
- */
87
- export declare const getLightShade: (hex: string, lightPercentage: number) => string;
88
- export type MessageType = 'success' | 'error' | 'warning';
89
- export declare const MessageColor: {
90
- readonly success: "green";
91
- readonly error: "red";
92
- readonly warning: "yellow";
93
- };
94
- export declare const getColorPalette: (color: string) => ColorPalette;
95
- export declare const buildPaletteObject: <T extends string>(key: T, hex: string) => Record<GeneratedPaletteKeys<T> | T, string>;
96
- export {};