@luminati-io/uikit 6.2.0 → 6.2.1-beta.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -28896,16 +28896,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
28896
28896
|
|
28897
28897
|
|
28898
28898
|
|
28899
|
-
var Badge = function
|
28900
|
-
var className =
|
28901
|
-
children =
|
28902
|
-
|
28903
|
-
shape =
|
28904
|
-
|
28905
|
-
variant =
|
28906
|
-
icon =
|
28907
|
-
iconPlacement =
|
28908
|
-
onClick =
|
28899
|
+
var Badge = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
28900
|
+
var className = props.className,
|
28901
|
+
children = props.children,
|
28902
|
+
_props$shape = props.shape,
|
28903
|
+
shape = _props$shape === void 0 ? 'square' : _props$shape,
|
28904
|
+
_props$variant = props.variant,
|
28905
|
+
variant = _props$variant === void 0 ? 'default' : _props$variant,
|
28906
|
+
icon = props.icon,
|
28907
|
+
iconPlacement = props.iconPlacement,
|
28908
|
+
onClick = props.onClick;
|
28909
28909
|
var textColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
28910
28910
|
return {
|
28911
28911
|
"default": 'text',
|
@@ -28925,6 +28925,7 @@ var Badge = function Badge(_ref) {
|
|
28925
28925
|
}[variant] || 'icon_accent';
|
28926
28926
|
}, [variant]);
|
28927
28927
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BadgeWrapper, {
|
28928
|
+
ref: ref,
|
28928
28929
|
className: className,
|
28929
28930
|
$shape: shape,
|
28930
28931
|
$variant: variant,
|
@@ -28938,7 +28939,8 @@ var Badge = function Badge(_ref) {
|
|
28938
28939
|
variant: "xs",
|
28939
28940
|
color: textColor
|
28940
28941
|
}, children));
|
28941
|
-
};
|
28942
|
+
});
|
28943
|
+
Badge.displayName = 'Badge';
|
28942
28944
|
Badge.propTypes = {
|
28943
28945
|
shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
|
28944
28946
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
|
@@ -28952,16 +28954,16 @@ var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_lay
|
|
28952
28954
|
}).withConfig({
|
28953
28955
|
displayName: "BadgeWrapper",
|
28954
28956
|
componentId: "sc-1fckq03-0"
|
28955
|
-
})(["width:fit-content;border-radius:", ";background-color:", ";"], function (
|
28956
|
-
var $shape =
|
28957
|
-
spacing =
|
28957
|
+
})(["width:fit-content;border-radius:", ";background-color:", ";"], function (_ref) {
|
28958
|
+
var $shape = _ref.$shape,
|
28959
|
+
spacing = _ref.theme.spacing;
|
28958
28960
|
return {
|
28959
28961
|
rounded: '16px',
|
28960
28962
|
square: spacing['02']
|
28961
28963
|
}[$shape];
|
28962
|
-
}, function (
|
28963
|
-
var $variant =
|
28964
|
-
color =
|
28964
|
+
}, function (_ref2) {
|
28965
|
+
var $variant = _ref2.$variant,
|
28966
|
+
color = _ref2.theme.color;
|
28965
28967
|
return {
|
28966
28968
|
"default": color.bg_fill_secondary,
|
28967
28969
|
negative: color.bg_fill_error_secondary,
|
@@ -29232,7 +29234,6 @@ var BreadcrumbsItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
29232
29234
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
29233
29235
|
ref: ref
|
29234
29236
|
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
|
29235
|
-
noWrap: true,
|
29236
29237
|
tooltip: isOverflown ? item.text : undefined
|
29237
29238
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLabel, {
|
29238
29239
|
ref: labelRef,
|
@@ -32062,8 +32063,7 @@ var CopyButton = function CopyButton(props) {
|
|
32062
32063
|
}, [code]);
|
32063
32064
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip, {
|
32064
32065
|
tooltip: tooltips[state],
|
32065
|
-
placement: "right"
|
32066
|
-
noWrap: true
|
32066
|
+
placement: "right"
|
32067
32067
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
|
32068
32068
|
type: "button",
|
32069
32069
|
onClick: handleClick,
|
@@ -37960,8 +37960,7 @@ var InputLabel = function InputLabel(_ref7) {
|
|
37960
37960
|
required: required,
|
37961
37961
|
indicator: necessityIndicator
|
37962
37962
|
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
37963
|
-
tooltip: labelTooltip
|
37964
|
-
noWrap: true
|
37963
|
+
tooltip: labelTooltip
|
37965
37964
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
37966
37965
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
37967
37966
|
labelIcon: true
|
@@ -39524,8 +39523,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
39524
39523
|
as: tag,
|
39525
39524
|
role: "menuitem"
|
39526
39525
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
39527
|
-
tooltip: tooltip
|
39528
|
-
noWrap: true
|
39526
|
+
tooltip: tooltip
|
39529
39527
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
|
39530
39528
|
"aria-disabled": disabled ? true : undefined,
|
39531
39529
|
size: size,
|
@@ -46065,7 +46063,7 @@ var _Tooltip = function Tooltip(_ref) {
|
|
46065
46063
|
tooltip = _ref.tooltip,
|
46066
46064
|
_ref$placement = _ref.placement,
|
46067
46065
|
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
46068
|
-
|
46066
|
+
wrap = _ref.wrap,
|
46069
46067
|
interactive = _ref.interactive,
|
46070
46068
|
_ref$trigger = _ref.trigger,
|
46071
46069
|
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
@@ -46158,22 +46156,22 @@ var _Tooltip = function Tooltip(_ref) {
|
|
46158
46156
|
ref: setArrowElement,
|
46159
46157
|
style: styles.arrow
|
46160
46158
|
}, attributes.arrow))) : null;
|
46161
|
-
if (
|
46162
|
-
|
46163
|
-
|
46164
|
-
|
46165
|
-
}, triggerProps)), tooltipNode);
|
46166
|
-
}
|
46167
|
-
|
46168
|
-
|
46169
|
-
|
46170
|
-
}, triggerProps)
|
46159
|
+
if (wrap) {
|
46160
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipReference, _extends({
|
46161
|
+
ref: setReferenceElement,
|
46162
|
+
className: className
|
46163
|
+
}, triggerProps), children), tooltipNode);
|
46164
|
+
}
|
46165
|
+
var child = react__WEBPACK_IMPORTED_MODULE_1__.Children.only(children);
|
46166
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, _objectSpread({
|
46167
|
+
ref: setReferenceElement
|
46168
|
+
}, triggerProps)), tooltipNode);
|
46171
46169
|
};
|
46172
46170
|
|
46173
46171
|
_Tooltip.propTypes = {
|
46174
46172
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46175
46173
|
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_4__.tooltipPlacement),
|
46176
|
-
|
46174
|
+
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46177
46175
|
interactive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46178
46176
|
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'focus']),
|
46179
46177
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
|