jamespot-react-components 1.0.119 → 1.0.121
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/README.internal.md +16 -0
- package/build/jamespot-react-components.js +410 -298
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputAudience.d.ts +8 -0
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -1
- package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +4 -6
- package/build/src/components/JRCTypography/JRCTypography.d.d.ts +3 -2
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +2 -1
- package/build/src/components/Stepper/JRCFadeStepper.d.ts +14 -0
- package/build/src/components/Stepper/JRCImageStepper.d.ts +14 -0
- package/build/src/components/Stepper/JRCStepper.d.ts +10 -0
- package/build/src/components/Stepper/JRCStepper.stories.d.ts +5 -0
- package/build/src/components/Stepper/JRCStepper.style.d.ts +5 -0
- package/build/src/hooks/useWindowSize.d.ts +1 -0
- package/build/src/index.d.ts +4 -0
- package/build/src/types.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
|
+
export declare type JRCInputAudienceProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & {
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
searchable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function JRCInputAudience<T extends FieldValues = FieldValues>(props: JRCInputAudienceProps<T>): JSX.Element;
|
|
@@ -29,7 +29,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
|
|
|
29
29
|
value?: string | undefined;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
31
31
|
type?: "button" | "reset" | "submit" | undefined;
|
|
32
|
-
bgBaseGrey?: 0 |
|
|
32
|
+
bgBaseGrey?: 0 | 1 | 2 | undefined;
|
|
33
33
|
color?: import("../../styles/theme").Colors | import("../../styles/theme").Shades | "inherit" | undefined;
|
|
34
34
|
tooltip?: Omit<import("../..").JRCTooltipProps, "children"> | undefined;
|
|
35
35
|
variant?: "circle" | "square" | undefined;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
import { JRCTabsProps } from './JRCTabs';
|
|
3
|
+
import { Meta, Story } from '@storybook/react';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const TabVertical: () => JSX.Element;
|
|
6
|
+
export declare const Primary: Story<JRCTabsProps>;
|
|
9
7
|
export declare const EmbeddedTab: () => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FastCssProps } from 'components/Common/FastCss';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Colors, FontWeight } from '../../styles/theme';
|
|
3
4
|
export declare type TSizes = 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
@@ -11,7 +12,7 @@ export declare type TWeight = keyof FontWeight;
|
|
|
11
12
|
* @member size You can change the font-size with the size property
|
|
12
13
|
* @member variant You can change the semantic element with the variant property
|
|
13
14
|
*/
|
|
14
|
-
export
|
|
15
|
+
export declare type JRCTypographyProps = FastCssProps & {
|
|
15
16
|
/** Additional className for override the component: */
|
|
16
17
|
className?: string;
|
|
17
18
|
/** You can custom the font-weight with the weight property */
|
|
@@ -24,4 +25,4 @@ export interface JRCTypographyProps {
|
|
|
24
25
|
children: string | React.ReactNode;
|
|
25
26
|
/** You can change the semantic element with the variant property */
|
|
26
27
|
variant?: TVariants;
|
|
27
|
-
}
|
|
28
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FastCssProps } from 'components/Common/FastCss';
|
|
1
2
|
import { JRCTypographyProps } from './JRCTypography.d';
|
|
2
3
|
export declare const lineHeightRatio = 1.5;
|
|
3
4
|
export declare const SIZES: Readonly<{
|
|
@@ -8,4 +9,4 @@ export declare const SIZES: Readonly<{
|
|
|
8
9
|
xxl: number;
|
|
9
10
|
xxxl: number;
|
|
10
11
|
}>;
|
|
11
|
-
export declare const Typography: import("styled-components").StyledComponent<"p", any, Pick<JRCTypographyProps, "color" | "size" | "weight"
|
|
12
|
+
export declare const Typography: import("styled-components").StyledComponent<"p", any, Pick<JRCTypographyProps, "color" | "size" | "weight"> & FastCssProps, never>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @member activeStep active step of the stepper. Starts at 0.
|
|
4
|
+
* @member children iterable of the steps (!!)
|
|
5
|
+
* @member onPrevious on previous click callback
|
|
6
|
+
* @member onNext on next click callback
|
|
7
|
+
*/
|
|
8
|
+
export declare type JRCFadeStepperProps = {
|
|
9
|
+
activeStep: number;
|
|
10
|
+
children: Iterable<React.ReactNode>;
|
|
11
|
+
onPrevious: (step: number) => void;
|
|
12
|
+
onNext: (step: number) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function JRCFadeStepper(props: JRCFadeStepperProps): JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @member stepNumber step number. Like an array, if there are two items, the stepNumber should be initialized to 2
|
|
4
|
+
* @member activeStep active step of the stepper. Starts at 0.
|
|
5
|
+
* @member src image source
|
|
6
|
+
* @member alt image alternative text
|
|
7
|
+
*/
|
|
8
|
+
export declare type JRCImageStepperProps = {
|
|
9
|
+
stepNumber: number;
|
|
10
|
+
activeStep: number;
|
|
11
|
+
src: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function JRCImageStepper(props: JRCImageStepperProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @member steps array of steps
|
|
4
|
+
* @member activeStep active step of the stepper. Starts at 0.
|
|
5
|
+
*/
|
|
6
|
+
export declare type JRCStepperProps = {
|
|
7
|
+
steps: Array<string>;
|
|
8
|
+
activeStep: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function JRCStepper(props: JRCStepperProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useWindowSize(): number[];
|
package/build/src/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export { JRCDate } from './components/JRCDate/JRCDate';
|
|
|
52
52
|
export { JRCDraggingPlaceholder } from './components/Common/JRCDraggingPlaceholder';
|
|
53
53
|
export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
|
|
54
54
|
export { JRCEllipsis } from './components/JRCEllipsis/JRCEllipsis';
|
|
55
|
+
export { JRCFadeStepper } from './components/Stepper/JRCFadeStepper';
|
|
55
56
|
export { JRCFileOpen } from './components/JRCFileOpen/JRCFileOpen';
|
|
56
57
|
export { JRCFlexBox } from './components/JRCFlex/JRCFlexBox';
|
|
57
58
|
export { JRCFolders } from './components/JRCFolders/JRCFolders';
|
|
@@ -76,7 +77,9 @@ export { JRCH1, JRCH2, JRCH3, JRCH4, JRCH5, JRCText } from './components/JRCTypo
|
|
|
76
77
|
export { JRCHtml } from './components/JRCHtml/JRCHtml';
|
|
77
78
|
export { JRCIcon } from './components/JRCIcon/JRCIcon';
|
|
78
79
|
export { JRCIconButton } from './components/JRCIconButton/JRCIconButton';
|
|
80
|
+
export { JRCImageStepper } from './components/Stepper/JRCImageStepper';
|
|
79
81
|
export { JRCImg } from './components/JRCImg/JRCImg';
|
|
82
|
+
export { JRCInputAudience } from './components/Form/Input/JRCSelect/JRCInputAudience';
|
|
80
83
|
export { JRCInputAutocomplete } from './components/Form/Input/JRCSelect/JRCInputAutocomplete';
|
|
81
84
|
export { JRCInputCheckbox } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox';
|
|
82
85
|
export { JRCInputCommunity } from './components/Form/Input/JRCSelect/JRCAutocompleteCommunity';
|
|
@@ -96,6 +99,7 @@ export { JRCModalImg } from './components/JRCModalImg/JRCModalImg';
|
|
|
96
99
|
export { JRCPagination } from './components/JRCPagination/JRCPagination';
|
|
97
100
|
export { JRCSkeletonLine } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
98
101
|
export { JRCSkeletonSquare } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
102
|
+
export { JRCStepper } from './components/Stepper/JRCStepper';
|
|
99
103
|
export { JRCStyledHref } from './components/JRCHref/JRCHref';
|
|
100
104
|
export { JRCTabs, JRCTabPanel } from './components/JRCTabs/JRCTabs';
|
|
101
105
|
export { JRCTag } from './components/JRCTag/JRCTag';
|
package/build/src/types.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { JRCConditionalWrapperProps } from './components/Common/JRCConditionalWr
|
|
|
23
23
|
export { JRCDateProps } from './components/JRCDate/JRCDate';
|
|
24
24
|
export { JRCDropDownProps } from './components/JRCDropDown/JRCDropDown';
|
|
25
25
|
export { JRCEllipsisProps } from './components/JRCEllipsis/JRCEllipsis';
|
|
26
|
+
export { JRCFadeStepper } from './components/Stepper/JRCFadeStepper';
|
|
26
27
|
export { JRCFileOpenProps } from './components/JRCFileOpen/JRCFileOpen';
|
|
27
28
|
export { JRCFlexBoxProps } from './components/JRCFlex/JRCFlexBox';
|
|
28
29
|
export { JRCFormCheckboxProps } from './components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types';
|
|
@@ -38,6 +39,7 @@ export { JRCH1Props, JRCH2Props, JRCH3Props, JRCH4Props, JRCH5Props, JRCTextProp
|
|
|
38
39
|
export { JRCHtmlProps } from './components/JRCHtml/JRCHtml';
|
|
39
40
|
export { JRCIconButtonProps } from './components/JRCIconButton/JRCIconButton';
|
|
40
41
|
export { JRCIconProps } from './components/JRCIcon/JRCIcon';
|
|
42
|
+
export { JRCImageStepper } from './components/Stepper/JRCImageStepper';
|
|
41
43
|
export { JRCImgProps } from './components/JRCImg/JRCImg';
|
|
42
44
|
export { JRCInputCheckboxProps, InputCheckboxProps, CheckboxValue, CheckboxOption, InnerProps, } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types';
|
|
43
45
|
export { JRCInputDateProps } from './components/Form/Input/JRCInputDate/JRCInputDate';
|
|
@@ -55,6 +57,7 @@ export { JRCModalImgButtonType, JRCModalImgProps } from './components/JRCModalIm
|
|
|
55
57
|
export { JRCPaginationProps } from './components/JRCPagination/JRCPagination';
|
|
56
58
|
export { JRCSkeletonLineProps } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
57
59
|
export { JRCSkeletonSquareProps } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
60
|
+
export { JRCStepper } from './components/Stepper/JRCStepper';
|
|
58
61
|
export { JRCTabsProps, JRCTabPanelProps } from './components/JRCTabs/JRCTabs';
|
|
59
62
|
export { JRCTagProps } from './components/JRCTag/JRCTag';
|
|
60
63
|
export { JRCTemplateBaseProps } 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.
|
|
3
|
+
"version": "1.0.121",
|
|
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
|
"@tiptap/starter-kit": "^2.0.0-beta.203",
|
|
99
99
|
"chroma-js": "^2.1.1",
|
|
100
100
|
"classnames": "^2.3.1",
|
|
101
|
-
"jamespot-user-api": "^1.0.
|
|
101
|
+
"jamespot-user-api": "^1.0.93",
|
|
102
102
|
"moment": "^2.29.1",
|
|
103
103
|
"react": "^17.x",
|
|
104
104
|
"react-dnd": "^14.0.4",
|