@spothero/ui 19.0.0 → 20.0.0-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.
@@ -17,7 +17,7 @@ const AccordionActionButton = /*#__PURE__*/(0, _react2.forwardRef)((_ref, ref) =
17
17
  if (onClick) {
18
18
  e.preventDefault();
19
19
  }
20
- onClick === null || onClick === void 0 ? void 0 : onClick();
20
+ onClick?.();
21
21
  };
22
22
  return /*#__PURE__*/_react2.default.createElement(_react.Box, {
23
23
  ref: ref,
@@ -26,7 +26,7 @@ const ContainerTemplate = props => {
26
26
  } = (0, _react2.useTheme)();
27
27
  const breakpoint = (0, _react2.useBreakpointValue)(_Container2.default.maxW);
28
28
  const size = (0, _react2.useToken)('sizes', breakpoint);
29
- const isMobile = breakpoint === null || breakpoint === void 0 ? void 0 : breakpoint.includes('base');
29
+ const isMobile = breakpoint?.includes('base');
30
30
  const headingText = size ? `Container: ${size}${isMobile ? '' : ` - ${remToPixels(size)}px`}` : '';
31
31
  return /*#__PURE__*/_react.default.createElement(_Container.default, props, headingText);
32
32
  };
@@ -34,7 +34,7 @@ const FormControl = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
34
34
  htmlFor: inputId,
35
35
  as: isFieldset ? 'legend' : 'label',
36
36
  requiredIndicator: "",
37
- optionalIndicator: isOptional && !(props !== null && props !== void 0 && props.isRequired) ? /*#__PURE__*/_react.default.createElement(_react2.Text, {
37
+ optionalIndicator: isOptional && !props?.isRequired ? /*#__PURE__*/_react.default.createElement(_react2.Text, {
38
38
  marginLeft: 1,
39
39
  as: "span",
40
40
  variant: "caption",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "19.0.0",
3
+ "version": "20.0.0-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",
@@ -95,14 +95,14 @@
95
95
  "webpack-merge": "5.1.4",
96
96
  "css-loader": "5.1.3",
97
97
  "sass-loader": "10.2.1",
98
- "@spothero/babel-preset-spothero": "4.0.0",
99
- "@spothero/browserslist-config": "3.0.0",
100
- "@spothero/core": "6.0.0",
101
- "@spothero/eslint-config": "5.0.0",
102
- "@spothero/icons": "6.0.0",
103
- "@spothero/npm-publisher": "6.0.0",
104
- "@spothero/prettier-config": "3.0.0",
105
- "@spothero/stylelint-config": "5.0.0"
98
+ "@spothero/babel-preset-spothero": "5.0.0-beta.0",
99
+ "@spothero/eslint-config": "6.0.0-beta.0",
100
+ "@spothero/npm-publisher": "7.0.0-beta.0",
101
+ "@spothero/icons": "7.0.0-beta.0",
102
+ "@spothero/core": "7.0.0-beta.0",
103
+ "@spothero/browserslist-config": "4.0.0-beta.0",
104
+ "@spothero/prettier-config": "4.0.0-beta.0",
105
+ "@spothero/stylelint-config": "6.0.0-beta.0"
106
106
  },
107
107
  "dependencies": {
108
108
  "@chakra-ui/react": "1.8.8",
@@ -118,7 +118,7 @@
118
118
  "regenerator-runtime": "0.13.7",
119
119
  "ssr-window": "1.0.1",
120
120
  "transitionEnd": "1.0.2",
121
- "@spothero/utils": "11.0.0"
121
+ "@spothero/utils": "12.0.0-beta.0"
122
122
  },
123
123
  "peerDependencies": {
124
124
  "classnames": "^2.2.6",
@@ -132,7 +132,7 @@
132
132
  "scripts": {
133
133
  "clean": "rm -rf docs v2 lib styles coverage || true",
134
134
  "lint": "eslint .storybook src --ext .jsx,.js",
135
- "start": "start-storybook -p 6006",
135
+ "start": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
136
136
  "test": "pnpm run test:unit",
137
137
  "test:template": "NODE_ENV=test jest --config ./jest.config.json",
138
138
  "test:unit": "pnpm run test:template",