@spaced-out/ui-design-system 0.1.113 → 0.1.114
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
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.114](https://github.com/spaced-out/ui-design-system/compare/v0.1.113...v0.1.114) (2024-07-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* focus-visible ([#224](https://github.com/spaced-out/ui-design-system/issues/224)) ([0da8db6](https://github.com/spaced-out/ui-design-system/commit/0da8db61a982192e304f60615d1e577f9705a695))
|
|
16
|
+
* 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))
|
|
17
|
+
|
|
5
18
|
### [0.1.113](https://github.com/spaced-out/ui-design-system/compare/v0.1.112...v0.1.113) (2024-07-16)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -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
|
}
|