@kwantis-id3/frontend-library 0.22.0-rc.0 → 0.22.0
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.
|
@@ -9,12 +9,19 @@ import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
|
9
9
|
* @property {() => void} onClick - The onClick handler of the dropdown item
|
|
10
10
|
*/
|
|
11
11
|
export type DropdownItem = {
|
|
12
|
+
/** The value displayed in the item */
|
|
12
13
|
value: string;
|
|
14
|
+
/** The color of the item */
|
|
13
15
|
color?: ThemeColorsExtended;
|
|
16
|
+
/** The text color of the item */
|
|
14
17
|
textColor?: string;
|
|
18
|
+
/** The children of the item */
|
|
15
19
|
children?: DropdownItem[];
|
|
20
|
+
/** Wether the item is hidden or not */
|
|
16
21
|
isHidden?: boolean;
|
|
22
|
+
/** Wether the dropdown should close when the item is clicked */
|
|
17
23
|
closeOnClick?: boolean;
|
|
24
|
+
/** The onClick handler of the item */
|
|
18
25
|
onClick?: () => void;
|
|
19
26
|
};
|
|
20
27
|
export type DropdownProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -250,12 +250,19 @@ declare const Slider: (props: SliderProps) => JSX.Element;
|
|
|
250
250
|
* @property {() => void} onClick - The onClick handler of the dropdown item
|
|
251
251
|
*/
|
|
252
252
|
type DropdownItem = {
|
|
253
|
+
/** The value displayed in the item */
|
|
253
254
|
value: string;
|
|
255
|
+
/** The color of the item */
|
|
254
256
|
color?: ThemeColorsExtended;
|
|
257
|
+
/** The text color of the item */
|
|
255
258
|
textColor?: string;
|
|
259
|
+
/** The children of the item */
|
|
256
260
|
children?: DropdownItem[];
|
|
261
|
+
/** Wether the item is hidden or not */
|
|
257
262
|
isHidden?: boolean;
|
|
263
|
+
/** Wether the dropdown should close when the item is clicked */
|
|
258
264
|
closeOnClick?: boolean;
|
|
265
|
+
/** The onClick handler of the item */
|
|
259
266
|
onClick?: () => void;
|
|
260
267
|
};
|
|
261
268
|
type DropdownProps = {
|