@spothero/ui 22.2.1 → 22.3.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.
- package/dist/components/RefreshedInput/Button/Button.js +6 -2
- package/dist/components/RefreshedInput/Button/index.js +1 -1
- package/dist/components/RefreshedInput/FormControl/index.js +1 -1
- package/dist/components/RefreshedInput/Input/Input.js +3 -2
- package/dist/components/index.js +7 -0
- package/package.json +6 -6
|
@@ -15,7 +15,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
15
15
|
/**
|
|
16
16
|
* A component used in the homepage/midfunnel refresh of 2024
|
|
17
17
|
* Initially built as purpose built as possible with hopes of extending it to other systems
|
|
18
|
-
* using `<RefreshedButton/>` will bring in the core of this.
|
|
18
|
+
* using `<RefreshedButton/>` will bring in the core of this.
|
|
19
19
|
* The "value" will be the child of the button but must be passed through props like: `<RefreshedButton buttonValue="123"/>`. This aids in the styling.
|
|
20
20
|
* Recommended to pass a title prop as that will aid in screen readers understanding this due to text not always being in the button
|
|
21
21
|
*/
|
|
@@ -57,7 +57,11 @@ const Button = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
57
57
|
"data-value": buttonValue,
|
|
58
58
|
paddingBottom: "2"
|
|
59
59
|
}, props, {
|
|
60
|
-
isDisabled: isDisabled
|
|
60
|
+
isDisabled: isDisabled,
|
|
61
|
+
color: isInvalid ? 'gray.600' : 'black',
|
|
62
|
+
borderColor: isInvalid ? 'error' : 'gray.200',
|
|
63
|
+
paddingTop: isInvalid ? 2.5 : 6,
|
|
64
|
+
textTransform: "none"
|
|
61
65
|
}), buttonValue));
|
|
62
66
|
});
|
|
63
67
|
var _default = exports.default = Button;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
10
|
return _Button.default;
|
|
@@ -82,7 +82,7 @@ const controlStyles = {
|
|
|
82
82
|
paddingRight: 8 //This should be only when there is a right element - DOM order made this a headache
|
|
83
83
|
},
|
|
84
84
|
'.chakra-input__group > .chakra-input__left-element ~ span button': {
|
|
85
|
-
paddingLeft:
|
|
85
|
+
paddingLeft: 10,
|
|
86
86
|
paddingRight: 8 //This should be only when there is a right element - DOM order made this a headache
|
|
87
87
|
},
|
|
88
88
|
'.chakra-input__group > .chakra-input__left-element ~ span label': {
|
|
@@ -15,7 +15,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
15
15
|
/**
|
|
16
16
|
* A component used in the homepage/midfunnel refresh of 2024
|
|
17
17
|
* Initially built as purpose built as possible with hopes of extending it to other systems
|
|
18
|
-
* using `<RefreshedInput/>` will bring in the core of this.
|
|
18
|
+
* using `<RefreshedInput/>` will bring in the core of this.
|
|
19
19
|
*/
|
|
20
20
|
const Input = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
21
21
|
label,
|
|
@@ -52,7 +52,8 @@ const Input = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
52
52
|
placeholder: placeholder,
|
|
53
53
|
ref: ref,
|
|
54
54
|
className: classes,
|
|
55
|
-
paddingTop: 'var(--chakra-sizes-5-5)'
|
|
55
|
+
paddingTop: 'var(--chakra-sizes-5-5)' // Design requires 5.5
|
|
56
|
+
,
|
|
56
57
|
paddingBottom: "2",
|
|
57
58
|
variant: "refreshed"
|
|
58
59
|
}, props)));
|
package/dist/components/index.js
CHANGED
|
@@ -96,6 +96,7 @@ var _exportNames = {
|
|
|
96
96
|
useControllableProp: true,
|
|
97
97
|
BasicInput: true,
|
|
98
98
|
useControllableState: true,
|
|
99
|
+
usePopper: true,
|
|
99
100
|
usePrefersReducedMotion: true,
|
|
100
101
|
keyframes: true,
|
|
101
102
|
BoxProps: true,
|
|
@@ -641,6 +642,12 @@ Object.defineProperty(exports, "useMediaQuery", {
|
|
|
641
642
|
return _react.useMediaQuery;
|
|
642
643
|
}
|
|
643
644
|
});
|
|
645
|
+
Object.defineProperty(exports, "usePopper", {
|
|
646
|
+
enumerable: true,
|
|
647
|
+
get: function () {
|
|
648
|
+
return _react.usePopper;
|
|
649
|
+
}
|
|
650
|
+
});
|
|
644
651
|
Object.defineProperty(exports, "usePrefersReducedMotion", {
|
|
645
652
|
enumerable: true,
|
|
646
653
|
get: function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spothero/ui",
|
|
3
|
-
"version": "22.2
|
|
3
|
+
"version": "22.3.2",
|
|
4
4
|
"description": "SpotHero's React component UI library.",
|
|
5
5
|
"main": "./dist/components/index.js",
|
|
6
6
|
"exports": "./dist/components/index.js",
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
"webpack-merge": "5.1.4",
|
|
95
95
|
"css-loader": "5.1.3",
|
|
96
96
|
"sass-loader": "10.2.1",
|
|
97
|
-
"@spothero/babel-preset-spothero": "5.1.0",
|
|
98
97
|
"@spothero/browserslist-config": "4.0.0",
|
|
98
|
+
"@spothero/babel-preset-spothero": "5.1.0",
|
|
99
99
|
"@spothero/core": "7.0.1",
|
|
100
|
+
"@spothero/icons": "9.0.2-beta.0",
|
|
100
101
|
"@spothero/eslint-config": "6.1.0",
|
|
101
|
-
"@spothero/icons": "9.0.1",
|
|
102
|
-
"@spothero/npm-publisher": "7.0.0",
|
|
103
102
|
"@spothero/prettier-config": "4.0.0",
|
|
104
|
-
"@spothero/stylelint-config": "6.0.0"
|
|
103
|
+
"@spothero/stylelint-config": "6.0.0",
|
|
104
|
+
"@spothero/npm-publisher": "7.0.0"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@chakra-ui/react": "1.8.8",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"regenerator-runtime": "0.13.7",
|
|
118
118
|
"ssr-window": "1.0.1",
|
|
119
119
|
"transitionEnd": "1.0.2",
|
|
120
|
-
"@spothero/utils": "15.0.
|
|
120
|
+
"@spothero/utils": "15.0.2-beta.0"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"classnames": "^2.2.6",
|