@digital-ai/dot-components 5.3.0 → 5.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -0,0 +1,22 @@
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export type FabColor = 'default' | 'primary' | 'secondary';
4
+ export type FabSize = 'small' | 'medium' | 'large';
5
+ export type FabVariant = 'circular' | 'extended';
6
+ export interface FabProps extends CommonProps {
7
+ /** The content (text, icon or other element) of the Floating Action Button. */
8
+ children?: ReactNode;
9
+ /** The color for Floating Action Button. Can be `default`, `primary`, `secondary`. */
10
+ color?: FabColor;
11
+ /** If true, the ripple effect will be disabled. */
12
+ disableRipple?: boolean;
13
+ /** If true, the Floating Action Button will be disabled. */
14
+ disabled?: boolean;
15
+ /** Event callback. */
16
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
17
+ /** The size of the Floating Action Button. Can be `small`, `medium`, `large` (default). */
18
+ size?: FabSize;
19
+ /** The variant to use for the Floating Action Button. Can be `circular` (default) or `extended`. */
20
+ variant?: FabVariant;
21
+ }
22
+ export declare const DotFab: ({ ariaLabel, children, className, color, "data-pendoid": dataPendoId, "data-testid": dataTestId, disableRipple, disabled, onClick, size, variant, }: FabProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const rootClassName = "dot-fab";
2
+ export declare const StyledFab: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").FabTypeMap<{}, "button">>, any, {}, never>;
@@ -0,0 +1,2 @@
1
+ export { DotFab } from './Fab';
2
+ export type { FabProps, FabColor, FabSize, FabVariant } from './Fab';
@@ -42,6 +42,7 @@ export type { SnackbarProps, SnackbarSeverity, SnackbarOrigin, SnackbarPrimaryAc
42
42
  export type { CharactersLimit, InlineEditProps } from './inline-edit';
43
43
  export type { progressColorOptions, progressVariantOptions, ProgressProps, } from './progress';
44
44
  export type { FileItemProps, FileUploadError, FileUploadProps, ListItemFile, MappedFile, MappedListItemFile, } from './file-upload';
45
+ export type { FabProps, FabColor, FabSize, FabVariant, } from './floating-action-button';
45
46
  export type { LinearProgressColor, LinearProgressProps, LinearProgressVariant, } from './linear-progress';
46
47
  export type { DatePickerLocale, DatePickerProps, FieldChangeHandlerContext, } from './date-picker';
47
48
  export type { TimePickerProps } from './time-picker';
@@ -128,6 +129,7 @@ export { DotTooltip } from './tooltip';
128
129
  export { DotTabs } from './tabs/Tabs';
129
130
  export { DotTypography } from './typography/Typography';
130
131
  export { DotFileUpload, DotFileListItem } from './file-upload';
132
+ export { DotFab } from './floating-action-button';
131
133
  export { DotDivider } from './divider';
132
134
  export { DotPopper } from './popper';
133
135
  export { DotTruncateWithTooltip } from './truncate-with-tooltip';