@kwantis-id3/frontend-library 0.4.0 → 0.4.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.
@@ -0,0 +1,3 @@
1
+ import type { Config } from "jest";
2
+ declare const config: Config;
3
+ export default config;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ export type ThemeColorsObject = {
3
+ primary: string;
4
+ secondary: string;
5
+ tertiary: string;
6
+ statusOk: string;
7
+ statusWarning: string;
8
+ statusCritical: string;
9
+ statusNeutral: string;
10
+ };
11
+ export type ThemeTextColorsObject = {
12
+ primary: string;
13
+ secondary: string;
14
+ tertiary: string;
15
+ statusOk: string;
16
+ statusWarning: string;
17
+ statusCritical: string;
18
+ statusNeutral: string;
19
+ };
20
+ interface ThemeContextProps {
21
+ colors: ThemeColorsObject;
22
+ textColors: ThemeTextColorsObject;
23
+ }
24
+ export type ThemeColors = keyof ThemeColorsObject;
25
+ export type ThemeTextColors = keyof ThemeTextColorsObject;
26
+ export declare const defaultThemeColors: {
27
+ primary: string;
28
+ secondary: string;
29
+ tertiary: string;
30
+ statusOk: string;
31
+ statusWarning: string;
32
+ statusCritical: string;
33
+ statusNeutral: string;
34
+ };
35
+ export declare const defaultThemeTextColors: {
36
+ primary: string;
37
+ secondary: string;
38
+ tertiary: string;
39
+ statusOk: string;
40
+ statusWarning: string;
41
+ statusCritical: string;
42
+ statusNeutral: string;
43
+ };
44
+ export declare const ThemeContextProvider: (props: React.PropsWithChildren<{
45
+ theme?: ThemeContextProps;
46
+ }>) => JSX.Element;
47
+ export declare const useThemeContext: () => ThemeContextProps;
48
+ export {};
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1 @@
1
+ export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
@@ -0,0 +1,17 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { ThemeColors, ThemeTextColors } from "../ThemeContext/ThemeContext";
3
+ import { Interpolation } from "@emotion/styled";
4
+ import { Theme } from "@emotion/react";
5
+ export type ButtonVariants = "contained" | "outlined" | "text";
6
+ export interface ButtonProps {
7
+ label: string;
8
+ color?: ThemeColors;
9
+ textColor?: ThemeTextColors;
10
+ sx?: Interpolation<Theme>;
11
+ variant?: ButtonVariants;
12
+ onClick?: () => void;
13
+ htmlClassName?: string;
14
+ htmlId?: string;
15
+ disabled?: boolean;
16
+ }
17
+ export declare const Button: (props: ButtonProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1 @@
1
+ export { Button, ButtonProps } from "./Button";
@@ -0,0 +1,2 @@
1
+ export { Button, ButtonProps } from "./button";
2
+ export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
@@ -0,0 +1 @@
1
+ export * from "./components";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": "kwantis",
6
6
  "license": "apache-2.0",