@spaced-out/ui-design-system 0.1.113 → 0.1.115
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 +20 -0
- package/lib/components/PageTitle/PageTitle.js +7 -3
- package/lib/components/PageTitle/PageTitle.js.flow +9 -5
- package/lib/components/ProgressDonut/ProgressDonut.module.css +4 -6
- package/lib/components/SideMenuLink/SideMenuLink.module.css +0 -3
- 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,26 @@
|
|
|
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.115](https://github.com/spaced-out/ui-design-system/compare/v0.1.114...v0.1.115) (2024-07-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
12
|
+
### [0.1.114](https://github.com/spaced-out/ui-design-system/compare/v0.1.113...v0.1.114) (2024-07-18)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* tooltip on back button in pageTitle ([#245](https://github.com/spaced-out/ui-design-system/issues/245)) ([2441a31](https://github.com/spaced-out/ui-design-system/commit/2441a310c247d013c5f49fc338e61e093e734984))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* focus-visible ([#224](https://github.com/spaced-out/ui-design-system/issues/224)) ([0da8db6](https://github.com/spaced-out/ui-design-system/commit/0da8db61a982192e304f60615d1e577f9705a695))
|
|
23
|
+
* text center issue ([#244](https://github.com/spaced-out/ui-design-system/issues/244)) ([7946f04](https://github.com/spaced-out/ui-design-system/commit/7946f043fdece4578118c5138fc7c3ab0efba57d))
|
|
24
|
+
|
|
5
25
|
### [0.1.113](https://github.com/spaced-out/ui-design-system/compare/v0.1.112...v0.1.113) (2024-07-16)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -9,6 +9,7 @@ var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
|
9
9
|
var _Button = require("../Button");
|
|
10
10
|
var _Icon = require("../Icon");
|
|
11
11
|
var _Text = require("../Text");
|
|
12
|
+
var _Tooltip = require("../Tooltip");
|
|
12
13
|
var _PageTitleModule = _interopRequireDefault(require("./PageTitle.module.css"));
|
|
13
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -216,11 +217,14 @@ const PageTitle = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
216
217
|
className: (0, _classify.default)(_PageTitleModule.default.leftSlot, classNames?.leftSlot)
|
|
217
218
|
}, /*#__PURE__*/React.createElement("div", {
|
|
218
219
|
className: _PageTitleModule.default.headerWithBackBtn
|
|
219
|
-
}, showBackButton && /*#__PURE__*/React.createElement(
|
|
220
|
+
}, showBackButton && /*#__PURE__*/React.createElement(_Tooltip.Tooltip, {
|
|
221
|
+
title: "Navigate Back"
|
|
222
|
+
}, /*#__PURE__*/React.createElement(_Button.Button, {
|
|
220
223
|
onClick: handleBack,
|
|
221
224
|
type: "tertiary",
|
|
222
|
-
iconLeftName: "chevron-left"
|
|
223
|
-
|
|
225
|
+
iconLeftName: "chevron-left",
|
|
226
|
+
ariaLabel: "Navigate Back Button"
|
|
227
|
+
})), pageNameKey && PAGE_NAME_LIST[pageNameKey] ? /*#__PURE__*/React.createElement(PageName, null, /*#__PURE__*/React.createElement(_Text.TitleMedium, null, PAGE_NAME_LIST[pageNameKey].title, " "), /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
224
228
|
type: PAGE_NAME_LIST[pageNameKey].iconType,
|
|
225
229
|
name: PAGE_NAME_LIST[pageNameKey].iconName,
|
|
226
230
|
size: "medium",
|
|
@@ -6,6 +6,7 @@ import classify from '../../utils/classify';
|
|
|
6
6
|
import {Button} from '../Button';
|
|
7
7
|
import {Icon} from '../Icon';
|
|
8
8
|
import {TEXT_COLORS, TitleMedium} from '../Text';
|
|
9
|
+
import {Tooltip} from '../Tooltip';
|
|
9
10
|
|
|
10
11
|
import css from './PageTitle.module.css';
|
|
11
12
|
|
|
@@ -238,11 +239,14 @@ export const PageTitle: React$AbstractComponent<
|
|
|
238
239
|
<div className={classify(css.leftSlot, classNames?.leftSlot)}>
|
|
239
240
|
<div className={css.headerWithBackBtn}>
|
|
240
241
|
{showBackButton && (
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
<Tooltip title="Navigate Back">
|
|
243
|
+
<Button
|
|
244
|
+
onClick={handleBack}
|
|
245
|
+
type="tertiary"
|
|
246
|
+
iconLeftName="chevron-left"
|
|
247
|
+
ariaLabel="Navigate Back Button"
|
|
248
|
+
/>
|
|
249
|
+
</Tooltip>
|
|
246
250
|
)}
|
|
247
251
|
{pageNameKey && PAGE_NAME_LIST[pageNameKey] ? (
|
|
248
252
|
<PageName>
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
.donutChart {
|
|
16
16
|
position: relative;
|
|
17
|
-
display:
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
20
21
|
background-color: colorBackgroundPrimary;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -39,7 +40,4 @@
|
|
|
39
40
|
|
|
40
41
|
.donutChartPercentage {
|
|
41
42
|
position: absolute;
|
|
42
|
-
top: spaceHalfFluid;
|
|
43
|
-
left: spaceHalfFluid;
|
|
44
|
-
transform: translate(spaceNegHalfFluid, spaceNegHalfFluid);
|
|
45
43
|
}
|
|
@@ -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: {
|