jamespot-react-components 1.0.96 → 1.0.104

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.
@@ -24,7 +24,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
24
24
  (props: Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("../../types/dataAttributes").DataCy & {
25
25
  icon: string;
26
26
  size?: "small" | "medium" | undefined;
27
- onClick?: ((event?: import("react").MouseEvent<Element, MouseEvent> | undefined) => void) | undefined;
27
+ onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
28
28
  name?: string | undefined;
29
29
  value?: string | undefined;
30
30
  disabled?: boolean | undefined;
@@ -4,4 +4,4 @@ export interface JRCDateProps {
4
4
  useHumanDisplay?: boolean;
5
5
  format?: DateFormat;
6
6
  }
7
- export declare const JRCDate: (props: JRCDateProps) => JSX.Element;
7
+ export declare const JRCDate: (props: JRCDateProps) => JSX.Element | null;
@@ -2,7 +2,7 @@
2
2
  import { JRCDateProps } from './JRCDate';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: (props: JRCDateProps) => JSX.Element;
5
+ component: (props: JRCDateProps) => JSX.Element | null;
6
6
  };
7
7
  export default _default;
8
8
  import { Story } from '@storybook/react';
@@ -7,6 +7,10 @@ import { DataCy } from '../../types/dataAttributes';
7
7
  export declare type JRCLinkToProps = DataCy & React.ComponentPropsWithoutRef<'a'> & {
8
8
  idObject?: number;
9
9
  };
10
+ declare type NativeProps = React.ComponentPropsWithoutRef<'a'> & {
11
+ href: string;
12
+ useLink?: boolean;
13
+ };
10
14
  declare type AnchorProps = {
11
15
  as?: 'a';
12
16
  };
@@ -22,8 +26,6 @@ declare type ButtonProps = {
22
26
  * Props type for JRCStyledHref
23
27
  * @member as render the link styled as a button
24
28
  */
25
- export declare type JRCStyledHrefProps = DataCy & React.ComponentPropsWithoutRef<'a'> & (AnchorProps | ButtonProps);
26
- export declare const JRCStyledHref: (props: JRCStyledHrefProps) => JSX.Element;
27
- export declare const JRCLinkToArticle: ({ idObject, href, children, ...props }: JRCLinkToProps) => JSX.Element;
28
- export declare const JRCLinkToUser: ({ idObject, href, children, ...props }: JRCLinkToProps) => JSX.Element;
29
+ export declare type JRCStyledHrefProps = DataCy & (AnchorProps | ButtonProps) & NativeProps;
30
+ export declare const JRCStyledHref: ({ href, ...props }: JRCStyledHrefProps) => JSX.Element;
29
31
  export {};
@@ -1,7 +1,5 @@
1
- import { JRCStyledHrefProps, JRCLinkToProps } from './JRCHref';
1
+ import { JRCStyledHrefProps } from './JRCHref';
2
2
  import { Meta, Story } from '@storybook/react';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
5
  export declare const Default: Story<JRCStyledHrefProps>;
6
- export declare const User: Story<JRCLinkToProps>;
7
- export declare const Article: Story<JRCLinkToProps>;
@@ -17,7 +17,7 @@ import { DataCy } from '../../types/dataAttributes';
17
17
  export declare type JRCIconButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
18
18
  icon: string;
19
19
  size?: 'small' | 'medium';
20
- onClick?: (event?: React.MouseEvent) => void;
20
+ onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
21
21
  name?: string;
22
22
  value?: string;
23
23
  disabled?: boolean;
@@ -30,6 +30,7 @@ export declare type JRCListProps<T extends Record<string, unknown>> = {
30
30
  manualSortBy?: boolean;
31
31
  draggable?: boolean;
32
32
  pagination?: LoadMorePagination | PaginationPagination;
33
+ orders?: Orders;
33
34
  };
34
35
  className?: string;
35
36
  };
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { JRCContainerProps } from './template.type';
2
- export declare const JRCContainer: ({ children, scrollRef, ...props }: JRCContainerProps) => JSX.Element;
3
+ export declare const JRCContainer: React.ForwardRefExoticComponent<JRCContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  export declare type JRCContainerProps = {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
- scrollRef?: React.MutableRefObject<HTMLDivElement>;
6
5
  };
7
6
  export declare type JRCColumnProps = {
8
7
  children: React.ReactNode;
@@ -69,7 +69,7 @@ export { JRCFormSendAlertField } from './components/Form/Input/JRCFormSendAlert/
69
69
  export { JRCFormTextarea, JRCFormTextareaField } from './components/Form/Input/JRCFormTextarea/JRCFormTextarea';
70
70
  export { JRCFormTextField } from './components/Form/Input/JRCFormText/JRCFormText';
71
71
  export { JRCFormUrlField } from './components/Form/Input/JRCFormURL/JRCFormUrl';
72
- export { JRCGrid } from 'components/JRCGrid/JRCGrid';
72
+ export { JRCGrid } from './components/JRCGrid/JRCGrid';
73
73
  export { JRCH1, JRCH2, JRCH3, JRCH4, JRCH5, JRCText } from './components/JRCTypo/JRCTypo';
74
74
  export { JRCIcon } from './components/JRCIcon/JRCIcon';
75
75
  export { JRCIconButton } from './components/JRCIconButton/JRCIconButton';
@@ -91,7 +91,7 @@ export { JRCModalImg } from './components/JRCModalImg/JRCModalImg';
91
91
  export { JRCPagination } from './components/JRCPagination/JRCPagination';
92
92
  export { JRCSkeletonLine } from './components/JRCSkeleton/JRCSkeletonLine';
93
93
  export { JRCSkeletonSquare } from './components/JRCSkeleton/JRCSkeletonSquare';
94
- export { JRCStyledHref, JRCLinkToUser, JRCLinkToArticle } from './components/JRCHref/JRCHref';
94
+ export { JRCStyledHref } from './components/JRCHref/JRCHref';
95
95
  export { JRCTabs, JRCTabPanel } from './components/JRCTabs/JRCTabs';
96
96
  export { JRCTag } from './components/JRCTag/JRCTag';
97
97
  export { JRCTemplateBase } from './components/Templates/JRCBase.template';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.96",
3
+ "version": "1.0.104",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -98,7 +98,7 @@
98
98
  "@types/redux-logger": "^3.0.8",
99
99
  "chroma-js": "^2.1.1",
100
100
  "classnames": "^2.3.1",
101
- "jamespot-user-api": "^1.0.72",
101
+ "jamespot-user-api": "^1.0.76",
102
102
  "moment": "^2.29.1",
103
103
  "react": "^17.x",
104
104
  "react-dnd": "^14.0.4",