@luminati-io/uikit 6.3.55 → 6.3.57

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.
@@ -59247,27 +59247,24 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
59247
59247
  rest = _objectWithoutProperties(_ref, _excluded);
59248
59248
  var _dismissible = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(dismissible, type == 'error' || type == 'warning');
59249
59249
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
59250
- ref: ref,
59251
- $type: type
59250
+ ref: ref
59252
59251
  }, (0,_util__WEBPACK_IMPORTED_MODULE_3__.pickAttrs)(rest), {
59253
59252
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59254
59253
  wrapper: true
59255
59254
  }, className)
59256
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Content, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToastIcon, {
59255
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToastIcon, {
59257
59256
  type: type,
59258
59257
  classNamePrefix: classNamePrefix
59259
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Paragraph, {
59260
- variant: "sm",
59261
- color: "text",
59258
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Content, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledText, {
59262
59259
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59263
59260
  body: true
59264
- })
59265
- }, children)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RemoveButton, {
59266
- onClick: onClose,
59261
+ }),
59262
+ color: "text_secondary"
59263
+ }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RemoveButton, {
59267
59264
  classNamePrefix: classNamePrefix,
59268
- type: type,
59269
- dismissible: _dismissible
59270
- }));
59265
+ dismissible: _dismissible,
59266
+ onClick: onClose
59267
+ })));
59271
59268
  });
59272
59269
  Toast.displayName = 'Toast';
59273
59270
  Toast.propTypes = {
@@ -59276,58 +59273,63 @@ Toast.propTypes = {
59276
59273
  dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
59277
59274
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
59278
59275
  };
59276
+ var StyledText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Label).withConfig({
59277
+ displayName: "StyledText",
59278
+ componentId: "sc-tn2lqb-0"
59279
+ })(["padding:16px 0;"]);
59279
59280
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59280
59281
  displayName: "Wrapper",
59281
- componentId: "sc-tn2lqb-0"
59282
- })(["display:flex;flex-direction:row;justify-content:space-between;padding:8px;gap:8px;border-radius:4px;background-color:", ";box-shadow:", ";"], function (p) {
59283
- return getBackgroundColor(p);
59284
- }, function (_ref2) {
59285
- var shadow = _ref2.theme.shadow;
59282
+ componentId: "sc-tn2lqb-1"
59283
+ })(["display:flex;flex-direction:row;justify-content:space-between;border-radius:8px;border:1px solid ", ";box-shadow:", ";"], function (_ref2) {
59284
+ var color = _ref2.theme.color;
59285
+ return color.border;
59286
+ }, function (_ref3) {
59287
+ var shadow = _ref3.theme.shadow;
59286
59288
  return shadow.medium;
59287
59289
  });
59288
59290
  var Content = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59289
59291
  displayName: "Content",
59290
- componentId: "sc-tn2lqb-1"
59291
- })(["display:flex;flex-direction:row;gap:8px;"]);
59292
- var ToastIcon = function ToastIcon(_ref3) {
59293
- var type = _ref3.type,
59294
- classNamePrefix = _ref3.classNamePrefix;
59292
+ componentId: "sc-tn2lqb-2"
59293
+ })(["display:flex;flex-direction:row;align-items:center;padding-left:12px;padding-right:8px;gap:8px;"]);
59294
+ var IconContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59295
+ displayName: "IconContainer",
59296
+ componentId: "sc-tn2lqb-3"
59297
+ })(["background-color:", ";border-radius:8px 0px 0px 8px;padding:16px 8px;display:flex;justify-content:center;align-items:center;"], function (p) {
59298
+ return getBackgroundColor(p);
59299
+ });
59300
+ var ToastIcon = function ToastIcon(_ref4) {
59301
+ var type = _ref4.type,
59302
+ classNamePrefix = _ref4.classNamePrefix;
59295
59303
  var name = {
59296
- success: 'CheckCircle',
59297
- error: 'Warning',
59304
+ success: 'Check',
59305
+ error: 'Close',
59298
59306
  warning: 'Warning',
59299
59307
  info: 'Info',
59300
59308
  generic: 'Info'
59301
59309
  }[type] || 'Info';
59302
- var _color = {
59303
- success: 'icon_success',
59304
- error: 'icon_error',
59305
- warning: 'icon_warning',
59306
- info: 'icon_primary'
59307
- }[type] || 'icon';
59308
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
59309
- name: name,
59310
- color: _color,
59310
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(IconContainer, {
59311
+ $type: type
59312
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
59311
59313
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59312
59314
  icon: true
59313
59315
  }),
59314
- size: "xs"
59315
- });
59316
+ color: "icon_white",
59317
+ name: name,
59318
+ size: "sm"
59319
+ }));
59316
59320
  };
