@kwantis-id3/frontend-library 0.7.0 → 0.8.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,16 +1,17 @@
1
1
  /** @jsxImportSource @emotion/react */
2
+ import * as React from "react";
2
3
  import { ThemeColors } from "../ThemeContext/ThemeContext";
3
4
  import { Interpolation } from "@emotion/styled";
4
5
  import { Theme } from "@emotion/react";
5
6
  export type ButtonVariants = "contained" | "outlined" | "text";
6
7
  export type ButtonProps = {
7
- label: string;
8
8
  color?: ThemeColors;
9
9
  sx?: Interpolation<Theme>;
10
10
  variant?: ButtonVariants;
11
11
  onClick?: () => void;
12
- htmlClassName?: string;
12
+ className?: string;
13
13
  htmlId?: string;
14
14
  disabled?: boolean;
15
+ children?: React.ReactNode;
15
16
  };
16
17
  export declare const Button: (props: ButtonProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { ThemeColors } from "../ThemeContext";
3
+ export type SliderProps = {
4
+ values: number[];
5
+ min?: number;
6
+ max?: number;
7
+ onChange: (values: number[]) => void;
8
+ onFinalChange?: (values: number[]) => void;
9
+ color?: ThemeColors;
10
+ unselectedColor?: ThemeColors;
11
+ htmlId?: string;
12
+ className?: string;
13
+ showThumbValue?: boolean;
14
+ autoCalculateMinMax?: boolean;
15
+ };
16
+ export declare const Slider: (props: SliderProps) => JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ export declare const OuterTrackDiv: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: React.ElementType<any> | undefined;
5
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const InnerTrackDiv: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: React.ElementType<any> | undefined;
9
+ } & {
10
+ bgColor: string;
11
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const ThumbDiv: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: React.ElementType<any> | undefined;
15
+ } & {
16
+ bgColor: string;
17
+ borderColor: string;
18
+ value: string;
19
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const ThumbValueSpan: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: React.ElementType<any> | undefined;
23
+ } & {
24
+ textColor: string;
25
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1 @@
1
+ export { Slider, SliderProps } from "./Slider";
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- export type Color = {
2
+ export interface Color {
3
3
  main: string;
4
4
  contrastText: string;
5
- };
6
- export type ThemeColorsObject = {
5
+ }
6
+ export interface ThemeColorsObject {
7
7
  primary: Color;
8
8
  secondary: Color;
9
9
  tertiary: Color;
@@ -11,7 +11,7 @@ export type ThemeColorsObject = {
11
11
  statusWarning: Color;
12
12
  statusCritical: Color;
13
13
  statusNeutral: Color;
14
- };
14
+ }
15
15
  type ThemeContextProps = {
16
16
  colors: ThemeColorsObject;
17
17
  };
@@ -2,3 +2,4 @@ export { Button, ButtonProps } from "./Button";
2
2
  export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
3
3
  export { Accordion, AccordionProps } from "./Accordion";
4
4
  export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
5
+ export { Slider, SliderProps } from "./Slider";