jamespot-react-components 1.0.96 → 1.0.99

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.
@@ -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>;
@@ -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
  };
@@ -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.99",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",