@spothero/ui 14.7.5 → 14.7.6-beta.2

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 (46) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/CHANGELOG.tmp +4 -4
  3. package/dex.config.js +20 -0
  4. package/package.json +4 -13
  5. package/styles/Alert/_Alert.scss +3 -1
  6. package/styles/AutoSuggestInput/_AutoSuggestInput.scss +2 -1
  7. package/styles/Chart/_Chart.scss +6 -3
  8. package/styles/Checkbox/_Checkbox.scss +2 -0
  9. package/styles/DateTime/_DatePickerCalendar.scss +10 -3
  10. package/styles/DateTime/_DateTimePicker.scss +3 -1
  11. package/styles/PasswordControl/_PasswordControl.scss +5 -2
  12. package/styles/Radio/_Radio.scss +1 -0
  13. package/styles/Select/_Select.scss +1 -1
  14. package/styles/TextInput/_TextInput.scss +1 -1
  15. package/styles/common/sass/_forms.scss +1 -1
  16. package/styles/v1/components/Button/_Button.scss +1 -9
  17. package/styles/v1/components/Image/_Image.scss +1 -1
  18. package/styles/v1/components/TextButton/_TextButton.scss +1 -1
  19. package/styles/v1/components/index.js +6 -6
  20. package/styles/v2/components/Select/Select.stories.js +1 -1
  21. package/v1/assets-manifest.json +5 -0
  22. package/v1/index.html +1 -0
  23. package/v1/index.js +3 -5
  24. package/v1/index.js.LICENSE.txt +38 -0
  25. package/v1/index.js.map +1 -0
  26. package/v2/assets-manifest.json +5 -0
  27. package/v2/index.html +1 -0
  28. package/v2/index.js +3 -5
  29. package/v2/index.js.LICENSE.txt +47 -0
  30. package/v2/index.js.map +1 -0
  31. package/v1/index-bundled.cjs.js +0 -2
  32. package/v1/index-bundled.cjs.js.map +0 -1
  33. package/v1/index-bundled.esm.js +0 -2
  34. package/v1/index-bundled.esm.js.map +0 -1
  35. package/v1/index-unbundled.cjs.js +0 -11331
  36. package/v1/index-unbundled.cjs.js.map +0 -1
  37. package/v1/index-unbundled.esm.js +0 -11296
  38. package/v1/index-unbundled.esm.js.map +0 -1
  39. package/v2/index-bundled.cjs.js +0 -25
  40. package/v2/index-bundled.cjs.js.map +0 -1
  41. package/v2/index-bundled.esm.js +0 -24
  42. package/v2/index-bundled.esm.js.map +0 -1
  43. package/v2/index-unbundled.cjs.js +0 -39197
  44. package/v2/index-unbundled.cjs.js.map +0 -1
  45. package/v2/index-unbundled.esm.js +0 -39128
  46. package/v2/index-unbundled.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # 14.7.6-beta.2 - 05/18/2022
2
+
3
+ ## Miscellaneous Updates
4
+ * [[566919a](https://github.com/spothero/fe-ui/commit/566919a)] - `fix:` Fix path resolution for dex output (Tyler Williams)
5
+ * [[210027e](https://github.com/spothero/fe-ui/commit/210027e)] - `fix:` Fix component index for v1 components (Tyler Williams)
6
+ * [[713036c](https://github.com/spothero/fe-ui/commit/713036c)] - `chore:` Update version (Tyler Williams)
7
+
8
+ # 14.7.6-beta.1 - 05/18/2022
9
+
10
+ ## Miscellaneous Updates
11
+ * [[c0e5458](https://github.com/spothero/fe-ui/commit/c0e5458)] - `fix:` Invalid version number for beta testing (Tyler Williams)
12
+ * [[af917d8](https://github.com/spothero/fe-ui/commit/af917d8)] - `chore:` Replace rollup with dex (Tyler Williams)
13
+
1
14
  # 14.7.5 - 05/17/2022
2
15
 
3
16
  ## Miscellaneous Updates
package/CHANGELOG.tmp CHANGED
@@ -1,7 +1,7 @@
1
- # 14.7.5 - 05/17/2022
1
+ # 14.7.6-beta.2 - 05/18/2022
2
2
 
3
3
  ## Miscellaneous Updates
4
- * [[20382aa](https://github.com/spothero/fe-ui/commit/20382aa)] - `fix:` Make font weight normal in Input ([#293](https://github.com/spothero/fe-ui/pull/293)) (annaliarosed)
5
- * `fix:` Make font weight normal in Input
6
- * `refactor:` Explicitely write out font weight normalCo-authored-by: Annalia Destefano <annalia.destefano@spothero.com>
4
+ * [[566919a](https://github.com/spothero/fe-ui/commit/566919a)] - `fix:` Fix path resolution for dex output (Tyler Williams)
5
+ * [[210027e](https://github.com/spothero/fe-ui/commit/210027e)] - `fix:` Fix component index for v1 components (Tyler Williams)
6
+ * [[713036c](https://github.com/spothero/fe-ui/commit/713036c)] - `chore:` Update version (Tyler Williams)
7
7
 
package/dex.config.js ADDED
@@ -0,0 +1,20 @@
1
+ const path = require('path');
2
+
3
+ const targetEntry = process.env.TARGET_ENTRY;
4
+
5
+ console.log(path.resolve(__dirname, '../', targetEntry));
6
+
7
+ module.exports = {
8
+ client: {
9
+ plugins: [],
10
+ },
11
+ production: {
12
+ client: {
13
+ entry: [`./src/${targetEntry}/components/index.js`],
14
+ output: {
15
+ filename: 'index.js',
16
+ path: path.resolve(__dirname, targetEntry),
17
+ },
18
+ },
19
+ },
20
+ };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "14.7.5",
3
+ "version": "14.7.6-beta.2",
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
 
@@ -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
 
@@ -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 {
@@ -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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- import Component from './Select';
4
+ import {Select as Component} from './Select';
5
5
 
6
6
  export default {
7
7
  title: 'v2/Select',
@@ -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>