@kwantis-id3/frontend-library 0.25.1 → 0.27.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.
- package/changelog.md +12 -0
- package/dist/esm/index.js +54 -41
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accordion/AccordionStyled.d.ts +8 -9
- package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +22 -23
- package/dist/esm/types/components/InputField/InputField.d.ts +3 -22
- package/dist/esm/types/components/InputField/StyledInputField.d.ts +5 -6
- package/dist/esm/types/components/InputField/index.d.ts +1 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +9 -5
- package/dist/esm/types/components/Modal/StyledModal.d.ts +7 -5
- package/dist/esm/types/components/SelectFilter/MultiSelect.d.ts +2 -2
- package/dist/esm/types/components/SelectFilter/SingleSelect.d.ts +2 -2
- package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
- package/dist/esm/types/components/Slider/SliderStyled.d.ts +9 -10
- package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +1 -1
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/utils/styled.d.ts +0 -1
- package/dist/index.d.ts +17 -33
- package/package.json +5 -3
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Divider: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("..").ThemeContextProps
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("..").ThemeContextProps;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & {
|
|
6
5
|
$color: string;
|
|
7
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
7
|
export declare const TitleDiv: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("..").ThemeContextProps
|
|
10
|
-
as?:
|
|
8
|
+
theme?: import("..").ThemeContextProps;
|
|
9
|
+
as?: React.ElementType;
|
|
11
10
|
} & {
|
|
12
11
|
$color: string;
|
|
13
12
|
$textColor: string;
|
|
14
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
14
|
export declare const IconContainer: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("..").ThemeContextProps
|
|
17
|
-
as?:
|
|
15
|
+
theme?: import("..").ThemeContextProps;
|
|
16
|
+
as?: React.ElementType;
|
|
18
17
|
} & {
|
|
19
18
|
$iconColor: string;
|
|
20
19
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
20
|
export declare const TitleH2: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
theme?: import("..").ThemeContextProps
|
|
23
|
-
as?:
|
|
21
|
+
theme?: import("..").ThemeContextProps;
|
|
22
|
+
as?: React.ElementType;
|
|
24
23
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const DropdownContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("..").ThemeContextProps
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("..").ThemeContextProps;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
5
|
export declare const DropdownTrigger: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("..").ThemeContextProps
|
|
8
|
-
as?:
|
|
6
|
+
theme?: import("..").ThemeContextProps;
|
|
7
|
+
as?: React.ElementType;
|
|
9
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
9
|
export declare const DropdownBody: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("..").ThemeContextProps
|
|
12
|
-
as?:
|
|
10
|
+
theme?: import("..").ThemeContextProps;
|
|
11
|
+
as?: React.ElementType;
|
|
13
12
|
} & {
|
|
14
13
|
$direction: string;
|
|
15
14
|
$isOpen: boolean;
|
|
16
15
|
$bgColor: string;
|
|
17
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
17
|
export declare const DropdownItemInnerContainer: import("@emotion/styled").StyledComponent<{
|
|
19
|
-
theme?: import("..").ThemeContextProps
|
|
20
|
-
as?:
|
|
18
|
+
theme?: import("..").ThemeContextProps;
|
|
19
|
+
as?: React.ElementType;
|
|
21
20
|
} & {
|
|
22
21
|
$bgColor: string;
|
|
23
22
|
$textColor: string;
|
|
@@ -26,37 +25,37 @@ export declare const DropdownItemInnerContainer: import("@emotion/styled").Style
|
|
|
26
25
|
$direction: string;
|
|
27
26
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
28
27
|
export declare const DropdownBodyMobile: import("@emotion/styled").StyledComponent<{
|
|
29
|
-
theme?: import("..").ThemeContextProps
|
|
30
|
-
as?:
|
|
28
|
+
theme?: import("..").ThemeContextProps;
|
|
29
|
+
as?: React.ElementType;
|
|
31
30
|
} & {
|
|
32
31
|
$isOpen: boolean;
|
|
33
32
|
$bgColor: string;
|
|
34
33
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
34
|
export declare const DropdownItemMobileContainer: import("@emotion/styled").StyledComponent<{
|
|
36
|
-
theme?: import("..").ThemeContextProps
|
|
37
|
-
as?:
|
|
35
|
+
theme?: import("..").ThemeContextProps;
|
|
36
|
+
as?: React.ElementType;
|
|
38
37
|
} & {
|
|
39
38
|
$bgColor: string;
|
|
40
39
|
$textColor: string;
|
|
41
40
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
41
|
export declare const AccordionBody: import("@emotion/styled").StyledComponent<{
|
|
43
|
-
theme?: import("..").ThemeContextProps
|
|
44
|
-
as?:
|
|
42
|
+
theme?: import("..").ThemeContextProps;
|
|
43
|
+
as?: React.ElementType;
|
|
45
44
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
46
45
|
export declare const ClickableItemMobile: import("@emotion/styled").StyledComponent<{
|
|
47
|
-
theme?: import("..").ThemeContextProps
|
|
48
|
-
as?:
|
|
46
|
+
theme?: import("..").ThemeContextProps;
|
|
47
|
+
as?: React.ElementType;
|
|
49
48
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
50
49
|
export declare const MobileItemTitle: import("@emotion/styled").StyledComponent<{
|
|
51
|
-
theme?: import("..").ThemeContextProps
|
|
52
|
-
as?:
|
|
50
|
+
theme?: import("..").ThemeContextProps;
|
|
51
|
+
as?: React.ElementType;
|
|
53
52
|
} & {
|
|
54
|
-
$bgColor?: string
|
|
55
|
-
$textColor?: string
|
|
53
|
+
$bgColor?: string;
|
|
54
|
+
$textColor?: string;
|
|
56
55
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
56
|
export declare const ItemSpanValue: import("@emotion/styled").StyledComponent<{
|
|
58
|
-
theme?: import("..").ThemeContextProps
|
|
59
|
-
as?:
|
|
57
|
+
theme?: import("..").ThemeContextProps;
|
|
58
|
+
as?: React.ElementType;
|
|
60
59
|
} & {
|
|
61
60
|
$direction: string;
|
|
62
61
|
$hasChildren: boolean;
|
|
@@ -1,33 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
|
-
|
|
4
|
-
interface TextFieldProps {
|
|
5
|
-
/** The value of the input */
|
|
6
|
-
value?: string | number;
|
|
7
|
-
/** The name of the input */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** The onChange handler of the input */
|
|
10
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
/** The placeholder of the input */
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
/** The HTML id of the input */
|
|
14
|
-
htmlId?: string;
|
|
3
|
+
interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
15
4
|
/** Classname given to the container div */
|
|
16
5
|
containerClassName?: string;
|
|
17
|
-
/** Classname of the input element */
|
|
18
|
-
className?: string;
|
|
19
6
|
/** Disables the input */
|
|
20
7
|
isDisabled?: boolean;
|
|
21
8
|
/** The color of the input */
|
|
22
9
|
color?: ThemeColorsExtended;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly?: boolean;
|
|
26
|
-
autoFocus?: boolean;
|
|
27
|
-
list?: string;
|
|
28
|
-
/** The type of the input (only string or number based inputs are currently supported) */
|
|
29
|
-
type?: TInputType;
|
|
30
|
-
step?: number;
|
|
10
|
+
/** Change the styles of the input field */
|
|
11
|
+
sx?: React.CSSProperties;
|
|
31
12
|
}
|
|
32
13
|
export declare const InputField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
14
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const InputContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("..").ThemeContextProps
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("..").ThemeContextProps;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
5
|
export declare const StyledInput: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("..").ThemeContextProps
|
|
8
|
-
as?:
|
|
6
|
+
theme?: import("..").ThemeContextProps;
|
|
7
|
+
as?: React.ElementType;
|
|
9
8
|
} & {
|
|
10
9
|
$color: string;
|
|
11
|
-
$isDisabled?: boolean
|
|
10
|
+
$isDisabled?: boolean;
|
|
12
11
|
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InputField
|
|
1
|
+
export { InputField } from "./InputField";
|
|
@@ -2,14 +2,18 @@ import React from "react";
|
|
|
2
2
|
interface ModalProps {
|
|
3
3
|
/** The content of the modal */
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/** Cointrols whether the modal should be open or not. */
|
|
6
6
|
isOpen: boolean;
|
|
7
|
-
/** The handler to
|
|
8
|
-
|
|
7
|
+
/** The handler to be called when the modal is closed */
|
|
8
|
+
onClose: () => void;
|
|
9
9
|
/** The handler to be called when the modal is opened */
|
|
10
10
|
onOpen?: () => void;
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/** custom width */
|
|
12
|
+
width?: string;
|
|
13
|
+
/** custom height */
|
|
14
|
+
height?: string;
|
|
15
|
+
/** custom css */
|
|
16
|
+
sx?: React.CSSProperties;
|
|
13
17
|
}
|
|
14
18
|
declare const Modal: React.FC<ModalProps>;
|
|
15
19
|
export default Modal;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const DialogElement: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("..").ThemeContextProps
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("..").ThemeContextProps;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
$width?: string;
|
|
6
|
+
$height?: string;
|
|
5
7
|
}, import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, {}>;
|
|
6
8
|
export declare const ExitButtonContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("..").ThemeContextProps
|
|
8
|
-
as?:
|
|
9
|
+
theme?: import("..").ThemeContextProps;
|
|
10
|
+
as?: React.ElementType;
|
|
9
11
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
3
|
export interface MultiSelectProps<Option = {
|
|
4
4
|
label: string;
|
|
@@ -41,4 +41,4 @@ export interface MultiSelectProps<Option = {
|
|
|
41
41
|
/** Wether the select is required */
|
|
42
42
|
required?: boolean;
|
|
43
43
|
}
|
|
44
|
-
export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
|
|
44
|
+
export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
3
|
export interface SingleSelectProps<Option = {
|
|
4
4
|
label: string;
|
|
@@ -43,4 +43,4 @@ export interface SingleSelectProps<Option = {
|
|
|
43
43
|
/** Wether the select is required */
|
|
44
44
|
required?: boolean;
|
|
45
45
|
}
|
|
46
|
-
export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
|
|
46
|
+
export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
3
|
export type SliderProps = {
|
|
4
4
|
/** The values of the slider. */
|
|
@@ -32,4 +32,4 @@ export type SliderProps = {
|
|
|
32
32
|
/** Wether the thumbs can overlap */
|
|
33
33
|
allowOverlap?: boolean;
|
|
34
34
|
};
|
|
35
|
-
export declare const Slider: (props: SliderProps) => JSX.Element;
|
|
35
|
+
export declare const Slider: (props: SliderProps) => React.JSX.Element;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const OuterTrackDiv: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("..").ThemeContextProps
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("..").ThemeContextProps;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
5
|
export declare const InnerTrackDiv: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("..").ThemeContextProps
|
|
8
|
-
as?:
|
|
6
|
+
theme?: import("..").ThemeContextProps;
|
|
7
|
+
as?: React.ElementType;
|
|
9
8
|
} & {
|
|
10
9
|
$bgColor: string;
|
|
11
10
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
11
|
export declare const ThumbDiv: import("@emotion/styled").StyledComponent<{
|
|
13
|
-
theme?: import("..").ThemeContextProps
|
|
14
|
-
as?:
|
|
12
|
+
theme?: import("..").ThemeContextProps;
|
|
13
|
+
as?: React.ElementType;
|
|
15
14
|
} & {
|
|
16
15
|
$bgColor: string;
|
|
17
16
|
$borderColor: string;
|
|
18
|
-
$disabled?: boolean
|
|
17
|
+
$disabled?: boolean;
|
|
19
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
19
|
export declare const ThumbValueSpan: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("..").ThemeContextProps
|
|
22
|
-
as?:
|
|
20
|
+
theme?: import("..").ThemeContextProps;
|
|
21
|
+
as?: React.ElementType;
|
|
23
22
|
} & {
|
|
24
23
|
$textColor: string;
|
|
25
24
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -55,7 +55,7 @@ export declare const defaultThemeColors: {
|
|
|
55
55
|
};
|
|
56
56
|
export declare const ThemeContextProvider: (props: React.PropsWithChildren<{
|
|
57
57
|
theme?: ThemeContextProps;
|
|
58
|
-
}>) => JSX.Element;
|
|
58
|
+
}>) => React.JSX.Element;
|
|
59
59
|
type NestedObject<T> = {
|
|
60
60
|
[key: string]: T | NestedObject<T>;
|
|
61
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Button, ButtonProps } from "./Button";
|
|
2
2
|
export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeProperties, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
|
|
3
3
|
export { Accordion, AccordionProps } from "./Accordion";
|
|
4
|
-
export { InputField
|
|
4
|
+
export { InputField } from "./InputField";
|
|
5
5
|
export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
|
|
6
6
|
export { Slider, SliderProps } from "./Slider";
|
|
7
7
|
export { Dropdown, DropdownProps, DropdownItem } from "./Dropdown";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
3
2
|
import * as React$1 from 'react';
|
|
4
3
|
import React__default from 'react';
|
|
@@ -31,7 +30,7 @@ type ThemeProperties = ThemeContextProps & {
|
|
|
31
30
|
};
|
|
32
31
|
declare const ThemeContextProvider: (props: React__default.PropsWithChildren<{
|
|
33
32
|
theme?: ThemeContextProps;
|
|
34
|
-
}>) => JSX.Element;
|
|
33
|
+
}>) => React__default.JSX.Element;
|
|
35
34
|
declare const useThemeContext: () => ThemeProperties;
|
|
36
35
|
|
|
37
36
|
type ButtonVariants = "contained" | "outlined" | "text";
|
|
@@ -90,34 +89,15 @@ type AccordionProps = {
|
|
|
90
89
|
};
|
|
91
90
|
declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
interface TextFieldProps {
|
|
95
|
-
/** The value of the input */
|
|
96
|
-
value?: string | number;
|
|
97
|
-
/** The name of the input */
|
|
98
|
-
name?: string;
|
|
99
|
-
/** The onChange handler of the input */
|
|
100
|
-
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
101
|
-
/** The placeholder of the input */
|
|
102
|
-
placeholder?: string;
|
|
103
|
-
/** The HTML id of the input */
|
|
104
|
-
htmlId?: string;
|
|
92
|
+
interface TextFieldProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
105
93
|
/** Classname given to the container div */
|
|
106
94
|
containerClassName?: string;
|
|
107
|
-
/** Classname of the input element */
|
|
108
|
-
className?: string;
|
|
109
95
|
/** Disables the input */
|
|
110
96
|
isDisabled?: boolean;
|
|
111
97
|
/** The color of the input */
|
|
112
98
|
color?: ThemeColorsExtended;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
readonly?: boolean;
|
|
116
|
-
autoFocus?: boolean;
|
|
117
|
-
list?: string;
|
|
118
|
-
/** The type of the input (only string or number based inputs are currently supported) */
|
|
119
|
-
type?: TInputType;
|
|
120
|
-
step?: number;
|
|
99
|
+
/** Change the styles of the input field */
|
|
100
|
+
sx?: React__default.CSSProperties;
|
|
121
101
|
}
|
|
122
102
|
declare const InputField: React__default.ForwardRefExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
123
103
|
|
|
@@ -164,7 +144,7 @@ interface SingleSelectProps<Option = {
|
|
|
164
144
|
/** Wether the select is required */
|
|
165
145
|
required?: boolean;
|
|
166
146
|
}
|
|
167
|
-
declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
|
|
147
|
+
declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => React__default.JSX.Element;
|
|
168
148
|
|
|
169
149
|
interface MultiSelectProps<Option = {
|
|
170
150
|
label: string;
|
|
@@ -207,7 +187,7 @@ interface MultiSelectProps<Option = {
|
|
|
207
187
|
/** Wether the select is required */
|
|
208
188
|
required?: boolean;
|
|
209
189
|
}
|
|
210
|
-
declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
|
|
190
|
+
declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => React__default.JSX.Element;
|
|
211
191
|
|
|
212
192
|
type SliderProps = {
|
|
213
193
|
/** The values of the slider. */
|
|
@@ -241,7 +221,7 @@ type SliderProps = {
|
|
|
241
221
|
/** Wether the thumbs can overlap */
|
|
242
222
|
allowOverlap?: boolean;
|
|
243
223
|
};
|
|
244
|
-
declare const Slider: (props: SliderProps) => JSX.Element;
|
|
224
|
+
declare const Slider: (props: SliderProps) => React__default.JSX.Element;
|
|
245
225
|
|
|
246
226
|
/**
|
|
247
227
|
* @property {string} value - The value displayed in the dropdown item
|
|
@@ -285,14 +265,18 @@ declare const Dropdown: (props: DropdownProps) => _emotion_react_types_jsx_names
|
|
|
285
265
|
interface ModalProps {
|
|
286
266
|
/** The content of the modal */
|
|
287
267
|
children: React__default.ReactNode;
|
|
288
|
-
/**
|
|
268
|
+
/** Cointrols whether the modal should be open or not. */
|
|
289
269
|
isOpen: boolean;
|
|
290
|
-
/** The handler to
|
|
291
|
-
|
|
270
|
+
/** The handler to be called when the modal is closed */
|
|
271
|
+
onClose: () => void;
|
|
292
272
|
/** The handler to be called when the modal is opened */
|
|
293
273
|
onOpen?: () => void;
|
|
294
|
-
/**
|
|
295
|
-
|
|
274
|
+
/** custom width */
|
|
275
|
+
width?: string;
|
|
276
|
+
/** custom height */
|
|
277
|
+
height?: string;
|
|
278
|
+
/** custom css */
|
|
279
|
+
sx?: React__default.CSSProperties;
|
|
296
280
|
}
|
|
297
281
|
declare const Modal: React__default.FC<ModalProps>;
|
|
298
282
|
|
|
@@ -341,4 +325,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
|
|
|
341
325
|
}
|
|
342
326
|
declare const styled: CreateStyled;
|
|
343
327
|
|
|
344
|
-
export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps,
|
|
328
|
+
export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, ThemeProperties, styled, transientOptions, useIsMobile, useThemeContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"test:watch": "vitest",
|
|
29
29
|
"test:coverage": "vitest --coverage",
|
|
30
30
|
"chromatic": "npx chromatic --project-token=3dd812d03e4c",
|
|
31
|
-
"build
|
|
32
|
-
"build": "pnpm clean-build && pnpm rollup",
|
|
31
|
+
"build": "pnpm rollup",
|
|
33
32
|
"bump:patch": "pnpm version patch",
|
|
34
33
|
"bump:minor": "pnpm version minor",
|
|
35
34
|
"bump:major": "pnpm version major",
|
|
@@ -90,6 +89,9 @@
|
|
|
90
89
|
"files": [
|
|
91
90
|
"dist"
|
|
92
91
|
],
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": ">=18.15.0"
|
|
94
|
+
},
|
|
93
95
|
"types": "dist/index.d.ts",
|
|
94
96
|
"dependencies": {
|
|
95
97
|
"@emotion/jest": "^11.11.0",
|