@kwantis-id3/frontend-library 0.16.3 → 0.17.1

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.
@@ -6,6 +6,7 @@ import { Theme } from "@emotion/react";
6
6
  export type ButtonVariants = "contained" | "outlined" | "text";
7
7
  export type ButtonProps = {
8
8
  color?: ThemeColorsExtended;
9
+ type?: "button" | "submit" | "reset";
9
10
  sx?: Interpolation<Theme>;
10
11
  variant?: ButtonVariants;
11
12
  onClick?: () => void;
@@ -7,6 +7,7 @@ export interface MultiSelectProps<Option = {
7
7
  options: Option[];
8
8
  onChange?: (option: Option[] | null) => void;
9
9
  value?: readonly Option[] | null;
10
+ name?: string;
10
11
  placeholder?: string;
11
12
  isDisabled?: boolean;
12
13
  isClearable?: boolean;
@@ -17,5 +18,6 @@ export interface MultiSelectProps<Option = {
17
18
  containerId?: string;
18
19
  htmlId?: string;
19
20
  className?: string;
21
+ required?: boolean;
20
22
  }
21
23
  export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
@@ -7,6 +7,7 @@ export interface SingleSelectProps<Option = {
7
7
  options: Option[];
8
8
  onChange?: (option: Option | null) => void;
9
9
  value?: Option | null;
10
+ name?: string;
10
11
  placeholder?: string;
11
12
  isDisabled?: boolean;
12
13
  isClearable?: boolean;
@@ -17,5 +18,6 @@ export interface SingleSelectProps<Option = {
17
18
  containerId?: string;
18
19
  htmlId?: string;
19
20
  className?: string;
21
+ required?: boolean;
20
22
  }
21
23
  export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
@@ -2,12 +2,19 @@
2
2
  import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
3
  interface TextFieldProps {
4
4
  value?: string;
5
+ name?: string;
5
6
  onChange?: (value: string) => void;
6
7
  placeholder?: string;
7
8
  htmlId?: string;
9
+ containerClassName?: string;
8
10
  className?: string;
9
11
  isDisabled?: boolean;
10
12
  color?: ThemeColorsExtended;
13
+ required?: boolean;
14
+ pattern?: string;
15
+ readonly?: boolean;
16
+ autoFocus?: boolean;
17
+ list?: string;
11
18
  }
12
19
  export declare const TextField: (props: TextFieldProps) => JSX.Element;
13
20
  export {};
package/dist/index.d.ts CHANGED
@@ -43,6 +43,7 @@ declare const useThemeContext: () => ThemeProperties;
43
43
  type ButtonVariants = "contained" | "outlined" | "text";
44
44
  type ButtonProps = {
45
45
  color?: ThemeColorsExtended;
46
+ type?: "button" | "submit" | "reset";
46
47
  sx?: Interpolation<Theme>;
47
48
  variant?: ButtonVariants;
48
49
  onClick?: () => void;
@@ -73,12 +74,19 @@ declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_nam
73
74
 
74
75
  interface TextFieldProps {
75
76
  value?: string;
77
+ name?: string;
76
78
  onChange?: (value: string) => void;
77
79
  placeholder?: string;
78
80
  htmlId?: string;
81
+ containerClassName?: string;
79
82
  className?: string;
80
83
  isDisabled?: boolean;
81
84
  color?: ThemeColorsExtended;
85
+ required?: boolean;
86
+ pattern?: string;
87
+ readonly?: boolean;
88
+ autoFocus?: boolean;
89
+ list?: string;
82
90
  }
83
91
  declare const TextField: (props: TextFieldProps) => JSX.Element;
84
92
 
@@ -89,6 +97,7 @@ interface SingleSelectProps<Option = {
89
97
  options: Option[];
90
98
  onChange?: (option: Option | null) => void;
91
99
  value?: Option | null;
100
+ name?: string;
92
101
  placeholder?: string;
93
102
  isDisabled?: boolean;
94
103
  isClearable?: boolean;
@@ -99,6 +108,7 @@ interface SingleSelectProps<Option = {
99
108
  containerId?: string;
100
109
  htmlId?: string;
101
110
  className?: string;
111
+ required?: boolean;
102
112
  }
103
113
  declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
104
114
 
@@ -109,6 +119,7 @@ interface MultiSelectProps<Option = {
109
119
  options: Option[];
110
120
  onChange?: (option: Option[] | null) => void;
111
121
  value?: readonly Option[] | null;
122
+ name?: string;
112
123
  placeholder?: string;
113
124
  isDisabled?: boolean;
114
125
  isClearable?: boolean;
@@ -119,6 +130,7 @@ interface MultiSelectProps<Option = {
119
130
  containerId?: string;
120
131
  htmlId?: string;
121
132
  className?: string;
133
+ required?: boolean;
122
134
  }
123
135
  declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
124
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.16.3",
3
+ "version": "0.17.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"