@sellout/ui 0.0.6 → 0.0.8
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.
- package/build/Colors.d.ts +4 -1
- package/build/components/Icon.d.ts +1 -1
- package/build/components/Input.d.ts +5 -3
- package/build/index.d.ts +4 -3
- package/build/index.es.js +111 -7025
- package/build/index.js +197 -7114
- package/build/utils/makeEventHandler.d.ts +2 -0
- package/package.json +6 -11
- package/rollup.config.js +18 -53
- package/src/Colors.ts +5 -2
- package/src/components/Icon.tsx +1 -1
- package/src/components/Input.tsx +10 -2
- package/src/components/Product.tsx +4 -6
- package/src/index.ts +11 -4
- package/src/utils/makeEventHandler.ts +8 -0
- package/build/index.es.js.map +0 -1
- package/build/index.js.map +0 -1
package/build/Colors.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare enum Colors {
|
|
2
2
|
White = "#FFFFFF",
|
|
3
|
+
Black = "#000000",
|
|
4
|
+
Green = "#419D78",
|
|
3
5
|
OffWhite = "#FCFCFC",
|
|
4
6
|
Blue = "#020151",
|
|
5
7
|
Red = "#E63946",
|
|
@@ -10,5 +12,6 @@ export declare enum Colors {
|
|
|
10
12
|
Grey3 = "#828282",
|
|
11
13
|
Grey4 = "#BDBDBD",
|
|
12
14
|
Grey5 = "#E0E0E0",
|
|
13
|
-
Grey6 = "#F2F2F2"
|
|
15
|
+
Grey6 = "#F2F2F2",
|
|
16
|
+
Grey7 = "F8F8F8"
|
|
14
17
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type InputProps = {
|
|
3
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
3
4
|
autoFocus?: boolean | undefined;
|
|
4
5
|
placeholder?: string;
|
|
5
6
|
value: string;
|
|
6
7
|
defaultValue?: string;
|
|
7
|
-
icon?:
|
|
8
|
+
icon?: any;
|
|
8
9
|
type?: string;
|
|
9
10
|
onMouseEnter?: any;
|
|
10
11
|
onMouseLeave?: any;
|
|
@@ -17,5 +18,6 @@ export declare type InputProps = {
|
|
|
17
18
|
loading?: boolean;
|
|
18
19
|
margin?: string;
|
|
19
20
|
padding?: string;
|
|
21
|
+
width?: string;
|
|
20
22
|
};
|
|
21
|
-
export default function Input({ autoFocus, placeholder, value, defaultValue, icon, type, onMouseEnter, onMouseLeave, onChange, onFocus, onBlur, onSubmit, onClear, canSubmit, loading, margin, padding, }: InputProps): JSX.Element;
|
|
23
|
+
export default function Input({ inputRef, autoFocus, placeholder, value, defaultValue, icon, type, onMouseEnter, onMouseLeave, onChange, onFocus, onBlur, onSubmit, onClear, canSubmit, loading, margin, padding, width, }: InputProps): JSX.Element;
|
package/build/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Colors } from "./Colors";
|
|
2
|
-
import Button from './components/Button';
|
|
2
|
+
import Button, { ButtonTypes, ButtonStates } from './components/Button';
|
|
3
3
|
import Counter from "./components/Counter";
|
|
4
4
|
import Icon from "./components/Icon";
|
|
5
5
|
import Input from "./components/Input";
|
|
6
|
-
import Loader from "./components/Loader";
|
|
6
|
+
import Loader, { LoaderSizes } from "./components/Loader";
|
|
7
7
|
import Product from "./components/Product";
|
|
8
|
+
import makeEventHandler from './utils/makeEventHandler';
|
|
8
9
|
declare const Icons: {
|
|
9
10
|
AudienceRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
10
11
|
BoxOfficeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -99,4 +100,4 @@ declare const Icons: {
|
|
|
99
100
|
SortBy: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
100
101
|
UpgradeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
101
102
|
};
|
|
102
|
-
export { Colors, Button, Counter, Icon, Icons, Input, Loader, Product, };
|
|
103
|
+
export { Colors, Button, ButtonTypes, ButtonStates, Counter, Icon, Icons, Input, Loader, LoaderSizes, Product, makeEventHandler };
|