@cleen/ui 0.1.7 → 0.1.8

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { ComponentProps, ReactNode, CSSProperties, SVGProps, ChangeEvent, ButtonHTMLAttributes, JSX, ComponentPropsWithoutRef } from 'react';
2
+ import react__default, { ComponentProps, ReactNode, CSSProperties, SVGProps, ChangeEvent, ButtonHTMLAttributes, JSX, RefObject, ComponentPropsWithoutRef } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Position, ComponentClassnames, ComponentStyles, HintedString } from '@cleen/ui-core';
5
5
  import { WaveSurferOptions } from 'wavesurfer.js';
@@ -1939,6 +1939,7 @@ type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
1939
1939
  infoLabels?: InfoLabelsProps;
1940
1940
  isNoDataVisibleOnCreateNew?: boolean;
1941
1941
  menuDetachedFromPortal?: boolean;
1942
+ menuRef?: RefObject<HTMLDivElement | null>;
1942
1943
  classNames?: {
1943
1944
  container?: string;
1944
1945
  label?: string;
@@ -1987,7 +1988,7 @@ type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
1987
1988
  component?: ComponentStyles<PillBadgeProps>;
1988
1989
  };
1989
1990
  };
1990
- onCreateNewOption?: (value: string) => void;
1991
+ onCreateNewOption?: (value: string) => void | boolean;
1991
1992
  createNewOptionLabelString?: ((inputValue: string) => ReactNode) | ReactNode;
1992
1993
  onInputChange?: (value: string) => void;
1993
1994
  onChange?: (value: LookupOption[]) => void;