59317
- var RemoveButton = function RemoveButton(_ref4) {
59318
- var onClick = _ref4.onClick,
59319
- dismissible = _ref4.dismissible,
59320
- classNamePrefix = _ref4.classNamePrefix,
59321
- type = _ref4.type;
59321
+ var RemoveButton = function RemoveButton(_ref5) {
59322
+ var onClick = _ref5.onClick,
59323
+ dismissible = _ref5.dismissible,
59324
+ classNamePrefix = _ref5.classNamePrefix;
59322
59325
  if (!dismissible) return null;
59323
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledRemoveButton, {
59324
- size: "xs",
59325
- icon: "CloseSmall",
59326
- $type: type,
59327
- onClick: onClick,
59326
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
59328
59327
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59329
59328
  dismissButton: true
59330
- })
59329
+ }),
59330
+ icon: "CloseSmall",
59331
+ onClick: onClick,
59332
+ size: "xs"
59331
59333
  });
59332
59334
  };
59333
59335
  RemoveButton.propTypes = {
@@ -59335,24 +59337,15 @@ RemoveButton.propTypes = {
59335
59337
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
59336
59338
  dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
59337
59339
  };
59338
- var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton).withConfig({
59339
- displayName: "StyledRemoveButton",
59340
- componentId: "sc-tn2lqb-2"
59341
- })(["border-radius:", ";min-width:16px;width:16px;min-height:16px;height:16px;background-color:", ";"], function (_ref5) {
59342
- var spacing = _ref5.theme.spacing;
59343
- return spacing['05'];
59344
- }, function (p) {
59345
- return getBackgroundColor(p);
59346
- });
59347
59340
  var getBackgroundColor = function getBackgroundColor(_ref6) {
59348
59341
  var $type = _ref6.$type,
59349
59342
  color = _ref6.theme.color;
59350
59343
  return {
59351
- success: color.bg_fill_success_secondary,
59352
- error: color.bg_fill_error_secondary,
59353
- warning: color.bg_fill_warning_secondary,
59354
- info: color.bg_fill_primary_secondary
59355
- }[$type] || color.bg_fill_secondary;
59344
+ success: color.green_10,
59345
+ error: color.bg_fill_error,
59346
+ warning: color.bg_fill_warning,
59347
+ info: color.bg_fill_primary
59348
+ }[$type] || color.border_accent;
59356
59349
  };
59357
59350
 
59358
59351
  /***/ }),
