@spothero/ui 15.3.1-beta.0 → 15.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/backlog/v1/components/Table/Table.js +2 -2
- package/package.json +1 -1
- package/styles/v1/components/Table/Table.jsx +2 -2
- package/styles/v2/components/ThemeProvider/ThemeProvider.jsx +1 -1
- package/styles/v2/theme/global.js +0 -4
- package/v1/index.js +1 -1
- package/v1/index.js.map +1 -1
- package/v2/assets-manifest.json +0 -4
- package/v2/index.js +1 -1
- package/v2/index.js.map +1 -1
- package/v2/fonts/OpenSans-Bold.ttf +0 -0
- package/v2/fonts/OpenSans-Light.ttf +0 -0
- package/v2/fonts/OpenSans-Regular.ttf +0 -0
- package/v2/fonts/OpenSans-SemiBold.ttf +0 -0
|
@@ -51,7 +51,7 @@ var _map2 = _interopRequireDefault(require("lodash/map"));
|
|
|
51
51
|
|
|
52
52
|
var _some = _interopRequireDefault(require("lodash/some"));
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _orderBy = _interopRequireDefault(require("lodash/orderBy"));
|
|
55
55
|
|
|
56
56
|
var _react = _interopRequireWildcard(require("react"));
|
|
57
57
|
|
|
@@ -169,7 +169,7 @@ var Table = /*#__PURE__*/function (_Component) {
|
|
|
169
169
|
|
|
170
170
|
if (sorting) {
|
|
171
171
|
var sort = (0, _isFunction.default)(sorting) ? [sorting] : (0, _toConsumableArray2.default)(sorting);
|
|
172
|
-
sortedData = (0,
|
|
172
|
+
sortedData = (0, _orderBy.default)(data, sort, sortOrder);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
return /*#__PURE__*/_react.default.createElement("tbody", {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import isNumber from 'lodash/isNumber';
|
|
|
4
4
|
import isObject from 'lodash/isObject';
|
|
5
5
|
import map from 'lodash/map';
|
|
6
6
|
import some from 'lodash/some';
|
|
7
|
-
import
|
|
7
|
+
import orderBy from 'lodash/orderBy'
|
|
8
8
|
import React, {Component} from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import classNames from 'classnames';
|
|
@@ -248,7 +248,7 @@ export default class Table extends Component {
|
|
|
248
248
|
if (sorting) {
|
|
249
249
|
const sort = isFunction(sorting) ? [sorting] : [...sorting];
|
|
250
250
|
|
|
251
|
-
sortedData =
|
|
251
|
+
sortedData = orderBy(data, sort, sortOrder);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
return (
|
|
@@ -9,7 +9,7 @@ import merge from 'lodash/merge';
|
|
|
9
9
|
const ThemeProvider = forwardRef(
|
|
10
10
|
({theme, useLegacyOverrides, children, ...props}, ref) => (
|
|
11
11
|
<ChakraProvider {...props} ref={ref} theme={merge(THEME, theme)}>
|
|
12
|
-
|
|
12
|
+
<Fonts />
|
|
13
13
|
<LegacyOverrides useLegacyOverrides={useLegacyOverrides} />
|
|
14
14
|
{children}
|
|
15
15
|
</ChakraProvider>
|
|
@@ -2,10 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import {Global} from '@emotion/react';
|
|
4
4
|
import {colors, fontSizes, fontWeights} from 'v2/theme/base';
|
|
5
|
-
import './fonts/OpenSans-Light.ttf';
|
|
6
|
-
import './fonts/OpenSans-Regular.ttf';
|
|
7
|
-
import './fonts/OpenSans-Bold.ttf';
|
|
8
|
-
import './fonts/OpenSans-SemiBold.ttf';
|
|
9
5
|
|
|
10
6
|
const global = {
|
|
11
7
|
'html, body': {
|