@kwantis-id3/frontend-library 0.20.3 → 0.21.0-rc.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 -1
- package/dist/esm/index.js +94 -50
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +13 -3
- package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +3 -9
- package/dist/index.d.ts +4 -10
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
4
|
/**
|
|
@@ -28,5 +29,5 @@ export type DropdownProps = {
|
|
|
28
29
|
/** The mobile breakpoint, by default it's 768px */
|
|
29
30
|
mobileBreakpoint?: number;
|
|
30
31
|
};
|
|
31
|
-
export declare const DropdownDesktop: (props: DropdownProps) =>
|
|
32
|
-
export declare const Dropdown: (props: DropdownProps) =>
|
|
32
|
+
export declare const DropdownDesktop: (props: DropdownProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
33
|
+
export declare const Dropdown: (props: DropdownProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -6,8 +6,6 @@ export declare const DropdownContainer: import("@emotion/styled").StyledComponen
|
|
|
6
6
|
export declare const DropdownTrigger: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("..").ThemeContextProps | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
$textColor: string;
|
|
11
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
10
|
export declare const DropdownBody: import("@emotion/styled").StyledComponent<{
|
|
13
11
|
theme?: import("..").ThemeContextProps | undefined;
|
|
@@ -15,8 +13,9 @@ export declare const DropdownBody: import("@emotion/styled").StyledComponent<{
|
|
|
15
13
|
} & {
|
|
16
14
|
$direction: string;
|
|
17
15
|
$isOpen: boolean;
|
|
16
|
+
$bgColor: string;
|
|
18
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const
|
|
18
|
+
export declare const DropdownItemInnerContainer: import("@emotion/styled").StyledComponent<{
|
|
20
19
|
theme?: import("..").ThemeContextProps | undefined;
|
|
21
20
|
as?: import("react").ElementType<any> | undefined;
|
|
22
21
|
} & {
|
|
@@ -48,3 +47,14 @@ export declare const ClickableItemMobile: import("@emotion/styled").StyledCompon
|
|
|
48
47
|
theme?: import("..").ThemeContextProps | undefined;
|
|
49
48
|
as?: import("react").ElementType<any> | undefined;
|
|
50
49
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
50
|
+
export declare const MobileItemTitle: import("@emotion/styled").StyledComponent<{
|
|
51
|
+
theme?: import("..").ThemeContextProps | undefined;
|
|
52
|
+
as?: import("react").ElementType<any> | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
$bgColor?: string | undefined;
|
|
55
|
+
$textColor?: string | undefined;
|
|
56
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
|
+
export declare const ItemSpanValue: import("@emotion/styled").StyledComponent<{
|
|
58
|
+
theme?: import("..").ThemeContextProps | undefined;
|
|
59
|
+
as?: import("react").ElementType<any> | undefined;
|
|
60
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -12,21 +12,15 @@ export interface ThemeColorsObject {
|
|
|
12
12
|
statusCritical: Color;
|
|
13
13
|
statusNeutral: Color;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export interface ThemeContextProps {
|
|
16
16
|
colors: ThemeColorsObject;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
interface Nothing {
|
|
19
19
|
}
|
|
20
20
|
type Union<T, U> = T | (U & Nothing);
|
|
21
21
|
export type ThemeColors = keyof ThemeColorsObject;
|
|
22
22
|
export type ThemeColorsExtended = Union<ThemeColors, string>;
|
|
23
|
-
type ThemeProperties = {
|
|
24
|
-
colors: ThemeColorsObject;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param color one of the theme keys, a path to a specific color in the theme, OR a string representing a color (hex, rgb, hsl, etc)
|
|
28
|
-
* @returns a valid color object. If color is not valid, will return the primary color.
|
|
29
|
-
*/
|
|
23
|
+
type ThemeProperties = ThemeContextProps & {
|
|
30
24
|
getColor: (color: ThemeColorsExtended) => Color;
|
|
31
25
|
};
|
|
32
26
|
export declare const defaultThemeColors: {
|
package/dist/index.d.ts
CHANGED
|
@@ -18,21 +18,15 @@ interface ThemeColorsObject {
|
|
|
18
18
|
statusCritical: Color;
|
|
19
19
|
statusNeutral: Color;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
interface ThemeContextProps {
|
|
22
22
|
colors: ThemeColorsObject;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
interface Nothing {
|
|
25
25
|
}
|
|
26
26
|
type Union<T, U> = T | (U & Nothing);
|
|
27
27
|
type ThemeColors = keyof ThemeColorsObject;
|
|
28
28
|
type ThemeColorsExtended = Union<ThemeColors, string>;
|
|
29
|
-
type ThemeProperties = {
|
|
30
|
-
colors: ThemeColorsObject;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @param color one of the theme keys, a path to a specific color in the theme, OR a string representing a color (hex, rgb, hsl, etc)
|
|
34
|
-
* @returns a valid color object. If color is not valid, will return the primary color.
|
|
35
|
-
*/
|
|
29
|
+
type ThemeProperties = ThemeContextProps & {
|
|
36
30
|
getColor: (color: ThemeColorsExtended) => Color;
|
|
37
31
|
};
|
|
38
32
|
declare const ThemeContextProvider: (props: React__default.PropsWithChildren<{
|
|
@@ -276,7 +270,7 @@ type DropdownProps = {
|
|
|
276
270
|
/** The mobile breakpoint, by default it's 768px */
|
|
277
271
|
mobileBreakpoint?: number;
|
|
278
272
|
};
|
|
279
|
-
declare const Dropdown: (props: DropdownProps) =>
|
|
273
|
+
declare const Dropdown: (props: DropdownProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
280
274
|
|
|
281
275
|
interface ModalProps {
|
|
282
276
|
/** The content of the modal */
|