@spaced-out/ui-design-system 0.1.114 → 0.1.116
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 +14 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.module.css +9 -1
- package/lib/components/Input/Input.js +5 -3
- package/lib/components/Input/Input.js.flow +9 -11
- package/lib/utils/charts/columnChart.js +3 -1
- package/lib/utils/charts/columnChart.js.flow +2 -0
- package/lib/utils/charts/lineChart.js +3 -1
- package/lib/utils/charts/lineChart.js.flow +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.116](https://github.com/spaced-out/ui-design-system/compare/v0.1.115...v0.1.116) (2024-07-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* added height for breadcrumbs ([#247](https://github.com/spaced-out/ui-design-system/issues/247)) ([5367aca](https://github.com/spaced-out/ui-design-system/commit/5367acaaba8e43a40f4894c2820aa56ceb851487))
|
|
11
|
+
|
|
12
|
+
### [0.1.115](https://github.com/spaced-out/ui-design-system/compare/v0.1.114...v0.1.115) (2024-07-18)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* xAxis color borderPrimary in column and line chart ([#246](https://github.com/spaced-out/ui-design-system/issues/246)) ([b21dd11](https://github.com/spaced-out/ui-design-system/commit/b21dd113a9e6408d87f60afef2a680c2ce9072de))
|
|
18
|
+
|
|
5
19
|
### [0.1.114](https://github.com/spaced-out/ui-design-system/compare/v0.1.113...v0.1.114) (2024-07-18)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
@value (
|
|
2
|
-
|
|
2
|
+
spaceNone,
|
|
3
|
+
spaceSmall,
|
|
4
|
+
spaceMedium
|
|
3
5
|
) from '../../styles/variables/_space.css';
|
|
4
6
|
|
|
7
|
+
@value (
|
|
8
|
+
size28
|
|
9
|
+
) from '../../styles/variables/_size.css';
|
|
10
|
+
|
|
5
11
|
.wrapper {
|
|
6
12
|
display: flex;
|
|
7
13
|
align-items: center;
|
|
8
14
|
flex-wrap: wrap;
|
|
15
|
+
padding: calc(spaceMedium / 4) spaceNone;
|
|
16
|
+
min-height: size28;
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
.separator {
|
|
@@ -137,9 +137,11 @@ const Input_ = (props, ref) => {
|
|
|
137
137
|
className: classNames?.iconRight
|
|
138
138
|
})), (Boolean(helperText) || error) && /*#__PURE__*/React.createElement("div", {
|
|
139
139
|
className: _InputModule.default.info
|
|
140
|
-
}, /*#__PURE__*/React.createElement(_Text.BodySmall, {
|
|
141
|
-
color:
|
|
142
|
-
},
|
|
140
|
+
}, error && errorText ? /*#__PURE__*/React.createElement(_Text.BodySmall, {
|
|
141
|
+
color: "danger"
|
|
142
|
+
}, errorText) : typeof helperText === 'string' ? /*#__PURE__*/React.createElement(_Text.BodySmall, {
|
|
143
|
+
color: disabled ? 'disabled' : 'secondary'
|
|
144
|
+
}, helperText) : helperText));
|
|
143
145
|
};
|
|
144
146
|
const RightInputIcon = _ref => {
|
|
145
147
|
let {
|
|
@@ -217,17 +217,15 @@ const Input_ = (props: InputProps, ref): React.Node => {
|
|
|
217
217
|
</div>
|
|
218
218
|
{(Boolean(helperText) || error) && (
|
|
219
219
|
<div className={css.info}>
|
|
220
|
-
|
|
221
|
-
color={
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
{error && errorText ? errorText : helperText ?? ''}
|
|
230
|
-
</BodySmall>
|
|
220
|
+
{error && errorText ? (
|
|
221
|
+
<BodySmall color="danger">{errorText}</BodySmall>
|
|
222
|
+
) : typeof helperText === 'string' ? (
|
|
223
|
+
<BodySmall color={disabled ? 'disabled' : 'secondary'}>
|
|
224
|
+
{helperText}
|
|
225
|
+
</BodySmall>
|
|
226
|
+
) : (
|
|
227
|
+
helperText
|
|
228
|
+
)}
|
|
231
229
|
</div>
|
|
232
230
|
)}
|
|
233
231
|
</div>
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getColumnChartOptions = exports.columnPlotWidth = void 0;
|
|
7
|
+
var _color = require("../../styles/variables/_color.js");
|
|
7
8
|
var _charts = require("./charts");
|
|
8
9
|
var _helpers = require("./helpers");
|
|
9
10
|
|
|
@@ -31,7 +32,8 @@ const getColumnChartOptions = () => ({
|
|
|
31
32
|
title: {
|
|
32
33
|
margin: 12,
|
|
33
34
|
style: _helpers.xAxisTitleStyle
|
|
34
|
-
}
|
|
35
|
+
},
|
|
36
|
+
lineColor: _color.colorBorderPrimary
|
|
35
37
|
},
|
|
36
38
|
yAxis: {
|
|
37
39
|
labels: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @flow strict
|
|
2
2
|
|
|
3
|
+
import {colorBorderPrimary} from '../../styles/variables/_color.js';
|
|
3
4
|
import type {ChartOptions} from '../../types/charts';
|
|
4
5
|
|
|
5
6
|
import {commonChartOptions} from './charts';
|
|
@@ -37,6 +38,7 @@ export const getColumnChartOptions = (): ChartOptions => ({
|
|
|
37
38
|
margin: 12,
|
|
38
39
|
style: xAxisTitleStyle,
|
|
39
40
|
},
|
|
41
|
+
lineColor: colorBorderPrimary,
|
|
40
42
|
},
|
|
41
43
|
yAxis: {
|
|
42
44
|
labels: {
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLineChartOptions = void 0;
|
|
7
|
+
var _color = require("../../styles/variables/_color.js");
|
|
7
8
|
var _charts = require("./charts");
|
|
8
9
|
var _helpers = require("./helpers");
|
|
9
10
|
var _typography = require("./typography");
|
|
@@ -31,7 +32,8 @@ const getLineChartOptions = () => ({
|
|
|
31
32
|
title: {
|
|
32
33
|
margin: 12,
|
|
33
34
|
style: _helpers.xAxisTitleStyle
|
|
34
|
-
}
|
|
35
|
+
},
|
|
36
|
+
lineColor: _color.colorBorderPrimary
|
|
35
37
|
},
|
|
36
38
|
yAxis: {
|
|
37
39
|
labels: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @flow strict
|
|
2
|
+
import {colorBorderPrimary} from '../../styles/variables/_color.js';
|
|
2
3
|
import type {ChartOptions} from '../../types/charts';
|
|
3
4
|
|
|
4
5
|
import {commonChartOptions} from './charts';
|
|
@@ -34,6 +35,7 @@ export const getLineChartOptions = (): ChartOptions => ({
|
|
|
34
35
|
margin: 12,
|
|
35
36
|
style: xAxisTitleStyle,
|
|
36
37
|
},
|
|
38
|
+
lineColor: colorBorderPrimary,
|
|
37
39
|
},
|
|
38
40
|
yAxis: {
|
|
39
41
|
labels: {
|