@spothero/ui 14.8.0 → 14.8.2-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.
Files changed (52) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/CHANGELOG.tmp +3 -3
  3. package/backlog/AutoSuggestInput/AutoSuggestInput.js +12 -5
  4. package/backlog/TextInput/TextInput.js +12 -4
  5. package/dex.config.js +48 -0
  6. package/package.json +4 -13
  7. package/styles/Alert/_Alert.scss +3 -1
  8. package/styles/AutoSuggestInput/AutoSuggestInput.jsx +4 -4
  9. package/styles/AutoSuggestInput/AutoSuggestList.jsx +1 -1
  10. package/styles/AutoSuggestInput/_AutoSuggestInput.scss +2 -1
  11. package/styles/Chart/_Chart.scss +6 -3
  12. package/styles/Checkbox/_Checkbox.scss +2 -0
  13. package/styles/DateTime/_DatePickerCalendar.scss +10 -3
  14. package/styles/DateTime/_DateTimePicker.scss +3 -1
  15. package/styles/GooglePlacesSearchInput/GooglePlacesSearchInput.jsx +1 -1
  16. package/styles/PasswordControl/_PasswordControl.scss +5 -2
  17. package/styles/Radio/_Radio.scss +1 -0
  18. package/styles/Select/_Select.scss +1 -1
  19. package/styles/TextInput/TextInput.jsx +6 -6
  20. package/styles/TextInput/_TextInput.scss +1 -1
  21. package/styles/common/sass/_forms.scss +1 -1
  22. package/styles/v1/components/Button/_Button.scss +1 -9
  23. package/styles/v1/components/Image/_Image.scss +1 -1
  24. package/styles/v1/components/TextButton/_TextButton.scss +1 -1
  25. package/styles/v1/components/index.js +6 -6
  26. package/styles/v2/components/Select/Select.jsx +5 -1
  27. package/v1/assets-manifest.json +5 -0
  28. package/v1/index.html +1 -0
  29. package/v1/index.js +3 -5
  30. package/v1/index.js.LICENSE.txt +5 -0
  31. package/v1/index.js.map +1 -0
  32. package/v2/assets-manifest.json +5 -0
  33. package/v2/index.html +1 -0
  34. package/v2/index.js +3 -5
  35. package/v2/index.js.LICENSE.txt +14 -0
  36. package/v2/index.js.map +1 -0
  37. package/v1/index-bundled.cjs.js +0 -2
  38. package/v1/index-bundled.cjs.js.map +0 -1
  39. package/v1/index-bundled.esm.js +0 -2
  40. package/v1/index-bundled.esm.js.map +0 -1
  41. package/v1/index-unbundled.cjs.js +0 -11331
  42. package/v1/index-unbundled.cjs.js.map +0 -1
  43. package/v1/index-unbundled.esm.js +0 -11296
  44. package/v1/index-unbundled.esm.js.map +0 -1
  45. package/v2/index-bundled.cjs.js +0 -26
  46. package/v2/index-bundled.cjs.js.map +0 -1
  47. package/v2/index-bundled.esm.js +0 -25
  48. package/v2/index-bundled.esm.js.map +0 -1
  49. package/v2/index-unbundled.cjs.js +0 -38498
  50. package/v2/index-unbundled.cjs.js.map +0 -1
  51. package/v2/index-unbundled.esm.js +0 -38429
  52. package/v2/index-unbundled.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 14.8.2-beta.0 - 05/23/2022
