@spothero/ui 14.8.0 → 14.8.1
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/CHANGELOG.md +4 -0
- package/CHANGELOG.tmp +3 -4
- package/dex.config.js +48 -0
- package/package.json +4 -13
- package/styles/Alert/_Alert.scss +3 -1
- package/styles/AutoSuggestInput/_AutoSuggestInput.scss +2 -1
- package/styles/Chart/_Chart.scss +6 -3
- package/styles/Checkbox/_Checkbox.scss +2 -0
- package/styles/DateTime/_DatePickerCalendar.scss +10 -3
- package/styles/DateTime/_DateTimePicker.scss +3 -1
- package/styles/PasswordControl/_PasswordControl.scss +5 -2
- package/styles/Radio/_Radio.scss +1 -0
- package/styles/Select/_Select.scss +1 -1
- package/styles/TextInput/_TextInput.scss +1 -1
- package/styles/common/sass/_forms.scss +1 -1
- package/styles/v1/components/Button/_Button.scss +1 -9
- package/styles/v1/components/Image/_Image.scss +1 -1
- package/styles/v1/components/TextButton/_TextButton.scss +1 -1
- package/styles/v1/components/index.js +6 -6
- package/styles/v2/components/Select/Select.jsx +5 -1
- package/v1/assets-manifest.json +5 -0
- package/v1/index.html +1 -0
- package/v1/index.js +3 -5
- package/v1/index.js.LICENSE.txt +5 -0
- package/v1/index.js.map +1 -0
- package/v2/assets-manifest.json +5 -0
- package/v2/index.html +1 -0
- package/v2/index.js +3 -5
- package/v2/index.js.LICENSE.txt +14 -0
- package/v2/index.js.map +1 -0
- package/v1/index-bundled.cjs.js +0 -2
- package/v1/index-bundled.cjs.js.map +0 -1
- package/v1/index-bundled.esm.js +0 -2
- package/v1/index-bundled.esm.js.map +0 -1
- package/v1/index-unbundled.cjs.js +0 -11331
- package/v1/index-unbundled.cjs.js.map +0 -1
- package/v1/index-unbundled.esm.js +0 -11296
- package/v1/index-unbundled.esm.js.map +0 -1
- package/v2/index-bundled.cjs.js +0 -26
- package/v2/index-bundled.cjs.js.map +0 -1
- package/v2/index-bundled.esm.js +0 -25
- package/v2/index-bundled.esm.js.map +0 -1
- package/v2/index-unbundled.cjs.js +0 -38498
- package/v2/index-unbundled.cjs.js.map +0 -1
- package/v2/index-unbundled.esm.js +0 -38429
- package/v2/index-unbundled.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 14.8.1 - 05/20/2022
|
|
2
|
+
## Miscellaneous Updates
|
|
3
|
+
* [[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)
|
|
4
|
+
|
|
1
5
|
# 14.8.0 - 05/19/2022
|
|
2
6
|
|
|
3
7
|
## New Features
|
package/CHANGELOG.tmp
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
# 14.8.
|
|
2
|
-
|
|
3
|
-
|
|
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)
|
|
1
|
+
# 14.8.1 - 05/20/2022
|
|
2
|
+
## Miscellaneous Updates
|
|
3
|
+
* [[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)
|
|
5
4
|
|
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.
|
|
3
|
+
"version": "14.8.1",
|
|
4
4
|
"description": "SpotHero's React component UI library.",
|
|
5
|
-
"main": "v2/index
|
|
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": "
|
|
68
|
-
"build:v2": "
|
|
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"
|
package/styles/Alert/_Alert.scss
CHANGED
|
@@ -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:
|
|
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
|
package/styles/Chart/_Chart.scss
CHANGED
|
@@ -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
|
|
91
|
-
|
|
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 {
|
|
@@ -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])
|
|
58
|
-
|
|
58
|
+
&:not([disabled]) {
|
|
59
|
+
&:hover {
|
|
60
|
+
color: $color-cement;
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
|
package/styles/Radio/_Radio.scss
CHANGED
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
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}
|
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>
|