@kwantis-id3/frontend-library 0.8.2 → 0.8.3

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.
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { GroupBase } from "react-select";
3
2
  import { ThemeColors } from "../ThemeContext";
4
- export interface MultiSelectProps<Option, IsMulti extends boolean, Group> {
3
+ export interface MultiSelectProps<Option = {
4
+ label: string;
5
+ value: string;
6
+ }> {
5
7
  options: Option[];
6
8
  onChange?: (option: Option[] | null) => void;
7
9
  value?: readonly Option[] | null;
@@ -15,4 +17,4 @@ export interface MultiSelectProps<Option, IsMulti extends boolean, Group> {
15
17
  htmlId?: string;
16
18
  className?: string;
17
19
  }
18
- export declare const MultiSelect: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: MultiSelectProps<Option, IsMulti, Group>) => JSX.Element;
20
+ export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { GroupBase } from "react-select";
3
2
  import { ThemeColors } from "../ThemeContext";
4
- export interface SingleSelectProps<Option, IsMulti extends boolean, Group> {
3
+ export interface SingleSelectProps<Option = {
4
+ label: string;
5
+ value: string;
6
+ }> {
5
7
  options: Option[];
6
8
  onChange?: (option: Option | null) => void;
7
9
  value?: Option | null;
@@ -15,4 +17,4 @@ export interface SingleSelectProps<Option, IsMulti extends boolean, Group> {
15
17
  htmlId?: string;
16
18
  className?: string;
17
19
  }
18
- export declare const SingleSelect: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SingleSelectProps<Option, IsMulti, Group>) => JSX.Element;
20
+ export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import React__default from 'react';
5
5
  import { Interpolation } from '@emotion/styled';
6
6
  import { Theme } from '@emotion/react';
7
- import { GroupBase } from 'react-select';
8
7
 
9
8
  interface Color {
10
9
  main: string;
@@ -56,7 +55,10 @@ type AccordionProps = {
56
55
  };
57
56
  declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
58
57
 
59
- interface SingleSelectProps<Option, IsMulti extends boolean, Group> {
58
+ interface SingleSelectProps<Option = {
59
+ label: string;
60
+ value: string;
61
+ }> {
60
62
  options: Option[];
61
63
  onChange?: (option: Option | null) => void;
62
64
  value?: Option | null;
@@ -70,9 +72,12 @@ interface SingleSelectProps<Option, IsMulti extends boolean, Group> {
70
72
  htmlId?: string;
71
73
  className?: string;
72
74
  }
73
- declare const SingleSelect: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SingleSelectProps<Option, IsMulti, Group>) => JSX.Element;
75
+ declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
74
76
 
75
- interface MultiSelectProps<Option, IsMulti extends boolean, Group> {
77
+ interface MultiSelectProps<Option = {
78
+ label: string;
79
+ value: string;
80
+ }> {
76
81
  options: Option[];
77
82
  onChange?: (option: Option[] | null) => void;
78
83
  value?: readonly Option[] | null;
@@ -86,7 +91,7 @@ interface MultiSelectProps<Option, IsMulti extends boolean, Group> {
86
91
  htmlId?: string;
87
92
  className?: string;
88
93
  }
89
- declare const MultiSelect: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: MultiSelectProps<Option, IsMulti, Group>) => JSX.Element;
94
+ declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
90
95
 
91
96
  type SliderProps = {
92
97
  values: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"