@pingux/astro 2.150.0-alpha.2 → 2.151.0-alpha.3
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/cjs/components/Avatar/Avatar.js +2 -1
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +1 -11
- package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.js +1 -1
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +18 -25
- package/lib/cjs/components/PanelHeader/PanelHeader.js +6 -4
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +5 -5
- package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +2 -1
- package/lib/cjs/components/PanelHeader/stories/OnyxDarkPanelHeader.chromatic.stories.js +22 -0
- package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeader.chromatic.stories.js +22 -0
- package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeaderComponent.js +89 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +8 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +8 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +1 -1
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +15 -13
- package/lib/cjs/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +0 -8
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +0 -8
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +5 -3
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +5 -3
- package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/switch.js +2 -2
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.js +8 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +5 -11
- package/lib/components/Avatar/Avatar.js +2 -1
- package/lib/components/ListViewItem/ListViewItem.styles.js +1 -11
- package/lib/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
- package/lib/components/ListViewItem/controls/ListViewItemMenu.js +1 -1
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +18 -25
- package/lib/components/PanelHeader/PanelHeader.js +6 -4
- package/lib/components/PanelHeader/PanelHeader.stories.js +5 -5
- package/lib/components/PanelHeader/PanelHeader.styles.js +2 -1
- package/lib/components/PanelHeader/stories/OnyxDarkPanelHeader.chromatic.stories.js +12 -0
- package/lib/components/PanelHeader/stories/OnyxPanelHeader.chromatic.stories.js +12 -0
- package/lib/components/PanelHeader/stories/OnyxPanelHeaderComponent.js +80 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +8 -0
- package/lib/styles/themes/next-gen/customProperties/customSizes.js +1 -1
- package/lib/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/styles/themes/next-gen/variants/listview.js +0 -8
- package/lib/styles/themes/next-gen/variants/panelHeader.js +5 -3
- package/lib/styles/themes/next-gen/variants/switch.js +2 -2
- package/lib/styles/themes/next-gen/variants/text.js +8 -1
- package/package.json +1 -1
|
@@ -53,7 +53,8 @@ var Avatar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
53
53
|
sx: _objectSpread({
|
|
54
54
|
size: size,
|
|
55
55
|
width: _sizes["default"].avatar[size],
|
|
56
|
-
height: _sizes["default"].avatar[size]
|
|
56
|
+
height: _sizes["default"].avatar[size],
|
|
57
|
+
borderRadius: isSquare ? '0px' : '100%'
|
|
57
58
|
}, sx)
|
|
58
59
|
}, others));
|
|
59
60
|
}
|
|
@@ -155,14 +155,6 @@ var expandableRow = {
|
|
|
155
155
|
var expandIcon = {
|
|
156
156
|
color: 'gray-900'
|
|
157
157
|
};
|
|
158
|
-
var editIcon = {
|
|
159
|
-
width: '25px !important',
|
|
160
|
-
height: '25px !important'
|
|
161
|
-
};
|
|
162
|
-
var menuIcon = {
|
|
163
|
-
width: '25px !important',
|
|
164
|
-
height: '25px !important'
|
|
165
|
-
};
|
|
166
158
|
var _default = {
|
|
167
159
|
container: container,
|
|
168
160
|
controls: controls,
|
|
@@ -178,8 +170,6 @@ var _default = {
|
|
|
178
170
|
expandableItemBody: expandableItemBody,
|
|
179
171
|
expandableStyledListItem: expandableStyledListItem,
|
|
180
172
|
expandableRow: expandableRow,
|
|
181
|
-
expandIcon: expandIcon
|
|
182
|
-
editIcon: editIcon,
|
|
183
|
-
menuIcon: menuIcon
|
|
173
|
+
expandIcon: expandIcon
|
|
184
174
|
};
|
|
185
175
|
exports["default"] = _default;
|
|
@@ -28,7 +28,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
28
28
|
ml: "sm"
|
|
29
29
|
}, (0, _react2.jsx)(_.IconButton, props, (0, _react2.jsx)(_.Icon, {
|
|
30
30
|
icon: _CreateIcon["default"],
|
|
31
|
-
|
|
31
|
+
size: "md"
|
|
32
32
|
})));
|
|
33
33
|
});
|
|
34
34
|
ListViewItemEditButton.propTypes = _iconButtonAttributes.iconButtonPropTypes;
|
|
@@ -50,7 +50,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
50
50
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
51
51
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
52
52
|
var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
53
|
-
var _selectionManager$sta, _selectionManager$sta2, _selectionManager$sta3, _listBoxRef$
|
|
53
|
+
var _selectionManager$sta, _selectionManager$sta2, _selectionManager$sta3, _listBoxRef$current;
|
|
54
54
|
var defaultSelectedKeys = props.defaultSelectedKeys,
|
|
55
55
|
direction = props.direction,
|
|
56
56
|
_props$disabledKeys = props.disabledKeys,
|
|
@@ -99,14 +99,10 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
99
99
|
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
100
100
|
hasFocusWithin = _useState6[0],
|
|
101
101
|
setFocusWithin = _useState6[1];
|
|
102
|
-
var _useState7 = (0, _react.useState)(
|
|
102
|
+
var _useState7 = (0, _react.useState)(''),
|
|
103
103
|
_useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var _useState9 = (0, _react.useState)(''),
|
|
107
|
-
_useState10 = (0, _slicedToArray2["default"])(_useState9, 2),
|
|
108
|
-
activeDescendant = _useState10[0],
|
|
109
|
-
setActiveDescendant = _useState10[1];
|
|
104
|
+
activeDescendant = _useState8[0],
|
|
105
|
+
setActiveDescendant = _useState8[1];
|
|
110
106
|
var inputWrapperRef = (0, _react.useRef)();
|
|
111
107
|
var inputRef = (0, _react.useRef)();
|
|
112
108
|
var buttonRef = (0, _react.useRef)();
|
|
@@ -123,9 +119,6 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
123
119
|
inputValue: filterString
|
|
124
120
|
}),
|
|
125
121
|
isLoading = _useInputLoader.isLoading;
|
|
126
|
-
(0, _react.useEffect)(function () {
|
|
127
|
-
setInitialItems((0, _from["default"])(items));
|
|
128
|
-
}, []);
|
|
129
122
|
var toggleItems = function toggleItems(keys) {
|
|
130
123
|
if (onSelectionChange) onSelectionChange(keys);
|
|
131
124
|
};
|
|
@@ -204,10 +197,10 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
204
197
|
}, [isOpen, selectionManager.selectedKeys, updatePosition]);
|
|
205
198
|
|
|
206
199
|
// Measure the width of the input to inform the width of the menu (below).
|
|
207
|
-
var
|
|
208
|
-
|
|
209
|
-
menuWidth =
|
|
210
|
-
setMenuWidth =
|
|
200
|
+
var _useState9 = (0, _react.useState)(null),
|
|
201
|
+
_useState10 = (0, _slicedToArray2["default"])(_useState9, 2),
|
|
202
|
+
menuWidth = _useState10[0],
|
|
203
|
+
setMenuWidth = _useState10[1];
|
|
211
204
|
var onResize = (0, _react.useCallback)(function () {
|
|
212
205
|
/* istanbul ignore next */
|
|
213
206
|
if (inputWrapperRef.current) {
|
|
@@ -272,20 +265,20 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
272
265
|
if (onKeyDown) onKeyDown(e.nativeEvent);
|
|
273
266
|
};
|
|
274
267
|
var handleBlur = function handleBlur(e) {
|
|
275
|
-
var _inputWrapperRef$curr,
|
|
268
|
+
var _inputWrapperRef$curr, _popoverRef$current;
|
|
276
269
|
var relatedTarget = e.relatedTarget || document.activeElement;
|
|
277
|
-
if ((_inputWrapperRef$curr = inputWrapperRef.current) !== null && _inputWrapperRef$curr !== void 0 && _inputWrapperRef$curr.contains(relatedTarget) || (
|
|
270
|
+
if ((_inputWrapperRef$curr = inputWrapperRef.current) !== null && _inputWrapperRef$curr !== void 0 && _inputWrapperRef$curr.contains(relatedTarget) || (_popoverRef$current = popoverRef.current) !== null && _popoverRef$current !== void 0 && _popoverRef$current.contains(relatedTarget) || buttonRef.current === relatedTarget) {
|
|
278
271
|
return;
|
|
279
272
|
}
|
|
280
273
|
setFilterString('');
|
|
281
274
|
setIsOpen(false);
|
|
282
275
|
};
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
selectionState =
|
|
286
|
-
setSelectionState =
|
|
276
|
+
var _useState11 = (0, _react.useState)('Select All'),
|
|
277
|
+
_useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
|
|
278
|
+
selectionState = _useState12[0],
|
|
279
|
+
setSelectionState = _useState12[1];
|
|
287
280
|
var arrayItems = (0, _from["default"])(items);
|
|
288
|
-
var itemCount = (0, _reduce["default"])(
|
|
281
|
+
var itemCount = (0, _reduce["default"])(arrayItems).call(arrayItems, function (count, obj) {
|
|
289
282
|
return count + (obj.children ? obj.children.length : 1);
|
|
290
283
|
}, 0);
|
|
291
284
|
var selectedKeysSize = selectionManager.selectedKeys.size;
|
|
@@ -353,7 +346,7 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
353
346
|
var inputProps = _objectSpread(_objectSpread({}, customInputProps), {}, {
|
|
354
347
|
controlProps: {
|
|
355
348
|
'aria-activedescendant': activeDescendant,
|
|
356
|
-
'aria-controls': (_listBoxRef$
|
|
349
|
+
'aria-controls': (_listBoxRef$current = listBoxRef.current) === null || _listBoxRef$current === void 0 ? void 0 : _listBoxRef$current.id,
|
|
357
350
|
'aria-expanded': isOpen,
|
|
358
351
|
role: 'combobox',
|
|
359
352
|
ref: inputRef,
|
|
@@ -411,8 +404,8 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
411
404
|
value: setActiveDescendant
|
|
412
405
|
}, (0, _react2.jsx)(_.Box, (0, _reactAria.mergeProps)(containerProps, focusWithinProps), (0, _react2.jsx)(_.TextField, (0, _extends2["default"])({
|
|
413
406
|
onBlur: function onBlur(e) {
|
|
414
|
-
var _popoverRef$
|
|
415
|
-
var blurIntoPopover = (_popoverRef$
|
|
407
|
+
var _popoverRef$current2;
|
|
408
|
+
var blurIntoPopover = (_popoverRef$current2 = popoverRef.current) === null || _popoverRef$current2 === void 0 ? void 0 : _popoverRef$current2.contains(e.relatedTarget);
|
|
416
409
|
if (blurIntoPopover) {
|
|
417
410
|
return;
|
|
418
411
|
}
|
|
@@ -47,7 +47,7 @@ var PanelHeader = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
47
47
|
image = data.image,
|
|
48
48
|
subtext = data.subtext,
|
|
49
49
|
text = data.text,
|
|
50
|
-
|
|
50
|
+
avatarDefaultText = data.avatarDefaultText;
|
|
51
51
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
52
52
|
themeState = _useGetTheme.themeState;
|
|
53
53
|
var isOnyx = themeState.isOnyx;
|
|
@@ -63,10 +63,12 @@ var PanelHeader = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
63
63
|
}
|
|
64
64
|
}));
|
|
65
65
|
var renderAvatar = (0, _react2.jsx)(_index.Avatar, (0, _extends2["default"])({
|
|
66
|
+
color: "green",
|
|
66
67
|
src: image === null || image === void 0 ? void 0 : image.src,
|
|
68
|
+
isSquare: !!(image !== null && image !== void 0 && image.src),
|
|
67
69
|
size: "avatar.lg",
|
|
68
|
-
defaultText:
|
|
69
|
-
mr: "
|
|
70
|
+
defaultText: avatarDefaultText,
|
|
71
|
+
mr: "lg"
|
|
70
72
|
}, avatarProps));
|
|
71
73
|
var renderImage = !icon && image && (0, _react2.jsx)(_index.Box, {
|
|
72
74
|
variant: "panelHeader.iconWrapper"
|
|
@@ -100,7 +102,7 @@ var PanelHeader = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
100
102
|
var renderData = (0, _react2.jsx)(_index.Box, {
|
|
101
103
|
isRow: true,
|
|
102
104
|
variant: text || subtext ? 'panelHeader.data' : 'panelHeader.emptyData'
|
|
103
|
-
}, renderLeftContent(), (0, _react2.jsx)(_index.Box, headerWrapperPropsSpread, text && (0, _react2.jsx)(_index.Text, (0, _extends2["default"])({}, headerPropsSpread, {
|
|
105
|
+
}, renderLeftContent(), (text || subtext) && (0, _react2.jsx)(_index.Box, headerWrapperPropsSpread, text && (0, _react2.jsx)(_index.Text, (0, _extends2["default"])({}, headerPropsSpread, {
|
|
104
106
|
variant: "panelHeaderText"
|
|
105
107
|
}), text), subtext && (0, _react2.jsx)(_index.Text, {
|
|
106
108
|
variant: "panelHeaderSubtext"
|
|
@@ -37,7 +37,7 @@ var Default = function Default(_ref) {
|
|
|
37
37
|
data: {
|
|
38
38
|
icon: _AccountIcon["default"],
|
|
39
39
|
text: 'Fons Vernall',
|
|
40
|
-
|
|
40
|
+
avatarDefaultText: 'FV'
|
|
41
41
|
}
|
|
42
42
|
}));
|
|
43
43
|
};
|
|
@@ -55,7 +55,7 @@ var WithSubtext = function WithSubtext(_ref2) {
|
|
|
55
55
|
icon: _AccountIcon["default"],
|
|
56
56
|
subtext: 'rad_developer@pingidentity.com',
|
|
57
57
|
text: 'Fons Vernall',
|
|
58
|
-
|
|
58
|
+
avatarDefaultText: 'FV'
|
|
59
59
|
}
|
|
60
60
|
}));
|
|
61
61
|
};
|
|
@@ -73,7 +73,7 @@ var WithControls = function WithControls(_ref3) {
|
|
|
73
73
|
icon: _AccountIcon["default"],
|
|
74
74
|
text: 'Fons Vernall',
|
|
75
75
|
subtext: 'rad_developer@pingidentity.com',
|
|
76
|
-
|
|
76
|
+
avatarDefaultText: 'FV'
|
|
77
77
|
}
|
|
78
78
|
}), (0, _react2.jsx)(_index.PanelHeaderSwitchField, null), (0, _react2.jsx)(_index.PanelHeaderMenu, null, (0, _react2.jsx)(_index.Item, {
|
|
79
79
|
key: "enable"
|
|
@@ -97,7 +97,7 @@ var WithImage = function WithImage(args) {
|
|
|
97
97
|
src: _images.pingImg,
|
|
98
98
|
alt: 'Ping Identity Logo',
|
|
99
99
|
'aria-label': 'Ping Identity Logo',
|
|
100
|
-
|
|
100
|
+
avatarDefaultText: 'FV'
|
|
101
101
|
},
|
|
102
102
|
text: 'Fons Vernall'
|
|
103
103
|
}
|
|
@@ -158,7 +158,7 @@ var WithExtraLongText = function WithExtraLongText(_ref4) {
|
|
|
158
158
|
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref4), _ref4));
|
|
159
159
|
return (0, _react2.jsx)(_index.PanelHeader, (0, _extends2["default"])({}, args, {
|
|
160
160
|
data: {
|
|
161
|
-
|
|
161
|
+
avatarDefaultText: 'FV',
|
|
162
162
|
icon: _AccountIcon["default"],
|
|
163
163
|
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
164
164
|
subtext: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _ = require("../../..");
|
|
11
|
+
var _OnyxPanelHeaderComponent = _interopRequireDefault(require("./OnyxPanelHeaderComponent"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _default = {
|
|
14
|
+
title: 'Chromatic Only Onyx Dark Panel Header'
|
|
15
|
+
};
|
|
16
|
+
exports["default"] = _default;
|
|
17
|
+
var Default = function Default() {
|
|
18
|
+
return (0, _react2.jsx)(_.AstroProvider, {
|
|
19
|
+
theme: _.OnyxDarkTheme
|
|
20
|
+
}, (0, _react2.jsx)(_OnyxPanelHeaderComponent["default"], null));
|
|
21
|
+
};
|
|
22
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _ = require("../../..");
|
|
11
|
+
var _OnyxPanelHeaderComponent = _interopRequireDefault(require("./OnyxPanelHeaderComponent"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _default = {
|
|
14
|
+
title: 'Chromatic Only Onyx Panel Header'
|
|
15
|
+
};
|
|
16
|
+
exports["default"] = _default;
|
|
17
|
+
var Default = function Default() {
|
|
18
|
+
return (0, _react2.jsx)(_.AstroProvider, {
|
|
19
|
+
theme: _.OnyxTheme
|
|
20
|
+
}, (0, _react2.jsx)(_OnyxPanelHeaderComponent["default"], null));
|
|
21
|
+
};
|
|
22
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon"));
|
|
11
|
+
var _ChevronRightIcon = _interopRequireDefault(require("@pingux/mdi-react/ChevronRightIcon"));
|
|
12
|
+
var _ = require("../../..");
|
|
13
|
+
var _images = require("../../../utils/devUtils/constants/images");
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
var PanelHeaderComponent = function PanelHeaderComponent() {
|
|
16
|
+
var breadcrumbs = (0, _react2.jsx)(_.Box, {
|
|
17
|
+
width: "100%"
|
|
18
|
+
}, (0, _react2.jsx)(_.Breadcrumbs, {
|
|
19
|
+
icon: _ChevronRightIcon["default"]
|
|
20
|
+
}, (0, _react2.jsx)(_.Item, {
|
|
21
|
+
"aria-label": "Lorem Text",
|
|
22
|
+
href: "https://www.pingidentity.com",
|
|
23
|
+
key: "Item1Key"
|
|
24
|
+
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_.Item, {
|
|
25
|
+
"aria-label": "Lorem Ut",
|
|
26
|
+
key: "Item2Key"
|
|
27
|
+
}, "Ut enim ad minim veniam, quis nostrud exercitation ullamco, laboris nisi ut aliquip ex ea commodo consequat incididunt et dolore.")));
|
|
28
|
+
return (0, _react2.jsx)(_.Box, {
|
|
29
|
+
gap: "md"
|
|
30
|
+
}, (0, _react2.jsx)(_.PanelHeader, {
|
|
31
|
+
data: {
|
|
32
|
+
icon: _AccountIcon["default"],
|
|
33
|
+
text: 'Fons Vernall',
|
|
34
|
+
avatarDefaultText: 'FV'
|
|
35
|
+
}
|
|
36
|
+
}), (0, _react2.jsx)(_.PanelHeader, {
|
|
37
|
+
data: {
|
|
38
|
+
icon: _AccountIcon["default"],
|
|
39
|
+
subtext: 'rad_developer@pingidentity.com',
|
|
40
|
+
text: 'Fons Vernall',
|
|
41
|
+
avatarDefaultText: 'FV'
|
|
42
|
+
}
|
|
43
|
+
}), (0, _react2.jsx)(_.PanelHeader, {
|
|
44
|
+
data: {
|
|
45
|
+
icon: _AccountIcon["default"],
|
|
46
|
+
text: 'Fons Vernall',
|
|
47
|
+
subtext: 'rad_developer@pingidentity.com',
|
|
48
|
+
avatarDefaultText: 'FV'
|
|
49
|
+
}
|
|
50
|
+
}, (0, _react2.jsx)(_.PanelHeaderSwitchField, null), (0, _react2.jsx)(_.PanelHeaderMenu, null, (0, _react2.jsx)(_.Item, {
|
|
51
|
+
key: "enable"
|
|
52
|
+
}, "Enable user"), (0, _react2.jsx)(_.Item, {
|
|
53
|
+
key: "disable"
|
|
54
|
+
}, "Disable user"), (0, _react2.jsx)(_.Item, {
|
|
55
|
+
key: "delete"
|
|
56
|
+
}, "Delete user")), (0, _react2.jsx)(_.PanelHeaderCloseButton, null)), (0, _react2.jsx)(_.PanelHeader, {
|
|
57
|
+
data: {
|
|
58
|
+
image: {
|
|
59
|
+
src: _images.pingImg,
|
|
60
|
+
alt: 'Ping Identity Logo',
|
|
61
|
+
'aria-label': 'Ping Identity Logo',
|
|
62
|
+
avatarDefaultText: 'FV'
|
|
63
|
+
},
|
|
64
|
+
text: 'Fons Vernall'
|
|
65
|
+
}
|
|
66
|
+
}), (0, _react2.jsx)(_.PanelHeader, {
|
|
67
|
+
data: {
|
|
68
|
+
icon: _AccountIcon["default"]
|
|
69
|
+
},
|
|
70
|
+
slots: {
|
|
71
|
+
rightOfData: breadcrumbs
|
|
72
|
+
}
|
|
73
|
+
}, (0, _react2.jsx)(_.PanelHeaderCloseButton, null)), (0, _react2.jsx)(_.PanelHeader, {
|
|
74
|
+
data: {
|
|
75
|
+
avatarDefaultText: 'FV',
|
|
76
|
+
icon: _AccountIcon["default"],
|
|
77
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
78
|
+
subtext: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
|
|
79
|
+
}
|
|
80
|
+
}, (0, _react2.jsx)(_.PanelHeaderSwitchField, null), (0, _react2.jsx)(_.PanelHeaderMenu, null, (0, _react2.jsx)(_.Item, {
|
|
81
|
+
key: "enable"
|
|
82
|
+
}, "Enable user"), (0, _react2.jsx)(_.Item, {
|
|
83
|
+
key: "disable"
|
|
84
|
+
}, "Disable user"), (0, _react2.jsx)(_.Item, {
|
|
85
|
+
key: "delete"
|
|
86
|
+
}, "Delete user")), (0, _react2.jsx)(_.PanelHeaderCloseButton, null)));
|
|
87
|
+
};
|
|
88
|
+
var _default = PanelHeaderComponent;
|
|
89
|
+
exports["default"] = _default;
|
|
@@ -259,6 +259,14 @@ var _default = {
|
|
|
259
259
|
border: '1px solid border.separator',
|
|
260
260
|
boxShadow: 'none'
|
|
261
261
|
}
|
|
262
|
+
},
|
|
263
|
+
breadcrumb: {
|
|
264
|
+
link: {
|
|
265
|
+
color: 'blue-400',
|
|
266
|
+
'&.is-current': {
|
|
267
|
+
color: 'text.secondary'
|
|
268
|
+
}
|
|
269
|
+
}
|
|
262
270
|
}
|
|
263
271
|
};
|
|
264
272
|
exports["default"] = _default;
|
|
@@ -7,7 +7,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var copyButtonSize = 'sm';
|
|
9
9
|
var breadcrumbIconSize = 'sm';
|
|
10
|
-
var breadcrumbIconMargin = '
|
|
10
|
+
var breadcrumbIconMargin = 'md';
|
|
11
11
|
var accordionItemMarginLeft = 'md';
|
|
12
12
|
var pageHeaderTitleMargin = 'md';
|
|
13
13
|
var defaultLoaderSize = 32;
|
|
@@ -1777,7 +1777,7 @@ declare const _default: {
|
|
|
1777
1777
|
thumbContainer: {
|
|
1778
1778
|
bg: string;
|
|
1779
1779
|
border: string;
|
|
1780
|
-
|
|
1780
|
+
width: string;
|
|
1781
1781
|
height: number;
|
|
1782
1782
|
py: string;
|
|
1783
1783
|
px: string;
|
|
@@ -1888,6 +1888,8 @@ declare const _default: {
|
|
|
1888
1888
|
};
|
|
1889
1889
|
lineHeights: {
|
|
1890
1890
|
body: string;
|
|
1891
|
+
xs: string;
|
|
1892
|
+
sm: string;
|
|
1891
1893
|
md: string;
|
|
1892
1894
|
};
|
|
1893
1895
|
text: {
|
|
@@ -1901,9 +1903,10 @@ declare const _default: {
|
|
|
1901
1903
|
textOverflow: string;
|
|
1902
1904
|
overflow: string;
|
|
1903
1905
|
whiteSpace: string;
|
|
1906
|
+
color: string;
|
|
1907
|
+
lineHeight: string;
|
|
1904
1908
|
fontSize: string;
|
|
1905
1909
|
fontWeight: number;
|
|
1906
|
-
color: string;
|
|
1907
1910
|
fontFamily: string;
|
|
1908
1911
|
};
|
|
1909
1912
|
messagesText: {
|
|
@@ -1916,6 +1919,11 @@ declare const _default: {
|
|
|
1916
1919
|
};
|
|
1917
1920
|
};
|
|
1918
1921
|
};
|
|
1922
|
+
panelHeaderSubtext: {
|
|
1923
|
+
fontSize: string;
|
|
1924
|
+
lineHeight: string;
|
|
1925
|
+
color: string;
|
|
1926
|
+
};
|
|
1919
1927
|
H1: {
|
|
1920
1928
|
fontSize: string;
|
|
1921
1929
|
fontWeight: number;
|
|
@@ -4153,14 +4161,6 @@ declare const _default: {
|
|
|
4153
4161
|
border: string;
|
|
4154
4162
|
};
|
|
4155
4163
|
};
|
|
4156
|
-
editIcon: {
|
|
4157
|
-
width: string;
|
|
4158
|
-
height: string;
|
|
4159
|
-
};
|
|
4160
|
-
menuIcon: {
|
|
4161
|
-
width: string;
|
|
4162
|
-
height: string;
|
|
4163
|
-
};
|
|
4164
4164
|
};
|
|
4165
4165
|
lisViewItemChart: {
|
|
4166
4166
|
title: {
|
|
@@ -4504,12 +4504,14 @@ declare const _default: {
|
|
|
4504
4504
|
container: {
|
|
4505
4505
|
bg: string;
|
|
4506
4506
|
border: string;
|
|
4507
|
-
|
|
4508
|
-
|
|
4507
|
+
pt: string;
|
|
4508
|
+
px: string;
|
|
4509
|
+
pb: string;
|
|
4509
4510
|
};
|
|
4510
4511
|
controls: {
|
|
4512
|
+
gap: string;
|
|
4511
4513
|
alignSelf: string;
|
|
4512
|
-
|
|
4514
|
+
mr: string;
|
|
4513
4515
|
};
|
|
4514
4516
|
wrapper: {
|
|
4515
4517
|
mr: string;
|
|
@@ -92,14 +92,6 @@ export declare const listViewItem: {
|
|
|
92
92
|
border: string;
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
editIcon: {
|
|
96
|
-
width: string;
|
|
97
|
-
height: string;
|
|
98
|
-
};
|
|
99
|
-
menuIcon: {
|
|
100
|
-
width: string;
|
|
101
|
-
height: string;
|
|
102
|
-
};
|
|
103
95
|
};
|
|
104
96
|
export declare const listView: {
|
|
105
97
|
container: {
|
|
@@ -100,14 +100,6 @@ var listViewItem = {
|
|
|
100
100
|
'&.has-separator.is-last-row': {
|
|
101
101
|
border: 'none'
|
|
102
102
|
}
|
|
103
|
-
},
|
|
104
|
-
editIcon: {
|
|
105
|
-
width: '1.5rem !important',
|
|
106
|
-
height: '1.5rem !important'
|
|
107
|
-
},
|
|
108
|
-
menuIcon: {
|
|
109
|
-
width: '1.5rem !important',
|
|
110
|
-
height: '1.5rem !important'
|
|
111
103
|
}
|
|
112
104
|
};
|
|
113
105
|
exports.listViewItem = listViewItem;
|
|
@@ -2,12 +2,14 @@ declare const _default: {
|
|
|
2
2
|
container: {
|
|
3
3
|
bg: string;
|
|
4
4
|
border: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
pt: string;
|
|
6
|
+
px: string;
|
|
7
|
+
pb: string;
|
|
7
8
|
};
|
|
8
9
|
controls: {
|
|
10
|
+
gap: string;
|
|
9
11
|
alignSelf: string;
|
|
10
|
-
|
|
12
|
+
mr: string;
|
|
11
13
|
};
|
|
12
14
|
wrapper: {
|
|
13
15
|
mr: string;
|
|
@@ -8,12 +8,14 @@ exports["default"] = void 0;
|
|
|
8
8
|
var container = {
|
|
9
9
|
bg: 'backgroundBase',
|
|
10
10
|
border: 'none',
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
pt: 'lg',
|
|
12
|
+
px: 'lg',
|
|
13
|
+
pb: 'md'
|
|
13
14
|
};
|
|
14
15
|
var controls = {
|
|
16
|
+
gap: '12px',
|
|
15
17
|
alignSelf: 'start',
|
|
16
|
-
|
|
18
|
+
mr: '0'
|
|
17
19
|
};
|
|
18
20
|
var wrapper = {
|
|
19
21
|
mr: 'md'
|
|
@@ -9,7 +9,7 @@ var switchable = {
|
|
|
9
9
|
container: {
|
|
10
10
|
minWidth: '32px',
|
|
11
11
|
color: 'neutral.80',
|
|
12
|
-
bg: '
|
|
12
|
+
bg: 'background.base',
|
|
13
13
|
border: '1px solid',
|
|
14
14
|
borderColor: 'neutral.80',
|
|
15
15
|
borderRadius: 9999,
|
|
@@ -21,7 +21,7 @@ var switchable = {
|
|
|
21
21
|
thumbContainer: {
|
|
22
22
|
bg: 'transparent',
|
|
23
23
|
border: 'none',
|
|
24
|
-
|
|
24
|
+
width: '32px',
|
|
25
25
|
height: 16,
|
|
26
26
|
py: '3px',
|
|
27
27
|
px: '3px',
|
|
@@ -9,9 +9,10 @@ export declare const text: {
|
|
|
9
9
|
textOverflow: string;
|
|
10
10
|
overflow: string;
|
|
11
11
|
whiteSpace: string;
|
|
12
|
+
color: string;
|
|
13
|
+
lineHeight: string;
|
|
12
14
|
fontSize: string;
|
|
13
15
|
fontWeight: number;
|
|
14
|
-
color: string;
|
|
15
16
|
fontFamily: string;
|
|
16
17
|
};
|
|
17
18
|
messagesText: {
|
|
@@ -24,6 +25,11 @@ export declare const text: {
|
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
};
|
|
28
|
+
panelHeaderSubtext: {
|
|
29
|
+
fontSize: string;
|
|
30
|
+
lineHeight: string;
|
|
31
|
+
color: string;
|
|
32
|
+
};
|
|
27
33
|
H1: {
|
|
28
34
|
fontSize: string;
|
|
29
35
|
fontWeight: number;
|
|
@@ -183,7 +183,9 @@ var text = _objectSpread(_objectSpread({
|
|
|
183
183
|
panelHeaderText: _objectSpread(_objectSpread({}, hTags.h4), {}, {
|
|
184
184
|
textOverflow: 'ellipsis',
|
|
185
185
|
overflow: 'hidden',
|
|
186
|
-
whiteSpace: 'nowrap'
|
|
186
|
+
whiteSpace: 'nowrap',
|
|
187
|
+
color: 'font.base',
|
|
188
|
+
lineHeight: 'xs'
|
|
187
189
|
}),
|
|
188
190
|
messagesText: {
|
|
189
191
|
'&.is-success, &.is-warning, &.is-error, &.is-default': {
|
|
@@ -194,6 +196,11 @@ var text = _objectSpread(_objectSpread({
|
|
|
194
196
|
color: 'gray-700'
|
|
195
197
|
}
|
|
196
198
|
}
|
|
199
|
+
},
|
|
200
|
+
panelHeaderSubtext: {
|
|
201
|
+
fontSize: 'md',
|
|
202
|
+
lineHeight: 'body',
|
|
203
|
+
color: 'font.light'
|
|
197
204
|
}
|
|
198
205
|
});
|
|
199
206
|
exports.text = text;
|
|
@@ -658,14 +658,6 @@ declare const _default: {
|
|
|
658
658
|
border: string;
|
|
659
659
|
};
|
|
660
660
|
};
|
|
661
|
-
editIcon: {
|
|
662
|
-
width: string;
|
|
663
|
-
height: string;
|
|
664
|
-
};
|
|
665
|
-
menuIcon: {
|
|
666
|
-
width: string;
|
|
667
|
-
height: string;
|
|
668
|
-
};
|
|
669
661
|
};
|
|
670
662
|
lisViewItemChart: {
|
|
671
663
|
title: {
|
|
@@ -1009,12 +1001,14 @@ declare const _default: {
|
|
|
1009
1001
|
container: {
|
|
1010
1002
|
bg: string;
|
|
1011
1003
|
border: string;
|
|
1012
|
-
|
|
1013
|
-
|
|
1004
|
+
pt: string;
|
|
1005
|
+
px: string;
|
|
1006
|
+
pb: string;
|
|
1014
1007
|
};
|
|
1015
1008
|
controls: {
|
|
1009
|
+
gap: string;
|
|
1016
1010
|
alignSelf: string;
|
|
1017
|
-
|
|
1011
|
+
mr: string;
|
|
1018
1012
|
};
|
|
1019
1013
|
wrapper: {
|
|
1020
1014
|
mr: string;
|
|
@@ -42,7 +42,8 @@ var Avatar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
42
42
|
sx: _objectSpread({
|
|
43
43
|
size: size,
|
|
44
44
|
width: sizes.avatar[size],
|
|
45
|
-
height: sizes.avatar[size]
|
|
45
|
+
height: sizes.avatar[size],
|
|
46
|
+
borderRadius: isSquare ? '0px' : '100%'
|
|
46
47
|
}, sx)
|
|
47
48
|
}, others));
|
|
48
49
|
}
|
|
@@ -148,14 +148,6 @@ var expandableRow = {
|
|
|
148
148
|
var expandIcon = {
|
|
149
149
|
color: 'gray-900'
|
|
150
150
|
};
|
|
151
|
-
var editIcon = {
|
|
152
|
-
width: '25px !important',
|
|
153
|
-
height: '25px !important'
|
|
154
|
-
};
|
|
155
|
-
var menuIcon = {
|
|
156
|
-
width: '25px !important',
|
|
157
|
-
height: '25px !important'
|
|
158
|
-
};
|
|
159
151
|
export default {
|
|
160
152
|
container: container,
|
|
161
153
|
controls: controls,
|
|
@@ -171,7 +163,5 @@ export default {
|
|
|
171
163
|
expandableItemBody: expandableItemBody,
|
|
172
164
|
expandableStyledListItem: expandableStyledListItem,
|
|
173
165
|
expandableRow: expandableRow,
|
|
174
|
-
expandIcon: expandIcon
|
|
175
|
-
editIcon: editIcon,
|
|
176
|
-
menuIcon: menuIcon
|
|
166
|
+
expandIcon: expandIcon
|
|
177
167
|
};
|
|
@@ -17,7 +17,7 @@ var ListViewItemEditButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
17
17
|
ml: "sm"
|
|
18
18
|
}, ___EmotionJSX(IconButton, props, ___EmotionJSX(Icon, {
|
|
19
19
|
icon: CreateIcon,
|
|
20
|
-
|
|
20
|
+
size: "md"
|
|
21
21
|
})));
|
|
22
22
|
});
|
|
23
23
|
ListViewItemEditButton.propTypes = iconButtonPropTypes;
|
|
@@ -38,7 +38,7 @@ import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusP
|
|
|
38
38
|
import ListBox from '../ListBox';
|
|
39
39
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
40
40
|
var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
41
|
-
var _selectionManager$sta, _selectionManager$sta2, _selectionManager$sta3, _listBoxRef$
|
|
41
|
+
var _selectionManager$sta, _selectionManager$sta2, _selectionManager$sta3, _listBoxRef$current;
|
|
42
42
|
var defaultSelectedKeys = props.defaultSelectedKeys,
|
|
43
43
|
direction = props.direction,
|
|
44
44
|
_props$disabledKeys = props.disabledKeys,
|
|
@@ -87,14 +87,10 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
87
87
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
88
88
|
hasFocusWithin = _useState6[0],
|
|
89
89
|
setFocusWithin = _useState6[1];
|
|
90
|
-
var _useState7 = useState(
|
|
90
|
+
var _useState7 = useState(''),
|
|
91
91
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var _useState9 = useState(''),
|
|
95
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
96
|
-
activeDescendant = _useState10[0],
|
|
97
|
-
setActiveDescendant = _useState10[1];
|
|
92
|
+
activeDescendant = _useState8[0],
|
|
93
|
+
setActiveDescendant = _useState8[1];
|
|
98
94
|
var inputWrapperRef = useRef();
|
|
99
95
|
var inputRef = useRef();
|
|
100
96
|
var buttonRef = useRef();
|
|
@@ -111,9 +107,6 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
111
107
|
inputValue: filterString
|
|
112
108
|
}),
|
|
113
109
|
isLoading = _useInputLoader.isLoading;
|
|
114
|
-
useEffect(function () {
|
|
115
|
-
setInitialItems(_Array$from(items));
|
|
116
|
-
}, []);
|
|
117
110
|
var toggleItems = function toggleItems(keys) {
|
|
118
111
|
if (onSelectionChange) onSelectionChange(keys);
|
|
119
112
|
};
|
|
@@ -192,10 +185,10 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
192
185
|
}, [isOpen, selectionManager.selectedKeys, updatePosition]);
|
|
193
186
|
|
|
194
187
|
// Measure the width of the input to inform the width of the menu (below).
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
menuWidth =
|
|
198
|
-
setMenuWidth =
|
|
188
|
+
var _useState9 = useState(null),
|
|
189
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
190
|
+
menuWidth = _useState10[0],
|
|
191
|
+
setMenuWidth = _useState10[1];
|
|
199
192
|
var onResize = useCallback(function () {
|
|
200
193
|
/* istanbul ignore next */
|
|
201
194
|
if (inputWrapperRef.current) {
|
|
@@ -260,20 +253,20 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
260
253
|
if (onKeyDown) onKeyDown(e.nativeEvent);
|
|
261
254
|
};
|
|
262
255
|
var handleBlur = function handleBlur(e) {
|
|
263
|
-
var _inputWrapperRef$curr,
|
|
256
|
+
var _inputWrapperRef$curr, _popoverRef$current;
|
|
264
257
|
var relatedTarget = e.relatedTarget || document.activeElement;
|
|
265
|
-
if ((_inputWrapperRef$curr = inputWrapperRef.current) !== null && _inputWrapperRef$curr !== void 0 && _inputWrapperRef$curr.contains(relatedTarget) || (
|
|
258
|
+
if ((_inputWrapperRef$curr = inputWrapperRef.current) !== null && _inputWrapperRef$curr !== void 0 && _inputWrapperRef$curr.contains(relatedTarget) || (_popoverRef$current = popoverRef.current) !== null && _popoverRef$current !== void 0 && _popoverRef$current.contains(relatedTarget) || buttonRef.current === relatedTarget) {
|
|
266
259
|
return;
|
|
267
260
|
}
|
|
268
261
|
setFilterString('');
|
|
269
262
|
setIsOpen(false);
|
|
270
263
|
};
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
selectionState =
|
|
274
|
-
setSelectionState =
|
|
264
|
+
var _useState11 = useState('Select All'),
|
|
265
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
266
|
+
selectionState = _useState12[0],
|
|
267
|
+
setSelectionState = _useState12[1];
|
|
275
268
|
var arrayItems = _Array$from(items);
|
|
276
|
-
var itemCount = _reduceInstanceProperty(
|
|
269
|
+
var itemCount = _reduceInstanceProperty(arrayItems).call(arrayItems, function (count, obj) {
|
|
277
270
|
return count + (obj.children ? obj.children.length : 1);
|
|
278
271
|
}, 0);
|
|
279
272
|
var selectedKeysSize = selectionManager.selectedKeys.size;
|
|
@@ -341,7 +334,7 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
341
334
|
var inputProps = _objectSpread(_objectSpread({}, customInputProps), {}, {
|
|
342
335
|
controlProps: {
|
|
343
336
|
'aria-activedescendant': activeDescendant,
|
|
344
|
-
'aria-controls': (_listBoxRef$
|
|
337
|
+
'aria-controls': (_listBoxRef$current = listBoxRef.current) === null || _listBoxRef$current === void 0 ? void 0 : _listBoxRef$current.id,
|
|
345
338
|
'aria-expanded': isOpen,
|
|
346
339
|
role: 'combobox',
|
|
347
340
|
ref: inputRef,
|
|
@@ -399,8 +392,8 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
399
392
|
value: setActiveDescendant
|
|
400
393
|
}, ___EmotionJSX(Box, mergeProps(containerProps, focusWithinProps), ___EmotionJSX(TextField, _extends({
|
|
401
394
|
onBlur: function onBlur(e) {
|
|
402
|
-
var _popoverRef$
|
|
403
|
-
var blurIntoPopover = (_popoverRef$
|
|
395
|
+
var _popoverRef$current2;
|
|
396
|
+
var blurIntoPopover = (_popoverRef$current2 = popoverRef.current) === null || _popoverRef$current2 === void 0 ? void 0 : _popoverRef$current2.contains(e.relatedTarget);
|
|
404
397
|
if (blurIntoPopover) {
|
|
405
398
|
return;
|
|
406
399
|
}
|
|
@@ -35,7 +35,7 @@ var PanelHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
35
35
|
image = data.image,
|
|
36
36
|
subtext = data.subtext,
|
|
37
37
|
text = data.text,
|
|
38
|
-
|
|
38
|
+
avatarDefaultText = data.avatarDefaultText;
|
|
39
39
|
var _useGetTheme = useGetTheme(),
|
|
40
40
|
themeState = _useGetTheme.themeState;
|
|
41
41
|
var isOnyx = themeState.isOnyx;
|
|
@@ -51,10 +51,12 @@ var PanelHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
51
51
|
}
|
|
52
52
|
}));
|
|
53
53
|
var renderAvatar = ___EmotionJSX(Avatar, _extends({
|
|
54
|
+
color: "green",
|
|
54
55
|
src: image === null || image === void 0 ? void 0 : image.src,
|
|
56
|
+
isSquare: !!(image !== null && image !== void 0 && image.src),
|
|
55
57
|
size: "avatar.lg",
|
|
56
|
-
defaultText:
|
|
57
|
-
mr: "
|
|
58
|
+
defaultText: avatarDefaultText,
|
|
59
|
+
mr: "lg"
|
|
58
60
|
}, avatarProps));
|
|
59
61
|
var renderImage = !icon && image && ___EmotionJSX(Box, {
|
|
60
62
|
variant: "panelHeader.iconWrapper"
|
|
@@ -88,7 +90,7 @@ var PanelHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
88
90
|
var renderData = ___EmotionJSX(Box, {
|
|
89
91
|
isRow: true,
|
|
90
92
|
variant: text || subtext ? 'panelHeader.data' : 'panelHeader.emptyData'
|
|
91
|
-
}, renderLeftContent(), ___EmotionJSX(Box, headerWrapperPropsSpread, text && ___EmotionJSX(Text, _extends({}, headerPropsSpread, {
|
|
93
|
+
}, renderLeftContent(), (text || subtext) && ___EmotionJSX(Box, headerWrapperPropsSpread, text && ___EmotionJSX(Text, _extends({}, headerPropsSpread, {
|
|
92
94
|
variant: "panelHeaderText"
|
|
93
95
|
}), text), subtext && ___EmotionJSX(Text, {
|
|
94
96
|
variant: "panelHeaderSubtext"
|
|
@@ -28,7 +28,7 @@ export var Default = function Default(_ref) {
|
|
|
28
28
|
data: {
|
|
29
29
|
icon: AccountIcon,
|
|
30
30
|
text: 'Fons Vernall',
|
|
31
|
-
|
|
31
|
+
avatarDefaultText: 'FV'
|
|
32
32
|
}
|
|
33
33
|
}));
|
|
34
34
|
};
|
|
@@ -45,7 +45,7 @@ export var WithSubtext = function WithSubtext(_ref2) {
|
|
|
45
45
|
icon: AccountIcon,
|
|
46
46
|
subtext: 'rad_developer@pingidentity.com',
|
|
47
47
|
text: 'Fons Vernall',
|
|
48
|
-
|
|
48
|
+
avatarDefaultText: 'FV'
|
|
49
49
|
}
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
@@ -62,7 +62,7 @@ export var WithControls = function WithControls(_ref3) {
|
|
|
62
62
|
icon: AccountIcon,
|
|
63
63
|
text: 'Fons Vernall',
|
|
64
64
|
subtext: 'rad_developer@pingidentity.com',
|
|
65
|
-
|
|
65
|
+
avatarDefaultText: 'FV'
|
|
66
66
|
}
|
|
67
67
|
}), ___EmotionJSX(PanelHeaderSwitchField, null), ___EmotionJSX(PanelHeaderMenu, null, ___EmotionJSX(Item, {
|
|
68
68
|
key: "enable"
|
|
@@ -85,7 +85,7 @@ export var WithImage = function WithImage(args) {
|
|
|
85
85
|
src: pingImg,
|
|
86
86
|
alt: 'Ping Identity Logo',
|
|
87
87
|
'aria-label': 'Ping Identity Logo',
|
|
88
|
-
|
|
88
|
+
avatarDefaultText: 'FV'
|
|
89
89
|
},
|
|
90
90
|
text: 'Fons Vernall'
|
|
91
91
|
}
|
|
@@ -143,7 +143,7 @@ export var WithExtraLongText = function WithExtraLongText(_ref4) {
|
|
|
143
143
|
var args = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));
|
|
144
144
|
return ___EmotionJSX(PanelHeader, _extends({}, args, {
|
|
145
145
|
data: {
|
|
146
|
-
|
|
146
|
+
avatarDefaultText: 'FV',
|
|
147
147
|
icon: AccountIcon,
|
|
148
148
|
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
149
149
|
subtext: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AstroProvider, OnyxDarkTheme } from '../../..';
|
|
3
|
+
import PanelHeaderComponent from './OnyxPanelHeaderComponent';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Chromatic Only Onyx Dark Panel Header'
|
|
7
|
+
};
|
|
8
|
+
export var Default = function Default() {
|
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
|
10
|
+
theme: OnyxDarkTheme
|
|
11
|
+
}, ___EmotionJSX(PanelHeaderComponent, null));
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AstroProvider, OnyxTheme } from '../../..';
|
|
3
|
+
import PanelHeaderComponent from './OnyxPanelHeaderComponent';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Chromatic Only Onyx Panel Header'
|
|
7
|
+
};
|
|
8
|
+
export var Default = function Default() {
|
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
|
10
|
+
theme: OnyxTheme
|
|
11
|
+
}, ___EmotionJSX(PanelHeaderComponent, null));
|
|
12
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AccountIcon from '@pingux/mdi-react/AccountIcon';
|
|
3
|
+
import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
|
|
4
|
+
import { Box, Breadcrumbs, Item, PanelHeader, PanelHeaderCloseButton, PanelHeaderMenu, PanelHeaderSwitchField } from '../../..';
|
|
5
|
+
import { pingImg } from '../../../utils/devUtils/constants/images';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
var PanelHeaderComponent = function PanelHeaderComponent() {
|
|
8
|
+
var breadcrumbs = ___EmotionJSX(Box, {
|
|
9
|
+
width: "100%"
|
|
10
|
+
}, ___EmotionJSX(Breadcrumbs, {
|
|
11
|
+
icon: ChevronRightIcon
|
|
12
|
+
}, ___EmotionJSX(Item, {
|
|
13
|
+
"aria-label": "Lorem Text",
|
|
14
|
+
href: "https://www.pingidentity.com",
|
|
15
|
+
key: "Item1Key"
|
|
16
|
+
}, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), ___EmotionJSX(Item, {
|
|
17
|
+
"aria-label": "Lorem Ut",
|
|
18
|
+
key: "Item2Key"
|
|
19
|
+
}, "Ut enim ad minim veniam, quis nostrud exercitation ullamco, laboris nisi ut aliquip ex ea commodo consequat incididunt et dolore.")));
|
|
20
|
+
return ___EmotionJSX(Box, {
|
|
21
|
+
gap: "md"
|
|
22
|
+
}, ___EmotionJSX(PanelHeader, {
|
|
23
|
+
data: {
|
|
24
|
+
icon: AccountIcon,
|
|
25
|
+
text: 'Fons Vernall',
|
|
26
|
+
avatarDefaultText: 'FV'
|
|
27
|
+
}
|
|
28
|
+
}), ___EmotionJSX(PanelHeader, {
|
|
29
|
+
data: {
|
|
30
|
+
icon: AccountIcon,
|
|
31
|
+
subtext: 'rad_developer@pingidentity.com',
|
|
32
|
+
text: 'Fons Vernall',
|
|
33
|
+
avatarDefaultText: 'FV'
|
|
34
|
+
}
|
|
35
|
+
}), ___EmotionJSX(PanelHeader, {
|
|
36
|
+
data: {
|
|
37
|
+
icon: AccountIcon,
|
|
38
|
+
text: 'Fons Vernall',
|
|
39
|
+
subtext: 'rad_developer@pingidentity.com',
|
|
40
|
+
avatarDefaultText: 'FV'
|
|
41
|
+
}
|
|
42
|
+
}, ___EmotionJSX(PanelHeaderSwitchField, null), ___EmotionJSX(PanelHeaderMenu, null, ___EmotionJSX(Item, {
|
|
43
|
+
key: "enable"
|
|
44
|
+
}, "Enable user"), ___EmotionJSX(Item, {
|
|
45
|
+
key: "disable"
|
|
46
|
+
}, "Disable user"), ___EmotionJSX(Item, {
|
|
47
|
+
key: "delete"
|
|
48
|
+
}, "Delete user")), ___EmotionJSX(PanelHeaderCloseButton, null)), ___EmotionJSX(PanelHeader, {
|
|
49
|
+
data: {
|
|
50
|
+
image: {
|
|
51
|
+
src: pingImg,
|
|
52
|
+
alt: 'Ping Identity Logo',
|
|
53
|
+
'aria-label': 'Ping Identity Logo',
|
|
54
|
+
avatarDefaultText: 'FV'
|
|
55
|
+
},
|
|
56
|
+
text: 'Fons Vernall'
|
|
57
|
+
}
|
|
58
|
+
}), ___EmotionJSX(PanelHeader, {
|
|
59
|
+
data: {
|
|
60
|
+
icon: AccountIcon
|
|
61
|
+
},
|
|
62
|
+
slots: {
|
|
63
|
+
rightOfData: breadcrumbs
|
|
64
|
+
}
|
|
65
|
+
}, ___EmotionJSX(PanelHeaderCloseButton, null)), ___EmotionJSX(PanelHeader, {
|
|
66
|
+
data: {
|
|
67
|
+
avatarDefaultText: 'FV',
|
|
68
|
+
icon: AccountIcon,
|
|
69
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
|
|
70
|
+
subtext: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
|
|
71
|
+
}
|
|
72
|
+
}, ___EmotionJSX(PanelHeaderSwitchField, null), ___EmotionJSX(PanelHeaderMenu, null, ___EmotionJSX(Item, {
|
|
73
|
+
key: "enable"
|
|
74
|
+
}, "Enable user"), ___EmotionJSX(Item, {
|
|
75
|
+
key: "disable"
|
|
76
|
+
}, "Disable user"), ___EmotionJSX(Item, {
|
|
77
|
+
key: "delete"
|
|
78
|
+
}, "Delete user")), ___EmotionJSX(PanelHeaderCloseButton, null)));
|
|
79
|
+
};
|
|
80
|
+
export default PanelHeaderComponent;
|
|
@@ -91,14 +91,6 @@ export var listViewItem = {
|
|
|
91
91
|
'&.has-separator.is-last-row': {
|
|
92
92
|
border: 'none'
|
|
93
93
|
}
|
|
94
|
-
},
|
|
95
|
-
editIcon: {
|
|
96
|
-
width: '1.5rem !important',
|
|
97
|
-
height: '1.5rem !important'
|
|
98
|
-
},
|
|
99
|
-
menuIcon: {
|
|
100
|
-
width: '1.5rem !important',
|
|
101
|
-
height: '1.5rem !important'
|
|
102
94
|
}
|
|
103
95
|
};
|
|
104
96
|
export var listView = {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
var container = {
|
|
2
2
|
bg: 'backgroundBase',
|
|
3
3
|
border: 'none',
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
pt: 'lg',
|
|
5
|
+
px: 'lg',
|
|
6
|
+
pb: 'md'
|
|
6
7
|
};
|
|
7
8
|
var controls = {
|
|
9
|
+
gap: '12px',
|
|
8
10
|
alignSelf: 'start',
|
|
9
|
-
|
|
11
|
+
mr: '0'
|
|
10
12
|
};
|
|
11
13
|
var wrapper = {
|
|
12
14
|
mr: 'md'
|
|
@@ -2,7 +2,7 @@ export var switchable = {
|
|
|
2
2
|
container: {
|
|
3
3
|
minWidth: '32px',
|
|
4
4
|
color: 'neutral.80',
|
|
5
|
-
bg: '
|
|
5
|
+
bg: 'background.base',
|
|
6
6
|
border: '1px solid',
|
|
7
7
|
borderColor: 'neutral.80',
|
|
8
8
|
borderRadius: 9999,
|
|
@@ -14,7 +14,7 @@ export var switchable = {
|
|
|
14
14
|
thumbContainer: {
|
|
15
15
|
bg: 'transparent',
|
|
16
16
|
border: 'none',
|
|
17
|
-
|
|
17
|
+
width: '32px',
|
|
18
18
|
height: 16,
|
|
19
19
|
py: '3px',
|
|
20
20
|
px: '3px',
|
|
@@ -176,7 +176,9 @@ export var text = _objectSpread(_objectSpread({
|
|
|
176
176
|
panelHeaderText: _objectSpread(_objectSpread({}, hTags.h4), {}, {
|
|
177
177
|
textOverflow: 'ellipsis',
|
|
178
178
|
overflow: 'hidden',
|
|
179
|
-
whiteSpace: 'nowrap'
|
|
179
|
+
whiteSpace: 'nowrap',
|
|
180
|
+
color: 'font.base',
|
|
181
|
+
lineHeight: 'xs'
|
|
180
182
|
}),
|
|
181
183
|
messagesText: {
|
|
182
184
|
'&.is-success, &.is-warning, &.is-error, &.is-default': {
|
|
@@ -187,5 +189,10 @@ export var text = _objectSpread(_objectSpread({
|
|
|
187
189
|
color: 'gray-700'
|
|
188
190
|
}
|
|
189
191
|
}
|
|
192
|
+
},
|
|
193
|
+
panelHeaderSubtext: {
|
|
194
|
+
fontSize: 'md',
|
|
195
|
+
lineHeight: 'body',
|
|
196
|
+
color: 'font.light'
|
|
190
197
|
}
|
|
191
198
|
});
|