jamespot-react-components 1.0.200 → 1.0.202

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, faOptions, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const IconAfter: import("styled-components").StyledComponent<{
4
4
  ({ hasLicense, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick"> & import("../../../../types/dataAttributes").DataCy & {
5
5
  icon: string;
@@ -17,6 +17,8 @@ export declare const IconAfter: import("styled-components").StyledComponent<{
17
17
  bg?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | undefined;
18
18
  bgHover?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | undefined;
19
19
  iconSize?: number | undefined;
20
+ badgeNumber?: number | undefined;
21
+ badgeInline?: boolean | undefined;
20
22
  } & {
21
23
  type: string;
22
24
  variant: string;
@@ -37,6 +37,8 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
37
37
  bg?: import("../../styles/theme").Colors | import("../../styles/theme").Shades | undefined;
38
38
  bgHover?: import("../../styles/theme").Colors | import("../../styles/theme").Shades | undefined;
39
39
  iconSize?: number | undefined;
40
+ badgeNumber?: number | undefined;
41
+ badgeInline?: boolean | undefined;
40
42
  } & {
41
43
  type: string;
42
44
  variant: string;
@@ -32,6 +32,7 @@ export type JRCCommentsBlocProps = {
32
32
  activeDrives: DriveOrFilebank[];
33
33
  socialActionAdd: ({ targetId, targetType, type, }: AddRemoveActionParams) => ReturnType<typeof jamespot.socialAction.add>;
34
34
  variant?: 'modal' | 'inline';
35
+ canComment: boolean;
35
36
  };
36
37
  export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
37
- export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, variant, }: JRCCommentsBlocProps) => React.JSX.Element;
38
+ export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, variant, canComment, }: JRCCommentsBlocProps) => React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export type JRCDisplayCardProps = {
3
+ children: React.ReactNode;
4
+ loading?: boolean;
5
+ skeleton?: {
6
+ width?: string;
7
+ height?: string;
8
+ aspectRatio?: number;
9
+ };
10
+ width?: string;
11
+ height?: string;
12
+ aspectRatio?: number;
13
+ href?: string;
14
+ onClick?: () => void;
15
+ };
16
+ export declare const JRCDisplayCard: ({ children, href, ...props }: JRCDisplayCardProps) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { JRCDisplayCardProps } from './JRCDisplayCard';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ children, href, ...props }: JRCDisplayCardProps) => React.JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const Default: Story<JRCDisplayCardProps>;
10
+ export declare const Loading: Story<JRCDisplayCardProps>;
@@ -1,4 +1,7 @@
1
1
  import * as React from 'react';
2
+ type FontAwesomeOptions = {
3
+ style?: 'solid' | 'regular' | 'brands';
4
+ };
2
5
  /**
3
6
  * Props type for JRCIcon
4
7
  * @property name string: Name of the icon (required)
@@ -20,5 +23,7 @@ export interface JRCIconProps {
20
23
  /** margin */
21
24
  isMargin?: boolean;
22
25
  className?: string;
26
+ faOptions?: FontAwesomeOptions;
23
27
  }
24
- export declare const JRCIcon: ({ color, variant, name, size, isMargin, className, }: JRCIconProps) => React.JSX.Element;
28
+ export declare const JRCIcon: ({ color, variant, name, size, isMargin, className, faOptions, }: JRCIconProps) => React.JSX.Element;
29
+ export {};
@@ -32,6 +32,8 @@ export type JRCIconButtonProps = Omit<React.ComponentPropsWithoutRef<'button'>,
32
32
  bg?: Colors | Shades;
33
33
  bgHover?: Colors | Shades;
34
34
  iconSize?: number;
35
+ badgeNumber?: number;
36
+ badgeInline?: boolean;
35
37
  };
36
38
  declare const defaultProps: {
37
39
  type: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const VerticalItemFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, faOptions, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
4
  export interface ItemProps {
5
5
  isActive: boolean;
6
6
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  type MessageVariants = 'success' | 'error' | 'warning' | 'info';
3
3
  export type JRCMessageProps = {
4
4
  variant: MessageVariants;
5
- message: string;
5
+ message: string | React.ReactNode;
6
6
  };
7
7
  export declare const JRCMessage: ({ variant, message }: JRCMessageProps) => React.JSX.Element;
8
8
  export {};
@@ -13,5 +13,13 @@ export type JRCSidePanelModalProps = {
13
13
  footer?: ReactNode;
14
14
  removePadding?: boolean;
15
15
  inplace?: boolean;
16
+ offsetTop?: number;
16
17
  };
18
+ /**
19
+ * ℹ️⚠️
20
+ * Used as a child component of {@link JRCContainer}, the modal will be mounted in a preset portal container.
21
+ * Otherwise :
22
+ * - The modal will be mounted where it is declared (no portal).
23
+ * - The modal can be mounted in a specific portal container provided manually with the 'jrc-container-panel' id.
24
+ */
17
25
  export declare const JRCSidePanelModal: React.ForwardRefExoticComponent<JRCSidePanelModalProps & React.RefAttributes<HTMLDivElement>>;
@@ -3,6 +3,7 @@ export declare const JRCModalBox: import("styled-components").StyledComponent<"d
3
3
  position?: "left" | "right" | undefined;
4
4
  open?: boolean | undefined;
5
5
  inplace?: boolean | undefined;
6
+ offsetTop?: number | undefined;
6
7
  }, never>;
7
8
  export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
9
  export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -7,7 +7,7 @@ export declare const VerticalWrapper: import("styled-components").StyledComponen
7
7
  export declare const VerticalItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
8
8
  export declare const ItemButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ItemProps, never>;
9
9
  export declare const VerticalItemFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
- export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, faOptions, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
11
11
  /**
12
12
  * Interface of a single Menu Item props
13
13
  * @member label label of the tag
@@ -99,6 +99,7 @@ export { JRCColumnLeft } from './components/JRCColumnLeft/JRCColumnLeft';
99
99
  export { JRCColumnRight } from './components/JRCColumnRight/JRCColumnRight';
100
100
  export { JRCCommentsBloc } from './components/JRCCommentsBloc/JRCCommentsBloc';
101
101
  export { JRCDate } from './components/JRCDate/JRCDate';
102
+ export { JRCDisplayCard } from './components/JRCDisplayCard/JRCDisplayCard';
102
103
  export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
103
104
  export { JRCEllipsis } from './components/JRCEllipsis/JRCEllipsis';
104
105
  export { JRCEmptySpace } from './components/JRCEmptySpace/JRCEmptySpace';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.200",
3
+ "version": "1.0.202",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "chroma-js": "^2.1.1",
82
82
  "classnames": "^2.3.1",
83
83
  "dompurify": "^3.0.5",
84
- "jamespot-user-api": "^1.0.174",
84
+ "jamespot-user-api": "^1.0.177",
85
85
  "moment": "2.29.4",
86
86
  "react": "^17.x",
87
87
  "react-beautiful-dnd": "^13.1.1",