@kwantis-id3/frontend-library 0.13.4 → 0.13.6

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,24 +1,24 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Divider: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
3
+ theme?: import("..").ThemeContextProps | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  } & {
6
6
  $color: string;
7
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
8
  export declare const TitleDiv: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme | undefined;
9
+ theme?: import("..").ThemeContextProps | undefined;
10
10
  as?: import("react").ElementType<any> | undefined;
11
11
  } & {
12
12
  $color: string;
13
13
  $textColor: string;
14
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
15
  export declare const IconContainer: import("@emotion/styled").StyledComponent<{
16
- theme?: import("@emotion/react").Theme | undefined;
16
+ theme?: import("..").ThemeContextProps | undefined;
17
17
  as?: import("react").ElementType<any> | undefined;
18
18
  } & {
19
19
  $iconColor: string;
20
20
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
21
  export declare const TitleH2: import("@emotion/styled").StyledComponent<{
22
- theme?: import("@emotion/react").Theme | undefined;
22
+ theme?: import("..").ThemeContextProps | undefined;
23
23
  as?: import("react").ElementType<any> | undefined;
24
24
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  export declare const OuterTrackDiv: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
3
+ theme?: import("..").ThemeContextProps | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const InnerTrackDiv: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
7
+ theme?: import("..").ThemeContextProps | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  } & {
10
10
  $bgColor: string;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
12
  export declare const ThumbDiv: import("@emotion/styled").StyledComponent<{
13
- theme?: import("@emotion/react").Theme | undefined;
13
+ theme?: import("..").ThemeContextProps | undefined;
14
14
  as?: import("react").ElementType<any> | undefined;
15
15
  } & {
16
16
  $bgColor: string;
@@ -18,7 +18,7 @@ export declare const ThumbDiv: import("@emotion/styled").StyledComponent<{
18
18
  $disabled?: boolean | undefined;
19
19
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
20
  export declare const ThumbValueSpan: import("@emotion/styled").StyledComponent<{
21
- theme?: import("@emotion/react").Theme | undefined;
21
+ theme?: import("..").ThemeContextProps | undefined;
22
22
  as?: import("react").ElementType<any> | undefined;
23
23
  } & {
24
24
  $textColor: string;
@@ -12,7 +12,7 @@ export interface ThemeColorsObject {
12
12
  statusCritical: Color;
13
13
  statusNeutral: Color;
14
14
  }
15
- type ThemeContextProps = {
15
+ export type ThemeContextProps = {
16
16
  colors: ThemeColorsObject;
17
17
  };
18
18
  interface Nothing {
@@ -1 +1 @@
1
- export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
1
+ export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
@@ -1,5 +1,5 @@
1
1
  export { Button, ButtonProps } from "./Button";
2
- export { ThemeColors, ThemeColorsObject, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
2
+ export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
3
3
  export { Accordion, AccordionProps } from "./Accordion";
4
4
  export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
5
5
  export { Slider, SliderProps } from "./Slider";
@@ -1,3 +1,40 @@
1
- import { CreateStyled } from "@emotion/styled";
2
- declare const myStyled: CreateStyled;
3
- export { myStyled as styled };
1
+ /// <reference types="react" />
2
+ import { PropsOf } from '@emotion/react';
3
+ import { CreateStyledComponent, StyledOptions, FilteringStyledOptions } from '@emotion/styled';
4
+ import { ThemeContextProps } from '../components';
5
+ export type StyledTags = {
6
+ [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
7
+ theme?: ThemeContextProps;
8
+ as?: React.ElementType;
9
+ }, JSX.IntrinsicElements[Tag]>;
10
+ };
11
+ export interface BaseCreateStyled {
12
+ <C extends React.ComponentClass<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> & string = keyof React.ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
13
+ theme?: ThemeContextProps;
14
+ }, {}, {
15
+ ref?: React.Ref<InstanceType<C>>;
16
+ }>;
17
+ <C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
18
+ theme?: ThemeContextProps;
19
+ }, {}, {
20
+ ref?: React.Ref<InstanceType<C>>;
21
+ }>;
22
+ <C extends React.ComponentType<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> & string = keyof React.ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
23
+ theme?: ThemeContextProps;
24
+ }>;
25
+ <C extends React.ComponentType<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
26
+ theme?: ThemeContextProps;
27
+ }>;
28
+ <Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] & string = keyof JSX.IntrinsicElements[Tag] & string>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps>): CreateStyledComponent<{
29
+ theme?: ThemeContextProps;
30
+ as?: React.ElementType;
31
+ }, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>>;
32
+ <Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]>): CreateStyledComponent<{
33
+ theme?: ThemeContextProps;
34
+ as?: React.ElementType;
35
+ }, JSX.IntrinsicElements[Tag]>;
36
+ }
37
+ interface CreateStyled extends BaseCreateStyled, StyledTags {
38
+ }
39
+ export declare const styled: CreateStyled;
40
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
3
- import * as React from 'react';
3
+ import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
- import { Interpolation, CreateStyled } from '@emotion/styled';
6
- import { Theme } from '@emotion/react';
5
+ import { Interpolation, CreateStyled as CreateStyled$1, CreateStyledComponent, FilteringStyledOptions, StyledOptions } from '@emotion/styled';
6
+ import { Theme, PropsOf } from '@emotion/react';
7
7
 
8
8
  interface Color {
9
9
  main: string;
@@ -49,7 +49,7 @@ type ButtonProps = {
49
49
  className?: string;
50
50
  htmlId?: string;
51
51
  disabled?: boolean;
52
- children?: React.ReactNode;
52
+ children?: React$1.ReactNode;
53
53
  };
54
54
  declare const Button: (props: ButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
55
55
 
@@ -124,8 +124,42 @@ type SliderProps = {
124
124
  };
125
125
  declare const Slider: (props: SliderProps) => JSX.Element;
126
126
 
127
- declare const transientOptions: Parameters<CreateStyled>[1];
127
+ declare const transientOptions: Parameters<CreateStyled$1>[1];
128
128
 
129
- declare const myStyled: CreateStyled;
129
+ type StyledTags = {
130
+ [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
131
+ theme?: ThemeContextProps;
132
+ as?: React.ElementType;
133
+ }, JSX.IntrinsicElements[Tag]>;
134
+ };
135
+ interface BaseCreateStyled {
136
+ <C extends React.ComponentClass<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> & string = keyof React.ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
137
+ theme?: ThemeContextProps;
138
+ }, {}, {
139
+ ref?: React.Ref<InstanceType<C>>;
140
+ }>;
141
+ <C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
142
+ theme?: ThemeContextProps;
143
+ }, {}, {
144
+ ref?: React.Ref<InstanceType<C>>;
145
+ }>;
146
+ <C extends React.ComponentType<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> & string = keyof React.ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps>): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & {
147
+ theme?: ThemeContextProps;
148
+ }>;
149
+ <C extends React.ComponentType<React.ComponentProps<C>>>(component: C, options?: StyledOptions<React.ComponentProps<C>>): CreateStyledComponent<PropsOf<C> & {
150
+ theme?: ThemeContextProps;
151
+ }>;
152
+ <Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] & string = keyof JSX.IntrinsicElements[Tag] & string>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps>): CreateStyledComponent<{
153
+ theme?: ThemeContextProps;
154
+ as?: React.ElementType;
155
+ }, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>>;
156
+ <Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]>): CreateStyledComponent<{
157
+ theme?: ThemeContextProps;
158
+ as?: React.ElementType;
159
+ }, JSX.IntrinsicElements[Tag]>;
160
+ }
161
+ interface CreateStyled extends BaseCreateStyled, StyledTags {
162
+ }
163
+ declare const styled: CreateStyled;
130
164
 
131
- export { Accordion, AccordionProps, Button, ButtonProps, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, ThemeColors, ThemeColorsObject, ThemeContextProvider, myStyled as styled, transientOptions, useThemeContext };
165
+ export { Accordion, AccordionProps, Button, ButtonProps, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useThemeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"
@@ -50,8 +50,7 @@
50
50
  "main": "dist/cjs/index.js",
51
51
  "module": "dist/esm/index.js",
52
52
  "files": [
53
- "dist",
54
- "src/types/*.d.ts"
53
+ "dist"
55
54
  ],
56
55
  "types": "dist/index.d.ts",
57
56
  "dependencies": {
@@ -1,8 +0,0 @@
1
- import "@emotion/react";
2
- import { ThemeColorsObject } from "../components";
3
-
4
- declare module "@emotion/react" {
5
- export interface Theme {
6
- colors: ThemeColorsObject;
7
- }
8
- }