@digital-ai/dot-components 2.26.0 → 2.27.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": "2.26.0",
3
+ "version": "2.27.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -22,7 +22,6 @@
22
22
  "test": "echo \"Error: no test specified\" && exit 1"
23
23
  },
24
24
  "files": [
25
- "index.esm.mjs",
26
25
  "**/*.styles.{js,jsx,ts,tsx}",
27
26
  "**/*.{js,jsx,ts,tsx,svg,woff}",
28
27
  "!**/testing-utils/**",
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNode, Ref } from 'react';
2
- import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
2
+ import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderGroupParams, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
3
3
  import { CommonProps } from '../CommonProps';
4
4
  import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
5
5
  import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
@@ -73,6 +73,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
73
73
  placeholder?: string;
74
74
  /** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
75
75
  readOnly?: boolean;
76
+ /** Render group function, group prop must be true for the function to be used **/
77
+ renderGroup?: (params: AutocompleteRenderGroupParams) => ReactNode;
76
78
  /** Render the option, use `getOptionLabel` by default. */
77
79
  renderOption?: (props: HTMLAttributes<HTMLLIElement>, option: T, state: AutocompleteRenderOptionState) => ReactNode;
78
80
  /** Render the selected value. */
@@ -86,4 +88,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
86
88
  /** If true, the label will be displayed in a warning state. */
87
89
  warning?: boolean;
88
90
  }
89
- export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
91
+ export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export type { AutocompleteRenderOptionState, FilterOptionsState, } from '@mui/material';
1
+ export type { AutocompleteRenderGroupParams, AutocompleteRenderOptionState, FilterOptionsState, } from '@mui/material';
2
2
  export * from './AutoComplete';
3
3
  export * from './utils/interface';
4
4
  export { parseAutoCompleteValue } from './utils/helpers';
@@ -0,0 +1,8 @@
1
+ import { CommonProps } from '../CommonProps';
2
+ export interface EmptyFilterStateProps extends CommonProps {
3
+ /** alt text of image */
4
+ imageAltText?: string;
5
+ /** location of image */
6
+ imageSrc?: string;
7
+ }
8
+ export declare const DotEmptyFilterState: ({ ariaLabel, className, "data-testid": dataTestId, imageAltText, imageSrc, }: EmptyFilterStateProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '../button/Button';
1
+ import { ButtonProps } from '../button';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export interface EmptyStateProps extends CommonProps {
4
4
  /** primary button properties */
@@ -1,7 +1,7 @@
1
1
  export * from './CommonProps';
2
2
  export { ApiError } from './core-api/openapi/core/ApiError';
3
3
  export type { AppToolbarProps } from './app-toolbar/AppToolbar';
4
- export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderOptionState, FilterOptionsState, } from './auto-complete';
4
+ export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderGroupParams, AutocompleteRenderOptionState, FilterOptionsState, } from './auto-complete';
5
5
  export type { AvatarProps } from './avatar/Avatar';
6
6
  export type { BreadcrumbItem } from './breadcrumbs/Breadcrumbs';
7
7
  export type { ButtonProps, CopyButtonProps, IconButtonProps, IconButtonColor, IconButtonSize, } from './button';
@@ -42,6 +42,7 @@ export type { TimePickerProps } from './time-picker';
42
42
  export type { ClickAwayListenerProps } from './click-away-listener';
43
43
  export type { StepProps } from './stepper/Stepper';
44
44
  export type { CarouselAnimationVariant, CarouselNavigationButtonDisplayOption, CarouselProps, } from './carousel/Carousel';
45
+ export type { StickyWithBorderProps } from './sticky-with-border';
45
46
  export { DotAccordion } from './accordion/Accordion';
46
47
  export { DotActionToolbar } from './action-toolbar/ActionToolbar';
47
48
  export { DotAlertBanner } from './alert-banner/AlertBanner';
@@ -70,6 +71,7 @@ export { CssGridDebug } from './css-grid/CssGridDebug';
70
71
  export { DotDialog } from './dialog/Dialog';
71
72
  export { DotDrawer } from './drawer/Drawer';
72
73
  export { DotEmptyState } from './empty-state/EmptyState';
74
+ export { DotEmptyFilterState } from './empty-state/EmptyFilterState';
73
75
  export { DotForm } from './form/Form';
74
76
  export { DotFormGroup } from './form-group/FormGroup';
75
77
  export { DotDynamicForm } from './dynamic-form/DynamicForm';
@@ -106,4 +108,5 @@ export { DatePickerKeydownContext, DotDatePicker, checkIfValidDate, } from './da
106
108
  export { Daytime, DotTimePicker, mockScrollIntoView } from './time-picker';
107
109
  export { DotClickAwayListener } from './click-away-listener';
108
110
  export { DotCarousel } from './carousel/Carousel';
111
+ export { DotStickyWithBorder } from './sticky-with-border';
109
112
  export { CreateUUID } from './createUUID';
@@ -0,0 +1,16 @@
1
+ import { CommonProps } from '../CommonProps';
2
+ import { ReactNode } from 'react';
3
+ export interface StickyBorder {
4
+ color: string;
5
+ style: string;
6
+ width: number;
7
+ }
8
+ export interface StickyWithBorderProps extends CommonProps {
9
+ /** The content for the StickyWithBorder .*/
10
+ children: ReactNode;
11
+ /** CSS Properties for the bottom border when the sticky segment is pinned .*/
12
+ pinnedStickyBorder: StickyBorder;
13
+ /** CSS Properties for the bottom border when the sticky segment is NOT pinned .*/
14
+ unpinnedStickyBorder?: StickyBorder;
15
+ }
16
+ export declare const DotStickyWithBorder: ({ ariaLabel, className, children, "data-testid": dataTestId, pinnedStickyBorder, unpinnedStickyBorder, }: StickyWithBorderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { StickyWithBorderProps } from './StickyWithBorder';
2
+ export declare const rootClassName = "dot-sticky-with-border";
3
+ export declare const StyledStickyWithBorder: import("styled-components").StyledComponent<"div", any, StickyWithBorderProps, never>;
@@ -0,0 +1,2 @@
1
+ export type { StickyWithBorderProps } from './StickyWithBorder';
2
+ export { DotStickyWithBorder } from './StickyWithBorder';