@kaizen/components 1.70.8 → 1.70.10
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/dist/cjs/Avatar/Avatar.cjs +3 -3
- package/dist/cjs/Avatar/Avatar.module.css.cjs +20 -0
- package/dist/cjs/AvatarGroup/AvatarGroup.cjs +1 -1
- package/dist/cjs/AvatarGroup/AvatarGroup.module.css.cjs +11 -0
- package/dist/cjs/Badge/Badge.cjs +1 -1
- package/dist/cjs/Badge/Badge.module.css.cjs +14 -0
- package/dist/cjs/Brand/Brand.cjs +1 -1
- package/dist/cjs/Brand/{Brand.module.scss.cjs → Brand.module.css.cjs} +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.cjs +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.module.css.cjs +29 -0
- package/dist/cjs/ButtonGroup/ButtonGroup.cjs +1 -1
- package/dist/cjs/ButtonGroup/ButtonGroup.module.css.cjs +9 -0
- package/dist/esm/Avatar/Avatar.mjs +6 -6
- package/dist/esm/Avatar/Avatar.module.css.mjs +18 -0
- package/dist/esm/AvatarGroup/AvatarGroup.mjs +2 -2
- package/dist/esm/AvatarGroup/AvatarGroup.module.css.mjs +9 -0
- package/dist/esm/Badge/Badge.mjs +1 -1
- package/dist/esm/Badge/Badge.module.css.mjs +12 -0
- package/dist/esm/Brand/Brand.mjs +1 -1
- package/dist/esm/Brand/{Brand.module.scss.mjs → Brand.module.css.mjs} +1 -1
- package/dist/esm/BrandMoment/BrandMoment.mjs +6 -6
- package/dist/esm/BrandMoment/BrandMoment.module.css.mjs +27 -0
- package/dist/esm/Button/GenericButton/GenericButton.mjs +2 -2
- package/dist/esm/ButtonGroup/ButtonGroup.mjs +1 -1
- package/dist/esm/ButtonGroup/ButtonGroup.module.css.mjs +7 -0
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +2 -2
- package/dist/esm/DatePicker/DatePicker.mjs +1 -1
- package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs +1 -1
- package/dist/esm/DatePicker/utils/validateDate.mjs +3 -3
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +1 -1
- package/dist/esm/EmptyState/EmptyState.mjs +2 -2
- package/dist/esm/FieldMessage/FieldMessage.mjs +1 -1
- package/dist/esm/Filter/Filter/Filter.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +2 -2
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/utils/getDateValidationHandler.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/FilterDateRangePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +3 -3
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +1 -1
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +4 -4
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +2 -2
- package/dist/esm/Input/InputRange/InputRange.mjs +1 -1
- package/dist/esm/Input/InputSearch/InputSearch.mjs +3 -3
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +1 -1
- package/dist/esm/Menu/subcomponents/StatelessMenu/StatelessMenu.mjs +1 -1
- package/dist/esm/Modal/ContextModal/ContextModal.mjs +1 -1
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +1 -1
- package/dist/esm/MultiSelect/MultiSelect.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -1
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs +1 -1
- package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +3 -3
- package/dist/esm/Pagination/Pagination.mjs +2 -2
- package/dist/esm/Popover/Popover.mjs +3 -3
- package/dist/esm/ProgressBar/ProgressBar.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +3 -3
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/validation.mjs +1 -1
- package/dist/esm/SearchField/SearchField.mjs +1 -1
- package/dist/esm/Select/Select.mjs +1 -1
- package/dist/esm/Slider/Slider.mjs +1 -1
- package/dist/esm/Table/Table.mjs +15 -15
- package/dist/esm/Tabs/subcomponents/Tab.mjs +1 -1
- package/dist/esm/Tag/Tag.mjs +2 -2
- package/dist/esm/TextAreaField/TextAreaField.mjs +1 -1
- package/dist/esm/TextField/TextField.mjs +3 -3
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
- package/dist/esm/Tile/TileGrid/TileGrid.mjs +2 -2
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +5 -5
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +12 -12
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +5 -5
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +5 -5
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +2 -2
- package/dist/esm/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +1 -1
- package/dist/esm/__rc__/Button/subcomponents/ButtonContent/ButtonContent.mjs +1 -1
- package/dist/esm/__rc__/Button/subcomponents/PendingContent/PendingContent.mjs +1 -1
- package/dist/esm/__rc__/Menu/MenuItem.mjs +2 -2
- package/dist/esm/__rc__/Select/Select.mjs +3 -3
- package/dist/esm/__rc__/Select/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
- package/dist/esm/__rc__/Select/subcomponents/ListItem/ListItem.mjs +2 -2
- package/dist/esm/__rc__/Select/utils/transformSelectItemToCollectionElement.mjs +2 -2
- package/dist/esm/__rc__/Tabs/subcomponents/Tab/Tab.mjs +1 -1
- package/dist/esm/__rc__/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/utils/getNodeText.mjs +1 -1
- package/dist/styles.css +315 -277
- package/package.json +1 -1
- package/src/Avatar/Avatar.module.css +138 -0
- package/src/Avatar/Avatar.tsx +6 -3
- package/src/AvatarGroup/AvatarGroup.module.css +57 -0
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/Badge/Badge.module.css +101 -0
- package/src/Badge/Badge.tsx +1 -1
- package/src/Brand/Brand.tsx +1 -1
- package/src/BrandMoment/{BrandMoment.module.scss → BrandMoment.module.css} +29 -50
- package/src/BrandMoment/BrandMoment.tsx +1 -1
- package/src/ButtonGroup/ButtonGroup.module.css +48 -0
- package/src/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/Tile/TileGrid/TileGrid.module.scss +2 -0
- package/dist/cjs/Avatar/Avatar.module.scss.cjs +0 -20
- package/dist/cjs/AvatarGroup/AvatarGroup.module.scss.cjs +0 -11
- package/dist/cjs/Badge/Badge.module.scss.cjs +0 -14
- package/dist/cjs/BrandMoment/BrandMoment.module.scss.cjs +0 -29
- package/dist/cjs/ButtonGroup/ButtonGroup.module.scss.cjs +0 -9
- package/dist/esm/Avatar/Avatar.module.scss.mjs +0 -18
- package/dist/esm/AvatarGroup/AvatarGroup.module.scss.mjs +0 -9
- package/dist/esm/Badge/Badge.module.scss.mjs +0 -12
- package/dist/esm/BrandMoment/BrandMoment.module.scss.mjs +0 -27
- package/dist/esm/ButtonGroup/ButtonGroup.module.scss.mjs +0 -7
- package/src/Avatar/Avatar.module.scss +0 -169
- package/src/AvatarGroup/AvatarGroup.module.scss +0 -79
- package/src/Badge/Badge.module.scss +0 -113
- /package/src/Brand/{Brand.module.scss → Brand.module.css} +0 -0
|
@@ -22,7 +22,7 @@ var validateEndDateBeforeStartDate = function (_a) {
|
|
|
22
22
|
validationResponse: __assign(__assign({}, baseResponse), {
|
|
23
23
|
validationMessage: {
|
|
24
24
|
status: 'error',
|
|
25
|
-
message: (
|
|
25
|
+
message: (/*#__PURE__*/React.createElement(FormattedMessage, {
|
|
26
26
|
id: "date.validation.rangeEndBeforeRangeStart",
|
|
27
27
|
defaultMessage: 'Cannot be earlier than the selection in "{startDateFieldLabel}"',
|
|
28
28
|
description: "Error message when the user tries to select an end date earlier than the start date",
|
|
@@ -17,7 +17,7 @@ const ListBoxSection = /*#__PURE__*/function () {
|
|
|
17
17
|
"aria-label": !hasSectionHeader ? sectionName : undefined,
|
|
18
18
|
"aria-labelledby": hasSectionHeader ? listSectionId : undefined,
|
|
19
19
|
role: "group"
|
|
20
|
-
}, hasSectionHeader && (
|
|
20
|
+
}, hasSectionHeader && (/*#__PURE__*/React.createElement("li", {
|
|
21
21
|
className: styles.listBoxSectionHeader,
|
|
22
22
|
id: listSectionId,
|
|
23
23
|
role: "presentation"
|
|
@@ -26,10 +26,10 @@ const MenuPopup = /*#__PURE__*/function () {
|
|
|
26
26
|
// and auto focus on the first focusable item after loading. (disable eslint no-autofocus error for it)
|
|
27
27
|
// In addition, add hidden <DismissButton> components at the start and end of the list
|
|
28
28
|
// to allow screen reader users to dismiss the popup easily.
|
|
29
|
-
return menuTriggerState.isOpen ? (
|
|
29
|
+
return menuTriggerState.isOpen ? (/*#__PURE__*/React.createElement("div", __assign({}, overlayProps, {
|
|
30
30
|
ref: overlayRef,
|
|
31
31
|
className: styles.menuPopup
|
|
32
|
-
}), isLoading && loadingSkeleton ? (
|
|
32
|
+
}), isLoading && loadingSkeleton ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DismissButton, {
|
|
33
33
|
onDismiss: onClose
|
|
34
34
|
}), loadingSkeleton, /*#__PURE__*/React.createElement(DismissButton, {
|
|
35
35
|
onDismiss: onClose
|
|
@@ -44,7 +44,7 @@ const MenuPopup = /*#__PURE__*/function () {
|
|
|
44
44
|
onDismiss: onClose
|
|
45
45
|
}), children, /*#__PURE__*/React.createElement(DismissButton, {
|
|
46
46
|
onDismiss: onClose
|
|
47
|
-
}))))) : (
|
|
47
|
+
}))))) : (/*#__PURE__*/React.createElement(React.Fragment, null));
|
|
48
48
|
};
|
|
49
49
|
MenuPopup.displayName = 'FilterMultiSelect.MenuPopup';
|
|
50
50
|
return MenuPopup;
|
package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs
CHANGED
|
@@ -40,7 +40,7 @@ const MultiSelectOption = /*#__PURE__*/function () {
|
|
|
40
40
|
}, isSelected && /*#__PURE__*/React.createElement(Icon, {
|
|
41
41
|
name: "check",
|
|
42
42
|
isPresentational: true
|
|
43
|
-
})), item.rendered, ((_d = item.value) === null || _d === void 0 ? void 0 : _d.count) && (
|
|
43
|
+
})), item.rendered, ((_d = item.value) === null || _d === void 0 ? void 0 : _d.count) && (/*#__PURE__*/React.createElement("span", {
|
|
44
44
|
id: countElementId,
|
|
45
45
|
className: styles.badgeContainer
|
|
46
46
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
@@ -107,7 +107,7 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
107
107
|
className: styles.descriptionAndActions
|
|
108
108
|
}, /*#__PURE__*/React.createElement("div", {
|
|
109
109
|
className: styles.descriptionContainer
|
|
110
|
-
}, 'content' in restProps && restProps.content, 'text' in restProps && (
|
|
110
|
+
}, 'content' in restProps && restProps.content, 'text' in restProps && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
111
111
|
className: styles.headingWrapper
|
|
112
112
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
113
113
|
tag: (_c = (_b = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _b === void 0 ? void 0 : _b.titleTag) !== null && _c !== void 0 ? _c : 'h3',
|
|
@@ -115,7 +115,7 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
115
115
|
}, (_d = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _d === void 0 ? void 0 : _d.title)), /*#__PURE__*/React.createElement(Text, {
|
|
116
116
|
tag: "p",
|
|
117
117
|
variant: "body"
|
|
118
|
-
}, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description)))), (actions === null || actions === void 0 ? void 0 : actions.primary) && (
|
|
118
|
+
}, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description)))), (actions === null || actions === void 0 ? void 0 : actions.primary) && (/*#__PURE__*/React.createElement(Media, {
|
|
119
119
|
query: "(max-width: 767px)"
|
|
120
120
|
}, function (isMobile) {
|
|
121
121
|
var _a;
|
|
@@ -129,7 +129,7 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
129
129
|
}, /*#__PURE__*/React.createElement(WithTooltip, {
|
|
130
130
|
tooltipProps: actions.primary.tooltip
|
|
131
131
|
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
132
|
-
icon: withActionButtonArrow ? (
|
|
132
|
+
icon: withActionButtonArrow ? (/*#__PURE__*/React.createElement(Icon, {
|
|
133
133
|
name: "arrow_forward",
|
|
134
134
|
isPresentational: true,
|
|
135
135
|
shouldMirrorInRTL: true
|
|
@@ -137,7 +137,7 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
137
137
|
iconPosition: "end"
|
|
138
138
|
}, actions.primary, {
|
|
139
139
|
fullWidth: isMobile || componentIsMobile
|
|
140
|
-
}))), (actions === null || actions === void 0 ? void 0 : actions.secondary) && (
|
|
140
|
+
}))), (actions === null || actions === void 0 ? void 0 : actions.secondary) && (/*#__PURE__*/React.createElement(WithTooltip, {
|
|
141
141
|
tooltipProps: actions.secondary.tooltip
|
|
142
142
|
}, /*#__PURE__*/React.createElement("div", {
|
|
143
143
|
className: styles.secondaryAction
|
|
@@ -12,13 +12,13 @@ const Base = /*#__PURE__*/function () {
|
|
|
12
12
|
aspectRatio = _a.aspectRatio,
|
|
13
13
|
restProps = __rest(_a, ["name", "alt", "classNameOverride", "aspectRatio"]);
|
|
14
14
|
var className = classnames(styles.wrapper, classNameOverride);
|
|
15
|
-
return aspectRatio ? (
|
|
15
|
+
return aspectRatio ? (/*#__PURE__*/React.createElement("figure", {
|
|
16
16
|
className: classnames(styles.aspectRatioWrapper, aspectRatio && styles[aspectRatio])
|
|
17
17
|
}, /*#__PURE__*/React.createElement("img", __assign({}, restProps, {
|
|
18
18
|
className: className,
|
|
19
19
|
alt: alt,
|
|
20
20
|
src: assetUrl(name)
|
|
21
|
-
})))) : (
|
|
21
|
+
})))) : (/*#__PURE__*/React.createElement("img", __assign({}, restProps, {
|
|
22
22
|
className: className,
|
|
23
23
|
alt: alt,
|
|
24
24
|
src: assetUrl(name)
|
|
@@ -64,7 +64,7 @@ const InputRange = /*#__PURE__*/function () {
|
|
|
64
64
|
id: visuallyHiddenHintId
|
|
65
65
|
}, min, " is ", minLabel, ", ", max, " is ", maxLabel), /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: styles.labelsContainer
|
|
67
|
-
}, !readOnlyWithNoValue && (
|
|
67
|
+
}, !readOnlyWithNoValue && (/*#__PURE__*/React.createElement("div", {
|
|
68
68
|
className: classnames(styles.sliderLabels, disabled && styles.disabled)
|
|
69
69
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
70
70
|
variant: "small",
|
|
@@ -40,11 +40,11 @@ const InputSearch = /*#__PURE__*/function () {
|
|
|
40
40
|
className: classnames(styles.wrapper, secondary ? styles.secondary : styles.default, reversed && styles.reversed, disabled && styles.disabled, value && styles.hasEndIconAdornment, classNameOverride)
|
|
41
41
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42
42
|
className: styles.startIconAdornment
|
|
43
|
-
}, loading ? (
|
|
43
|
+
}, loading ? (/*#__PURE__*/React.createElement(LoadingSpinner, {
|
|
44
44
|
accessibilityLabel: "",
|
|
45
45
|
size: "sm",
|
|
46
46
|
classNameOverride: styles.loadingSpinner
|
|
47
|
-
})) : (
|
|
47
|
+
})) : (/*#__PURE__*/React.createElement(Icon, {
|
|
48
48
|
name: "search",
|
|
49
49
|
isPresentational: true
|
|
50
50
|
}))), /*#__PURE__*/React.createElement("input", __assign({
|
|
@@ -57,7 +57,7 @@ const InputSearch = /*#__PURE__*/function () {
|
|
|
57
57
|
readOnly: onChange === undefined
|
|
58
58
|
}, restProps)), /*#__PURE__*/React.createElement("div", {
|
|
59
59
|
className: styles.focusRing
|
|
60
|
-
}), value && (
|
|
60
|
+
}), value && (/*#__PURE__*/React.createElement(ClearButton, {
|
|
61
61
|
isReversed: reversed,
|
|
62
62
|
onClick: handleOnClear,
|
|
63
63
|
disabled: disabled,
|
|
@@ -136,7 +136,7 @@ var LikertScaleLegacy = function (_a) {
|
|
|
136
136
|
}, /*#__PURE__*/React.createElement("div", {
|
|
137
137
|
className: classnames(styles.likertItemFill, styles["field".concat(item.value)], isSelectedItem && styles.pop)
|
|
138
138
|
}), isSelectedItem ? /*#__PURE__*/React.createElement(SelectedItemIcon, null) : null);
|
|
139
|
-
})), shouldDisplayValidationMessage && (
|
|
139
|
+
})), shouldDisplayValidationMessage && (/*#__PURE__*/React.createElement(FieldMessage, {
|
|
140
140
|
id: validationMessageId,
|
|
141
141
|
message: validationMessage,
|
|
142
142
|
status: status,
|
|
@@ -44,7 +44,7 @@ const StatelessMenu = /*#__PURE__*/function () {
|
|
|
44
44
|
console.warn('The portal could not be created using the selector: ' + portalSelector);
|
|
45
45
|
}
|
|
46
46
|
}, [portalSelectorElementRef, portalSelector]);
|
|
47
|
-
var menu = isMenuVisible ? (
|
|
47
|
+
var menu = isMenuVisible ? (/*#__PURE__*/React.createElement(MenuDropdown, {
|
|
48
48
|
referenceElement: referenceElement,
|
|
49
49
|
align: align,
|
|
50
50
|
hideMenuDropdown: hideMenuDropdown,
|
|
@@ -82,7 +82,7 @@ const ContextModal = /*#__PURE__*/function () {
|
|
|
82
82
|
className: styles.image
|
|
83
83
|
}, image), /*#__PURE__*/React.createElement("div", {
|
|
84
84
|
className: styles.content
|
|
85
|
-
}, children, onConfirm != null && (
|
|
85
|
+
}, children, onConfirm != null && (/*#__PURE__*/React.createElement("div", {
|
|
86
86
|
className: secondaryLabel ? styles.footerWithSecondaryAction : styles.footer
|
|
87
87
|
}))))), /*#__PURE__*/React.createElement(ModalFooter, {
|
|
88
88
|
variant: image ? 'context' : undefined,
|
|
@@ -100,7 +100,7 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
100
100
|
cleanUpAfterClose();
|
|
101
101
|
propsOnAfterLeave === null || propsOnAfterLeave === void 0 ? void 0 : propsOnAfterLeave();
|
|
102
102
|
};
|
|
103
|
-
return /*#__PURE__*/createPortal(
|
|
103
|
+
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(Transition, {
|
|
104
104
|
appear: true,
|
|
105
105
|
show: isOpen,
|
|
106
106
|
enter: styles.animatingEnter,
|
|
@@ -83,7 +83,7 @@ const MultiSelect = /*#__PURE__*/function () {
|
|
|
83
83
|
}, validationMessage)), description && /*#__PURE__*/React.createElement(FieldMessage, {
|
|
84
84
|
id: descriptionId,
|
|
85
85
|
message: description
|
|
86
|
-
}), isOpen && (
|
|
86
|
+
}), isOpen && (/*#__PURE__*/React.createElement(Popover, {
|
|
87
87
|
refs: refs,
|
|
88
88
|
id: "".concat(id, "--popover"),
|
|
89
89
|
role: "dialog",
|
|
@@ -30,7 +30,7 @@ const MultiSelectOptions = /*#__PURE__*/function () {
|
|
|
30
30
|
}, restProps), /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
31
31
|
id: optionsCountId,
|
|
32
32
|
"aria-live": "polite"
|
|
33
|
-
}, "Options available: ", options.length), options.length === 0 ? (
|
|
33
|
+
}, "Options available: ", options.length), options.length === 0 ? (/*#__PURE__*/React.createElement(Text, {
|
|
34
34
|
tag: "span",
|
|
35
35
|
variant: "body"
|
|
36
36
|
}, "No options available")) : options.map(function (option) {
|
|
@@ -41,7 +41,7 @@ const MultiSelectToggle = /*#__PURE__*/function () {
|
|
|
41
41
|
isPresentational: true
|
|
42
42
|
})), /*#__PURE__*/React.createElement("div", {
|
|
43
43
|
className: classnames(styles.selectedItemsContainer, selectedOptions.length && styles.hasSelectedItems)
|
|
44
|
-
}, selectedOptions.length > 0 && (
|
|
44
|
+
}, selectedOptions.length > 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("ul", {
|
|
45
45
|
role: "list",
|
|
46
46
|
className: styles.selectedItems
|
|
47
47
|
}, selectedOptions.map(function (_a) {
|
|
@@ -34,7 +34,7 @@ const Popover = /*#__PURE__*/function () {
|
|
|
34
34
|
})],
|
|
35
35
|
whileElementsMounted: autoUpdate
|
|
36
36
|
}, floatingOptions)).floatingStyles;
|
|
37
|
-
return /*#__PURE__*/createPortal(
|
|
37
|
+
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(FocusOn, __assign({
|
|
38
38
|
enabled: false,
|
|
39
39
|
scrollLock: false
|
|
40
40
|
}, focusOnProps), /*#__PURE__*/React.createElement("div", __assign({
|
package/dist/esm/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs
CHANGED
|
@@ -23,11 +23,11 @@ const ToastNotificationsList = /*#__PURE__*/function () {
|
|
|
23
23
|
}
|
|
24
24
|
setToastContainer(container);
|
|
25
25
|
}, []);
|
|
26
|
-
return toastContainer ? (
|
|
26
|
+
return toastContainer ? (/*#__PURE__*/React.createElement(ToastNotificationsMap, {
|
|
27
27
|
notifications: notifications,
|
|
28
28
|
onHide: removeToastNotification,
|
|
29
29
|
container: toastContainer
|
|
30
|
-
})) : (
|
|
30
|
+
})) : (/*#__PURE__*/React.createElement(React.Fragment, null));
|
|
31
31
|
};
|
|
32
32
|
ToastNotificationsList.displayName = 'ToastNotificationsList';
|
|
33
33
|
return ToastNotificationsList;
|
|
@@ -10,7 +10,7 @@ const ToastNotificationsMap = /*#__PURE__*/function () {
|
|
|
10
10
|
if (!container) return null;
|
|
11
11
|
// To consolidate all notifications into a single list when there are multiple contexts,
|
|
12
12
|
// this list cannot render with a container (must be portalled into one).
|
|
13
|
-
return /*#__PURE__*/createPortal(
|
|
13
|
+
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(React.Fragment, null, notifications.map(function (_a) {
|
|
14
14
|
var id = _a.id,
|
|
15
15
|
title = _a.title,
|
|
16
16
|
persistent = _a.persistent,
|
|
@@ -61,13 +61,13 @@ const GenericNotification = /*#__PURE__*/function () {
|
|
|
61
61
|
onTransitionEnd: onTransitionEnd
|
|
62
62
|
}, restProps), /*#__PURE__*/React.createElement("div", {
|
|
63
63
|
className: styles.icon
|
|
64
|
-
}, type ? (
|
|
64
|
+
}, type ? (/*#__PURE__*/React.createElement(NotificationIconType, {
|
|
65
65
|
type: type
|
|
66
|
-
})) : (
|
|
66
|
+
})) : (/*#__PURE__*/React.createElement(NotificationIconVariant, {
|
|
67
67
|
variant: variant
|
|
68
68
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
69
69
|
className: classnames(styles.textContainer, forceMultiline && styles.forceMultiline)
|
|
70
|
-
}, style !== 'global' && (
|
|
70
|
+
}, style !== 'global' && (/*#__PURE__*/React.createElement(NotificationHeading, {
|
|
71
71
|
titleProp: title,
|
|
72
72
|
headingProps: headingProps
|
|
73
73
|
})), children && /*#__PURE__*/React.createElement("div", {
|
|
@@ -72,7 +72,7 @@ var Pagination = function (_a) {
|
|
|
72
72
|
// Calculate and add truncate before group of main pages
|
|
73
73
|
var firstEllipsisPageNumber = mainPagesStart - 1;
|
|
74
74
|
var showPageInsteadOfFirstEllipsis = firstEllipsisPageNumber === firstPagesEnd + 1;
|
|
75
|
-
items.push(showPageInsteadOfFirstEllipsis ? paginationIndicator(firstEllipsisPageNumber) : (
|
|
75
|
+
items.push(showPageInsteadOfFirstEllipsis ? paginationIndicator(firstEllipsisPageNumber) : (/*#__PURE__*/React.createElement(TruncateIndicator, {
|
|
76
76
|
key: firstEllipsisPageNumber
|
|
77
77
|
})));
|
|
78
78
|
// Add group of main pages
|
|
@@ -80,7 +80,7 @@ var Pagination = function (_a) {
|
|
|
80
80
|
// Calculate and add truncate after group of main pages
|
|
81
81
|
var secondEllipsisPageNumber = mainPagesEnd + 1;
|
|
82
82
|
var showPageInsteadOfSecondEllipsis = secondEllipsisPageNumber === lastPagesStart - 1;
|
|
83
|
-
items.push(showPageInsteadOfSecondEllipsis ? paginationIndicator(secondEllipsisPageNumber) : (
|
|
83
|
+
items.push(showPageInsteadOfSecondEllipsis ? paginationIndicator(secondEllipsisPageNumber) : (/*#__PURE__*/React.createElement(TruncateIndicator, {
|
|
84
84
|
key: secondEllipsisPageNumber
|
|
85
85
|
})));
|
|
86
86
|
// Add group of last pages
|
|
@@ -83,14 +83,14 @@ const Popover = /*#__PURE__*/function () {
|
|
|
83
83
|
className: classnames(styles.root, mapSizeToClass(size), classNameOverride)
|
|
84
84
|
}, restProps), /*#__PURE__*/React.createElement("div", {
|
|
85
85
|
className: mapVariantToBoxClass(variant)
|
|
86
|
-
}, heading && (
|
|
86
|
+
}, heading && (/*#__PURE__*/React.createElement("div", {
|
|
87
87
|
className: styles.header
|
|
88
|
-
}, variant !== 'default' && (
|
|
88
|
+
}, variant !== 'default' && (/*#__PURE__*/React.createElement("span", {
|
|
89
89
|
className: classnames(styles.icon, mapVariantToIconClass(variant))
|
|
90
90
|
}, customIcon !== null && customIcon !== void 0 ? customIcon : mapVariantToIcon(variant))), /*#__PURE__*/React.createElement(Heading, {
|
|
91
91
|
variant: "heading-6",
|
|
92
92
|
classNameOverride: styles.singleLine
|
|
93
|
-
}, heading), dismissible && (
|
|
93
|
+
}, heading), dismissible && (/*#__PURE__*/React.createElement("button", {
|
|
94
94
|
className: styles.close,
|
|
95
95
|
onClick: onClose,
|
|
96
96
|
type: "button",
|
|
@@ -43,7 +43,7 @@ const ProgressBar = /*#__PURE__*/function () {
|
|
|
43
43
|
style: {
|
|
44
44
|
transform: "translateX(-".concat(100 - percentage, "%")
|
|
45
45
|
}
|
|
46
|
-
})), subtext && (
|
|
46
|
+
})), subtext && (/*#__PURE__*/React.createElement("div", {
|
|
47
47
|
className: styles.subtext
|
|
48
48
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
49
49
|
variant: "heading-6",
|
|
@@ -106,13 +106,13 @@ const RichTextEditor = /*#__PURE__*/function () {
|
|
|
106
106
|
// Including `onContentChange` in the dependencies here will cause a 'Maximum update depth exceeded' issue
|
|
107
107
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
108
108
|
}, [editorState]);
|
|
109
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !labelledBy && labelText && (
|
|
109
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !labelledBy && labelText && (/*#__PURE__*/React.createElement(Label, {
|
|
110
110
|
classNameOverride: styles.editorLabel,
|
|
111
111
|
id: labelId,
|
|
112
112
|
labelText: labelText
|
|
113
113
|
})), /*#__PURE__*/React.createElement("div", {
|
|
114
114
|
className: classnames(styles.editorWrapper, styles[status])
|
|
115
|
-
}, controls && (
|
|
115
|
+
}, controls && (/*#__PURE__*/React.createElement(Toolbar, {
|
|
116
116
|
"aria-controls": editorId,
|
|
117
117
|
"aria-label": "Text formatting",
|
|
118
118
|
classNameOverride: styles.toolbar
|
|
@@ -135,7 +135,7 @@ const RichTextEditor = /*#__PURE__*/function () {
|
|
|
135
135
|
id: editorId,
|
|
136
136
|
ref: editorRef,
|
|
137
137
|
className: classnames(styles.editor, styles["rows".concat(rows)], classNameOverride, controls != null && controls.length > 0 && styles.hasToolbar)
|
|
138
|
-
}, restProps))), validationMessage && (
|
|
138
|
+
}, restProps))), validationMessage && (/*#__PURE__*/React.createElement(FieldMessage, {
|
|
139
139
|
id: validationMessageAria,
|
|
140
140
|
message: validationMessage,
|
|
141
141
|
status: status
|
package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const LinkEditor = /*#__PURE__*/function () {
|
|
|
18
18
|
var _e = useState(attrs.href ? attrs.href : undefined),
|
|
19
19
|
href = _e[0],
|
|
20
20
|
setHref = _e[1];
|
|
21
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isPopoverOpen && (
|
|
21
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isPopoverOpen && (/*#__PURE__*/React.createElement(LinkPopover, {
|
|
22
22
|
href: href,
|
|
23
23
|
selectionPosition: selectionPosition,
|
|
24
24
|
onRemove: function () {
|
package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs
CHANGED
|
@@ -57,7 +57,7 @@ const LinkModal = /*#__PURE__*/function () {
|
|
|
57
57
|
labelText: "Link URL",
|
|
58
58
|
description: "Must start with http:// or https://",
|
|
59
59
|
inputRef: inputRef,
|
|
60
|
-
validationMessage: (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.message) && (
|
|
60
|
+
validationMessage: (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.message) && (/*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: styles.validationErrorMessage
|
|
62
62
|
}, validationStatus.message)),
|
|
63
63
|
status: validationStatus.status,
|
package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.mjs
CHANGED
|
@@ -30,7 +30,7 @@ const Positioner = /*#__PURE__*/function () {
|
|
|
30
30
|
if (windowScroll === undefined || portalContainer === undefined) return null;
|
|
31
31
|
var x = windowScroll[0],
|
|
32
32
|
y = windowScroll[1];
|
|
33
|
-
return /*#__PURE__*/createPortal(
|
|
33
|
+
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement("div", {
|
|
34
34
|
ref: ref,
|
|
35
35
|
style: {
|
|
36
36
|
height: "".concat(height, "px"),
|
|
@@ -29,7 +29,7 @@ var createReactTooltipWrapper = function (parentNode, Component, componentProps)
|
|
|
29
29
|
var container = document.createElement('div');
|
|
30
30
|
parentNode.appendChild(container);
|
|
31
31
|
var root = createRoot(container);
|
|
32
|
-
root.render(
|
|
32
|
+
root.render(/*#__PURE__*/React.createElement(Wrapper, {
|
|
33
33
|
componentProps: componentProps,
|
|
34
34
|
Component: Component,
|
|
35
35
|
emitter: emitter
|
|
@@ -4,7 +4,7 @@ var validateLink = function (href) {
|
|
|
4
4
|
if (!isValidLink) {
|
|
5
5
|
return {
|
|
6
6
|
status: 'error',
|
|
7
|
-
message: (
|
|
7
|
+
message: (/*#__PURE__*/React.createElement(React.Fragment, null, "Empty or invalid link. Links must start with http or https, e.g:", /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "https://google.com"), /*#__PURE__*/React.createElement("li", null, "http://www.google.com"))))
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
return {
|
|
@@ -25,7 +25,7 @@ const SearchField = /*#__PURE__*/function () {
|
|
|
25
25
|
// @todo: Move restProps to container div?
|
|
26
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
27
|
className: classNameOverride
|
|
28
|
-
}, showVisibleLabel && (
|
|
28
|
+
}, showVisibleLabel && (/*#__PURE__*/React.createElement(Label, {
|
|
29
29
|
htmlFor: id,
|
|
30
30
|
labelText: labelText,
|
|
31
31
|
reversed: reversed,
|
|
@@ -34,7 +34,7 @@ const Select = /*#__PURE__*/function () {
|
|
|
34
34
|
var fullWidth = propsFullWidth !== null && propsFullWidth !== void 0 ? propsFullWidth : !['secondary', 'secondary-small'].includes(variant);
|
|
35
35
|
var classes = classnames(propsClassName, styles.specificityIncreaser, (!reversed || variant === 'default') && styles.default, reversed && styles.reversed, variant === 'secondary' && styles.secondary, variant === 'secondary-small' && styles.secondarySmall, !fullWidth && styles.notFullWidth, isDisabled && styles.disabled, status === 'error' && styles.error);
|
|
36
36
|
var labelId = useState(label ? reactId : undefined)[0];
|
|
37
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, label ? (
|
|
37
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, label ? (/*#__PURE__*/React.createElement(Label, {
|
|
38
38
|
reversed: reversed,
|
|
39
39
|
id: labelId
|
|
40
40
|
}, label)) : null, /*#__PURE__*/React.createElement(ReactSelect, __assign({}, props, {
|
|
@@ -39,7 +39,7 @@ const Slider = /*#__PURE__*/function () {
|
|
|
39
39
|
labelText: labelText,
|
|
40
40
|
variant: variant,
|
|
41
41
|
disabled: disabled
|
|
42
|
-
})), description && (
|
|
42
|
+
})), description && (/*#__PURE__*/React.createElement(Text, {
|
|
43
43
|
variant: "small",
|
|
44
44
|
id: descriptionId,
|
|
45
45
|
classNameOverride: disabled ? styles.descriptionDisabled : undefined
|
package/dist/esm/Table/Table.mjs
CHANGED
|
@@ -85,37 +85,37 @@ var TableHeaderRowCell = function (_a) {
|
|
|
85
85
|
// wrap it elements, depending on what the props dictate.
|
|
86
86
|
var cellContents = /*#__PURE__*/React.createElement("div", {
|
|
87
87
|
className: styles.headerRowCellLabelAndIcons
|
|
88
|
-
}, icon && (
|
|
88
|
+
}, icon && (/*#__PURE__*/React.createElement("span", {
|
|
89
89
|
className: styles.headerRowCellIcon
|
|
90
90
|
}, /*#__PURE__*/cloneElement(icon, (_b = {
|
|
91
91
|
title: labelText
|
|
92
|
-
}, _b['aria-label'] = labelText, _b.role = 'img', _b)))), checkable && (
|
|
92
|
+
}, _b['aria-label'] = labelText, _b.role = 'img', _b)))), checkable && (/*#__PURE__*/React.createElement("div", {
|
|
93
93
|
className: styles.headerRowCellCheckbox
|
|
94
94
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
95
95
|
checkedStatus: checkedStatus,
|
|
96
96
|
onCheck: onCheck,
|
|
97
97
|
"aria-label": checkboxLabel
|
|
98
|
-
}))), tooltipInfo != null && !isTooltipIconHidden ? (
|
|
98
|
+
}))), tooltipInfo != null && !isTooltipIconHidden ? (/*#__PURE__*/React.createElement("div", {
|
|
99
99
|
className: styles.headerRowCellTooltipIcon
|
|
100
100
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
101
101
|
name: "error",
|
|
102
102
|
isPresentational: true,
|
|
103
103
|
isFilled: true
|
|
104
|
-
}))) : null, !icon ? (
|
|
104
|
+
}))) : null, !icon ? (/*#__PURE__*/React.createElement(Heading, {
|
|
105
105
|
tag: "div",
|
|
106
106
|
variant: "heading-6",
|
|
107
107
|
color: sorting || isHovered ? hoveredHeaderColor : headerColor,
|
|
108
108
|
classNameOverride: styles.headerRowCellLabel
|
|
109
|
-
}, labelText)) : null, (sorting !== null && sorting !== void 0 ? sorting : isHovered && sortingArrowsOnHover) && (
|
|
109
|
+
}, labelText)) : null, (sorting !== null && sorting !== void 0 ? sorting : isHovered && sortingArrowsOnHover) && (/*#__PURE__*/React.createElement("div", {
|
|
110
110
|
className: classnames(align === 'center' && styles.headerRowCellIconAlignCenter, align === 'end' && styles.headerRowCellIconAlignEnd, reversed && styles.whiteText)
|
|
111
|
-
}, sorting === 'ascending' || sortingArrowsOnHover === 'ascending' ? (
|
|
111
|
+
}, sorting === 'ascending' || sortingArrowsOnHover === 'ascending' ? (/*#__PURE__*/React.createElement(Icon, {
|
|
112
112
|
name: "arrow_drop_up",
|
|
113
113
|
isPresentational: true
|
|
114
|
-
})) : (
|
|
114
|
+
})) : (/*#__PURE__*/React.createElement(Icon, {
|
|
115
115
|
name: "arrow_drop_down",
|
|
116
116
|
isPresentational: true
|
|
117
117
|
})))));
|
|
118
|
-
cellContents = href ? (
|
|
118
|
+
cellContents = href ? (/*#__PURE__*/React.createElement("a", {
|
|
119
119
|
className: classnames(styles.headerRowCellButton, reversed && styles.headerRowCellButtonReversed),
|
|
120
120
|
href: href,
|
|
121
121
|
onClick: onClick,
|
|
@@ -131,7 +131,7 @@ var TableHeaderRowCell = function (_a) {
|
|
|
131
131
|
onBlur: function () {
|
|
132
132
|
return updateHoverState(false);
|
|
133
133
|
}
|
|
134
|
-
}, cellContents)) : onClick ? (
|
|
134
|
+
}, cellContents)) : onClick ? (/*#__PURE__*/React.createElement("button", {
|
|
135
135
|
type: "button",
|
|
136
136
|
className: classnames(styles.headerRowCellButton, reversed && styles.headerRowCellButtonReversed),
|
|
137
137
|
onClick: onClick,
|
|
@@ -155,7 +155,7 @@ var TableHeaderRowCell = function (_a) {
|
|
|
155
155
|
React.createElement("div", {
|
|
156
156
|
className: styles.headerRowCellNoButton
|
|
157
157
|
}, cellContents));
|
|
158
|
-
cellContents = tooltipInfo != null ? (
|
|
158
|
+
cellContents = tooltipInfo != null ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
159
159
|
animationDuration: 0,
|
|
160
160
|
classNameOverride: styles.headerRowCellTooltip,
|
|
161
161
|
text: tooltipInfo,
|
|
@@ -188,15 +188,15 @@ var TableCard = function (_a) {
|
|
|
188
188
|
classNameOverride = _a.classNameOverride,
|
|
189
189
|
otherProps = __rest(_a, ["children", "expanded", "expandedStyle", "onClick", "href", "forceHoverState", "classNameOverride"]);
|
|
190
190
|
var className = classnames(styles.card, expanded && styles.expanded, expanded && styles[expandedStyle], (forceHoverState || onClick != null || href != null) && styles.hasHoverState, classNameOverride);
|
|
191
|
-
return href != null ? (
|
|
191
|
+
return href != null ? (/*#__PURE__*/React.createElement("a", __assign({
|
|
192
192
|
href: href,
|
|
193
193
|
className: className,
|
|
194
194
|
onClick: onClick
|
|
195
|
-
}, otherProps), children)) : onClick ? (
|
|
195
|
+
}, otherProps), children)) : onClick ? (/*#__PURE__*/React.createElement("button", __assign({
|
|
196
196
|
type: "button",
|
|
197
197
|
className: className,
|
|
198
198
|
onClick: onClick
|
|
199
|
-
}, otherProps), children)) : (
|
|
199
|
+
}, otherProps), children)) : (/*#__PURE__*/React.createElement("div", __assign({
|
|
200
200
|
className: className
|
|
201
201
|
}, otherProps), children));
|
|
202
202
|
};
|
|
@@ -216,7 +216,7 @@ var TableRowCell = function (_a) {
|
|
|
216
216
|
href = _a.href,
|
|
217
217
|
classNameOverride = _a.classNameOverride,
|
|
218
218
|
otherProps = __rest(_a, ["children", "width", "flex", "href", "classNameOverride"]);
|
|
219
|
-
return href != null ? (
|
|
219
|
+
return href != null ? (/*#__PURE__*/React.createElement("a", __assign({
|
|
220
220
|
// eslint-disable-next-line jsx-a11y/no-interactive-element-to-noninteractive-role
|
|
221
221
|
role: "cell",
|
|
222
222
|
style: {
|
|
@@ -225,7 +225,7 @@ var TableRowCell = function (_a) {
|
|
|
225
225
|
},
|
|
226
226
|
className: classnames(styles.rowCell, classNameOverride),
|
|
227
227
|
href: href
|
|
228
|
-
}, otherProps), children)) : (
|
|
228
|
+
}, otherProps), children)) : (/*#__PURE__*/React.createElement("div", __assign({
|
|
229
229
|
role: "cell",
|
|
230
230
|
style: {
|
|
231
231
|
width: ratioToPercent(width),
|
|
@@ -49,7 +49,7 @@ var Tab = function (props) {
|
|
|
49
49
|
delete focusableProps.tabIndex;
|
|
50
50
|
return /*#__PURE__*/React.createElement(Tab$1, __assign({
|
|
51
51
|
ref: ref
|
|
52
|
-
}, tabProps, focusableProps), children, badge && (
|
|
52
|
+
}, tabProps, focusableProps), children, badge && (/*#__PURE__*/React.createElement("span", {
|
|
53
53
|
className: styles.badge
|
|
54
54
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
55
55
|
variant: showActiveBadge ? 'active' : 'default'
|
package/dist/esm/Tag/Tag.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var isJSXElement = function (imageElementOrAvatarProps) {
|
|
|
9
9
|
return 'props' in imageElementOrAvatarProps;
|
|
10
10
|
};
|
|
11
11
|
var renderAvatar = function (imageElementOrAvatarProps) {
|
|
12
|
-
return isJSXElement(imageElementOrAvatarProps) ? (
|
|
12
|
+
return isJSXElement(imageElementOrAvatarProps) ? (/*#__PURE__*/React.createElement(React.Fragment, null, imageElementOrAvatarProps)) : (/*#__PURE__*/React.createElement(Avatar, __assign({}, imageElementOrAvatarProps, {
|
|
13
13
|
size: "small"
|
|
14
14
|
})));
|
|
15
15
|
};
|
|
@@ -84,7 +84,7 @@ const Tag = /*#__PURE__*/function () {
|
|
|
84
84
|
style: {
|
|
85
85
|
maxWidth: isTruncated ? truncateWidth : undefined
|
|
86
86
|
}
|
|
87
|
-
}, children), dismissible && (
|
|
87
|
+
}, children), dismissible && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
|
88
88
|
type: "button",
|
|
89
89
|
className: styles.dismissButton,
|
|
90
90
|
onClick: onDismiss,
|
|
@@ -69,7 +69,7 @@ const TextAreaField = /*#__PURE__*/function () {
|
|
|
69
69
|
status: status,
|
|
70
70
|
disabled: disabled,
|
|
71
71
|
"aria-describedby": ariaDescribedBy
|
|
72
|
-
}, restProps)), !disabled && validationMessage && (
|
|
72
|
+
}, restProps)), !disabled && validationMessage && (/*#__PURE__*/React.createElement(FieldMessage, {
|
|
73
73
|
id: validationMessageAria,
|
|
74
74
|
"data-testid": validationMessageAria,
|
|
75
75
|
message: validationMessage,
|
|
@@ -56,21 +56,21 @@ const TextField = /*#__PURE__*/function () {
|
|
|
56
56
|
reversed: reversed,
|
|
57
57
|
status: status,
|
|
58
58
|
startIconAdornment: icon,
|
|
59
|
-
endIconAdornment: status === 'success' && (
|
|
59
|
+
endIconAdornment: status === 'success' && (/*#__PURE__*/React.createElement("div", {
|
|
60
60
|
className: classnames(styles.icon, styles.success, disabled && styles.disabled)
|
|
61
61
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
62
62
|
name: "check_circle",
|
|
63
63
|
isPresentational: true,
|
|
64
64
|
isFilled: true
|
|
65
65
|
})))
|
|
66
|
-
}, restProps)), validationMessage && (
|
|
66
|
+
}, restProps)), validationMessage && (/*#__PURE__*/React.createElement("div", {
|
|
67
67
|
className: classnames(styles.message, disabled && styles.disabled)
|
|
68
68
|
}, /*#__PURE__*/React.createElement(FieldMessage, {
|
|
69
69
|
id: validationMessageAria,
|
|
70
70
|
message: validationMessage,
|
|
71
71
|
status: status,
|
|
72
72
|
reversed: reversed
|
|
73
|
-
}))), description && (
|
|
73
|
+
}))), description && (/*#__PURE__*/React.createElement("div", {
|
|
74
74
|
className: classnames(styles.message, disabled && styles.disabled)
|
|
75
75
|
}, /*#__PURE__*/React.createElement(FieldMessage, {
|
|
76
76
|
id: descriptionAria,
|
|
@@ -7,7 +7,7 @@ import styles from './MultiActionTile.module.scss.mjs';
|
|
|
7
7
|
var renderActions = function (primaryAction, secondaryAction) {
|
|
8
8
|
return /*#__PURE__*/React.createElement("div", {
|
|
9
9
|
className: styles.actions
|
|
10
|
-
}, secondaryAction && (
|
|
10
|
+
}, secondaryAction && (/*#__PURE__*/React.createElement("div", {
|
|
11
11
|
className: styles.secondaryAction
|
|
12
12
|
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
13
13
|
secondary: true
|