@veeqo/ui 4.3.1 → 4.4.1
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/dist/components/View/View.d.ts +7 -0
- package/dist/components/ViewTab/ViewTab.d.ts +10 -0
- package/dist/components/ViewTab/ViewTab.test.d.ts +1 -0
- package/dist/components/ViewTab/index.d.ts +1 -0
- package/dist/components/ViewTab/styled.d.ts +21 -0
- package/dist/components/ViewTab/types.d.ts +33 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tempIcons/ThreeDotsIcon.d.ts +2 -0
- package/package.json +1 -1
|
@@ -8,4 +8,11 @@ export interface ClassNamesReturnPayload {
|
|
|
8
8
|
active?: string;
|
|
9
9
|
counter?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @deprecated
|
|
14
|
+
*
|
|
15
|
+
* use ViewTab component instead
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
11
18
|
export declare const View: ({ id, iconSlot, name, type, className, colourPalette, customTextColour, count, active, onClick, onDelete, onEdit, e2eClassName, }: ViewProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewTabProps } from './types';
|
|
3
|
+
export interface ClassNamesReturnPayload {
|
|
4
|
+
delete?: string;
|
|
5
|
+
edit?: string;
|
|
6
|
+
container?: string;
|
|
7
|
+
active?: string;
|
|
8
|
+
counter?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ViewTab: ({ id, iconSlot, name, type, className, colourPalette, customTextColour, count, active, onClick, subAction, ariaContext, }: ViewTabProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ViewTab } from './ViewTab';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ColourPalette } from '../../theme/modules/colors';
|
|
3
|
+
import { Text } from '../Text';
|
|
4
|
+
import { ViewTabProps } from './types';
|
|
5
|
+
type RequiredPalette = {
|
|
6
|
+
colourPalette: ColourPalette;
|
|
7
|
+
};
|
|
8
|
+
export type ContourProps = Pick<ViewTabProps, 'active' | 'customTextColour'> & RequiredPalette;
|
|
9
|
+
export type CounterProps = Pick<ViewTabProps, 'active' | 'customTextColour'> & RequiredPalette;
|
|
10
|
+
export type ViewButtonProps = Pick<ViewTabProps, 'customTextColour'>;
|
|
11
|
+
declare const CounterText: import("styled-components").StyledComponent<"span", any, {} & import("../Text/types").TextProps, never>;
|
|
12
|
+
declare const ThreeDotsIconStyling: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
|
|
13
|
+
declare const CrossIconStyling: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
|
|
14
|
+
declare const CounterContainer: import("styled-components").StyledComponent<"span", any, ({} & import("../Text/types").TextProps) & Pick<ViewTabProps, "active" | "customTextColour"> & RequiredPalette, never>;
|
|
15
|
+
declare const Contour: import("styled-components").StyledComponent<"div", any, Pick<ViewTabProps, "active" | "customTextColour"> & RequiredPalette, never>;
|
|
16
|
+
declare const ViewButton: import("styled-components").StyledComponent<any, any, object & ViewButtonProps, string | number | symbol>;
|
|
17
|
+
declare const IconStyling: {
|
|
18
|
+
style: CSSProperties;
|
|
19
|
+
};
|
|
20
|
+
export declare const CustomIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export { ViewButton, Contour, Text, CounterContainer, CounterText, IconStyling, ThreeDotsIconStyling, CrossIconStyling, };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ColourPalette } from '../../theme/modules/colors';
|
|
3
|
+
export declare enum ViewTabTypes {
|
|
4
|
+
saved = "saved",
|
|
5
|
+
fixed = "fixed",
|
|
6
|
+
draft = "draft"
|
|
7
|
+
}
|
|
8
|
+
export type ViewTabProps = {
|
|
9
|
+
/** ClassName to override styles on outer root element */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Colour palette for the ViewTab */
|
|
12
|
+
colourPalette?: ColourPalette;
|
|
13
|
+
/** customTextColour - Custom Rest State colour */
|
|
14
|
+
customTextColour?: string;
|
|
15
|
+
/** Flag to toggle active state styles on the ViewTab */
|
|
16
|
+
active?: boolean;
|
|
17
|
+
/** ViewTab name, eg.: Jade's view */
|
|
18
|
+
name: string;
|
|
19
|
+
/** IconSlot for passing */
|
|
20
|
+
iconSlot?: ReactElement;
|
|
21
|
+
/** ViewTab's unique identifier */
|
|
22
|
+
id: string;
|
|
23
|
+
/** ViewTab type */
|
|
24
|
+
type?: keyof typeof ViewTabTypes;
|
|
25
|
+
/** Number or string value to show near viewTab label */
|
|
26
|
+
count?: number | string;
|
|
27
|
+
/** Event handler for when ViewTab component is clicked (should get activated) */
|
|
28
|
+
onClick: (id: string) => void;
|
|
29
|
+
/** Event handler for when ViewTab component is clicked and isActive */
|
|
30
|
+
subAction?: (id: string) => void;
|
|
31
|
+
/** Context used to add to aria label, (orders or products based on page) */
|
|
32
|
+
ariaContext: string;
|
|
33
|
+
};
|
|
@@ -50,4 +50,5 @@ export { Tooltip } from './Tooltip';
|
|
|
50
50
|
export { UploadFile, AcceptedFileTypes, FileSizeUnit } from './UploadFile';
|
|
51
51
|
export { VideoModal, Popup } from './VideoModal';
|
|
52
52
|
export { View } from './View';
|
|
53
|
+
export { ViewTab } from './ViewTab';
|
|
53
54
|
export { WeightInput } from './WeightInput';
|