@kwantis-id3/frontend-library 0.6.0 → 0.6.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,10 +1,20 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { Interpolation } from "@emotion/styled";
1
3
  import React from "react";
4
+ import { ThemeColors } from "../ThemeContext";
5
+ import { Theme } from "@emotion/react";
2
6
  export interface AccordionProps {
3
7
  title: string;
4
8
  children: React.ReactNode;
9
+ color?: ThemeColors;
10
+ iconColor?: ThemeColors;
11
+ dividerColor?: ThemeColors;
12
+ variant?: "contained" | "outlined" | "text";
5
13
  isOpen?: boolean;
14
+ isLazy?: boolean;
6
15
  onClick?: () => void;
7
16
  onOpen?: () => void;
8
17
  onClose?: () => void;
18
+ sx?: Interpolation<Theme>;
9
19
  }
10
- export declare const Accordion: (props: AccordionProps) => JSX.Element;
20
+ export declare const Accordion: (props: AccordionProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ export declare const Divider: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ color: string;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const TitleDiv: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & {
12
+ color: string;
13
+ textColor: string;
14
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export declare const IconContainer: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & {
19
+ iconColor: string;
20
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const TitleH2: import("@emotion/styled").StyledComponent<{
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
@@ -0,0 +1 @@
1
+ export { Accordion, AccordionProps } from "./Accordion";
@@ -1,2 +1,3 @@
1
1
  export { Button, ButtonProps } from "./button";
2
2
  export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
3
+ export { Accordion, AccordionProps } from "./accordion";
package/dist/index.d.ts CHANGED
@@ -38,4 +38,20 @@ interface ButtonProps {
38
38
  }
39
39
  declare const Button: (props: ButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
40
40
 
41
- export { Button, ButtonProps, ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext };
41
+ interface AccordionProps {
42
+ title: string;
43
+ children: React.ReactNode;
44
+ color?: ThemeColors;
45
+ iconColor?: ThemeColors;
46
+ dividerColor?: ThemeColors;
47
+ variant?: "contained" | "outlined" | "text";
48
+ isOpen?: boolean;
49
+ isLazy?: boolean;
50
+ onClick?: () => void;
51
+ onOpen?: () => void;
52
+ onClose?: () => void;
53
+ sx?: Interpolation<Theme>;
54
+ }
55
+ declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
56
+
57
+ export { Accordion, AccordionProps, Button, ButtonProps, ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": "kwantis",
6
6
  "license": "apache-2.0",