jamespot-react-components 1.0.162 → 1.0.164
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/build/jamespot-react-components.js +4 -4
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Editors/components/EditorInputCheckbox.d.ts +11 -0
- package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.d.ts +10 -0
- package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.stories.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditor.d.ts +21 -0
- package/build/src/components/Widgets/JRCWidgetSlider/components/SliderArrows.d.ts +10 -0
- package/build/src/components/Widgets/JRCWidgetSlider/components/SliderDots.d.ts +12 -0
- package/build/src/components/Widgets/JRCWidgetSlider/components/SliderImage.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetSlider/components/SliderSlideTitle.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetSlider/mock.d.ts +2 -0
- package/build/src/components/Widgets/JRCWidgetSlider/types.d.ts +16 -0
- package/build/src/components/Widgets/JRCWidgetSlider/utils.d.ts +2 -0
- package/build/src/utils/utils.color.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const EditorInputCheckbox: ({ label, initialValue, options, onChange, }: {
|
|
4
|
+
label: string;
|
|
5
|
+
initialValue: string[];
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
onChange: (value: string[]) => void;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetSliderSlide } from './types';
|
|
3
|
+
export type JRCWidgetSliderProps = {
|
|
4
|
+
slides: WidgetSliderSlide[];
|
|
5
|
+
maxWidth: number;
|
|
6
|
+
loop: boolean;
|
|
7
|
+
useDots?: boolean;
|
|
8
|
+
startAt?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCWidgetSlider: ({ slides, maxWidth, loop, useDots, startAt, }: JRCWidgetSliderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JRCWidgetSliderEditorProps, WidgetSliderSlide } from './types';
|
|
3
|
+
export declare const CSSSlide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CSSSlideTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const JRCWidgetSliderEditor: ({ slides, loop, useDots, onChange, onSave, }: JRCWidgetSliderEditorProps & {
|
|
6
|
+
onSave: (content: Partial<JRCWidgetSliderEditorProps>) => void;
|
|
7
|
+
onChange: (content: Partial<JRCWidgetSliderEditorProps>, override?: boolean) => void;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export declare const EditorSlide: ({ initialSlide, onSave, onClickDelete, }: {
|
|
10
|
+
initialSlide: WidgetSliderSlide;
|
|
11
|
+
onSave: (slide: WidgetSliderSlide) => void;
|
|
12
|
+
onClickDelete: () => void;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* TODO: STANDALONE COMPONENT
|
|
16
|
+
*/
|
|
17
|
+
export declare const DeleteWithPrompt: ({ title, description, onClick, }: {
|
|
18
|
+
title: string;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
onClick: () => void;
|
|
21
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SliderArrowsProps = {
|
|
3
|
+
step: number;
|
|
4
|
+
total: number;
|
|
5
|
+
loop: boolean;
|
|
6
|
+
onClickPrev: () => void;
|
|
7
|
+
onClickNext: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const SliderArrows: ({ step, total, loop, onClickPrev, onClickNext }: SliderArrowsProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function neighborValue(index: number, step: number, range: number, rangeDecreaseValue?: number): number;
|
|
3
|
+
/**
|
|
4
|
+
* TODO: STANDALONE COMPONENT
|
|
5
|
+
*/
|
|
6
|
+
export declare const SliderDots: ({ step, steps, range, rangeDecreaseValue, onClick, }: {
|
|
7
|
+
step: number;
|
|
8
|
+
steps: number;
|
|
9
|
+
range?: number | undefined;
|
|
10
|
+
rangeDecreaseValue?: number | undefined;
|
|
11
|
+
onClick: (index: number) => void;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TVariants } from 'components/JRCTypography/JRCTypography.d';
|
|
2
|
+
export type WidgetSliderSlide = {
|
|
3
|
+
title: string;
|
|
4
|
+
titleHeading: TVariants;
|
|
5
|
+
text: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
opacityFilter: number;
|
|
8
|
+
opacityColor: string;
|
|
9
|
+
uri: string;
|
|
10
|
+
};
|
|
11
|
+
export type JRCWidgetSliderEditorProps = {
|
|
12
|
+
slides: WidgetSliderSlide[];
|
|
13
|
+
loop: boolean;
|
|
14
|
+
useDots?: boolean;
|
|
15
|
+
startAt?: number;
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.164",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"chroma-js": "^2.1.1",
|
|
93
93
|
"classnames": "^2.3.1",
|
|
94
94
|
"dompurify": "^3.0.5",
|
|
95
|
-
"jamespot-user-api": "^1.0.
|
|
95
|
+
"jamespot-user-api": "^1.0.135",
|
|
96
96
|
"moment": "2.29.4",
|
|
97
97
|
"react": "^17.x",
|
|
98
98
|
"react-beautiful-dnd": "^13.1.1",
|