@lumx/react 4.2.1-alpha.12 → 4.2.1-alpha.14
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/index.d.ts +140 -177
- package/index.js +9 -6
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +1 -1
- package/utils/index.js +4 -4
- package/utils/index.js.map +1 -1
package/index.js
CHANGED
|
@@ -1018,9 +1018,9 @@ const RawClickable$1 = props => {
|
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
1020
|
return /*#__PURE__*/jsx(Component, {
|
|
1021
|
+
"aria-disabled": isAnyDisabled || undefined,
|
|
1021
1022
|
...forwardedProps,
|
|
1022
1023
|
...clickableProps,
|
|
1023
|
-
"aria-disabled": isAnyDisabled || undefined,
|
|
1024
1024
|
onClick: event => {
|
|
1025
1025
|
if (isAnyDisabled) {
|
|
1026
1026
|
event.stopPropagation();
|
|
@@ -6449,7 +6449,10 @@ const {
|
|
|
6449
6449
|
* @param props Component props.
|
|
6450
6450
|
* @return JSX element.
|
|
6451
6451
|
*/
|
|
6452
|
-
const Flag$1 = props => {
|
|
6452
|
+
const Flag$1 = (props, nestedComponents) => {
|
|
6453
|
+
const {
|
|
6454
|
+
Text
|
|
6455
|
+
} = nestedComponents || {};
|
|
6453
6456
|
const {
|
|
6454
6457
|
children,
|
|
6455
6458
|
icon,
|
|
@@ -6457,7 +6460,6 @@ const Flag$1 = props => {
|
|
|
6457
6460
|
className,
|
|
6458
6461
|
theme,
|
|
6459
6462
|
truncate,
|
|
6460
|
-
Text,
|
|
6461
6463
|
...forwardedProps
|
|
6462
6464
|
} = props;
|
|
6463
6465
|
const flagColor = color || (theme === Theme.light ? ColorPalette.dark : ColorPalette.light);
|
|
@@ -6474,7 +6476,7 @@ const Flag$1 = props => {
|
|
|
6474
6476
|
className: element$B('icon')
|
|
6475
6477
|
}), /*#__PURE__*/jsx(Text, {
|
|
6476
6478
|
as: "span",
|
|
6477
|
-
truncate: !!truncate,
|
|
6479
|
+
truncate: !!props.truncate,
|
|
6478
6480
|
typography: "overline",
|
|
6479
6481
|
className: element$B('label'),
|
|
6480
6482
|
children: children
|
|
@@ -6495,7 +6497,8 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6495
6497
|
...props,
|
|
6496
6498
|
theme: props.theme || defaultTheme,
|
|
6497
6499
|
ref,
|
|
6498
|
-
children: props.label
|
|
6500
|
+
children: props.label
|
|
6501
|
+
}, {
|
|
6499
6502
|
Text
|
|
6500
6503
|
});
|
|
6501
6504
|
});
|
|
@@ -9298,7 +9301,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9298
9301
|
const hasAction = Boolean(onActionClick) && Boolean(actionLabel);
|
|
9299
9302
|
const handleCallback = evt => {
|
|
9300
9303
|
if (isFunction(onActionClick)) {
|
|
9301
|
-
onActionClick(
|
|
9304
|
+
onActionClick();
|
|
9302
9305
|
}
|
|
9303
9306
|
evt.stopPropagation();
|
|
9304
9307
|
};
|