@@ -59836,7 +59829,7 @@ var TooltipAdaptor = function TooltipAdaptor(_ref) {
59836
59829
  var StyledTooltip = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(TooltipAdaptor).withConfig({
59837
59830
  displayName: "StyledTooltip",
59838
59831
  componentId: "sc-148yrjz-0"
59839
- })(["&.", "{position:absolute;display:block;visibility:visible;font-family:", ";font-size:", ";font-weight:", ";line-height:", ";padding:1px;width:fit-content;max-width:min(500px,80vw);background-color:transparent;&-hidden{display:none;}.", "-inner{padding:8px 10px;text-align:left;text-decoration:none;border-radius:", ";box-shadow:", ";min-height:", ";}.", "-arrow,.", "-arrow::before{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{bottom:1px;margin-left:-6px;border-width:6px 6px 0;}&-placement-top .", "-arrow{left:50%;}&-placement-topLeft .", "-arrow{left:15%;}&-placement-topRight .", "-arrow{right:15%;}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;transform:translateX(calc(-100% + 1px));}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;}&-placement-right .", "-arrow{top:50%;}&-placement-rightTop .", "-arrow{top:15%;margin-top:0;}&-placement-rightBottom .", "-arrow{bottom:15%;}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;transform:translateX(calc(100% - 1px));}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;}&-placement-left .", "-arrow{top:50%;}&-placement-leftTop .", "-arrow{top:15%;margin-top:0;}&-placement-leftBottom .", "-arrow{bottom:15%;}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{top:1px;margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom .", "-arrow{left:50%;}&-placement-bottomLeft .", "-arrow{left:15%;}&-placement-bottomRight .", "-arrow{right:15%;}&&-zoom-appear,&&-zoom-enter{opacity:0;}&&-zoom-enter,&&-zoom-leave{display:block;}&-zoom-enter,&-zoom-appear{opacity:0;animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-zoom-leave{animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.78,0.14,0.15,0.86);animation-play-state:paused;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcToolTipZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcToolTipZoomOut;animation-play-state:running;}@keyframes rcToolTipZoomIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}100%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}}@keyframes rcToolTipZoomOut{0%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}100%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}}}&.", "-white{.", "-inner{color:", ";background-color:", ";border:1px solid ", ";}&.", "{&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{border-top-color:", ";}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{content:'';border-top-color:", ";}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{border-right-color:", ";}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{content:'';border-right-color:", ";}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{border-left-color:", ";}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{content:'';border-left-color:", ";}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{border-bottom-color:", ";}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{content:'';border-bottom-color:", ";}}}&.", "-black{.", "-inner{color:", ";background-color:", ";border:1px solid ", ";}&.", "{&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{border-top-color:", ";}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{border-top-color:", ";}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{border-right-color:", ";}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{border-right-color:", ";}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{border-left-color:", ";}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{border-left-color:", ";}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{border-bottom-color:", ";}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{border-bottom-color:", ";}}}"], prefixCls, theme(function (t) {
59832
+ })(["&.", "{position:absolute;display:block;visibility:visible;font-family:", ";font-size:", ";font-weight:", ";line-height:", ";padding:1px;width:fit-content;max-width:min(500px,80vw);word-break:break-word;background-color:transparent;&-hidden{display:none;}.", "-inner{padding:8px 10px;text-align:left;text-decoration:none;border-radius:", ";box-shadow:", ";min-height:", ";}.", "-arrow,.", "-arrow::before{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{bottom:1px;margin-left:-6px;border-width:6px 6px 0;}&-placement-top .", "-arrow{left:50%;}&-placement-topLeft .", "-arrow{left:15%;}&-placement-topRight .", "-arrow{right:15%;}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;transform:translateX(calc(-100% + 1px));}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;}&-placement-right .", "-arrow{top:50%;}&-placement-rightTop .", "-arrow{top:15%;margin-top:0;}&-placement-rightBottom .", "-arrow{bottom:15%;}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;transform:translateX(calc(100% - 1px));}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;}&-placement-left .", "-arrow{top:50%;}&-placement-leftTop .", "-arrow{top:15%;margin-top:0;}&-placement-leftBottom .", "-arrow{bottom:15%;}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{top:1px;margin-left:-6px;border-width:0 6px 6px;}&-placement-bottom .", "-arrow{left:50%;}&-placement-bottomLeft .", "-arrow{left:15%;}&-placement-bottomRight .", "-arrow{right:15%;}&&-zoom-appear,&&-zoom-enter{opacity:0;}&&-zoom-enter,&&-zoom-leave{display:block;}&-zoom-enter,&-zoom-appear{opacity:0;animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-zoom-leave{animation-duration:0.1s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.78,0.14,0.15,0.86);animation-play-state:paused;}&-zoom-enter&-zoom-enter-active,&-zoom-appear&-zoom-appear-active{animation-name:rcToolTipZoomIn;animation-play-state:running;}&-zoom-leave&-zoom-leave-active{animation-name:rcToolTipZoomOut;animation-play-state:running;}@keyframes rcToolTipZoomIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}100%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}}@keyframes rcToolTipZoomOut{0%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);}100%{opacity:0;transform-origin:50% 50%;transform:scale(0,0);}}}&.", "-white{.", "-inner{color:", ";background-color:", ";border:1px solid ", ";}&.", "{&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{border-top-color:", ";}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{content:'';border-top-color:", ";}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{border-right-color:", ";}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{content:'';border-right-color:", ";}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{border-left-color:", ";}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{content:'';border-left-color:", ";}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{border-bottom-color:", ";}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{content:'';border-bottom-color:", ";}}}&.", "-black{.", "-inner{color:", ";background-color:", ";border:1px solid ", ";}&.", "{&-placement-top .", "-arrow,&-placement-topLeft .", "-arrow,&-placement-topRight .", "-arrow{border-top-color:", ";}&-placement-top .", "-arrow::before,&-placement-topLeft .", "-arrow::before,&-placement-topRight .", "-arrow::before{border-top-color:", ";}&-placement-right .", "-arrow,&-placement-rightTop .", "-arrow,&-placement-rightBottom .", "-arrow{border-right-color:", ";}&-placement-right .", "-arrow::before,&-placement-rightTop .", "-arrow::before,&-placement-rightBottom .", "-arrow::before{border-right-color:", ";}&-placement-left .", "-arrow,&-placement-leftTop .", "-arrow,&-placement-leftBottom .", "-arrow{border-left-color:", ";}&-placement-left .", "-arrow::before,&-placement-leftTop .", "-arrow::before,&-placement-leftBottom .", "-arrow::before{border-left-color:", ";}&-placement-bottom .", "-arrow,&-placement-bottomLeft .", "-arrow,&-placement-bottomRight .", "-arrow{border-bottom-color:", ";}&-placement-bottom .", "-arrow::before,&-placement-bottomLeft .", "-arrow::before,&-placement-bottomRight .", "-arrow::before{border-bottom-color:", ";}}}"], prefixCls, theme(function (t) {
59840
59833
  return t.font_family.sans;
59841
59834
  }), theme(function (t) {
59842
59835
  return t.font_size.sm;