@pingux/astro 2.143.0 → 2.144.0-alpha.1
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/AIComponents/Response/ResponseMarkdown/MarkdownContainer.js +2 -2
- package/lib/cjs/components/Calendar/Calendar.js +3 -2
- package/lib/cjs/components/Checkbox/CheckboxBase.js +3 -1
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +2 -2
- package/lib/cjs/components/DataTable/DataTable.js +4 -4
- package/lib/cjs/components/DataTable/DataTable.stories.js +3 -3
- package/lib/cjs/components/DatePicker/DateField.js +6 -3
- package/lib/cjs/components/DatePicker/DatePicker.js +12 -3
- package/lib/cjs/components/DatePicker/DatePicker.stories.js +21 -2
- package/lib/cjs/components/GridList/GridList.stories.d.ts +4 -4
- package/lib/cjs/components/GridList/gridListAttributes.d.ts +4 -4
- package/lib/cjs/components/GridList/gridListAttributes.js +4 -4
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +1 -1
- package/lib/cjs/components/Image/Image.js +5 -5
- package/lib/cjs/components/ListBox/ListBox.js +3 -3
- package/lib/cjs/components/ListBox/Option.js +9 -9
- package/lib/cjs/components/MenuItem/MenuItem.js +4 -4
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +2 -2
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +2 -2
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +5 -5
- package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.js +5 -5
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +1 -1
- package/lib/cjs/components/ProgressBar/ProgressBar.js +3 -3
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +1 -1
- package/lib/cjs/components/ProgressBar/ProgressBar.test.js +2 -2
- package/lib/cjs/components/RadioField/RadioField.js +3 -3
- package/lib/cjs/components/RockerButton/RockerButton.js +2 -2
- package/lib/cjs/components/SearchField/SearchAutoComplete.js +1 -1
- package/lib/cjs/components/SelectField/SelectField.stories.js +6 -6
- package/lib/cjs/components/Tab/Tab.js +2 -2
- package/lib/cjs/context/MenuContext/index.d.ts +1 -1
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.d.ts +1 -1
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +6 -6
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +6 -6
- package/lib/cjs/hooks/useField/useField.d.ts +2 -2
- package/lib/cjs/hooks/useGridList/useGridList.js +9 -9
- package/lib/cjs/hooks/useInputLoader/useInputLoader.d.ts +2 -2
- package/lib/cjs/hooks/useInputLoader/useInputLoader.js +8 -8
- package/lib/cjs/hooks/useModalState/useModalState.js +2 -2
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
- package/lib/cjs/hooks/useSelectField/useSelectField.js +4 -4
- package/lib/cjs/hooks/useSliderField/useSliderField.d.ts +1 -1
- package/lib/cjs/hooks/useSliderField/useSliderField.js +3 -3
- package/lib/cjs/types/calendar.d.ts +2 -0
- package/lib/cjs/types/dataTable.d.ts +1 -1
- package/lib/cjs/types/gridList.d.ts +4 -4
- package/lib/cjs/types/listBox.d.ts +2 -2
- package/lib/cjs/types/popoverMenu.d.ts +1 -1
- package/lib/cjs/types/progressBar.d.ts +1 -1
- package/lib/cjs/types/sliderField.d.ts +1 -1
- package/lib/cjs/types/timefield.d.ts +1 -1
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -1
- package/lib/cjs/utils/designUtils/figmaLinks.js +1 -1
- package/lib/components/AIComponents/Response/ResponseMarkdown/MarkdownContainer.js +2 -2
- package/lib/components/Calendar/Calendar.js +3 -2
- package/lib/components/Checkbox/CheckboxBase.js +3 -1
- package/lib/components/ComboBox/ComboBoxInput.js +2 -2
- package/lib/components/DataTable/DataTable.js +4 -4
- package/lib/components/DataTable/DataTable.stories.js +3 -3
- package/lib/components/DatePicker/DateField.js +6 -3
- package/lib/components/DatePicker/DatePicker.js +12 -3
- package/lib/components/DatePicker/DatePicker.stories.js +18 -0
- package/lib/components/GridList/gridListAttributes.js +4 -4
- package/lib/components/IconButtonToggle/IconButtonToggle.js +1 -1
- package/lib/components/Image/Image.js +5 -5
- package/lib/components/ListBox/ListBox.js +3 -3
- package/lib/components/ListBox/Option.js +9 -9
- package/lib/components/MenuItem/MenuItem.js +4 -4
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +2 -2
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +2 -2
- package/lib/components/NavBarSection/NavBarItemHeader.js +5 -5
- package/lib/components/NavSideBar/NavSideBarSectionHeader.js +5 -5
- package/lib/components/PopoverMenu/PopoverMenu.js +1 -1
- package/lib/components/ProgressBar/ProgressBar.js +3 -3
- package/lib/components/ProgressBar/ProgressBar.stories.js +1 -1
- package/lib/components/ProgressBar/ProgressBar.test.js +2 -2
- package/lib/components/RadioField/RadioField.js +3 -3
- package/lib/components/RockerButton/RockerButton.js +2 -2
- package/lib/components/SearchField/SearchAutoComplete.js +1 -1
- package/lib/components/SelectField/SelectField.stories.js +6 -6
- package/lib/components/Tab/Tab.js +2 -2
- package/lib/hooks/useComponentToggle/useComponentToggle.js +6 -6
- package/lib/hooks/useComponentToggle/useComponentToggle.test.js +6 -6
- package/lib/hooks/useGridList/useGridList.js +9 -9
- package/lib/hooks/useInputLoader/useInputLoader.js +8 -8
- package/lib/hooks/useModalState/useModalState.js +2 -2
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
- package/lib/hooks/useSelectField/useSelectField.js +4 -4
- package/lib/hooks/useSliderField/useSliderField.js +3 -3
- package/lib/utils/designUtils/figmaLinks.js +1 -1
- package/package.json +1 -1
@@ -38,8 +38,8 @@ var MarkdownContainer = function MarkdownContainer(props) {
|
|
38
38
|
stateIndex = _useContext.stateIndex,
|
39
39
|
delay = _useContext.delay;
|
40
40
|
var containerChildren = _react.Children.toArray(children);
|
41
|
-
var
|
42
|
-
if (
|
41
|
+
var hasBlocks = checkContainsBlocks(containerChildren);
|
42
|
+
if (hasBlocks) {
|
43
43
|
return (0, _react2.jsx)(_Box["default"], others, (0, _map["default"])(_react.Children).call(_react.Children, containerChildren, function (child, i) {
|
44
44
|
return /*#__PURE__*/_react["default"].cloneElement(child, {
|
45
45
|
animationIndex: i,
|
@@ -42,7 +42,8 @@ var Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
42
42
|
hasAutoFocus = props.hasAutoFocus,
|
43
43
|
maxValue = props.maxValue,
|
44
44
|
minValue = props.minValue,
|
45
|
-
value = props.value
|
45
|
+
value = props.value,
|
46
|
+
calendarWrapperProps = props.calendarWrapperProps;
|
46
47
|
var _useLocale = (0, _i18n.useLocale)(),
|
47
48
|
locale = _useLocale.locale;
|
48
49
|
var calenderRef = (0, _hooks.useLocalOrForwardRef)(ref);
|
@@ -115,7 +116,7 @@ var Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
115
116
|
fontWeight: 3,
|
116
117
|
flex: 1
|
117
118
|
}, title);
|
118
|
-
return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, calendarProps, {
|
119
|
+
return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, calendarProps, calendarWrapperProps, {
|
119
120
|
ref: calenderRef,
|
120
121
|
variant: "calendar.calendarContainer",
|
121
122
|
role: "group"
|
@@ -56,8 +56,10 @@ var IndeterminateCheckboxIcon = function IndeterminateCheckboxIcon(props) {
|
|
56
56
|
}));
|
57
57
|
};
|
58
58
|
IndeterminateCheckboxIcon.propTypes = {
|
59
|
+
// TODO: [Astro 3.0.0] Remove this boolean in favor of the proper naming convention - isDisabled
|
59
60
|
// eslint-disable-next-line react/boolean-prop-naming
|
60
|
-
disabled: _propTypes["default"].bool
|
61
|
+
disabled: _propTypes["default"].bool,
|
62
|
+
isDisabled: _propTypes["default"].bool
|
61
63
|
};
|
62
64
|
|
63
65
|
/**
|
@@ -76,14 +76,14 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
76
76
|
loadingState: loadingState,
|
77
77
|
inputValue: inputProps.value
|
78
78
|
}),
|
79
|
-
|
79
|
+
isLoading = _useInputLoader.isLoading;
|
80
80
|
(0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
|
81
81
|
var button = !isReadOnly && (0, _react2.jsx)(_.Box, {
|
82
82
|
isRow: true,
|
83
83
|
variant: "forms.comboBox.inputInContainerSlot"
|
84
84
|
},
|
85
85
|
// Render loader after delay if filtering or loading
|
86
|
-
|
86
|
+
isLoading && (isOpen || menuTrigger === 'manual' || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
|
87
87
|
variant: "loader.withinInput"
|
88
88
|
}), (0, _react2.jsx)(_interactions.PressResponder, {
|
89
89
|
preventFocusOnPress: true,
|
@@ -140,8 +140,8 @@ var DataTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
140
140
|
gridProps = _useTable.gridProps;
|
141
141
|
var _useState3 = (0, _react.useState)(false),
|
142
142
|
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
143
|
-
|
144
|
-
|
143
|
+
isHeaderMenuOpen = _useState4[0],
|
144
|
+
setIsHeaderMenuOpen = _useState4[1];
|
145
145
|
|
146
146
|
// This overrides collection view's renderWrapper to support DOM hierarchy.
|
147
147
|
var renderWrapper = function renderWrapper(parent, reusableView, children, renderChildren) {
|
@@ -257,8 +257,8 @@ var DataTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
257
257
|
setIsInResizeMode: setIsInResizeMode,
|
258
258
|
isEmpty: isEmpty,
|
259
259
|
onFocusedResizer: onFocusedResizer,
|
260
|
-
headerMenuOpen:
|
261
|
-
setHeaderMenuOpen:
|
260
|
+
headerMenuOpen: isHeaderMenuOpen,
|
261
|
+
setHeaderMenuOpen: setIsHeaderMenuOpen
|
262
262
|
}
|
263
263
|
}, (0, _react2.jsx)(_DataTableVirtualizer["default"], (0, _extends2["default"])({}, mergedProps, {
|
264
264
|
layout: layout,
|
@@ -491,7 +491,7 @@ Dynamic.parameters = {
|
|
491
491
|
var Sortable = function Sortable(args) {
|
492
492
|
var _useState = (0, _react.useState)(true),
|
493
493
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
494
|
-
|
494
|
+
hasFirstSortFlag = _useState2[0],
|
495
495
|
setFirstSortFlag = _useState2[1];
|
496
496
|
var columns = [{
|
497
497
|
name: 'Country',
|
@@ -593,14 +593,14 @@ var Sortable = function Sortable(args) {
|
|
593
593
|
}
|
594
594
|
});
|
595
595
|
(0, _react.useEffect)(function () {
|
596
|
-
if (
|
596
|
+
if (hasFirstSortFlag && !list.isLoading && list.items.length > 0) {
|
597
597
|
(0, _sort["default"])(list).call(list, {
|
598
598
|
column: 'country',
|
599
599
|
direction: 'ascending'
|
600
600
|
});
|
601
601
|
setFirstSortFlag(false);
|
602
602
|
}
|
603
|
-
}, [
|
603
|
+
}, [hasFirstSortFlag, list, list.isLoading, list.items]);
|
604
604
|
return (0, _react2.jsx)(_index.DataTable, (0, _extends2["default"])({}, args, {
|
605
605
|
"aria-label": "Sortable table",
|
606
606
|
sortDescriptor: list.sortDescriptor,
|
@@ -39,7 +39,7 @@ var _index = require("../../index");
|
|
39
39
|
var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
|
40
40
|
var _DateSegment = _interopRequireDefault(require("./DateSegment"));
|
41
41
|
var _react2 = require("@emotion/react");
|
42
|
-
var _excluded = ["buttonProps", "className", "fieldProps", "groupProps", "groupRef", "hasFormatHelpText", "helperText", "isDisabled", "isOpen", "isReadOnly", "isRequired", "status", "datePickerState", "minValue", "maxValue", "unavailableRanges"],
|
42
|
+
var _excluded = ["buttonProps", "className", "fieldProps", "groupProps", "groupRef", "hasFormatHelpText", "helperText", "isDisabled", "isOpen", "isReadOnly", "isRequired", "status", "datePickerState", "minValue", "maxValue", "unavailableRanges", "fieldControlProps"],
|
43
43
|
_excluded2 = ["defaultValue"];
|
44
44
|
/**
|
45
45
|
* DateFields allow users to enter and edit date using a keyboard.
|
@@ -71,6 +71,7 @@ var DateField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
71
71
|
minValue = props.minValue,
|
72
72
|
maxValue = props.maxValue,
|
73
73
|
unavailableRanges = props.unavailableRanges,
|
74
|
+
fieldControlProps = props.fieldControlProps,
|
74
75
|
other = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
75
76
|
var _useState = (0, _react.useState)(''),
|
76
77
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
@@ -234,7 +235,7 @@ var DateField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
234
235
|
})))), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
235
236
|
isRow: true,
|
236
237
|
variant: "forms.datePicker.inputField"
|
237
|
-
}, dateFieldProps, {
|
238
|
+
}, dateFieldProps, fieldControlProps, {
|
238
239
|
ref: fieldRef,
|
239
240
|
className: classNames
|
240
241
|
}), (0, _react2.jsx)(_reactAria.FocusScope, null, (0, _map["default"])(_context3 = isLocalEnUS ? enUSSegments : segments).call(_context3, function (segment, index) {
|
@@ -320,7 +321,9 @@ DateField.propTypes = {
|
|
320
321
|
/** The ranges of unavailable dates passed */
|
321
322
|
unavailableRanges: _propTypes["default"].arrayOf(_propTypes["default"].arrayOf(_propTypes["default"].string)),
|
322
323
|
/** Props object that is spread directly into the input wrapper element. */
|
323
|
-
wrapperProps: _propTypes["default"].shape({})
|
324
|
+
wrapperProps: _propTypes["default"].shape({}),
|
325
|
+
/** Props object that spread into date segment wrapper element. */
|
326
|
+
fieldControlProps: _propTypes["default"].shape({})
|
324
327
|
};
|
325
328
|
DateField.defaultProps = {
|
326
329
|
hasAutoFocus: false,
|
@@ -51,7 +51,9 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
51
51
|
minValue = props.minValue,
|
52
52
|
status = props.status,
|
53
53
|
value = props.value,
|
54
|
-
unavailableRanges = props.unavailableRanges
|
54
|
+
unavailableRanges = props.unavailableRanges,
|
55
|
+
fieldControlProps = props.fieldControlProps,
|
56
|
+
calendarWrapperProps = props.calendarWrapperProps;
|
55
57
|
var groupRef = (0, _react.useRef)();
|
56
58
|
var popoverRef = (0, _react.useRef)();
|
57
59
|
|
@@ -107,12 +109,15 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
107
109
|
autoFocus: true,
|
108
110
|
contain: true,
|
109
111
|
restoreFocus: true
|
110
|
-
}, (0, _react2.jsx)(_index.Calendar, calendarProps
|
112
|
+
}, (0, _react2.jsx)(_index.Calendar, (0, _extends2["default"])({}, calendarProps, {
|
113
|
+
calendarWrapperProps: calendarWrapperProps
|
114
|
+
}))));
|
111
115
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_DateField["default"], (0, _extends2["default"])({}, (0, _pendoID.getPendoID)('DatePicker'), props, {
|
112
116
|
ref: ref,
|
113
117
|
buttonProps: buttonProps,
|
114
118
|
fieldProps: fieldProps,
|
115
119
|
groupProps: (0, _object.omit)(groupProps, 'data-pendo-id'),
|
120
|
+
fieldControlProps: fieldControlProps,
|
116
121
|
groupRef: groupRef,
|
117
122
|
helperText: helperText,
|
118
123
|
labelProps: labelProps,
|
@@ -177,7 +182,11 @@ DatePicker.propTypes = {
|
|
177
182
|
/** Determines the textarea status indicator and helper text styling. */
|
178
183
|
status: _propTypes["default"].oneOf((0, _values["default"])(_statuses["default"])),
|
179
184
|
/** The ranges of unavailable dates passed */
|
180
|
-
unavailableRanges: _propTypes["default"].arrayOf(_propTypes["default"].arrayOf(_propTypes["default"].string))
|
185
|
+
unavailableRanges: _propTypes["default"].arrayOf(_propTypes["default"].arrayOf(_propTypes["default"].string)),
|
186
|
+
/** Props object that spread into date segment wrapper element. */
|
187
|
+
fieldControlProps: _propTypes["default"].shape({}),
|
188
|
+
/** Props object that spread into calendar element. */
|
189
|
+
calendarWrapperProps: _propTypes["default"].shape({})
|
181
190
|
};
|
182
191
|
_DateField["default"].defaultProps = {
|
183
192
|
isDisabled: false,
|
@@ -14,7 +14,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
14
14
|
_Object$defineProperty(exports, "__esModule", {
|
15
15
|
value: true
|
16
16
|
});
|
17
|
-
exports["default"] = exports.UnavailableDates = exports.Required = exports.ReadOnly = exports.MinimumDate = exports.MaximumDate = exports.FormatHelperText = exports.Error = exports.Disabled = exports.DefaultValue = exports.DefaultOpen = exports.Default = exports.Controlled = void 0;
|
17
|
+
exports["default"] = exports.UnavailableDates = exports.Required = exports.ReadOnly = exports.MinimumDate = exports.MaximumDate = exports.FormatHelperText = exports.Error = exports.Disabled = exports.DefaultValue = exports.DefaultOpen = exports.Default = exports.CustomWidth = exports.Controlled = void 0;
|
18
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
19
19
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
@@ -276,4 +276,23 @@ Error.parameters = {
|
|
276
276
|
type: 'figma',
|
277
277
|
url: _figmaLinks.FIGMA_LINKS.datePicker.error
|
278
278
|
}
|
279
|
-
};
|
279
|
+
};
|
280
|
+
var CustomWidth = function CustomWidth(args) {
|
281
|
+
return (0, _react2.jsx)(_DatePicker["default"], (0, _extends2["default"])({}, args, {
|
282
|
+
fieldControlProps: {
|
283
|
+
sx: {
|
284
|
+
width: '500px'
|
285
|
+
}
|
286
|
+
},
|
287
|
+
calendarWrapperProps: {
|
288
|
+
sx: {
|
289
|
+
maxWidth: '500px',
|
290
|
+
width: '400px',
|
291
|
+
'& tr': {
|
292
|
+
gap: '20px'
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}));
|
297
|
+
};
|
298
|
+
exports.CustomWidth = CustomWidth;
|
@@ -44,13 +44,13 @@ declare const _default: {
|
|
44
44
|
disable: boolean;
|
45
45
|
};
|
46
46
|
};
|
47
|
-
|
47
|
+
shouldAllowDuplicateSelectionEvents: {
|
48
48
|
description: string;
|
49
49
|
control: {
|
50
50
|
type: string;
|
51
51
|
};
|
52
52
|
};
|
53
|
-
|
53
|
+
hasAutoFocus: {
|
54
54
|
description: string;
|
55
55
|
control: {
|
56
56
|
type: string;
|
@@ -75,13 +75,13 @@ declare const _default: {
|
|
75
75
|
options: string[];
|
76
76
|
};
|
77
77
|
};
|
78
|
-
|
78
|
+
shouldDisallowEmptySelection: {
|
79
79
|
description: string;
|
80
80
|
control: {
|
81
81
|
type: string;
|
82
82
|
};
|
83
83
|
};
|
84
|
-
|
84
|
+
shouldDisallowTypeAhead: {
|
85
85
|
description: string;
|
86
86
|
control: {
|
87
87
|
type: string;
|
@@ -29,13 +29,13 @@ export declare const gridListArgTypes: {
|
|
29
29
|
disable: boolean;
|
30
30
|
};
|
31
31
|
};
|
32
|
-
|
32
|
+
shouldAllowDuplicateSelectionEvents: {
|
33
33
|
description: string;
|
34
34
|
control: {
|
35
35
|
type: string;
|
36
36
|
};
|
37
37
|
};
|
38
|
-
|
38
|
+
hasAutoFocus: {
|
39
39
|
description: string;
|
40
40
|
control: {
|
41
41
|
type: string;
|
@@ -60,13 +60,13 @@ export declare const gridListArgTypes: {
|
|
60
60
|
options: string[];
|
61
61
|
};
|
62
62
|
};
|
63
|
-
|
63
|
+
shouldDisallowEmptySelection: {
|
64
64
|
description: string;
|
65
65
|
control: {
|
66
66
|
type: string;
|
67
67
|
};
|
68
68
|
};
|
69
|
-
|
69
|
+
shouldDisallowTypeAhead: {
|
70
70
|
description: string;
|
71
71
|
control: {
|
72
72
|
type: string;
|
@@ -36,13 +36,13 @@ var gridListArgTypes = {
|
|
36
36
|
disable: true
|
37
37
|
}
|
38
38
|
},
|
39
|
-
|
39
|
+
shouldAllowDuplicateSelectionEvents: {
|
40
40
|
description: 'Whether duplicate selection events are allowed.',
|
41
41
|
control: {
|
42
42
|
type: 'boolean'
|
43
43
|
}
|
44
44
|
},
|
45
|
-
|
45
|
+
hasAutoFocus: {
|
46
46
|
description: 'Whether the grid should automatically focus on mount.',
|
47
47
|
control: {
|
48
48
|
type: 'boolean'
|
@@ -67,13 +67,13 @@ var gridListArgTypes = {
|
|
67
67
|
options: ['all', 'selection']
|
68
68
|
}
|
69
69
|
},
|
70
|
-
|
70
|
+
shouldDisallowEmptySelection: {
|
71
71
|
description: 'Whether empty selection is disallowed.',
|
72
72
|
control: {
|
73
73
|
type: 'boolean'
|
74
74
|
}
|
75
75
|
},
|
76
|
-
|
76
|
+
shouldDisallowTypeAhead: {
|
77
77
|
description: 'Whether type-ahead functionality is disabled.',
|
78
78
|
control: {
|
79
79
|
type: 'boolean'
|
@@ -28,7 +28,7 @@ var IconButtonToggle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
28
28
|
var conditionalRenderProps = {
|
29
29
|
ComponentToRenderIfTrue: toggledIcon,
|
30
30
|
ComponentToRenderIfFalse: defaultIcon,
|
31
|
-
|
31
|
+
isToggled: isToggled,
|
32
32
|
onConditionChange: onToggle
|
33
33
|
};
|
34
34
|
var _useComponentToggle = (0, _hooks.useComponentToggle)(conditionalRenderProps),
|
@@ -42,8 +42,8 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
42
42
|
setIsLoading = _useState2[1];
|
43
43
|
var _useState3 = (0, _react.useState)(false),
|
44
44
|
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
45
|
-
|
46
|
-
|
45
|
+
isLoadedSuccessfully = _useState4[0],
|
46
|
+
setIsLoadedSuccessfully = _useState4[1];
|
47
47
|
var _useState5 = (0, _react.useState)(false),
|
48
48
|
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
49
49
|
shouldShowFallback = _useState6[0],
|
@@ -55,7 +55,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
55
55
|
setIsLoading(newState);
|
56
56
|
isLoadingRef.current = newState;
|
57
57
|
};
|
58
|
-
var shouldUseFallbackProps = !
|
58
|
+
var shouldUseFallbackProps = !isLoadedSuccessfully && !(isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) || shouldShowFallback;
|
59
59
|
var setImgAttribute = function setImgAttribute(attribute, fallbackAttribute) {
|
60
60
|
return shouldUseFallbackProps ? fallbackAttribute : attribute;
|
61
61
|
};
|
@@ -88,7 +88,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
88
88
|
var onImageLoad = function onImageLoad() {
|
89
89
|
if (isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) {
|
90
90
|
setIsLoadingWithRef(false);
|
91
|
-
|
91
|
+
setIsLoadedSuccessfully(true);
|
92
92
|
}
|
93
93
|
};
|
94
94
|
var onImageError = function onImageError() {
|
@@ -133,7 +133,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
133
133
|
sx: sx,
|
134
134
|
"aria-live": "polite"
|
135
135
|
}, others, hoverProps));
|
136
|
-
if (isLoading || !
|
136
|
+
if (isLoading || !isLoadedSuccessfully && !fallbackImage) {
|
137
137
|
return (0, _react2.jsx)(Skeleton, null);
|
138
138
|
}
|
139
139
|
return themeUiImage;
|
@@ -36,7 +36,7 @@ var _index = require("./index");
|
|
36
36
|
var _ListBoxContext = require("./ListBoxContext");
|
37
37
|
var _ListBoxSection = _interopRequireDefault(require("./ListBoxSection"));
|
38
38
|
var _react2 = require("@emotion/react");
|
39
|
-
var _excluded = ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isCondensed", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "loadingState", "onLoadMore", "onLoadPrev", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details", "
|
39
|
+
var _excluded = ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isCondensed", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "loadingState", "onLoadMore", "onLoadPrev", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details", "shouldShowSelectedOption"];
|
40
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
41
41
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
42
42
|
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; }
|
@@ -96,7 +96,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
96
96
|
ariaLabelledby = props['aria-labelledby'],
|
97
97
|
ariaDescribedby = props['aria-describedby'],
|
98
98
|
ariaDetails = props['aria-details'],
|
99
|
-
|
99
|
+
shouldShowSelectedOption = props.shouldShowSelectedOption,
|
100
100
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
101
101
|
|
102
102
|
// Object matching React Aria API with all options
|
@@ -198,7 +198,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
198
198
|
item: item,
|
199
199
|
hasVirtualFocus: hasVirtualFocus,
|
200
200
|
isCondensed: isCondensed,
|
201
|
-
|
201
|
+
shouldShowSelectedOption: shouldShowSelectedOption
|
202
202
|
});
|
203
203
|
}
|
204
204
|
if (type === collectionTypes.LOADER) {
|
@@ -28,7 +28,7 @@ var _Box = _interopRequireDefault(require("../Box"));
|
|
28
28
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
29
29
|
var _ListBoxContext = require("./ListBoxContext");
|
30
30
|
var _react2 = require("@emotion/react");
|
31
|
-
var _excluded = ["item", "hasVirtualFocus", "isCondensed", "
|
31
|
+
var _excluded = ["item", "hasVirtualFocus", "isCondensed", "shouldShowSelectedOption"],
|
32
32
|
_excluded2 = ["onPressStart", "onPressUp"];
|
33
33
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
34
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -67,7 +67,7 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
67
67
|
var item = props.item,
|
68
68
|
hasVirtualFocus = props.hasVirtualFocus,
|
69
69
|
isCondensed = props.isCondensed,
|
70
|
-
|
70
|
+
shouldShowSelectedOption = props.shouldShowSelectedOption,
|
71
71
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
72
72
|
var key = item.key,
|
73
73
|
itemProps = item.props,
|
@@ -95,9 +95,9 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
95
95
|
isFocused = _useOption.isFocused,
|
96
96
|
isFocusVisible = _useOption.isFocusVisible,
|
97
97
|
isPressed = _useOption.isPressed;
|
98
|
-
var
|
98
|
+
var hasFocus = isFocused || (state === null || state === void 0 || (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
|
99
99
|
var setFocusOnHover = function setFocusOnHover() {
|
100
|
-
if (!
|
100
|
+
if (!hasFocus && !isCondensed) {
|
101
101
|
state.selectionManager.setFocusedKey(item.key);
|
102
102
|
}
|
103
103
|
};
|
@@ -105,8 +105,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
105
105
|
isOnyx = _useGetTheme.themeState.isOnyx;
|
106
106
|
var _useStatusClasses = (0, _hooks.useStatusClasses)(null, {
|
107
107
|
isDisabled: isDisabled || isSeparator,
|
108
|
-
isFocused:
|
109
|
-
isSelected:
|
108
|
+
isFocused: hasFocus,
|
109
|
+
isSelected: shouldShowSelectedOption ? isSelected : false,
|
110
110
|
isCondensed: isCondensed,
|
111
111
|
isFocusVisible: isFocusVisible,
|
112
112
|
isPressed: isPressed
|
@@ -143,12 +143,12 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
143
143
|
mr: "xs",
|
144
144
|
className: classNames,
|
145
145
|
variant: "listBox.checkboxIcon"
|
146
|
-
}) : isSelected && !isOnyx &&
|
146
|
+
}) : isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
147
147
|
icon: _CircleSmallIcon["default"],
|
148
148
|
title: {
|
149
149
|
name: 'Circle Small Icon'
|
150
150
|
}
|
151
|
-
}), rendered, isSelected && isOnyx &&
|
151
|
+
}), rendered, isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
152
152
|
icon: _CheckIcon["default"],
|
153
153
|
title: {
|
154
154
|
name: 'Check Icon'
|
@@ -157,7 +157,7 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
157
157
|
}));
|
158
158
|
});
|
159
159
|
Option.defaultProps = {
|
160
|
-
|
160
|
+
shouldShowSelectedOption: true
|
161
161
|
};
|
162
162
|
var _default = Option;
|
163
163
|
exports["default"] = _default;
|
@@ -29,14 +29,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
29
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
30
30
|
var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
31
31
|
var item = props.item,
|
32
|
-
|
32
|
+
isPropDisabled = props.isDisabled,
|
33
33
|
isFocusVisible = props.isFocusVisible,
|
34
34
|
isNotFocusedOnHover = props.isNotFocusedOnHover,
|
35
35
|
className = props.className,
|
36
36
|
state = props.state;
|
37
37
|
var _useMenuContext = (0, _MenuContext.useMenuContext)(),
|
38
38
|
onClose = _useMenuContext.onClose,
|
39
|
-
|
39
|
+
shouldCloseOnSelect = _useMenuContext.shouldCloseOnSelect;
|
40
40
|
var _ref = item,
|
41
41
|
key = _ref.key,
|
42
42
|
rendered = _ref.rendered,
|
@@ -45,7 +45,7 @@ var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
45
45
|
propIsPressed = itemProps.isPressed,
|
46
46
|
dataId = itemProps['data-id'],
|
47
47
|
others = (0, _objectWithoutProperties2["default"])(itemProps, _excluded);
|
48
|
-
var isDisabled =
|
48
|
+
var isDisabled = isPropDisabled || state.disabledKeys.has(key);
|
49
49
|
var isSelected = state.selectionManager.isSelected(key);
|
50
50
|
(0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
|
51
51
|
var menuItemRef = (0, _hooks.useLocalOrForwardRef)(ref);
|
@@ -55,7 +55,7 @@ var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
55
55
|
isDisabled: isDisabled,
|
56
56
|
isSelected: isSelected,
|
57
57
|
onClose: onClose,
|
58
|
-
closeOnSelect:
|
58
|
+
closeOnSelect: shouldCloseOnSelect
|
59
59
|
}, state, menuItemRef),
|
60
60
|
menuItemProps = _useMenuItem.menuItemProps;
|
61
61
|
var _useState = (0, _react.useState)(false),
|
@@ -122,7 +122,7 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
122
122
|
loadingState: loadingState,
|
123
123
|
inputValue: filterString
|
124
124
|
}),
|
125
|
-
|
125
|
+
isLoading = _useInputLoader.isLoading;
|
126
126
|
(0, _react.useEffect)(function () {
|
127
127
|
setInitialItems((0, _from["default"])(items));
|
128
128
|
}, []);
|
@@ -391,7 +391,7 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
391
391
|
variant: "forms.comboBox.inputInContainerSlot"
|
392
392
|
},
|
393
393
|
// Render loader after delay if filtering or loading
|
394
|
-
|
394
|
+
isLoading && (isOpen || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
|
395
395
|
variant: "loader.withinInput"
|
396
396
|
}), (0, _react2.jsx)(_.Box, {
|
397
397
|
as: "button",
|
@@ -159,7 +159,7 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
159
159
|
loadingState: loadingState,
|
160
160
|
inputValue: filterString
|
161
161
|
}),
|
162
|
-
|
162
|
+
isLoading = _useInputLoader.isLoading;
|
163
163
|
var closeBadgeRefs = (0, _react.useRef)([]);
|
164
164
|
var inputWrapperRef = (0, _react.useRef)();
|
165
165
|
var inputRef = (0, _react.useRef)();
|
@@ -518,7 +518,7 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
518
518
|
variant: "forms.comboBox.inputInContainerSlot"
|
519
519
|
},
|
520
520
|
// Render loader after delay if filtering or loading
|
521
|
-
|
521
|
+
isLoading && loadingState === _loadingStates["default"].LOADING && (0, _react2.jsx)(_.Loader, {
|
522
522
|
variant: "loader.withinInput"
|
523
523
|
}));
|
524
524
|
return (0, _react2.jsx)(_MultivaluesContext.MultivaluesContext.Provider, {
|
@@ -51,22 +51,22 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
51
51
|
var array = (item === null || item === void 0 ? void 0 : item.children) && (0, _map["default"])(_context = item.children).call(_context, function (i) {
|
52
52
|
return i.key;
|
53
53
|
});
|
54
|
-
var
|
54
|
+
var isChildSelected = array && (0, _includes["default"])(array).call(array, navBarState.selectedKey);
|
55
55
|
(0, _react.useEffect)(function () {
|
56
|
-
if (
|
56
|
+
if (isChildSelected && isExpanded === false) {
|
57
57
|
var _context2;
|
58
58
|
setExpandedKeys((0, _concat["default"])(_context2 = []).call(_context2, expandedKeys, [key]));
|
59
59
|
}
|
60
60
|
}, [selectedKey]);
|
61
61
|
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, {
|
62
|
-
isSelected:
|
62
|
+
isSelected: isChildSelected && !isExpanded
|
63
63
|
}),
|
64
64
|
classNames = _useStatusClasses.classNames;
|
65
65
|
var getIconColor = function getIconColor() {
|
66
66
|
if (navStyles.navBarItemHeader === 'navBar.popUpItemHeaderContainer') {
|
67
|
-
return
|
67
|
+
return isChildSelected && !isExpanded ? 'white' : 'text.primary';
|
68
68
|
}
|
69
|
-
return
|
69
|
+
return isChildSelected && !isExpanded ? 'white' : 'neutral.95';
|
70
70
|
};
|
71
71
|
return (0, _react2.jsx)(_index.Box, {
|
72
72
|
variant: navStyles.navBarItemHeader,
|
@@ -43,23 +43,23 @@ var NavSideBarSectionHeader = function NavSideBarSectionHeader(props) {
|
|
43
43
|
navStyles = navBarState.navStyles,
|
44
44
|
selectedKey = navBarState.selectedKey;
|
45
45
|
var isExpanded = (0, _includes["default"])(expandedKeys).call(expandedKeys, id);
|
46
|
-
var
|
46
|
+
var isChildSelected = (0, _isArray["default"])(items) && (0, _includes["default"])(_context = (0, _map["default"])(items).call(items, function (i) {
|
47
47
|
return i.key;
|
48
48
|
})).call(_context, selectedKey);
|
49
49
|
(0, _react.useEffect)(function () {
|
50
|
-
if (
|
50
|
+
if (isChildSelected && isExpanded === false) {
|
51
51
|
var _context2;
|
52
52
|
setExpandedKeys((0, _concat["default"])(_context2 = []).call(_context2, expandedKeys, [id]));
|
53
53
|
}
|
54
54
|
}, []);
|
55
55
|
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, {
|
56
|
-
isSelected:
|
56
|
+
isSelected: isChildSelected && !isExpanded
|
57
57
|
}),
|
58
58
|
classNames = _useStatusClasses.classNames;
|
59
|
-
var variant =
|
59
|
+
var variant = isChildSelected && !isExpanded ? navStyles.navBarItemIcon : navStyles.navBarItemIconSelected;
|
60
60
|
var handleButtonPress = function handleButtonPress() {
|
61
61
|
onExpandedChange(!isExpanded);
|
62
|
-
if (
|
62
|
+
if (isChildSelected && isExpanded === false) {
|
63
63
|
var _context3;
|
64
64
|
setExpandedKeys((0, _concat["default"])(_context3 = []).call(_context3, expandedKeys, [id]));
|
65
65
|
}
|
@@ -77,7 +77,7 @@ var PopoverMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
77
77
|
ref: menuRef,
|
78
78
|
onClose: state.close,
|
79
79
|
// Our API preference is for default false so we invert this since it should be default true
|
80
|
-
|
80
|
+
shouldCloseOnSelect: !isNotClosedOnSelect,
|
81
81
|
autoFocus: state.focusStrategy || true
|
82
82
|
});
|
83
83
|
var contents = (0, _react2.jsx)(_reactAria.FocusScope, {
|
@@ -33,8 +33,8 @@ exports.calculateBarWidth = calculateBarWidth;
|
|
33
33
|
var ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
34
34
|
var _props$label = props.label,
|
35
35
|
label = _props$label === void 0 ? '' : _props$label,
|
36
|
-
_props$
|
37
|
-
|
36
|
+
_props$shouldShowValu = props.shouldShowValueLabel,
|
37
|
+
shouldShowValueLabel = _props$shouldShowValu === void 0 ? true : _props$shouldShowValu,
|
38
38
|
value = props.value,
|
39
39
|
_props$minValue = props.minValue,
|
40
40
|
minValue = _props$minValue === void 0 ? 0 : _props$minValue,
|
@@ -58,7 +58,7 @@ var ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
58
58
|
}, label && (0, _react2.jsx)(_.Text, (0, _extends2["default"])({
|
59
59
|
fontSize: "xs",
|
60
60
|
fontWeight: "3"
|
61
|
-
}, labelProps), label),
|
61
|
+
}, labelProps), label), shouldShowValueLabel && (0, _react2.jsx)(_.Text, {
|
62
62
|
fontSize: "xs",
|
63
63
|
fontWeight: "3"
|
64
64
|
}, progressBarProps['aria-valuetext'])), (0, _react2.jsx)(_.Box, {
|