@veeqo/ui 5.9.0 → 5.11.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 type { AlertProps } from './types';
3
+ export declare const Alert: ({ size, variant, colours: passedColours, rightActions, title, titleSlot, message, children, iconSlot, onClickClose, ...divProps }: AlertProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { AlertColours, AlertSizes, AlertVariants } from './types';
3
+ export declare const SpacingMap: Record<AlertSizes, string>;
4
+ export declare const IconSizeMap: Record<AlertSizes, string>;
5
+ export declare const IconMap: Record<AlertVariants, (props: any) => React.JSX.Element>;
6
+ export declare const ColourMap: Record<AlertVariants, AlertColours>;
@@ -0,0 +1 @@
1
+ export { Alert } from './Alert';
@@ -0,0 +1,4 @@
1
+ import { AlertColours } from './types';
2
+ export declare const AlertContainer: import("styled-components").StyledComponent<"div", any, import("../Stack/types").StackProps & {
3
+ colours: AlertColours;
4
+ }, never>;
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { Action } from '../Modal/types';
3
+ export type AlertProps = React.HTMLAttributes<HTMLDivElement> & {
4
+ size?: AlertSizes;
5
+ variant?: AlertVariants;
6
+ colours?: AlertColours;
7
+ rightActions?: Action[];
8
+ title?: string;
9
+ titleSlot?: ReactNode;
10
+ message?: string;
11
+ children?: ReactNode;
12
+ iconSlot?: (props: any) => React.JSX.Element;
13
+ onClickClose?: () => void;
14
+ };
15
+ export type AlertVariants = 'default' | 'error' | 'success' | 'info' | 'warning' | 'recommend';
16
+ export type AlertSizes = 'base' | 'sm' | 'xs';
17
+ export type AlertColours = {
18
+ primary: string;
19
+ background: string;
20
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DropdownProps } from './types';
3
+ export declare const Dropdown: ({ id, shouldShow, setShouldShow, ctaIconSlot, ctaProps, ...dropdownProps }: DropdownProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { BasicDropdownProps } from './types';
3
+ export declare const DropdownPopover: ({ id, children, className, style, reversed, anchorElement, useAnchorWidth, onShouldClose, ...popoverProps }: BasicDropdownProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { Dropdown } from './Dropdown';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare const DropdownContainer: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<{
3
+ [x: string]: any;
4
+ [x: number]: any;
5
+ [x: symbol]: any;
6
+ } & {
7
+ theme?: any;
8
+ } & {
9
+ as?: string | import("react").ComponentType<any> | undefined;
10
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
11
+ }>, any, {}, never>;
@@ -0,0 +1,17 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { EventHandlerProps } from '../types';
3
+ import { PopoverProps } from '../Popover/types';
4
+ import { ButtonProps } from '../Button/types';
5
+ export type BasicDropdownProps = {
6
+ className?: string;
7
+ children: ReactNode;
8
+ reversed?: boolean;
9
+ } & PopoverProps;
10
+ export type DropdownProps = EventHandlerProps & Pick<BasicDropdownProps, 'children' | 'className' | 'placement' | 'useAnchorWidth' | 'rootElementRef' | 'disableFocusLock'> & {
11
+ id: string;
12
+ shouldShow?: boolean;
13
+ setShouldShow?: (newValue: boolean) => void;
14
+ ctaIconSlot?: ReactElement;
15
+ ctaProps?: ButtonProps;
16
+ children?: ReactNode;
17
+ };
@@ -1,5 +1,6 @@
1
1
  export { Accordion } from './Accordion';
2
2
  export { ActionList } from './ActionList';
3
+ export { Alert } from './Alert';
3
4
  export { Anchor } from './Anchor';
4
5
  export { AnimatedDropdown } from './AnimatedDropdown';
5
6
  export { Avatar } from './Avatar';
@@ -21,6 +22,7 @@ export { DataTable, useCellWidths, useColumns, useDragToScroll, useNested, useSc
21
22
  export { DescriptionList } from './DescriptionList';
22
23
  export { DetailPage } from './DetailPage';
23
24
  export { DimensionsInput } from './DimensionsInput';
25
+ export { Dropdown } from './Dropdown';
24
26
  export { FilterTag } from './FilterTag';
25
27
  export { Grid } from './Grid';
26
28
  export { Image } from './Image';