@zonos/amino 5.4.14 → 5.4.15

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.
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { GroupBase, Props, PropsValue, SelectComponentsConfig, StylesConfig } from 'react-select';
3
3
  import type { HelpTextProps } from "../help-text/HelpText";
4
4
  import type { BaseProps } from "../../types/BaseProps";
5
- import type { SelectOption } from "../../types/SelectOption";
5
+ import type { SelectOption, SelectValue } from "../../types/SelectOption";
6
6
  type RequiredProps = 'onChange' | 'options' | 'value';
7
7
  export type MultiSelectProps<Option extends SelectOption = SelectOption, IsMulti extends true = true, Group extends GroupBase<Option> = GroupBase<Option>> = BaseProps & {
8
8
  components?: SelectComponentsConfig<Option, IsMulti, Group>;
@@ -23,5 +23,5 @@ export type GroupOption<Option extends SelectOption> = {
23
23
  isSelected: false;
24
24
  type: 'option';
25
25
  } & SelectOption;
26
- export declare const MultiSelect: <Option extends SelectOption, Group extends GroupBase<Option>>({ closeMenuOnSelect, hideSelectedOptions, ...props }: MultiSelectProps<Option, true, Group>) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const MultiSelect: <V extends SelectValue, Option extends SelectOption<V>, Group extends GroupBase<Option>>({ closeMenuOnSelect, hideSelectedOptions, ...props }: MultiSelectProps<Option, true, Group>) => import("react/jsx-runtime").JSX.Element;
27
27
  export {};
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react';
2
2
  import type { GroupBase, OptionProps, Props, SelectComponentsConfig, StylesConfig } from 'react-select';
3
3
  import { type HelpTextProps } from "../help-text/HelpText";
4
4
  import type { BaseProps } from "../../types/BaseProps";
5
- import type { SelectOption } from "../../types/SelectOption";
5
+ import type { SelectOption, SelectValue } from "../../types/SelectOption";
6
6
  import type { Size } from "../../types/Size";
7
7
  type AdditionalProps<Value> = {
8
8
  hasGroups?: boolean;
@@ -12,11 +12,11 @@ type AdditionalProps<Value> = {
12
12
  customOption?: (value: Value) => ReactNode;
13
13
  };
14
14
  export declare const CheckboxOptionComponent: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
15
- export type StyledReactSelectProps<Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>> = {
15
+ export type StyledReactSelectProps<V extends SelectValue, Option extends SelectOption<V>, IsMulti extends boolean, Group extends GroupBase<Option>> = {
16
16
  closeOnOutsideScroll?: boolean;
17
17
  components?: SelectComponentsConfig<Option, IsMulti, Group>;
18
18
  size?: Size;
19
19
  styles?: StylesConfig<Option, IsMulti, Group>;
20
20
  } & Props<Option, IsMulti, Group> & HelpTextProps & AdditionalProps<Option['value']> & BaseProps;
21
- export declare const StyledReactSelect: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>({ closeOnOutsideScroll, components, customOption, error, hasGroups, helpText, icon, label, menuPosition, placeholder, size, style, ...props }: StyledReactSelectProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const StyledReactSelect: <V extends SelectValue, Option extends SelectOption<V>, IsMulti extends boolean, Group extends GroupBase<Option>>({ closeOnOutsideScroll, components, customOption, error, hasGroups, helpText, icon, label, menuPosition, placeholder, size, style, ...props }: StyledReactSelectProps<V, Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
22
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.4.14",
3
+ "version": "5.4.15",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",