@kwantis-id3/frontend-library 0.20.3 → 0.21.0-rc.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.
@@ -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) => JSX.Element;
32
- export declare const Dropdown: (props: DropdownProps) => JSX.Element;
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 DropdownItemContainer: import("@emotion/styled").StyledComponent<{
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,16 @@ 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
+ } & {
61
+ $direction: string;
62
+ }, 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 type ThemeContextProps = {
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
- type ThemeContextProps = {
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) => JSX.Element;
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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.20.3",
3
+ "version": "0.21.0-rc.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "scriptsComments": {
6
6
  "storybook": "Starts storybook in development mode",
@@ -16,7 +16,8 @@
16
16
  "bump:major": "Bumps the version to the next major",
17
17
  "bump:prepatch": "Bumps the version to the next prepatch",
18
18
  "bump:preminor": "Bumps the version to the next preminor",
19
- "bump:premajor": "Bumps the version to the next premajor"
19
+ "bump:premajor": "Bumps the version to the next premajor",
20
+ "bump:rc": "Bumps the version to the next release candidate"
20
21
  },
21
22
  "scripts": {
22
23
  "storybook": "storybook dev -p 6006",
@@ -32,7 +33,8 @@
32
33
  "bump:major": "pnpm version major",
33
34
  "bump:prepatch": "pnpm version prepatch --preid=rc",
34
35
  "bump:preminor": "pnpm version preminor --preid=rc",
35
- "bump:premajor": "pnpm version premajor --preid=rc"
36
+ "bump:premajor": "pnpm version premajor --preid=rc",
37
+ "bump:rc": "pnpm version prerelease --preid=rc"
36
38
  },
37
39
  "author": {
38
40
  "name": "kwantis"