@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 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
  }
@@ -96,7 +96,7 @@ export declare const Icons: {
96
96
  };
97
97
  export declare type IconProps = {
98
98
  icon: any;
99
- color?: Colors | null;
99
+ color?: Colors | string | null;
100
100
  onClick?: any | null;
101
101
  size?: string | number | undefined;
102
102
  position?: string;
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
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?: string;
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 };