@minimalstuff/ui 0.0.25 → 0.0.26

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
@@ -9,7 +9,6 @@ import { DetailedHTMLProps } from 'react';
9
9
  import { ElementType } from 'react';
10
10
  import { FormatOptionLabelMeta } from 'react-select';
11
11
  import { FormHTMLAttributes } from 'react';
12
- import { GroupBase } from 'react-select';
13
12
  import { HTMLAttributes } from 'react';
14
13
  import { IconType } from 'react-icons/lib';
15
14
  import { ImgHTMLAttributes } from 'react';
@@ -18,7 +17,6 @@ import { JSX as JSX_2 } from 'react';
18
17
  import { JSX as JSX_3 } from '@emotion/react/jsx-runtime';
19
18
  import { LiHTMLAttributes } from 'react';
20
19
  import { MutableRefObject } from 'react';
21
- import { OptionsOrGroups } from 'react-select';
22
20
  import { PropsWithChildren } from 'react';
23
21
  import { ReactNode } from 'react';
24
22
  import { RefObject } from 'react';
@@ -223,13 +221,14 @@ declare type ScreenType =
223
221
  | 'large_desktop'
224
222
  | 'xlarge_desktop';
225
223
 
226
- export declare function Selector({ name, label, options, onChangeCallback, formatOptionLabel, required, ...props }: SelectorProps): JSX.Element;
224
+ export declare function Selector({ name, label, value, options, onChangeCallback, formatOptionLabel, required, ...props }: SelectorProps): JSX.Element;
227
225
 
228
226
  declare interface SelectorProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
229
227
  label: string;
228
+ value: string | number;
230
229
  name: string;
231
230
  errors?: string[];
232
- options: OptionsOrGroups<Option_2, GroupBase<Option_2>>;
231
+ options: Option_2[];
233
232
  onChangeCallback?: (value: number | string) => void;
234
233
  formatOptionLabel?: (data: Option_2, formatOptionLabelMeta: FormatOptionLabelMeta<Option_2>) => ReactNode;
235
234
  }