@spothero/ui 21.2.2-beta.0 → 21.4.0-beta.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/dist/components/Accordion/Accordion.stories.js +2 -4
- package/dist/components/Accordion/AccordionActionButton.js +3 -4
- package/dist/components/Accordion/styles/index.js +2 -3
- package/dist/components/Alert/Alert.js +12 -13
- package/dist/components/Alert/Alert.stories.js +2 -4
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +5 -6
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +2 -4
- package/dist/components/Badge/Badge.stories.js +2 -4
- package/dist/components/Badge/styles/index.js +3 -5
- package/dist/components/Button/Button.js +3 -4
- package/dist/components/Button/Button.styles.js +3 -5
- package/dist/components/Button/button-props.js +1 -2
- package/dist/components/Button/stories/button.js +3 -4
- package/dist/components/Button/stories/index.stories.js +6 -12
- package/dist/components/Button/stories/overview.js +3 -4
- package/dist/components/Card/Card.js +3 -4
- package/dist/components/Card/Card.stories.js +2 -4
- package/dist/components/Checkbox/Checkbox.js +3 -4
- package/dist/components/Checkbox/Checkbox.stories.js +2 -4
- package/dist/components/Checkbox/styles/index.js +2 -3
- package/dist/components/Container/Container.js +3 -4
- package/dist/components/Container/Container.stories.js +2 -4
- package/dist/components/Container/Container.styles.js +1 -2
- package/dist/components/Divider/Divider.js +3 -4
- package/dist/components/Divider/Divider.stories.js +2 -4
- package/dist/components/Divider/Divider.styles.js +3 -5
- package/dist/components/Drawer/Drawer.js +3 -4
- package/dist/components/Drawer/Drawer.stories.js +3 -4
- package/dist/components/Drawer/styles/index.js +2 -3
- package/dist/components/FormControl/FormControl.js +12 -6
- package/dist/components/Grid/Grid.js +3 -4
- package/dist/components/Grid/Grid.stories.js +5 -10
- package/dist/components/Grid/Grid.styles.js +3 -5
- package/dist/components/Grid/GridItem.js +3 -4
- package/dist/components/Grid/GridItem.styles.js +1 -2
- package/dist/components/Heading/Heading.js +3 -4
- package/dist/components/Heading/Heading.stories.js +2 -4
- package/dist/components/Heading/Heading.styles.js +3 -5
- package/dist/components/Icon/Icon.stories.js +17 -11
- package/dist/components/Image/Image.js +1 -2
- package/dist/components/Image/Image.stories.js +7 -14
- package/dist/components/Input/Input.js +6 -5
- package/dist/components/Input/Input.stories.js +2 -4
- package/dist/components/Input/styles/index.js +2 -3
- package/dist/components/Link/Link.stories.js +4 -6
- package/dist/components/Link/Link.styles.js +3 -5
- package/dist/components/List/List.js +3 -4
- package/dist/components/List/List.stories.js +5 -10
- package/dist/components/List/styles/index.js +2 -3
- package/dist/components/List/styles/item.styles.js +1 -2
- package/dist/components/Loader/Loader.js +1 -2
- package/dist/components/Loader/Loader.stories.js +4 -8
- package/dist/components/Modal/Modal.js +3 -4
- package/dist/components/Modal/Modal.stories.js +3 -4
- package/dist/components/Modal/styles/dialogContainer.js +2 -3
- package/dist/components/Modal/styles/footer.js +2 -3
- package/dist/components/Modal/styles/index.js +2 -3
- package/dist/components/Modal/styles/overlay.js +2 -3
- package/dist/components/Popover/Popover.js +3 -4
- package/dist/components/Popover/Popover.stories.js +5 -10
- package/dist/components/Popover/PopoverArrow.js +3 -4
- package/dist/components/Popover/PopoverCloseButton.js +3 -4
- package/dist/components/Popover/PopoverContent.js +3 -4
- package/dist/components/Popover/styles/index.js +2 -3
- package/dist/components/Popover/styles/popover-arrow.js +1 -2
- package/dist/components/Popover/styles/popover-body.js +1 -2
- package/dist/components/Popover/styles/popover-close-button.js +1 -2
- package/dist/components/Popover/styles/popover-content.js +1 -2
- package/dist/components/Popover/styles/popover-header.js +1 -2
- package/dist/components/Popover/styles/popper.js +1 -2
- package/dist/components/Progress/Progress.js +3 -4
- package/dist/components/Progress/Progress.stories.js +2 -4
- package/dist/components/Progress/Progress.styles.js +2 -3
- package/dist/components/Radio/Radio.js +3 -4
- package/dist/components/Radio/Radio.stories.js +1 -2
- package/dist/components/Radio/RadioGroup.js +3 -4
- package/dist/components/Radio/styles/index.js +3 -5
- package/dist/components/Select/Select.js +5 -6
- package/dist/components/Select/Select.stories.js +2 -4
- package/dist/components/Select/styles/index.js +2 -3
- package/dist/components/SelectionCard/SelectionCard.js +3 -4
- package/dist/components/SelectionCard/SelectionCard.stories.js +1 -2
- package/dist/components/Skeleton/Skeleton.stories.js +4 -8
- package/dist/components/Skeleton/Skeleton.styles.js +1 -2
- package/dist/components/Spinner/Spinner.js +3 -4
- package/dist/components/Spinner/Spinner.stories.js +7 -14
- package/dist/components/Spinner/Spinner.styles.js +5 -9
- package/dist/components/Switch/Switch.js +3 -4
- package/dist/components/Switch/Switch.stories.js +2 -4
- package/dist/components/Switch/styles/index.js +2 -3
- package/dist/components/Table/Table.stories.js +2 -4
- package/dist/components/Table/Table.styles.js +3 -5
- package/dist/components/Tabs/Tabs.js +4 -8
- package/dist/components/Tabs/Tabs.stories.js +4 -6
- package/dist/components/Tabs/combineSizeWithVariant.js +1 -2
- package/dist/components/Tabs/styles/index.js +2 -3
- package/dist/components/Text/Text.js +1 -2
- package/dist/components/Text/Text.stories.js +2 -4
- package/dist/components/Text/Text.styles.js +3 -5
- package/dist/components/Text/combineAsWithVariant.js +1 -2
- package/dist/components/Text/options.js +1 -2
- package/dist/components/ThemeProvider/ThemeProvider.js +3 -4
- package/dist/components/ThemeProvider/ThemeProvider.stories.js +2 -4
- package/dist/components/Toast/Toast.stories.js +4 -6
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +3 -4
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.js +4 -6
- package/dist/components/ToggleButtonGroup/styles/index.js +5 -9
- package/dist/components/index.js +2 -2
- package/dist/theme/base/breakpoints.js +1 -2
- package/dist/theme/base/colors.js +1 -2
- package/dist/theme/base/notifications.js +2 -4
- package/dist/theme/base/shadows.js +1 -2
- package/dist/theme/base/sizes.js +1 -3
- package/dist/theme/base/typography.js +4 -7
- package/dist/theme/base/zindices.js +1 -2
- package/dist/theme/global.js +1 -2
- package/dist/theme/index.js +3 -4
- package/dist/utils/Spaces.js +1 -2
- package/package.json +26 -10
|
@@ -10,9 +10,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _Alert = _interopRequireDefault(require("../Alert/Alert"));
|
|
11
11
|
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
12
12
|
var _react2 = require("@chakra-ui/react");
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
15
|
-
var _default = {
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
title: 'v2/Toast',
|
|
17
17
|
component: _Alert.default,
|
|
18
18
|
parameters: {
|
|
@@ -21,7 +21,6 @@ var _default = {
|
|
|
21
21
|
chakraLink: 'https://chakra-ui.com/docs/components/toast'
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
exports.default = _default;
|
|
25
24
|
const Template = props => {
|
|
26
25
|
const toast = (0, _react2.useToast)();
|
|
27
26
|
const addToast = () => {
|
|
@@ -46,8 +45,7 @@ const Template = props => {
|
|
|
46
45
|
onClick: addToast
|
|
47
46
|
}, "Show Toast"));
|
|
48
47
|
};
|
|
49
|
-
const Toast = Template.bind({});
|
|
50
|
-
exports.Toast = Toast;
|
|
48
|
+
const Toast = exports.Toast = Template.bind({});
|
|
51
49
|
Toast.argTypes = {
|
|
52
50
|
buttonProps: {
|
|
53
51
|
table: {
|
|
@@ -9,8 +9,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
|
|
|
9
9
|
var _react = require("@chakra-ui/react");
|
|
10
10
|
var _react2 = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styles = require("./styles");
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
/**
|
|
15
15
|
* @example (
|
|
16
16
|
* <ToggleButtonGroup onChange={handleChangeValue} value={value}>
|
|
@@ -56,5 +56,4 @@ const ToggleButtonGroup = /*#__PURE__*/(0, _react2.forwardRef)((props, ref) => {
|
|
|
56
56
|
});
|
|
57
57
|
}));
|
|
58
58
|
});
|
|
59
|
-
var _default = ToggleButtonGroup;
|
|
60
|
-
exports.default = _default;
|
|
59
|
+
var _default = exports.default = ToggleButtonGroup;
|
|
@@ -10,9 +10,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _react2 = require("@chakra-ui/react");
|
|
11
11
|
var _Button = require("../Button");
|
|
12
12
|
var _ToggleButtonGroup = _interopRequireDefault(require("./ToggleButtonGroup"));
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
15
|
-
var _default = {
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
title: 'v2/ToggleButtonGroup',
|
|
17
17
|
displayName: 'ToggleButtonGroup',
|
|
18
18
|
component: _ToggleButtonGroup.default,
|
|
@@ -24,7 +24,6 @@ var _default = {
|
|
|
24
24
|
Storybook's background is white so the ToggleButtonGroup is hard to see.
|
|
25
25
|
The ToggleButtonGroup is typically displayed against a light green background.
|
|
26
26
|
*/
|
|
27
|
-
exports.default = _default;
|
|
28
27
|
const Template = props => {
|
|
29
28
|
const [toggleValue, setToggleValue] = (0, _react.useState)("multiple");
|
|
30
29
|
const onChange = value => {
|
|
@@ -50,6 +49,5 @@ const Template = props => {
|
|
|
50
49
|
fontSize: "xs"
|
|
51
50
|
}, "Blah Bookings")));
|
|
52
51
|
};
|
|
53
|
-
const ToggleButtonGroup = Template.bind({});
|
|
54
|
-
exports.ToggleButtonGroup = ToggleButtonGroup;
|
|
52
|
+
const ToggleButtonGroup = exports.ToggleButtonGroup = Template.bind({});
|
|
55
53
|
ToggleButtonGroup.args = {};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.inactiveStyles = exports.defaultStyles = exports.buttonGroupStyles = exports.activeStyles = void 0;
|
|
7
|
-
const defaultStyles = {
|
|
7
|
+
const defaultStyles = exports.defaultStyles = {
|
|
8
8
|
border: 0,
|
|
9
9
|
borderRadius: '4px',
|
|
10
10
|
fontWeight: 'normal',
|
|
@@ -17,8 +17,7 @@ const defaultStyles = {
|
|
|
17
17
|
boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)'
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
const inactiveStyles = {
|
|
20
|
+
const inactiveStyles = exports.inactiveStyles = {
|
|
22
21
|
color: 'black',
|
|
23
22
|
borderColor: 'gray.100',
|
|
24
23
|
bg: 'gray.100',
|
|
@@ -29,8 +28,7 @@ const inactiveStyles = {
|
|
|
29
28
|
bg: 'gray.100'
|
|
30
29
|
}
|
|
31
30
|
};
|
|
32
|
-
exports.
|
|
33
|
-
const activeStyles = {
|
|
31
|
+
const activeStyles = exports.activeStyles = {
|
|
34
32
|
color: 'black',
|
|
35
33
|
fontWeight: 'semibold',
|
|
36
34
|
boxShadow: 'sm',
|
|
@@ -42,10 +40,8 @@ const activeStyles = {
|
|
|
42
40
|
bg: 'white'
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
|
-
exports.
|
|
46
|
-
const buttonGroupStyles = {
|
|
43
|
+
const buttonGroupStyles = exports.buttonGroupStyles = {
|
|
47
44
|
borderRadius: '4px',
|
|
48
45
|
backgroundColor: 'gray.100',
|
|
49
46
|
padding: 1
|
|
50
|
-
};
|
|
51
|
-
exports.buttonGroupStyles = buttonGroupStyles;
|
|
47
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -644,5 +644,5 @@ var _AutoSuggestSelect = require("./AutoSuggestSelect");
|
|
|
644
644
|
var _Badge = _interopRequireDefault(require("./Badge/Badge"));
|
|
645
645
|
var _ToggleButtonGroup = _interopRequireDefault(require("./ToggleButtonGroup/ToggleButtonGroup"));
|
|
646
646
|
var _react = require("@chakra-ui/react");
|
|
647
|
-
function _getRequireWildcardCache(
|
|
648
|
-
function _interopRequireWildcard(
|
|
647
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
648
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -4,19 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.notificationStatusStyles = exports.notificationSizeStyles = exports.notificationBaseStyle = exports.NOTIFICATION_STATUSES = void 0;
|
|
7
|
-
const NOTIFICATION_STATUSES = {
|
|
7
|
+
const NOTIFICATION_STATUSES = exports.NOTIFICATION_STATUSES = {
|
|
8
8
|
NEUTRAL: 'neutral',
|
|
9
9
|
ERROR: 'error',
|
|
10
10
|
WARNING: 'warning',
|
|
11
11
|
SUCCESS: 'success'
|
|
12
12
|
};
|
|
13
|
-
exports.NOTIFICATION_STATUSES = NOTIFICATION_STATUSES;
|
|
14
13
|
const NOTIFICATION_SIZES = {
|
|
15
14
|
SM: 'sm',
|
|
16
15
|
MD: 'md',
|
|
17
16
|
LG: 'lg'
|
|
18
17
|
};
|
|
19
|
-
const notificationBaseStyle = {
|
|
18
|
+
const notificationBaseStyle = exports.notificationBaseStyle = {
|
|
20
19
|
container: {
|
|
21
20
|
paddingY: 2,
|
|
22
21
|
borderRadius: 'base'
|
|
@@ -88,7 +87,6 @@ const notificationBaseStyle = {
|
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
};
|
|
91
|
-
exports.notificationBaseStyle = notificationBaseStyle;
|
|
92
90
|
const notificationStatusStyles = status => {
|
|
93
91
|
switch (status) {
|
|
94
92
|
case NOTIFICATION_STATUSES.NEUTRAL:
|
|
@@ -12,5 +12,4 @@ const shadows = {
|
|
|
12
12
|
// primary.400, 70% opacity
|
|
13
13
|
drawer: '-8px 0 16px 0 rgba(33,33,33,.1)'
|
|
14
14
|
};
|
|
15
|
-
var _default = (0, _merge.default)(_theme.default.shadows, shadows);
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
var _default = exports.default = (0, _merge.default)(_theme.default.shadows, shadows);
|
package/dist/theme/base/sizes.js
CHANGED
|
@@ -11,7 +11,6 @@ const container = {
|
|
|
11
11
|
// 720px
|
|
12
12
|
desktop: '72rem' // 1152px
|
|
13
13
|
};
|
|
14
|
-
|
|
15
14
|
const sizes = {
|
|
16
15
|
container,
|
|
17
16
|
0: '0',
|
|
@@ -84,5 +83,4 @@ const sizes = {
|
|
|
84
83
|
max: 'max-content',
|
|
85
84
|
min: 'min-content'
|
|
86
85
|
};
|
|
87
|
-
var _default = sizes;
|
|
88
|
-
exports.default = _default;
|
|
86
|
+
var _default = exports.default = sizes;
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.fonts = exports.fontWeights = exports.fontSizes = void 0;
|
|
7
|
-
const fonts = {
|
|
7
|
+
const fonts = exports.fonts = {
|
|
8
8
|
heading: `"Open Sans", sans-serif`,
|
|
9
9
|
body: `"Open Sans", sans-serif`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const fontSizes = {
|
|
11
|
+
const fontSizes = exports.fontSizes = {
|
|
13
12
|
'5xl': '3.5rem',
|
|
14
13
|
// 56px
|
|
15
14
|
'4xl': '3rem',
|
|
@@ -30,11 +29,9 @@ const fontSizes = {
|
|
|
30
29
|
// 14px
|
|
31
30
|
xs: '0.75rem' // 12px
|
|
32
31
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const fontWeights = {
|
|
32
|
+
const fontWeights = exports.fontWeights = {
|
|
35
33
|
light: 300,
|
|
36
34
|
normal: 400,
|
|
37
35
|
semibold: 600,
|
|
38
36
|
bold: 700
|
|
39
|
-
};
|
|
40
|
-
exports.fontWeights = fontWeights;
|
|
37
|
+
};
|
package/dist/theme/global.js
CHANGED
|
@@ -22,8 +22,7 @@ const global = {
|
|
|
22
22
|
display: 'inline-block'
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var _default = global;
|
|
26
|
-
exports.default = _default;
|
|
25
|
+
var _default = exports.default = global;
|
|
27
26
|
const Fonts = () => /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
28
27
|
styles: `
|
|
29
28
|
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
|
package/dist/theme/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var base = _interopRequireWildcard(require("./base"));
|
|
|
10
10
|
var _react = require("@chakra-ui/react");
|
|
11
11
|
var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
|
|
12
12
|
var components = _interopRequireWildcard(require("../components/styles"));
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
// import merge from 'lodash/merge';
|
|
16
16
|
|
|
17
17
|
// use this to extend the base theme of chakra, this adds on top of what is defined in baseConfig
|
|
@@ -33,5 +33,4 @@ const baseConfig = {
|
|
|
33
33
|
...base,
|
|
34
34
|
components
|
|
35
35
|
};
|
|
36
|
-
var _default = (0, _react.extendTheme)(extendedTheme, baseConfig);
|
|
37
|
-
exports.default = _default;
|
|
36
|
+
var _default = exports.default = (0, _react.extendTheme)(extendedTheme, baseConfig);
|
package/dist/utils/Spaces.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spothero/ui",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.4.0-beta.1",
|
|
4
4
|
"description": "SpotHero's React component UI library.",
|
|
5
5
|
"main": "./dist/components/index.js",
|
|
6
6
|
"exports": "./dist/components/index.js",
|
|
@@ -8,6 +8,23 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"babel": {
|
|
12
|
+
"presets": [
|
|
13
|
+
"@spothero/spothero"
|
|
14
|
+
],
|
|
15
|
+
"plugins": [
|
|
16
|
+
[
|
|
17
|
+
"module-resolver",
|
|
18
|
+
{
|
|
19
|
+
"alias": {
|
|
20
|
+
"components": "./src/components",
|
|
21
|
+
"theme": "./src/theme",
|
|
22
|
+
"utils": "./src/utils"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
]
|
|
27
|
+
},
|
|
11
28
|
"browserslist": [
|
|
12
29
|
"extends @spothero/browserslist-config"
|
|
13
30
|
],
|
|
@@ -37,8 +54,8 @@
|
|
|
37
54
|
]
|
|
38
55
|
},
|
|
39
56
|
"devDependencies": {
|
|
40
|
-
"@babel/cli": "7.
|
|
41
|
-
"@babel/core": "7.
|
|
57
|
+
"@babel/cli": "7.23.9",
|
|
58
|
+
"@babel/core": "7.23.9",
|
|
42
59
|
"@babel/runtime-corejs3": "7.14.7",
|
|
43
60
|
"@storybook/addon-actions": "6.5.16",
|
|
44
61
|
"@storybook/addon-essentials": "6.5.16",
|
|
@@ -66,7 +83,6 @@
|
|
|
66
83
|
"moment-timezone": "0.5.40",
|
|
67
84
|
"msw": "0.27.0",
|
|
68
85
|
"prop-types": "15.7.2",
|
|
69
|
-
"push-dir": "0.4.1",
|
|
70
86
|
"react": "18.2.0",
|
|
71
87
|
"react-dom": "18.2.0",
|
|
72
88
|
"react-hot-loader": "4.12.21",
|
|
@@ -78,11 +94,11 @@
|
|
|
78
94
|
"webpack-merge": "5.1.4",
|
|
79
95
|
"css-loader": "5.1.3",
|
|
80
96
|
"sass-loader": "10.2.1",
|
|
81
|
-
"@spothero/babel-preset-spothero": "5.0.
|
|
97
|
+
"@spothero/babel-preset-spothero": "5.1.0-beta.1",
|
|
82
98
|
"@spothero/browserslist-config": "4.0.0",
|
|
83
99
|
"@spothero/core": "7.0.0",
|
|
84
|
-
"@spothero/eslint-config": "6.0.
|
|
85
|
-
"@spothero/icons": "8.0
|
|
100
|
+
"@spothero/eslint-config": "6.1.0-beta.1",
|
|
101
|
+
"@spothero/icons": "8.1.0-beta.1",
|
|
86
102
|
"@spothero/npm-publisher": "7.0.0",
|
|
87
103
|
"@spothero/prettier-config": "4.0.0",
|
|
88
104
|
"@spothero/stylelint-config": "6.0.0"
|
|
@@ -101,7 +117,7 @@
|
|
|
101
117
|
"regenerator-runtime": "0.13.7",
|
|
102
118
|
"ssr-window": "1.0.1",
|
|
103
119
|
"transitionEnd": "1.0.2",
|
|
104
|
-
"@spothero/utils": "14.0.
|
|
120
|
+
"@spothero/utils": "14.1.0-beta.1"
|
|
105
121
|
},
|
|
106
122
|
"peerDependencies": {
|
|
107
123
|
"classnames": "^2.2.6",
|
|
@@ -122,8 +138,8 @@
|
|
|
122
138
|
"test:unit:watch": "DEBUG_PRINT_LIMIT=-1 pnpm run test:template -- --watch",
|
|
123
139
|
"build:v2": "BABEL_ENV=production babel src -d dist",
|
|
124
140
|
"build": "pnpm run clean && pnpm run build:v2",
|
|
125
|
-
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -o ./docs/v2",
|
|
126
141
|
"release": "npm-release",
|
|
127
|
-
"
|
|
142
|
+
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -o ./docs/v2",
|
|
143
|
+
"publish-storybook": "pnpm run build:storybook"
|
|
128
144
|
}
|
|
129
145
|
}
|