2
+
3
+ ## Miscellaneous Updates
4
+ * [[910c646](https://github.com/spothero/fe-ui/commit/910c646)] - `fix:` Update components with optional chaining and required props (JanaviAnand_SpotHero)
5
+
6
+ # 14.8.1 - 05/20/2022
7
+ ## Miscellaneous Updates
8
+ * [[63d43ff](https://github.com/spothero/fe-ui/commit/63d43ff)] - Sear 2077 - replace rollup with dex ([#297](https://github.com/spothero/fe-ui/pull/297)) (Tyler Williams)
9
+
1
10
  # 14.8.0 - 05/19/2022
2
11
 
3
12
  ## New Features
package/CHANGELOG.tmp CHANGED
@@ -1,5 +1,5 @@
1
- # 14.8.0 - 05/19/2022
1
+ # 14.8.2-beta.0 - 05/23/2022
2
2
 
3
- ## New Features
4
- * [[c5dcc22](https://github.com/spothero/fe-ui/commit/c5dcc22)] - Removed textButton and textButtonOnDark from fe-ui. Also removed underline for now ([#296](https://github.com/spothero/fe-ui/pull/296)) (Max Rashes)
3
+ ## Miscellaneous Updates
4
+ * [[910c646](https://github.com/spothero/fe-ui/commit/910c646)] - `fix:` Update components with optional chaining and required props (JanaviAnand_SpotHero)
5
5
 
@@ -241,9 +241,10 @@ var AutoSuggestInput = /*#__PURE__*/function (_Component) {
241
241
  (0, _createClass2.default)(AutoSuggestInput, [{
242
242
  key: "componentDidMount",
243
243
  value: function componentDidMount() {
244
- var suggestions = this.props.suggestions;
244
+ var _this$_input, _this$_input$node;
245
245
 
246
- this._input.node.addEventListener('invalid', this._onInvalid);
246
+ var suggestions = this.props.suggestions;
247
+ (_this$_input = this._input) === null || _this$_input === void 0 ? void 0 : (_this$_input$node = _this$_input.node) === null || _this$_input$node === void 0 ? void 0 : _this$_input$node.addEventListener('invalid', this._onInvalid);
247
248
 
248
249
  if (suggestions.length) {
249
250
  this._showSuggests();
@@ -262,7 +263,9 @@ var AutoSuggestInput = /*#__PURE__*/function (_Component) {
262
263
 
263
264
  if (prevState.value !== value) {
264
265
  if (!value) {
265
- this._input.node.focus();
266
+ var _this$_input2, _this$_input2$node;
267
+
268
+ (_this$_input2 = this._input) === null || _this$_input2 === void 0 ? void 0 : (_this$_input2$node = _this$_input2.node) === null || _this$_input2$node === void 0 ? void 0 : _this$_input2$node.focus();
266
269
  }
267
270
  }
268
271
 
@@ -283,7 +286,9 @@ var AutoSuggestInput = /*#__PURE__*/function (_Component) {
283
286
  }, {
284
287
  key: "componentWillUnmount",
285
288
  value: function componentWillUnmount() {
286
- this._input.node.removeEventListener('invalid', this._onInvalid);
289
+ var _this$_input3, _this$_input3$node;
290
+
291
+ (_this$_input3 = this._input) === null || _this$_input3 === void 0 ? void 0 : (_this$_input3$node = _this$_input3.node) === null || _this$_input3$node === void 0 ? void 0 : _this$_input3$node.removeEventListener('invalid', this._onInvalid);
287
292
  }
288
293
  }, {
289
294
  key: "_nextSuggest",
@@ -398,7 +403,9 @@ var AutoSuggestInput = /*#__PURE__*/function (_Component) {
398
403
  }, {
399
404
  key: "node",
400
405
  get: function get() {
401
- return this._input.node;
406
+ var _this$_input4;
407
+
408
+ return (_this$_input4 = this._input) === null || _this$_input4 === void 0 ? void 0 : _this$_input4.node;
402
409
  }
403
410
  }, {
404
411
  key: "render",
@@ -104,7 +104,9 @@ var TextInput = /*#__PURE__*/function (_Component) {
104
104
  (0, _createClass2.default)(TextInput, [{
105
105
  key: "componentDidMount",
106
106
  value: function componentDidMount() {
107
- this._input.getInputDOMNode().addEventListener('invalid', this._onInvalid);
107
+ var _this$_input, _this$_input$getInput;
108
+
109
+ (_this$_input = this._input) === null || _this$_input === void 0 ? void 0 : (_this$_input$getInput = _this$_input.getInputDOMNode()) === null || _this$_input$getInput === void 0 ? void 0 : _this$_input$getInput.addEventListener('invalid', this._onInvalid);
108
110
  }
109
111
  }, {
110
112
  key: "componentDidUpdate",
@@ -116,13 +118,17 @@ var TextInput = /*#__PURE__*/function (_Component) {
116
118
  }, {
117
119
  key: "componentWillUnmount",
118
120
  value: function componentWillUnmount() {
119
- this._input.getInputDOMNode().removeEventListener('invalid', this._onInvalid);
121
+ var _this$_input2, _this$_input2$getInpu;
122
+
123
+ (_this$_input2 = this._input) === null || _this$_input2 === void 0 ? void 0 : (_this$_input2$getInpu = _this$_input2.getInputDOMNode()) === null || _this$_input2$getInpu === void 0 ? void 0 : _this$_input2$getInpu.removeEventListener('invalid', this._onInvalid);
120
124
  }
121
125
  }, {
122
126
  key: "_checkFocus",
123
127
  value: function _checkFocus() {
124
128
  if (this.props.focus) {
125
- this._input.getInputDOMNode().focus();
129
+ var _this$_input3, _this$_input3$getInpu;
130
+
131
+ (_this$_input3 = this._input) === null || _this$_input3 === void 0 ? void 0 : (_this$_input3$getInpu = _this$_input3.getInputDOMNode()) === null || _this$_input3$getInpu === void 0 ? void 0 : _this$_input3$getInpu.focus();
126
132
  }
127
133
  }
128
134
  /**
@@ -135,7 +141,9 @@ var TextInput = /*#__PURE__*/function (_Component) {
135
141
  }, {
136
142
  key: "node",
137
143
  get: function get() {
138
- return this._input.getInputDOMNode();
144
+ var _this$_input4;
145
+
146
+ return (_this$_input4 = this._input) === null || _this$_input4 === void 0 ? void 0 : _this$_input4.getInputDOMNode();
139
147
  }
140
148
  }, {
141
149
  key: "render",
package/dex.config.js ADDED
@@ -0,0 +1,48 @@
1
+ const path = require('path');
2
+
3
+ const targetEntry = process.env.TARGET_ENTRY;
4
+
5
+ module.exports = {
6
+ client: {
7
+ plugins: [],
8
+ },
9
+ production: {
10
+ client: {
11
+ entry: [`./src/${targetEntry}/components/index.js`],
12
+ output: {
13
+ filename: 'index.js',
14
+ path: path.resolve(__dirname, targetEntry),
15
+ library: {
16
+ name: '@spothero/ui',
17
+ type: 'umd',
18
+ },
19
+ globalObject: 'this'
20
+ },
21
+ externals: {
22
+ react: {
23
+ root: 'React',
24
+ commonjs2: 'react',
25
+ commonjs: 'react',
26
+ amd: 'react'
27
+ },
28
+ 'react-dom': {
29
+ root: 'ReactDOM',
30
+ commonjs2: 'react-dom',
31
+ commonjs: 'react-dom',
32
+ amd: 'react-dom'
33
+ },
34
+ 'lodash': {
35
+ commonjs2: 'lodash',
36
+ commonjs: 'lodash',
37
+ amd: 'lodash',
38
+ root: '_'
39
+ },
40
+ 'prop-types': 'prop-types',
41
+ '@chakra-ui/react': '@chakra-ui/react'
42
+
43
+ }
44
+ },
45
+
46
+ },
47
+
48
+ };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "14.8.0",
3
+ "version": "14.8.2-beta.0",
4
4
  "description": "SpotHero's React component UI library.",
5
- "main": "v2/index-bundled.cjs.js",
5
+ "main": "v2/index.js",
6
6
  "module": "v2/index.js",
7
7
  "repository": "https://github.com/spothero/fe-ui",
8
8
  "author": "SpotHero",
@@ -64,8 +64,8 @@
64
64
  "test:unit": "npm run test:template -- --coverage",
65
65
  "test:unit:watch": "DEBUG_PRINT_LIMIT=-1 npm run test:template -- --watch",
66
66
  "clone:styles": "rsync -a src/ styles && rm -rf styles/**/*.{js,jsx} styles/**/stories",
67
- "build:v1": "rollup --config rollup/v1.config.js",
68
- "build:v2": "rollup --config rollup/v2.config.js",
67
+ "build:v1": "TARGET_ENTRY=v1 NODE_ENV=production dex",
68
+ "build:v2": "TARGET_ENTRY=v2 NODE_ENV=production dex",
69
69
  "build:backlog": "NODE_ENV=production babel src -d backlog --ignore \"**/*.spec.js\",\"**/stories/**\",\"**/v2/**\"",
70
70
  "build": "npm run clean && npm run clone:styles && npm run build:backlog && npm run build:v1 && npm run build:v2",
71
71
  "build:storybook": "build-storybook -o ./docs",
@@ -88,8 +88,6 @@
88
88
  "@babel/runtime-corejs3": "7.14.7",
89
89
  "@cypress/browserify-preprocessor": "3.0.1",
90
90
  "@jackfranklin/test-data-bot": "1.3.0",
91
- "@rollup/plugin-alias": "3.1.2",
92
- "@rollup/plugin-node-resolve": "11.2.0",
93
91
  "@spothero/babel-preset-spothero": "0.2.0",
94
92
  "@spothero/browserslist-config": "1.0.0",
95
93
  "@spothero/commitlint-config": "3.1.1",
@@ -132,13 +130,6 @@
132
130
  "react-redux": "7.2.8",
133
131
  "redux": "4.1.2",
134
132
  "regenerator-runtime": "0.13.7",
135
- "rollup": "2.40.0",
136
- "rollup-plugin-babel": "4.4.0",
137
- "rollup-plugin-commonjs": "10.1.0",
138
- "rollup-plugin-peer-deps-external": "2.2.4",
139
- "rollup-plugin-replace": "2.2.0",
140
- "rollup-plugin-terser": "7.0.2",
141
- "rollup-plugin-visualizer": "4.2.0",
142
133
  "start-server-and-test": "1.12.6",
143
134
  "style-loader": "1.2.1",
144
135
  "webpack-merge": "5.1.4"
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  .Alert {
2
4
  margin: 6px 0 10px;
3
5
  display: block;
@@ -13,7 +15,7 @@
13
15
  display: inline-block;
14
16
 
15
17
  .Alert-danger & {
16
- background: lighten($color-stop, 35%);
18
+ background: color.adjust($color-stop, $lightness: 35%);
17
19
  color: $color-stop;
18
20
  }
19
21
 
@@ -86,7 +86,7 @@ export default class AutoSuggestInput extends Component {
86
86
  componentDidMount() {
87
87
  const {suggestions} = this.props;
88
88
 
89
- this._input.node.addEventListener('invalid', this._onInvalid);
89
+ this._input?.node?.addEventListener('invalid', this._onInvalid);
90
90
 
91
91
  if (suggestions.length) {
92
92
  this._showSuggests();
@@ -102,7 +102,7 @@ export default class AutoSuggestInput extends Component {
102
102
 
103
103
  if (prevState.value !== value) {
104
104
  if (!value) {
105
- this._input.node.focus();
105
+ this._input?.node?.focus();
106
106
  }
107
107
  }
108
108
 
@@ -120,7 +120,7 @@ export default class AutoSuggestInput extends Component {
120
120
  }
121
121
 
122
122
  componentWillUnmount() {
123
- this._input.node.removeEventListener('invalid', this._onInvalid);
123
+ this._input?.node?.removeEventListener('invalid', this._onInvalid);
124
124
  }
125
125
 
126
126
  _onInvalid = evt => {
@@ -350,7 +350,7 @@ export default class AutoSuggestInput extends Component {
350
350
  * @returns {Element} - The input element.
351
351
  */
352
352
  get node() {
353
- return this._input.node;
353
+ return this._input?.node;
354
354
  }
355
355
 
356
356
  render() {
@@ -20,7 +20,7 @@ class AutoSuggestList extends PureComponent {
20
20
  /** The suggestion object which is currently active. */
21
21
  activeSuggestion: PropTypes.object,
22
22
  /** A custom element to display at the bottom of the suggestion list */
23
- suggestionBoxFooter: PropTypes.element,
23
+ suggestionBoxFooter: PropTypes.element.isRequired,
24
24
  /** Function to execute when a suggestion is selected. */
25
25
  onSuggestionSelect: PropTypes.func.isRequired,
26
26
  /** Optional function to execute for suggestion list item's mousedown event. */
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .AutoSuggestInput-item {
64
- @include ellipsis();
64
+ @include ellipsis;
65
65
  font-size: 14px;
66
66
  cursor: pointer;
67
67
  padding: 7px 10px 7px 16px;
@@ -107,6 +107,7 @@
107
107
  .Icon {
108
108
  width: 18px;
109
109
  height: 18px;
110
+
110
111
  // Updated to account for small positioning changes
111
112
  // due to the Chakra implementation. Allowed the icon
112
113
  // to inherit 'display: inline-block;', and the margin
@@ -1,3 +1,4 @@
1
+ @use "sass:list";
1
2
  @import "chartist";
2
3
 
3
4
  .ct-area,
@@ -14,7 +15,7 @@
14
15
  .ct-series {
15
16
  @for $i from 0 to length($ct-series-colors) {
16
17
  .ct-circle-#{$i} {
17
- stroke: nth($ct-series-colors, $i + 1);
18
+ stroke: list.nth($ct-series-colors, $i + 1);
18
19
  }
19
20
  }
20
21
  }
@@ -61,10 +62,12 @@
61
62
  }
62
63
 
63
64
  @for $i from 0 to length($ct-series-colors) {
65
+ /* stylelint-disable */
64
66
  .ct-series-#{$i}::before {
65
- background-color: nth($ct-series-colors, $i + 1);
66
- border-color: nth($ct-series-colors, $i + 1);
67
+ background-color: list.nth($ct-series-colors, $i + 1);
68
+ border-color: list.nth($ct-series-colors, $i + 1);
67
69
  }
70
+ /* stylelint-enable */
68
71
  }
69
72
  }
70
73
 
@@ -51,6 +51,7 @@
51
51
 
52
52
  .Icon {
53
53
  position: absolute;
54
+
54
55
  // Chakra's implementation created some small issues
55
56
  // with how elements were positioned, this updates the
56
57
  // element to parody the original design
@@ -72,6 +73,7 @@
72
73
 
73
74
  &::before {
74
75
  @extend %checkbox-common;
76
+
75
77
  // Chakra's implementation created some small issues
76
78
  // with how elements were positioned, this updates the
77
79
  // element to parody the original design
@@ -79,16 +79,20 @@
79
79
  outline: none;
80
80
  border-radius: 19px;
81
81
 
82
+ /* stylelint-disable */
82
83
  &:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected) {
83
84
  &:hover {
84
85
  border: 1px solid $color-go;
85
86
  border-radius: 100%;
86
87
  }
87
88
  }
89
+ /* stylelint-enable */
88
90
  }
89
91
 
90
- .DayPicker--interactionDisabled .DayPicker-Day {
91
- cursor: default;
92
+ .DayPicker--interactionDisabled {
93
+ .DayPicker-Day {
94
+ cursor: default;
95
+ }
92
96
  }
93
97
 
94
98
  .DayPicker-Day--today {
@@ -99,11 +103,12 @@
99
103
  color: $color-cement;
100
104
  cursor: default;
101
105
  }
102
-
106
+ /* stylelint-disable */
103
107
  .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
104
108
  color: $color-white;
105
109
  background-color: $color-go;
106
110
  }
111
+ /* stylelint-enable */
107
112
 
108
113
  .DatePicker-calendar-with-range {
109
114
  .DayPicker-Day {
@@ -116,6 +121,7 @@
116
121
  }
117
122
  }
118
123
 
124
+ /* stylelint-disable */
119
125
  .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
120
126
  color: $color-white;
121
127
  background-color: rgba($color-go, 0.33);
@@ -124,6 +130,7 @@
124
130
  background-color: transparent;
125
131
  }
126
132
  }
133
+ /* stylelint-enable */
127
134
 
128
135
  .DayPicker-Day--start,
129
136
  .DayPicker-Day--end {
@@ -1,6 +1,8 @@
1
+ @use "sass:color";
2
+
1
3
  @keyframes HIGHLIGHT {
2
4
  5% {
3
- background-color: lighten($color-highlight, 40%);
5
+ background-color: color.adjust($color-highlight, $lightness: 40%);
4
6
  }
5
7
  }
6
8
 
@@ -24,7 +24,7 @@ export default class GooglePlacesSearchInput extends Component {
24
24
  /** Used to limit the suggestion results by lat/long bounds. */
25
25
  bounds: PropTypes.object,
26
26
  /** The `google maps` object for using the autocomplete service. */
27
- googleMaps: PropTypes.object,
27
+ googleMaps: PropTypes.object.isRequired,
28
28
  /** A custom element (typically a PoweredByGoogle component) to display at the bottom of the suggestion list. */
29
29
  poweredByGoogleFooter: PropTypes.element.isRequired,
30
30
  /** An object containing the bias options */
@@ -35,6 +35,7 @@
35
35
 
36
36
  .Checkbox {
37
37
  display: none;
38
+
38
39
  // Chakra's implementation created some small issues
39
40
  // with how elements were positioned, this updates the
40
41
  // element to parody the original design
@@ -54,8 +55,10 @@
54
55
  color: $color-cement;
55
56
  text-transform: uppercase;
56
57
 
57
- &:not([disabled]):hover {
58
- color: $color-cement;
58
+ &:not([disabled]) {
59
+ &:hover {
60
+ color: $color-cement;
61
+ }
59
62
  }
60
63
  }
61
64
 
@@ -60,6 +60,7 @@
60
60
 
61
61
  &::before {
62
62
  @extend %radio-common;
63
+
63
64
  // Chakra's implementation created some small issues
64
65
  // with how elements were positioned, this updates the
65
66
  // element to parody the original design
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  .Select-icon {
14
- @include center();
14
+ @include center;
15
15
  line-height: 1;
16
16
 
17
17
  .Icon {
@@ -17,8 +17,8 @@ export default class TextInput extends Component {
17
17
 
18
18
  componentDidMount() {
19
19
  this._input
20
- .getInputDOMNode()
21
- .addEventListener('invalid', this._onInvalid);
20
+ ?.getInputDOMNode()
21
+ ?.addEventListener('invalid', this._onInvalid);
22
22
  }
23
23
 
24
24
  componentDidUpdate(prevProps, prevState) {
@@ -29,8 +29,8 @@ export default class TextInput extends Component {
29
29
 
30
30
  componentWillUnmount() {
31
31
  this._input
32
- .getInputDOMNode()
33
- .removeEventListener('invalid', this._onInvalid);
32
+ ?.getInputDOMNode()
33
+ ?.removeEventListener('invalid', this._onInvalid);
34
34
  }
35
35
 
36
36
  _onInvalid = evt => {
@@ -62,7 +62,7 @@ export default class TextInput extends Component {
62
62
 
63
63
  _checkFocus() {
64
64
  if (this.props.focus) {
65
- this._input.getInputDOMNode().focus();
65
+ this._input?.getInputDOMNode()?.focus();
66
66
  }
67
67
  }
68
68
 
@@ -73,7 +73,7 @@ export default class TextInput extends Component {
73
73
  * @returns {Element} - The input element.
74
74
  */
75
75
  get node() {
76
- return this._input.getInputDOMNode();
76
+ return this._input?.getInputDOMNode();
77
77
  }
78
78
 
79
79
  render() {
@@ -2,7 +2,7 @@
2
2
  @extend %form-element;
3
3
 
4
4
  .Icon {
5
- @include center();
5
+ @include center;
6
6
  width: 16px;
7
7
  fill: $color-cement;
8
8
  }
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  %form-element-item {
25
- @include font-family();
25
+ @include font-family;
26
26
  display: block;
27
27
  width: 100%;
28
28
  background-color: $color-white;
@@ -8,10 +8,9 @@
8
8
  }
9
9
  }
10
10
 
11
- a.Button,
12
11
  .Button {
13
12
  @extend %control-size;
14
- @include font-family();
13
+ @include font-family;
15
14
  padding: 10px 30px;
16
15
  text-align: center;
17
16
  font-weight: $font-weight-semi-bold;
@@ -57,27 +56,23 @@ a.Button,
57
56
  }
58
57
  }
59
58
 
60
- a.Button-block,
61
59
  .Button-block {
62
60
  display: block;
63
61
  width: 100%;
64
62
  }
65
63
 
66
- a.Button-with-icon-left,
67
64
  .Button-with-icon-left {
68
65
  .Icon {
69
66
  margin-right: 5px;
70
67
  }
71
68
  }
72
69
 
73
- a.Button-with-icon-right,
74
70
  .Button-with-icon-right {
75
71
  .Icon {
76
72
  margin-left: 5px;
77
73
  }
78
74
  }
79
75
 
80
- a.Button-primary,
81
76
  .Button-primary {
82
77
  background-color: $color-shift;
83
78
  color: $color-white;
@@ -98,7 +93,6 @@ a.Button-primary,
98
93
  }
99
94
  }
100
95
 
101
- a.Button-secondary,
102
96
  .Button-secondary {
103
97
  background-color: $color-white;
104
98
  color: $color-shift;
@@ -117,7 +111,6 @@ a.Button-secondary,
117
111
  }
118
112
  }
119
113
 
120
- a.Button-tertiary,
121
114
  .Button-tertiary {
122
115
  background-color: $color-white;
123
116
  color: $color-cement;
@@ -136,7 +129,6 @@ a.Button-tertiary,
136
129
  }
137
130
  }
138
131
 
139
- a.Button-loading,
140
132
  .Button-loading {
141
133
  position: relative;
142
134
  pointer-events: none;
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .PulseLoader-pulse {
17
- @include center();
17
+ @include center;
18
18
  }
19
19
  }
20
20
 
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .TextButton {
12
- @include font-family();
12
+ @include font-family;
13
13
  display: inline-block;
14
14
  cursor: pointer;
15
15
  white-space: nowrap;
@@ -1,6 +1,6 @@
1
- export { default as Panel } from './Panel/Panel';
2
- export { default as Button } from './Button/Button';
3
- export { default as Table } from './Table/Table';
4
- export { default as TextButton } from './TextButton/TextButton';
5
- export { default as Image } from './Image/Image';
6
- export { default as Loader } from './Loader/Loader';
1
+ export {default as Panel} from './Panel/Panel';
2
+ export {default as Button} from './Button/Button';
3
+ export {default as Table} from './Table/Table';
4
+ export {default as TextButton} from './TextButton/TextButton';
5
+ export {default as Image} from './Image/Image';
6
+ export {default as Loader} from './Loader/Loader';
@@ -1,8 +1,10 @@
1
- import React, {forwardRef} from 'react';
2
1
  import cn from 'classnames';
3
2
  import PropTypes from 'prop-types';
3
+ import React, {forwardRef} from 'react';
4
4
  import {Select as ChakraSelect} from '@chakra-ui/react';
5
+ import IconChevronDown from '@spothero/icons/chevron-down';
5
6
 
7
+ import Icon from '../Icon/Icon';
6
8
  import FormControl from '../FormControl/FormControl';
7
9
 
8
10
  const Select = forwardRef(
@@ -31,6 +33,8 @@ const Select = forwardRef(
31
33
  inputId={props.id}
32
34
  >
33
35
  <ChakraSelect
36
+ icon={<Icon as={IconChevronDown} />}
37
+ iconSize={12}
34
38
  fontWeight="regular"
35
39
  fontSize="sm"
36
40
  ref={ref}
@@ -0,0 +1,5 @@
1
+ {
2
+ "index.html": "index.html",
3
+ "index.js.license.txt": "index.js.LICENSE.txt",
4
+ "main.js": "index.js"
5
+ }
package/v1/index.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="/index.js"></script></head><body><div id="root"></div></body></html>