@kwantis-id3/frontend-library 0.13.7 → 0.14.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,12 @@
1
+ /// <reference types="react" />
2
+ export declare const InputContainer: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("..").ThemeContextProps | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("..").ThemeContextProps | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ } & {
10
+ $color: string;
11
+ $isDisabled?: boolean | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
+ interface TextFieldProps {
4
+ value?: string;
5
+ onChange?: (value: string) => void;
6
+ placeholder?: string;
7
+ htmlId?: string;
8
+ className?: string;
9
+ isDisabled?: boolean;
10
+ color?: ThemeColorsExtended;
11
+ }
12
+ export declare const TextField: (props: TextFieldProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export { TextField } from "./TextField";
@@ -1,5 +1,6 @@
1
1
  export { Button, ButtonProps } from "./Button";
2
2
  export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
3
3
  export { Accordion, AccordionProps } from "./Accordion";
4
+ export { TextField } from "./TextField";
4
5
  export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
5
6
  export { Slider, SliderProps } from "./Slider";
package/dist/index.d.ts CHANGED
@@ -68,6 +68,17 @@ type AccordionProps = {
68
68
  };
69
69
  declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
70
70
 
71
+ interface TextFieldProps {
72
+ value?: string;
73
+ onChange?: (value: string) => void;
74
+ placeholder?: string;
75
+ htmlId?: string;
76
+ className?: string;
77
+ isDisabled?: boolean;
78
+ color?: ThemeColorsExtended;
79
+ }
80
+ declare const TextField: (props: TextFieldProps) => JSX.Element;
81
+
71
82
  interface SingleSelectProps<Option = {
72
83
  label: string;
73
84
  value: string;
@@ -163,4 +174,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
163
174
  }
164
175
  declare const styled: CreateStyled;
165
176
 
166
- export { Accordion, AccordionProps, Button, ButtonProps, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useThemeContext };
177
+ export { Accordion, AccordionProps, Button, ButtonProps, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TextField, 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.7",
3
+ "version": "0.14.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"
@@ -10,13 +10,13 @@
10
10
  "@rollup/plugin-commonjs": "^24.0.1",
11
11
  "@rollup/plugin-node-resolve": "^15.0.1",
12
12
  "@rollup/plugin-typescript": "^11.0.0",
13
- "@storybook/addon-essentials": "7.0.6",
14
- "@storybook/addon-interactions": "7.0.6",
15
- "@storybook/addon-links": "7.0.6",
16
- "@storybook/blocks": "7.0.6",
17
- "@storybook/react": "7.0.6",
18
- "@storybook/react-webpack5": "7.0.6",
19
- "@storybook/testing-library": "0.0.14-next.2",
13
+ "@storybook/addon-essentials": "7.4.6",
14
+ "@storybook/addon-interactions": "7.4.6",
15
+ "@storybook/addon-links": "7.4.6",
16
+ "@storybook/blocks": "7.4.6",
17
+ "@storybook/react": "7.4.6",
18
+ "@storybook/react-webpack5": "7.4.6",
19
+ "@storybook/testing-library": "0.2.2",
20
20
  "@testing-library/jest-dom": "^5.16.5",
21
21
  "@testing-library/react": "^14.0.0",
22
22
  "@types/jest": "^29.5.0",
@@ -30,6 +30,7 @@
30
30
  "eslint-config-prettier": "^8.8.0",
31
31
  "eslint-plugin-react": "^7.32.2",
32
32
  "eslint-plugin-react-hooks": "^4.6.0",
33
+ "eslint-plugin-storybook": "^0.6.14",
33
34
  "jest": "^29.5.0",
34
35
  "jest-config": "^29.5.0",
35
36
  "jest-environment-jsdom": "^29.5.0",
@@ -38,7 +39,7 @@
38
39
  "react-dom": "18.2.0",
39
40
  "rollup": "^3.20.2",
40
41
  "rollup-plugin-dts": "^5.3.0",
41
- "storybook": "7.0.6",
42
+ "storybook": "7.4.6",
42
43
  "ts-jest": "^29.1.0",
43
44
  "ts-node": "^10.9.1",
44
45
  "tslib": "^2.5.0",
@@ -54,15 +55,15 @@
54
55
  ],
55
56
  "types": "dist/index.d.ts",
56
57
  "dependencies": {
58
+ "@emotion/react": "11.10.6",
59
+ "@emotion/styled": "11.10.6",
57
60
  "@rollup/plugin-terser": "^0.4.1",
58
61
  "react-collapsible": "^2.10.0",
59
62
  "react-icons-kit": "^2.0.0",
60
63
  "react-range": "^1.8.14",
61
64
  "react-select": "^5.7.3",
62
65
  "rollup-plugin-peer-deps-external": "^2.2.4",
63
- "tinycolor2": "^1.6.0",
64
- "@emotion/react": "11.10.6",
65
- "@emotion/styled": "11.10.6"
66
+ "tinycolor2": "^1.6.0"
66
67
  },
67
68
  "readme": "ERROR: No README data found!",
68
69
  "_id": "@kwantis-id3/frontend-library@0.6.1",