@veeqo/ui 4.4.2 → 4.5.0

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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ViewContainerProps } from './types';
3
+ export declare const ViewsContainer: ({ children, onClickMenu, ariaMenuControls, ariaMenuExpanded, }: ViewContainerProps) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { MutableRefObject, ReactNode } from 'react';
2
+ export declare const useSetScrollPosition: (containerRef: MutableRefObject<HTMLDivElement>, children: ReactNode) => {
3
+ rightDisabled: boolean;
4
+ leftDisabled: boolean;
5
+ toNextScrollPosition: () => void;
6
+ toPrevScrollPosition: () => void;
7
+ };
@@ -0,0 +1 @@
1
+ export { ViewsContainer } from './ViewsContainer';
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export declare const ViewsWrapper: import("styled-components").StyledComponent<"div", any, import("../Stack/types").StackProps, never>;
3
+ export declare const Container: import("styled-components").StyledComponent<"div", any, import("../Stack/types").StackProps, never>;
4
+ export declare const StyledLeftIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
5
+ export declare const StyledRightIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
6
+ export declare const StyledMenuIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
7
+ export declare const StyledMenuButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
+ children?: import("react").ReactNode;
9
+ variant?: import("../Button/types").ButtonVariant | undefined;
10
+ size?: "base" | "sm" | undefined;
11
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
12
+ dropdown?: boolean | undefined;
13
+ loading?: boolean | undefined;
14
+ } & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
15
+ export declare const StyledLeftButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
16
+ children?: import("react").ReactNode;
17
+ variant?: import("../Button/types").ButtonVariant | undefined;
18
+ size?: "base" | "sm" | undefined;
19
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
20
+ dropdown?: boolean | undefined;
21
+ loading?: boolean | undefined;
22
+ } & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
23
+ export declare const StyledRightButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
24
+ children?: import("react").ReactNode;
25
+ variant?: import("../Button/types").ButtonVariant | undefined;
26
+ size?: "base" | "sm" | undefined;
27
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
28
+ dropdown?: boolean | undefined;
29
+ loading?: boolean | undefined;
30
+ } & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
31
+ export declare const StyledInputGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type ViewContainerProps = {
3
+ /** Children usually the ViewTab component */
4
+ children?: ReactNode;
5
+ /** Event handler for when the menu icon is clicked (can be used to enable popover) */
6
+ onClickMenu: () => void;
7
+ ariaMenuControls?: string;
8
+ ariaMenuExpanded?: boolean;
9
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A function to get the 3rd next scroll value using an array of start positions
3
+ */
4
+ export declare const getNextViewPosition: (viewPositionsArray: number[], currentScroll: number, containerWidth: number) => number;
5
+ /**
6
+ * A function to get the 3rd previous scoll value using an array of start positions
7
+ */
8
+ export declare const getPrevViewPosition: (viewPositionsArray: any[], currentScroll: number) => any;
9
+ /**
10
+ * This produces an array of all x positions of child elements
11
+ */
12
+ export declare const createViewPositionArray: (containerRef: HTMLDivElement) => number[];
@@ -0,0 +1 @@
1
+ export {};
@@ -51,4 +51,5 @@ export { UploadFile, AcceptedFileTypes, FileSizeUnit } from './UploadFile';
51
51
  export { VideoModal, Popup } from './VideoModal';
52
52
  export { View } from './View';
53
53
  export { ViewTab } from './ViewTab';
54
+ export { ViewsContainer } from './ViewsContainer';
54
55
  export { WeightInput } from './WeightInput';