@livechat/design-system-react-components 1.0.0-alpha.50 → 1.0.0-alpha.52
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/dsrc.cjs.js +7 -7
- package/dist/dsrc.es.js +259 -172
- package/dist/dsrc.umd.js +7 -7
- package/dist/src/components/ActionMenu/ActionMenu.d.ts +27 -0
- package/dist/src/components/ActionMenu/index.d.ts +1 -0
- package/dist/src/components/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/src/components/Form/Form.d.ts +1 -1
- package/dist/src/components/FormGroup/FormGroup.d.ts +1 -1
- package/dist/src/components/Modal/ModalBase.d.ts +1 -1
- package/dist/src/components/Picker/Trigger.d.ts +1 -1
- package/dist/src/components/PromoBanner/PromoBanner.d.ts +1 -1
- package/dist/src/components/Tab/Tab.d.ts +1 -1
- package/dist/src/components/Tag/Tag.d.ts +1 -1
- package/dist/src/components/Toast/Toast.d.ts +1 -1
- package/dist/src/components/Typography/Heading.d.ts +1 -1
- package/dist/src/components/Typography/Text.d.ts +1 -1
- package/dist/src/components/UploadBar/UploadBar.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react-dom';
|
|
3
|
+
export interface ActionMenuProps {
|
|
4
|
+
/**
|
|
5
|
+
* The CSS class for menu container
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Array of menu options
|
|
10
|
+
*/
|
|
11
|
+
options: Array<{
|
|
12
|
+
key: string;
|
|
13
|
+
element: string | React.ReactElement;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
withDivider?: boolean;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Trigger element
|
|
20
|
+
*/
|
|
21
|
+
triggerRenderer: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The menu placement
|
|
24
|
+
*/
|
|
25
|
+
placement?: Placement;
|
|
26
|
+
}
|
|
27
|
+
export declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionMenu } from './ActionMenu';
|
|
@@ -17,5 +17,5 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
17
17
|
fullWidth?: boolean | undefined;
|
|
18
18
|
loaderLabel?: string | undefined;
|
|
19
19
|
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
20
|
-
iconPosition?: "
|
|
20
|
+
iconPosition?: "right" | "left" | undefined;
|
|
21
21
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
@@ -4,4 +4,4 @@ export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
closeOnEscPress?: boolean;
|
|
5
5
|
closeOnOverlayPress?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const ModalBase: React.FC<ModalBaseProps
|
|
7
|
+
export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
@@ -12,5 +12,5 @@ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
kind?: ToastKind;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const Toast: React.FC<ToastProps
|
|
15
|
+
export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
|
|
16
16
|
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { DesignToken } from './themes/design-token';
|
|
|
2
2
|
export { SpacingToken } from './foundations/spacing-token';
|
|
3
3
|
export { ShadowToken } from './foundations/shadow-token';
|
|
4
4
|
export type { Size } from './utils';
|
|
5
|
+
export * from './components/ActionMenu';
|
|
5
6
|
export * from './components/Alert';
|
|
6
7
|
export * from './components/Avatar';
|
|
7
8
|
export * from './components/Badge';
|