jamespot-react-components 1.0.122 → 1.0.124
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 +315 -284
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Common/FlexBox.d.ts +9 -0
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +2 -0
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +1 -1
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +6 -2
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +1 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +39 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputTextIconButton.d.ts +17 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +1 -0
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +2 -2
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +4 -0
- package/build/src/components/Templates/JRCAppColumn.d.ts +1 -1
- package/build/src/components/Templates/JRCAppTab.d.ts +1 -1
- package/build/src/components/Templates/JRCColumn.d.ts +1 -1
- package/build/src/components/Templates/template.styles.d.ts +17 -4
- package/build/src/components/Templates/template.type.d.ts +13 -0
- package/build/src/index.d.ts +1 -0
- package/build/src/types.d.ts +3 -2
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type FlexBoxProps = {
|
|
3
|
+
x?: 'flex-start' | 'center' | 'flex-end';
|
|
4
|
+
y?: 'flex-start' | 'center' | 'flex-end';
|
|
5
|
+
direction?: 'row' | 'column';
|
|
6
|
+
flex?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const JRCFlexBox: (props: FlexBoxProps) => JSX.Element;
|
|
9
|
+
export default JRCFlexBox;
|
|
@@ -37,6 +37,7 @@ export interface RendererProps<T extends FieldValues = FieldValues> {
|
|
|
37
37
|
export declare type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & RendererProps<T> & {
|
|
38
38
|
rules?: FormControls & JRCFormControls;
|
|
39
39
|
rulesValidate?: RegisterOptions<T>['validate'];
|
|
40
|
+
margin?: string | undefined;
|
|
40
41
|
};
|
|
41
42
|
/**
|
|
42
43
|
* Prop types for an input rendered by react-hook-form
|
|
@@ -44,4 +45,5 @@ export declare type JRCFormFieldRendererProps<T extends FieldValues = FieldValue
|
|
|
44
45
|
export declare type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & {
|
|
45
46
|
rules?: FormControls;
|
|
46
47
|
rulesValidate?: RegisterOptions<T>['validate'];
|
|
48
|
+
margin?: string | undefined;
|
|
47
49
|
};
|
|
@@ -24,7 +24,7 @@ export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = Fie
|
|
|
24
24
|
export declare type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
25
25
|
value: TFieldValues | TFieldValues[];
|
|
26
26
|
};
|
|
27
|
-
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
27
|
+
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, margin, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
28
28
|
export declare namespace JRCInputCheckbox {
|
|
29
29
|
var defaultProps: {
|
|
30
30
|
direction: string;
|
|
@@ -2,11 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export declare type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'
|
|
5
|
+
export declare type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
6
|
+
width?: string;
|
|
7
|
+
};
|
|
6
8
|
/**
|
|
7
9
|
* Component used as a <input type="text"/>
|
|
8
10
|
* @param props JRCInputFieldProps
|
|
9
11
|
* validation props: required
|
|
10
12
|
* @returns JSX.Element
|
|
11
13
|
*/
|
|
12
|
-
export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>
|
|
14
|
+
export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
|
|
15
|
+
width?: string;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const IconAfter: import("styled-components").StyledComponent<{
|
|
3
|
+
({ hasLicense, ...props }: Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("../../../../types/dataAttributes").DataCy & {
|
|
4
|
+
icon: string;
|
|
5
|
+
size?: "small" | "medium" | undefined;
|
|
6
|
+
onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
value?: string | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
11
|
+
bgBaseGrey?: 0 | 1 | 2 | undefined;
|
|
12
|
+
color?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | "inherit" | undefined;
|
|
13
|
+
tooltip?: Omit<import("../../../..").JRCTooltipProps, "children"> | undefined;
|
|
14
|
+
variant?: "circle" | "square" | undefined;
|
|
15
|
+
hasLicense?: boolean | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
type: string;
|
|
19
|
+
variant: string;
|
|
20
|
+
size: string;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
defaultProps: {
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
type: string;
|
|
25
|
+
variant: string;
|
|
26
|
+
size: string;
|
|
27
|
+
};
|
|
28
|
+
}, any, {}, never>;
|
|
29
|
+
export declare const InputIconButton: import("styled-components").StyledComponent<"input", any, import("../../../../types/dataAttributes").DataCy & {
|
|
30
|
+
error?: boolean | undefined;
|
|
31
|
+
valid?: boolean | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
hasIconButtonAfter: boolean;
|
|
34
|
+
}, never>;
|
|
35
|
+
export declare const InputTextStyled: import("styled-components").StyledComponent<"input", any, import("../../../../types/dataAttributes").DataCy & {
|
|
36
|
+
error?: boolean | undefined;
|
|
37
|
+
valid?: boolean | undefined;
|
|
38
|
+
}, never>;
|
|
39
|
+
export declare const ContainerInputTextIconButton: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DataCy } from '../../../../types/dataAttributes';
|
|
3
|
+
export declare type JRCInputTextIconButtonProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
4
|
+
iconBefore: string;
|
|
5
|
+
iconButtonAfter?: {
|
|
6
|
+
icon: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const InputTextIconButton: React.ForwardRefExoticComponent<DataCy & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
11
|
+
iconBefore: string;
|
|
12
|
+
iconButtonAfter?: {
|
|
13
|
+
icon: string;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
} | undefined;
|
|
16
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
17
|
+
export declare function JRCInputTextIconButton(props: any): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ButtonProps, MenuWithTitleProps } from './JRCButtonDropdown.types';
|
|
2
|
+
import type { ButtonProps, MenuWithTitleProps, DropdownOptionProps } from './JRCButtonDropdown.types';
|
|
3
3
|
export declare const MarginLessJRCButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & import("../../types/dataAttributes").DataCy & {
|
|
4
4
|
color?: "primary" | "secondary" | "valid" | "danger" | undefined;
|
|
5
5
|
loader?: boolean | undefined;
|
|
@@ -15,4 +15,4 @@ export declare const MarginLessJRCButton: import("styled-components").StyledComp
|
|
|
15
15
|
} & React.RefAttributes<HTMLButtonElement>>, any, ButtonProps, never>;
|
|
16
16
|
export declare const MenuWithoutTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
17
|
export declare const MenuWithTitle: ({ direction, label, themeButton, children }: MenuWithTitleProps) => JSX.Element;
|
|
18
|
-
export declare const DropdownOption: import("styled-components").StyledComponent<"button", any,
|
|
18
|
+
export declare const DropdownOption: import("styled-components").StyledComponent<"button", any, DropdownOptionProps, never>;
|
|
@@ -16,6 +16,7 @@ export declare type JRCButtonDropdownProps = {
|
|
|
16
16
|
label: string;
|
|
17
17
|
small?: boolean;
|
|
18
18
|
smallOpenDirection?: 'right' | 'left';
|
|
19
|
+
optionSelected?: boolean;
|
|
19
20
|
onClick?: (event?: React.MouseEvent) => void;
|
|
20
21
|
variant?: JRCButtonProps['variant'];
|
|
21
22
|
options: Array<JRCButtonDropdownOptionProps>;
|
|
@@ -36,3 +37,6 @@ export declare type MenuWithTitleProps = OpenDirection & {
|
|
|
36
37
|
themeButton: ButtonProps['themeButton'];
|
|
37
38
|
children: React.ReactNode;
|
|
38
39
|
};
|
|
40
|
+
export declare type DropdownOptionProps = {
|
|
41
|
+
optionSelected?: boolean;
|
|
42
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { JRCAppColumnProps } from './template.type';
|
|
3
|
-
export declare function JRCAppColumn({ description, activeTab, tabs, ...props }: JRCAppColumnProps): JSX.Element;
|
|
3
|
+
export declare function JRCAppColumn({ description, activeTab, tabs, mode, ...props }: JRCAppColumnProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Closing, JRCAppTabProps, JRCAppTabsProps, Open } from './template.type';
|
|
3
|
-
export declare function JRCAppTab({ label, active, icon, onClick, href, target, open, closing }: JRCAppTabProps): JSX.Element;
|
|
3
|
+
export declare function JRCAppTab({ label, active, icon, onClick, href, target, open, closing, count }: JRCAppTabProps): JSX.Element;
|
|
4
4
|
export declare function JRCAppTabs({ tabs, activeTab, ...props }: JRCAppTabsProps & Open & Closing): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JRCColumnProps } from './template.type';
|
|
3
|
-
export declare function JRCColumn({ children, ...props }: JRCColumnProps): JSX.Element;
|
|
3
|
+
export declare function JRCColumn({ children, mode, position, open, ...props }: JRCColumnProps): JSX.Element;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { JRCColumn } from './JRCColumn';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { Closing, Open } from './template.type';
|
|
3
|
+
import type { Closing, Open, LayoutMode, ColumnPosition } from './template.type';
|
|
4
4
|
export declare const ScrollWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const MaxWidthWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare const MaxWidthWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
mode: LayoutMode;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const BaseColumn: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
width: number;
|
|
10
|
+
position?: ColumnPosition | undefined;
|
|
11
|
+
open: boolean;
|
|
12
|
+
}, never>;
|
|
13
|
+
export declare const StickyColWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
14
|
+
mode: LayoutMode;
|
|
15
|
+
position?: ColumnPosition | undefined;
|
|
16
|
+
padding: string;
|
|
17
|
+
}, never>;
|
|
8
18
|
export declare const MainColumn: import("styled-components").StyledComponent<typeof JRCColumn, any, {}, never>;
|
|
9
19
|
export declare const AppColumn: import("styled-components").StyledComponent<typeof JRCColumn, any, Open, never>;
|
|
10
20
|
export declare const FlexDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -295,11 +305,14 @@ export declare const OpenCloseButton: import("styled-components").StyledComponen
|
|
|
295
305
|
} & Open & Closing, "form" | "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "type" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "theme" | "offset">;
|
|
296
306
|
export declare const AppTabLabel: import("styled-components").StyledComponent<"p", any, Open, never>;
|
|
297
307
|
export declare const AppTabContainer: import("styled-components").StyledComponent<"div", any, Open, never>;
|
|
308
|
+
export declare const AppTabContextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
298
309
|
export declare const AppTab: import("styled-components").StyledComponent<"button", any, Open & {
|
|
299
310
|
active?: boolean | undefined;
|
|
300
311
|
}, never>;
|
|
301
312
|
export declare const AppTabTooltip: import("styled-components").StyledComponent<({ condition, hasLicense, tooltip, children, className, }: import("../Common/JRCConditionalWrapper").JRCConditionalTooltipProps) => JSX.Element, any, {}, never>;
|
|
302
313
|
export declare const EllipsisWrapper: import("styled-components").StyledComponent<"span", any, Open, never>;
|
|
314
|
+
export declare const AppTabCounter: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
315
|
+
export declare const AppTabEllipsisLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
303
316
|
export declare const AppTabNav: import("styled-components").StyledComponent<"nav", any, Open & {
|
|
304
317
|
extraMargin: boolean;
|
|
305
318
|
}, never>;
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare type LayoutMode = 'fluid' | 'center';
|
|
3
|
+
export declare type ColumnPosition = 'left' | 'right' | 'panel';
|
|
2
4
|
export declare type JRCContainerProps = {
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
className?: string;
|
|
7
|
+
mode?: LayoutMode;
|
|
5
8
|
};
|
|
6
9
|
export declare type JRCColumnProps = {
|
|
7
10
|
children: React.ReactNode;
|
|
8
11
|
className?: string;
|
|
12
|
+
width?: number;
|
|
13
|
+
padding?: string;
|
|
14
|
+
mode?: LayoutMode;
|
|
15
|
+
position?: ColumnPosition;
|
|
16
|
+
open?: boolean;
|
|
9
17
|
};
|
|
10
18
|
export declare type JRCMainColumnProps = {
|
|
11
19
|
children: React.ReactNode;
|
|
12
20
|
className?: string;
|
|
21
|
+
mode?: LayoutMode;
|
|
22
|
+
padding?: string;
|
|
13
23
|
};
|
|
14
24
|
export declare type JRCTabEntry = {
|
|
15
25
|
key: string;
|
|
16
26
|
label: string;
|
|
17
27
|
icon: string;
|
|
18
28
|
group?: string | undefined;
|
|
29
|
+
count?: number;
|
|
19
30
|
};
|
|
20
31
|
export declare type TabEventProps = {
|
|
21
32
|
onClick?: (key: string) => void;
|
|
@@ -28,6 +39,7 @@ export declare type JRCAppTabsProps = {
|
|
|
28
39
|
};
|
|
29
40
|
export declare type JRCAppColumnProps = Partial<JRCAppTabsProps> & {
|
|
30
41
|
className?: string;
|
|
42
|
+
mode?: LayoutMode;
|
|
31
43
|
description: {
|
|
32
44
|
icon: string;
|
|
33
45
|
color?: string;
|
|
@@ -48,4 +60,5 @@ export declare type JRCAppTabProps = Open & Closing & {
|
|
|
48
60
|
href?: string;
|
|
49
61
|
target?: '_blank';
|
|
50
62
|
active?: boolean;
|
|
63
|
+
count?: number;
|
|
51
64
|
};
|
package/build/src/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export { JRCInputEmail } from './components/Form/Input/JRCFormEmail/JRCInputEmai
|
|
|
88
88
|
export { JRCInputRichText } from './components/Form/Input/JRCInputRichText/JRCInputRichText';
|
|
89
89
|
export { JRCInputSelect } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
90
90
|
export { JRCInputText } from './components/Form/Input/JRCInputText/JRCInputText';
|
|
91
|
+
export { JRCInputTextIconButton } from './components/Form/Input/JRCInputText/JRCInputTextIconButton';
|
|
91
92
|
export { JRCInputTextarea } from './components/Form/Input/JRCInputTextarea/JRCInputTextarea';
|
|
92
93
|
export { JRCInputTime } from './components/Form/Input/JRCInputTime/JRCInputTime';
|
|
93
94
|
export { JRCList } from './components/JRCList/JRCList';
|
package/build/src/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './components/Form/Common/types';
|
|
2
2
|
export { JRCAlertProps } from './components/JRCAlert/JRCAlert';
|
|
3
|
-
export { JRCAppColumnProps, JRCAppTabsProps, TabEventProps, JRCTabEntry, JRCMainColumnProps, JRCColumnProps, JRCContainerProps, } from './components/Templates/template.type';
|
|
3
|
+
export { JRCAppColumnProps, JRCAppTabsProps, TabEventProps, JRCTabEntry, JRCMainColumnProps, JRCColumnProps, JRCContainerProps, LayoutMode, } from './components/Templates/template.type';
|
|
4
4
|
export { JRCAppContainerProps } from './components/JRCAppContainer/JRCAppContainer';
|
|
5
5
|
export { JRCAppHeaderProps } from './components/JRCAppHeader/JRCAppHeader.types';
|
|
6
6
|
export { JRCAppLeftColumnProps, SectionEntry } from './components/JRCAppLeftColumn/JRCAppLeftColumn.types';
|
|
@@ -47,9 +47,10 @@ export { JRCInputFieldProps } from './components/Form/Input/Common/JRCFormFieldR
|
|
|
47
47
|
export { JRCInputSelectProps } from './components/Form/Input/JRCSelect/JRCInputSelect.types';
|
|
48
48
|
export { JRCInputTextareaProps } from './components/Form/Input/JRCInputTextarea/JRCInputTextarea';
|
|
49
49
|
export { JRCInputTextProps } from './components/Form/Input/JRCInputText/JRCInputText';
|
|
50
|
+
export { JRCInputTextIconButtonProps } from './components/Form/Input/JRCInputText/JRCInputTextIconButton';
|
|
50
51
|
export { JRCInputTimeProps } from './components/Form/Input/JRCInputTime/JRCInputTime';
|
|
51
52
|
export { JRCLinkToProps, JRCStyledHrefProps } from './components/JRCHref/JRCHref';
|
|
52
|
-
export { JRCListProps } from './components/JRCList/JRCList';
|
|
53
|
+
export { JRCListProps, PaginationPagination } from './components/JRCList/JRCList';
|
|
53
54
|
export { JRCLoaderProps } from './components/JRCLoader/JRCLoader';
|
|
54
55
|
export { JRCMenuProps, JRCMenuItemProps } from './components/JRCMenu/JRCMenu';
|
|
55
56
|
export { JRCModalButtonType, JRCModalProps } from './components/JRCModal/JRCModal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.124",
|
|
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.94",
|
|
102
102
|
"moment": "^2.29.1",
|
|
103
103
|
"react": "^17.x",
|
|
104
104
|
"react-dnd": "^14.0.4",
|