@kwantis-id3/frontend-library 0.25.0 → 0.26.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.
@@ -1,24 +1,23 @@
1
- /// <reference types="react" />
2
1
  export declare const Divider: import("@emotion/styled").StyledComponent<{
3
- theme?: import("..").ThemeContextProps | undefined;
4
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
10
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
17
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
23
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
4
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
8
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
12
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
20
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
30
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
37
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
44
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
48
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
52
- as?: import("react").ElementType<any> | undefined;
50
+ theme?: import("..").ThemeContextProps;
51
+ as?: React.ElementType;
53
52
  } & {
54
- $bgColor?: string | undefined;
55
- $textColor?: string | undefined;
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 | undefined;
59
- as?: import("react").ElementType<any> | undefined;
57
+ theme?: import("..").ThemeContextProps;
58
+ as?: React.ElementType;
60
59
  } & {
61
60
  $direction: string;
62
61
  $hasChildren: boolean;
@@ -1,32 +1,14 @@
1
1
  import React from "react";
2
2
  import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
- export type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
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
- required?: boolean;
24
- pattern?: string;
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;
10
+ /** Change the styles of the input field */
11
+ sx?: React.CSSProperties;
30
12
  }
31
13
  export declare const InputField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
32
14
  export {};
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  export declare const InputContainer: import("@emotion/styled").StyledComponent<{
3
- theme?: import("..").ThemeContextProps | undefined;
4
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
8
- as?: import("react").ElementType<any> | undefined;
6
+ theme?: import("..").ThemeContextProps;
7
+ as?: React.ElementType;
9
8
  } & {
10
9
  $color: string;
11
- $isDisabled?: boolean | undefined;
10
+ $isDisabled?: boolean;
12
11
  }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
@@ -1 +1 @@
1
- export { InputField, TInputType } from "./InputField";
1
+ export { InputField } from "./InputField";
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  export declare const DialogElement: import("@emotion/styled").StyledComponent<{
3
- theme?: import("..").ThemeContextProps | undefined;
4
- as?: import("react").ElementType<any> | undefined;
2
+ theme?: import("..").ThemeContextProps;
3
+ as?: React.ElementType;
5
4
  }, import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, {}>;
6
5
  export declare const ExitButtonContainer: import("@emotion/styled").StyledComponent<{
7
- theme?: import("..").ThemeContextProps | undefined;
8
- as?: import("react").ElementType<any> | undefined;
6
+ theme?: import("..").ThemeContextProps;
7
+ as?: React.ElementType;
9
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- /// <reference types="react" />
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 | undefined;
4
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
8
- as?: import("react").ElementType<any> | undefined;
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 | undefined;
14
- as?: import("react").ElementType<any> | undefined;
12
+ theme?: import("..").ThemeContextProps;
13
+ as?: React.ElementType;
15
14
  } & {
16
15
  $bgColor: string;
17
16
  $borderColor: string;
18
- $disabled?: boolean | undefined;
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 | undefined;
22
- as?: import("react").ElementType<any> | undefined;
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, TInputType } from "./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";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PropsOf } from "@emotion/react";
3
2
  import { CreateStyledComponent, StyledOptions, FilteringStyledOptions } from "@emotion/styled";
4
3
  import { ThemeContextProps } from "../components";
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,33 +89,15 @@ type AccordionProps = {
90
89
  };
91
90
  declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
92
91
 
93
- type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
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
- required?: boolean;
114
- pattern?: string;
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;
99
+ /** Change the styles of the input field */
100
+ sx?: React__default.CSSProperties;
120
101
  }
121
102
  declare const InputField: React__default.ForwardRefExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
122
103
 
@@ -163,7 +144,7 @@ interface SingleSelectProps<Option = {
163
144
  /** Wether the select is required */
164
145
  required?: boolean;
165
146
  }
166
- declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
147
+ declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => React__default.JSX.Element;
167
148
 
168
149
  interface MultiSelectProps<Option = {
169
150
  label: string;
@@ -206,7 +187,7 @@ interface MultiSelectProps<Option = {
206
187
  /** Wether the select is required */
207
188
  required?: boolean;
208
189
  }
209
- declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
190
+ declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => React__default.JSX.Element;
210
191
 
211
192
  type SliderProps = {
212
193
  /** The values of the slider. */
@@ -240,7 +221,7 @@ type SliderProps = {
240
221
  /** Wether the thumbs can overlap */
241
222
  allowOverlap?: boolean;
242
223
  };
243
- declare const Slider: (props: SliderProps) => JSX.Element;
224
+ declare const Slider: (props: SliderProps) => React__default.JSX.Element;
244
225
 
245
226
  /**
246
227
  * @property {string} value - The value displayed in the dropdown item
@@ -340,4 +321,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
340
321
  }
341
322
  declare const styled: CreateStyled;
342
323
 
343
- export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TInputType, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, ThemeProperties, styled, transientOptions, useIsMobile, useThemeContext };
324
+ 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.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "scriptsComments": {
6
6
  "storybook": "Starts storybook in development mode",