@spothero/ui 18.0.1 → 18.0.5-beta.0

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/README.md CHANGED
File without changes
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
- background: 'rgba(0, 45, 91, 0.3)',
9
- // secondary.default at 30%
8
+ background: 'modalOverlay',
10
9
  zIndex: 'layer8'
11
10
  };
12
11
  exports.default = _default;
@@ -66,7 +66,8 @@ var _exportNames = {
66
66
  useControllableProp: true,
67
67
  BasicInput: true,
68
68
  useControllableState: true,
69
- usePrefersReducedMotion: true
69
+ usePrefersReducedMotion: true,
70
+ keyframes: true
70
71
  };
71
72
  Object.defineProperty(exports, "Alert", {
72
73
  enumerable: true,
@@ -380,6 +381,12 @@ Object.defineProperty(exports, "createIcon", {
380
381
  return _react.createIcon;
381
382
  }
382
383
  });
384
+ Object.defineProperty(exports, "keyframes", {
385
+ enumerable: true,
386
+ get: function () {
387
+ return _react.keyframes;
388
+ }
389
+ });
383
390
  Object.defineProperty(exports, "useBreakpointValue", {
384
391
  enumerable: true,
385
392
  get: function () {
@@ -7,6 +7,7 @@ exports.default = void 0;
7
7
  const white = '#ffffff';
8
8
  const black = '#000000';
9
9
  const brandBlue = '#0082ff';
10
+ const modalOverlay = '#21212160';
10
11
  const gray = {
11
12
  50: '#f6f7f9',
12
13
  100: '#e1e6ec',
@@ -129,7 +130,8 @@ const colors = {
129
130
  },
130
131
  white,
131
132
  black,
132
- brandBlue
133
+ brandBlue,
134
+ modalOverlay
133
135
  };
134
136
  var _default = colors;
135
137
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "18.0.1",
3
+ "version": "18.0.5-beta.0",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "./dist/components/index.js",
6
6
  "exports": "./dist/components/index.js",
@@ -53,32 +53,10 @@
53
53
  }
54
54
  ]
55
55
  },
56
- "scripts": {
57
- "clean": "rm -rf docs v2 lib styles coverage || true",
58
- "lint": "eslint .storybook src --ext .jsx,.js",
59
- "start": "start-storybook -p 6006",
60
- "test": "npm run test:unit",
61
- "test:template": "NODE_ENV=test jest --config ./jest.config.json",
62
- "test:unit": "npm run test:template -- --coverage",
63
- "test:unit:watch": "DEBUG_PRINT_LIMIT=-1 npm run test:template -- --watch",
64
- "build:v2": "BABEL_ENV=production babel src -d dist",
65
- "build": "npm run clean && npm run build:v2",
66
- "build:storybook": "build-storybook -o ./docs/v2",
67
- "release": "npm-release",
68
- "publish-storybook": "npm run build:storybook && push-dir --dir=docs/v2 --branch=gh-pages --allow-unclean"
69
- },
70
56
  "devDependencies": {
71
57
  "@babel/cli": "7.14.5",
72
58
  "@babel/core": "7.14.6",
73
59
  "@babel/runtime-corejs3": "7.14.7",
74
- "@spothero/babel-preset-spothero": "*",
75
- "@spothero/browserslist-config": "*",
76
- "@spothero/core": "*",
77
- "@spothero/eslint-config": "*",
78
- "@spothero/icons": "*",
79
- "@spothero/npm-publisher": "*",
80
- "@spothero/prettier-config": "*",
81
- "@spothero/stylelint-config": "*",
82
60
  "@storybook/addon-actions": "6.5.16",
83
61
  "@storybook/addon-essentials": "6.5.16",
84
62
  "@storybook/addon-links": "6.5.16",
@@ -94,10 +72,11 @@
94
72
  "classnames": "2.2.6",
95
73
  "eslint-loader": "4.0.2",
96
74
  "get-contrast-ratio": "0.2.1",
97
- "jest": "26.6.3",
75
+ "jest": "28.1.2",
98
76
  "jest-chain": "1.1.5",
77
+ "jest-environment-jsdom": "28.1.2",
99
78
  "jest-date-mock": "1.0.8",
100
- "jest-extended": "0.11.5",
79
+ "jest-extended": "3.2.4",
101
80
  "jest-watch-typeahead": "0.6.1",
102
81
  "lodash": "4.17.21",
103
82
  "moment": "2.29.4",
@@ -113,7 +92,17 @@
113
92
  "regenerator-runtime": "0.13.7",
114
93
  "start-server-and-test": "1.12.6",
115
94
  "style-loader": "1.2.1",
116
- "webpack-merge": "5.1.4"
95
+ "webpack-merge": "5.1.4",
96
+ "css-loader": "5.1.3",
97
+ "sass-loader": "10.2.1",
98
+ "@spothero/babel-preset-spothero": "3.0.1-beta.0",
99
+ "@spothero/browserslist-config": "2.0.1-beta.0",
100
+ "@spothero/core": "5.0.1-beta.0",
101
+ "@spothero/eslint-config": "4.0.2-beta.0",
102
+ "@spothero/icons": "5.0.9-beta.0",
103
+ "@spothero/npm-publisher": "5.0.1",
104
+ "@spothero/prettier-config": "2.1.1-beta.0",
105
+ "@spothero/stylelint-config": "4.0.1-beta.0"
117
106
  },
118
107
  "dependencies": {
119
108
  "@chakra-ui/react": "1.8.8",
@@ -122,22 +111,36 @@
122
111
  "@emotion/react": "11.1.5",
123
112
  "@emotion/styled": "11.1.5",
124
113
  "@faker-js/faker": "7.6.0",
125
- "@spothero/utils": "*",
126
114
  "@storybook/addon-a11y": "6.5.16",
127
115
  "core-js": "3.6.5",
128
116
  "framer-motion": "4.1.17",
129
117
  "react-select": "5.4.0",
130
118
  "regenerator-runtime": "0.13.7",
131
119
  "ssr-window": "1.0.1",
132
- "transitionEnd": "1.0.2"
120
+ "transitionEnd": "1.0.2",
121
+ "@spothero/utils": "10.4.2-beta.0"
133
122
  },
134
123
  "peerDependencies": {
135
124
  "classnames": "^2.2.6",
136
125
  "lodash": "4.17.21",
137
126
  "prop-types": "^15.7.2",
138
- "react": ">=16.0.0",
139
- "react-dom": ">=16.0.0",
127
+ "react": "17.0.2",
128
+ "react-dom": "17.0.2",
140
129
  "react-redux": ">=7.0.0",
141
130
  "redux": ">=4.0.0"
131
+ },
132
+ "scripts": {
133
+ "clean": "rm -rf docs v2 lib styles coverage || true",
134
+ "lint": "eslint .storybook src --ext .jsx,.js",
135
+ "start": "start-storybook -p 6006",
136
+ "test": "pnpm run test:unit",
137
+ "test:template": "NODE_ENV=test jest --config ./jest.config.json",
138
+ "test:unit": "pnpm run test:template",
139
+ "test:unit:watch": "DEBUG_PRINT_LIMIT=-1 pnpm run test:template -- --watch",
140
+ "build:v2": "BABEL_ENV=production babel src -d dist",
141
+ "build": "pnpm run clean && pnpm run build:v2",
142
+ "build:storybook": "build-storybook -o ./docs/v2",
143
+ "release": "npm-release",
144
+ "publish-storybook": "pnpm run build:storybook && push-dir --dir=docs/v2 --branch=gh-pages --allow-unclean"
142
145
  }
143
- }
146
+ }