@sellout/ui 0.0.279 → 0.0.281

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.
@@ -10,7 +10,7 @@ declare type StyledInputProps = {
10
10
  disabled: boolean;
11
11
  hasIcon: boolean;
12
12
  };
13
- export declare const InputStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputProps>>;
13
+ export declare const InputStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputProps>> & string;
14
14
  export declare type InputProps = {
15
15
  inputRef?: React.Ref<HTMLInputElement>;
16
16
  autoFocus?: boolean | undefined;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
- export declare const Details: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
- export declare const Name: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
5
- export declare const Email: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
2
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Details: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const Name: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const Email: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
6
  export declare enum UserInfoSizeEnum {
7
7
  Regular = "Regular",
8
8
  Large = "Large"
@@ -41,7 +41,7 @@ var fullName = Joi.string()
41
41
  // Phone number validation, need to test internationally
42
42
  var phoneNumber = Joi.string()
43
43
  .required()
44
- .pattern(new RegExp("^(\\+\\d{1,2}\\s?)?1?\\-?\\.?\\s?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$"))
44
+ .pattern(new RegExp("^(\\+\\d{1,2}\\s?)?1?\\-?\\.?\\s?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{5}$"))
45
45
  .error(function () {
46
46
  return new Error("Please enter a valid phone number.");
47
47
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Validation.js","sources":["../../src/utils/Validation.ts"],"sourcesContent":["import Joi from \"@hapi/joi\";\n\n// Email Validation\nexport const email = Joi.string()\n .required()\n .email({ tlds: { allow: false } })\n .error(() => {\n return new Error(\"Please enter a valid email.\");\n });\n\n// Password Validation\n// could force users to be more secure ->\n// https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a\nexport const password = Joi.string()\n .required()\n .min(8)\n .max(30)\n .error((errors: any) => {\n return errors.map((error: any) => {\n console.log(error);\n switch (error.code) {\n case \"string.min\":\n return new Error(\"Password must be greater than 8 Characters.\");\n case \"string.max\":\n return new Error(\"Password must be fewer than 30 characters.\");\n case \"string.empty\":\n return new Error(\"Please enter a password.\");\n default:\n return new Error(\"Password validation error.\");\n }\n });\n });\n\n// full name validation - only checks for first and last name via single space character\n// all characters are valid, gotta support X Æ A-12 now\n// should maybe fix, idk, it accepts stuff like Mike\\tPollard\nexport const fullName = Joi.string()\n .required()\n .pattern(new RegExp(\"^[^\\\\s]+(\\\\s[^\\\\s]+)+$\"))\n .error(() => {\n return new Error(\"Please enter your first and last name\");\n });\n\n// Phone number validation, need to test internationally\nexport const phoneNumber = Joi.string()\n .required()\n .pattern(\n new RegExp(\n \"^(\\\\+\\\\d{1,2}\\\\s?)?1?\\\\-?\\\\.?\\\\s?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{4}$\"\n )\n )\n .error(() => {\n return new Error(\"Please enter a valid phone number.\");\n });\n"],"names":[],"mappings":";;AAEA;AACa,IAAA,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE;AAC9B,KAAA,QAAQ,EAAE;KACV,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;AACjC,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,EAAE;AAEL;AACA;AACA;AACa,IAAA,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;AACjC,KAAA,QAAQ,EAAE;KACV,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,UAAC,MAAW,EAAA;AACjB,IAAA,OAAO,MAAM,CAAC,GAAG,CAAC,UAAC,KAAU,EAAA;AAC3B,QAAA,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,QAAQ,KAAK,CAAC,IAAI;AAChB,YAAA,KAAK,YAAY;AACf,gBAAA,OAAO,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;AAClE,YAAA,KAAK,YAAY;AACf,gBAAA,OAAO,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;AACjE,YAAA,KAAK,cAAc;AACjB,gBAAA,OAAO,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAC/C,YAAA;AACE,gBAAA,OAAO,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAClD,SAAA;AACH,KAAC,CAAC,CAAC;AACL,CAAC,EAAE;AAEL;AACA;AACA;AACa,IAAA,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;AACjC,KAAA,QAAQ,EAAE;AACV,KAAA,OAAO,CAAC,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAC7C,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AAC5D,CAAC,EAAE;AAEL;AACa,IAAA,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE;AACpC,KAAA,QAAQ,EAAE;AACV,KAAA,OAAO,CACN,IAAI,MAAM,CACR,8EAA8E,CAC/E,CACF;AACA,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;AACzD,CAAC;;;;"}
1
+ {"version":3,"file":"Validation.js","sources":["../../src/utils/Validation.ts"],"sourcesContent":["import Joi from \"@hapi/joi\";\n\n// Email Validation\nexport const email = Joi.string()\n .required()\n .email({ tlds: { allow: false } })\n .error(() => {\n return new Error(\"Please enter a valid email.\");\n });\n\n// Password Validation\n// could force users to be more secure ->\n// https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a\nexport const password = Joi.string()\n .required()\n .min(8)\n .max(30)\n .error((errors: any) => {\n return errors.map((error: any) => {\n console.log(error);\n switch (error.code) {\n case \"string.min\":\n return new Error(\"Password must be greater than 8 Characters.\");\n case \"string.max\":\n return new Error(\"Password must be fewer than 30 characters.\");\n case \"string.empty\":\n return new Error(\"Please enter a password.\");\n default:\n return new Error(\"Password validation error.\");\n }\n });\n });\n\n// full name validation - only checks for first and last name via single space character\n// all characters are valid, gotta support X Æ A-12 now\n// should maybe fix, idk, it accepts stuff like Mike\\tPollard\nexport const fullName = Joi.string()\n .required()\n .pattern(new RegExp(\"^[^\\\\s]+(\\\\s[^\\\\s]+)+$\"))\n .error(() => {\n return new Error(\"Please enter your first and last name\");\n });\n\n// Phone number validation, need to test internationally\nexport const phoneNumber = Joi.string()\n .required()\n .pattern(\n new RegExp(\n \"^(\\\\+\\\\d{1,2}\\\\s?)?1?\\\\-?\\\\.?\\\\s?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{5}$\"\n )\n )\n .error(() => {\n return new Error(\"Please enter a valid phone number.\");\n });\n"],"names":[],"mappings":";;AAEA;AACa,IAAA,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE;AAC9B,KAAA,QAAQ,EAAE;KACV,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;AACjC,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,EAAE;AAEL;AACA;AACA;AACa,IAAA,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;AACjC,KAAA,QAAQ,EAAE;KACV,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,UAAC,MAAW,EAAA;AACjB,IAAA,OAAO,MAAM,CAAC,GAAG,CAAC,UAAC,KAAU,EAAA;AAC3B,QAAA,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,QAAQ,KAAK,CAAC,IAAI;AAChB,YAAA,KAAK,YAAY;AACf,gBAAA,OAAO,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;AAClE,YAAA,KAAK,YAAY;AACf,gBAAA,OAAO,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;AACjE,YAAA,KAAK,cAAc;AACjB,gBAAA,OAAO,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAC/C,YAAA;AACE,gBAAA,OAAO,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAClD,SAAA;AACH,KAAC,CAAC,CAAC;AACL,CAAC,EAAE;AAEL;AACA;AACA;AACa,IAAA,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;AACjC,KAAA,QAAQ,EAAE;AACV,KAAA,OAAO,CAAC,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAC7C,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AAC5D,CAAC,EAAE;AAEL;AACa,IAAA,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE;AACpC,KAAA,QAAQ,EAAE;AACV,KAAA,OAAO,CACN,IAAI,MAAM,CACR,8EAA8E,CAC/E,CACF;AACA,KAAA,KAAK,CAAC,YAAA;AACL,IAAA,OAAO,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;AACzD,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/ui",
3
- "version": "0.0.279",
3
+ "version": "0.0.281",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.es.js",
6
6
  "files": [
@@ -53,7 +53,7 @@
53
53
  "@fortawesome/pro-solid-svg-icons": "^5.15.4",
54
54
  "@fortawesome/react-fontawesome": "^0.1.19",
55
55
  "@hapi/joi": "^17.1.1",
56
- "@sellout/utils": "^0.0.279",
56
+ "@sellout/utils": "^0.0.281",
57
57
  "csvtojson": "^2.0.10",
58
58
  "framer-motion": "^2.9.5",
59
59
  "polished": "^3.7.2",
@@ -62,7 +62,7 @@
62
62
  "rollup-plugin-url": "^3.0.1",
63
63
  "use-places-autocomplete": "^1.11.0"
64
64
  },
65
- "gitHead": "52f346e8b0ffc9b3620935f8ef473b7e8f068c6f",
65
+ "gitHead": "6aab854a2854dfbc818b62a4915cc7192a2c4756",
66
66
  "peerDependencies": {
67
67
  "react": "16.14.0",
68
68
  "react-dom": "16.14.0",