@decisiv/ui-components 2.0.1-alpha.220 → 2.0.1-alpha.221
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/lib/components/Badge/styles.js +2 -1
- package/lib/components/Badge/types.d.ts +1 -0
- package/lib/components/Badge/types.d.ts.map +1 -1
- package/lib/components/Badge/types.js +2 -1
- package/lib/components/LeftNav/Item/NavExpandedItem/index.js +7 -2
- package/lib/components/LeftNav/index.test.js +35 -19
- package/lib/components/LeftNav/schema.d.ts.map +1 -1
- package/lib/components/LeftNav/schema.js +3 -1
- package/lib/components/LeftNav/types.d.ts +1 -0
- package/lib/components/LeftNav/types.d.ts.map +1 -1
- package/lib/components/Link/DisabledLink.d.ts +1 -1
- package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts +2 -1
- package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -38,7 +38,8 @@ var PALETTE_MAPPER = {
|
|
|
38
38
|
var colorModifiers = function colorModifiers(props) {
|
|
39
39
|
var _props$palette = props.palette,
|
|
40
40
|
palette = _props$palette === void 0 ? 'bright' : _props$palette,
|
|
41
|
-
color = props.color
|
|
41
|
+
_props$color = props.color,
|
|
42
|
+
color = _props$color === void 0 ? 'information' : _props$color;
|
|
42
43
|
|
|
43
44
|
if (color && color in _commonUIColors.commonUIColors) {
|
|
44
45
|
var baseColor = _commonUIColors.commonUIThreeShadeColors[color];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EACL,iBAAiB,EAElB,MAAM,4BAA4B,CAAC;AAIpC,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO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AS,EACnB,aAAa,EAAE,OAAO,GACrB,KAAK,GAAG,IAAI,CAqBd;AAED,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
|
|
@@ -37,6 +37,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
37
37
|
|
|
38
38
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
39
39
|
|
|
40
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
+
|
|
40
42
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
43
|
|
|
42
44
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -52,7 +54,8 @@ function MenuItem(props) {
|
|
|
52
54
|
toggleExpanded = _useMenuItem.toggleExpanded;
|
|
53
55
|
|
|
54
56
|
var disabled = item.disabled,
|
|
55
|
-
text = item.text
|
|
57
|
+
text = item.text,
|
|
58
|
+
target = item.target;
|
|
56
59
|
|
|
57
60
|
var _useConfig = (0, _ConfigProvider.useConfig)(),
|
|
58
61
|
LinkComponent = _useConfig.linkRenderer;
|
|
@@ -63,7 +66,9 @@ function MenuItem(props) {
|
|
|
63
66
|
_ = _ref.navVariant,
|
|
64
67
|
linkProps = _objectWithoutProperties(_ref, ["active", "navVariant"]);
|
|
65
68
|
|
|
66
|
-
return _react.default.createElement(LinkComponent,
|
|
69
|
+
return _react.default.createElement(LinkComponent, _extends({
|
|
70
|
+
target: target
|
|
71
|
+
}, linkProps));
|
|
67
72
|
}).withConfig({
|
|
68
73
|
displayName: "NavExpandedItem",
|
|
69
74
|
componentId: "ep2orz-0"
|
|
@@ -96,13 +96,29 @@ describe('LeftNav', function () {
|
|
|
96
96
|
|
|
97
97
|
expect(container).toMatchSnapshot();
|
|
98
98
|
});
|
|
99
|
+
it('has the expected target attribute', function () {
|
|
100
|
+
var props = _objectSpread({}, defaultProps, {
|
|
101
|
+
items: [{
|
|
102
|
+
icon: _iconix.default.Home,
|
|
103
|
+
text: 'Home',
|
|
104
|
+
path: '/',
|
|
105
|
+
target: '_blank'
|
|
106
|
+
}]
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
var _render2 = render(_react2.default.createElement(_.default, props)),
|
|
110
|
+
getByText = _render2.getByText;
|
|
111
|
+
|
|
112
|
+
var anchor = getByText('Home').closest('a');
|
|
113
|
+
expect(anchor).toHaveAttribute('target', '_blank');
|
|
114
|
+
});
|
|
99
115
|
describe('opening a sub menu', function () {
|
|
100
116
|
describe('where the top menu item has NO link', function () {
|
|
101
117
|
test('clicking the label toggles the sub menu', function () {
|
|
102
|
-
var
|
|
103
|
-
container =
|
|
104
|
-
getByText =
|
|
105
|
-
queryByText =
|
|
118
|
+
var _render3 = render(_react2.default.createElement(_.default, defaultProps)),
|
|
119
|
+
container = _render3.container,
|
|
120
|
+
getByText = _render3.getByText,
|
|
121
|
+
queryByText = _render3.queryByText;
|
|
106
122
|
|
|
107
123
|
var nonLinkWithSubItems = items[2];
|
|
108
124
|
expect(queryByText(nonLinkWithSubItems.items[0].text)).toBe(null);
|
|
@@ -115,9 +131,9 @@ describe('LeftNav', function () {
|
|
|
115
131
|
});
|
|
116
132
|
describe('where the top menu item has a link', function () {
|
|
117
133
|
test('clicking the label changes route but does not expand the sub menu', function () {
|
|
118
|
-
var
|
|
119
|
-
getByText =
|
|
120
|
-
queryByText =
|
|
134
|
+
var _render4 = render(_react2.default.createElement(_.default, defaultProps)),
|
|
135
|
+
getByText = _render4.getByText,
|
|
136
|
+
queryByText = _render4.queryByText;
|
|
121
137
|
|
|
122
138
|
var linkWithSubItems = items[3];
|
|
123
139
|
expect(queryByText(linkWithSubItems.items[0].text)).toBe(null);
|
|
@@ -127,10 +143,10 @@ describe('LeftNav', function () {
|
|
|
127
143
|
expect(queryByText(linkWithSubItems.items[0].text)).toBe(null);
|
|
128
144
|
});
|
|
129
145
|
test('clicking expander button toggles the sub menu', function () {
|
|
130
|
-
var
|
|
131
|
-
container =
|
|
132
|
-
queryByText =
|
|
133
|
-
getByRole =
|
|
146
|
+
var _render5 = render(_react2.default.createElement(_.default, defaultProps)),
|
|
147
|
+
container = _render5.container,
|
|
148
|
+
queryByText = _render5.queryByText,
|
|
149
|
+
getByRole = _render5.getByRole;
|
|
134
150
|
|
|
135
151
|
var linkWithSubItems = items[3];
|
|
136
152
|
var itemLink = queryByText(linkWithSubItems.text);
|
|
@@ -149,22 +165,22 @@ describe('LeftNav', function () {
|
|
|
149
165
|
(0, _setupTests.mockMatchMedia)(_useNav.MEDIA_QUERIES[1]);
|
|
150
166
|
});
|
|
151
167
|
it('renders as expected', function () {
|
|
152
|
-
var
|
|
153
|
-
container =
|
|
168
|
+
var _render6 = render(_react2.default.createElement(_.default, defaultProps)),
|
|
169
|
+
container = _render6.container;
|
|
154
170
|
|
|
155
171
|
expect(container).toMatchSnapshot();
|
|
156
172
|
});
|
|
157
173
|
describe('when the top menu item has sub items', function () {
|
|
158
174
|
test('focusing on the top menu item shows the sub items', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
159
|
-
var
|
|
175
|
+
var _render7, queryByText, linkWithSubItems, itemLink;
|
|
160
176
|
|
|
161
177
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
162
178
|
while (1) {
|
|
163
179
|
switch (_context.prev = _context.next) {
|
|
164
180
|
case 0:
|
|
165
|
-
|
|
181
|
+
_render7 = render(_react2.default.createElement(_.default, _extends({}, defaultProps, {
|
|
166
182
|
navExpandedState: _useNav.NAV_EXPANDED_STATES.COLLAPSED_X
|
|
167
|
-
}))), queryByText =
|
|
183
|
+
}))), queryByText = _render7.queryByText;
|
|
168
184
|
linkWithSubItems = items[3];
|
|
169
185
|
itemLink = queryByText(linkWithSubItems.text);
|
|
170
186
|
expect(queryByText(linkWithSubItems.items[0].text)).not.toBeInTheDocument();
|
|
@@ -199,9 +215,9 @@ describe('LeftNav', function () {
|
|
|
199
215
|
});
|
|
200
216
|
describe('where the top menu item has a link', function () {
|
|
201
217
|
test('clicking the label changes route but does not expand the sub menu', function () {
|
|
202
|
-
var
|
|
203
|
-
getByText =
|
|
204
|
-
queryByText =
|
|
218
|
+
var _render8 = render(_react2.default.createElement(_.default, defaultProps)),
|
|
219
|
+
getByText = _render8.getByText,
|
|
220
|
+
queryByText = _render8.queryByText;
|
|
205
221
|
|
|
206
222
|
var linkWithSubItems = items[3];
|
|
207
223
|
expect(queryByText(linkWithSubItems.items[0].text)).toBe(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/LeftNav/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/LeftNav/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAuC,CAAC;AAmEpD,eAAe,MAAM,CAAC"}
|
|
@@ -23,12 +23,14 @@ schema.propTypes = {
|
|
|
23
23
|
text: _reactDesc.PropTypes.string.description('The label for the menu item.').isRequired,
|
|
24
24
|
path: _reactDesc.PropTypes.string.description('The path for an internal link. Can not be used with a `url` attribute.'),
|
|
25
25
|
url: _reactDesc.PropTypes.string.description('The path for an external link. Can not be used with a `path` attribute.'),
|
|
26
|
+
target: _reactDesc.PropTypes.string.description('Specifies where to open the linked document'),
|
|
26
27
|
items: _reactDesc.PropTypes.arrayOf(_reactDesc.PropTypes.shape({
|
|
27
28
|
active: _reactDesc.PropTypes.bool.description('Sets the menu item as active.'),
|
|
28
29
|
disabled: _reactDesc.PropTypes.bool.description('Disables the menu subitem.'),
|
|
29
30
|
text: _reactDesc.PropTypes.string.description('The label for the menu subitem.').isRequired,
|
|
30
31
|
path: _reactDesc.PropTypes.string.description('The path for an internal link. Can not be used with a `url` attribute.'),
|
|
31
|
-
url: _reactDesc.PropTypes.string.description('The path for an external link. Can not be used with a `path` attribute.')
|
|
32
|
+
url: _reactDesc.PropTypes.string.description('The path for an external link. Can not be used with a `path` attribute.'),
|
|
33
|
+
target: _reactDesc.PropTypes.string.description('Specifies where to open the linked document')
|
|
32
34
|
}).description('The definition for a subitem.')).description('An optional array of subitems.')
|
|
33
35
|
}).description('The definition for items.')).description('An array of menu item definitions.').defaultValue('[]')
|
|
34
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/LeftNav/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,UAAU,YAAY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B,2BAA2B,CAAC;AAChC,oBAAY,UAAU,GAAG,SAAS,EAAE,CAAC;AAErC,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC;CAChB;AAED,oBAAY,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;IAC3D,gBAAgB,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;IACpD,wBAAwB,CAAC,EAAE,CACzB,gBAAgB,EAAE,MAAM,OAAO,mBAAmB,KAC/C,IAAI,CAAC;CACX"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkRendererProps } from '../../providers/ConfigProvider';
|
|
3
|
-
declare const _default: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<LinkRendererProps, "children" | "to"> & React.RefAttributes<HTMLAnchorElement>>, any, {
|
|
3
|
+
declare const _default: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<LinkRendererProps, "children" | "target" | "to"> & React.RefAttributes<HTMLAnchorElement>>, any, {
|
|
4
4
|
size?: "small" | "medium" | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export default _default;
|
|
@@ -4,7 +4,8 @@ export interface LinkRendererProps {
|
|
|
4
4
|
ref?: Ref<LinkRendererRef>;
|
|
5
5
|
to: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
+
target?: HTMLAnchorElement['target'];
|
|
7
8
|
}
|
|
8
|
-
declare const linkRendererWithRef: React.ForwardRefExoticComponent<Pick<LinkRendererProps, "children" | "to"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
declare const linkRendererWithRef: React.ForwardRefExoticComponent<Pick<LinkRendererProps, "children" | "target" | "to"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
10
|
export default linkRendererWithRef;
|
|
10
11
|
//# sourceMappingURL=linkRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkRenderer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/linkRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAE1D,oBAAY,eAAe,GAAG,iBAAiB,CAAC;AAWhD,MAAM,WAAW,iBAAiB;IAEhC,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"linkRenderer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/linkRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAE1D,oBAAY,eAAe,GAAG,iBAAiB,CAAC;AAWhD,MAAM,WAAW,iBAAiB;IAEhC,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;CACtC;AAoBD,QAAA,MAAM,mBAAmB,iIAA2B,CAAC;AAErD,eAAe,mBAAmB,CAAC"}
|