@luminati-io/uikit 6.3.55 → 6.3.56

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,25 @@ 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
+ variant: "sm"
59264
+ }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RemoveButton, {
59267
59265
  classNamePrefix: classNamePrefix,
59268
- type: type,
59269
- dismissible: _dismissible
59270
- }));
59266
+ dismissible: _dismissible,
59267
+ onClick: onClose
59268
+ })));
59271
59269
  });
59272
59270
  Toast.displayName = 'Toast';
59273
59271
  Toast.propTypes = {
@@ -59276,58 +59274,63 @@ Toast.propTypes = {
59276
59274
  dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
59277
59275
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
59278
59276
  };
59277
+ var StyledText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_6__.Paragraph).withConfig({
59278
+ displayName: "StyledText",
59279
+ componentId: "sc-tn2lqb-0"
59280
+ })(["padding:16px 12px;"]);
59279
59281
  var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59280
59282
  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;
59283
+ componentId: "sc-tn2lqb-1"
59284
+ })(["display:flex;flex-direction:row;justify-content:space-between;border-radius:8px;border:1px solid ", ";box-shadow:", ";"], function (_ref2) {
59285
+ var color = _ref2.theme.color;
59286
+ return color.border;
59287
+ }, function (_ref3) {
59288
+ var shadow = _ref3.theme.shadow;
59286
59289
  return shadow.medium;
59287
59290
  });
59288
59291
  var Content = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59289
59292
  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;
59293
+ componentId: "sc-tn2lqb-2"
59294
+ })(["display:flex;flex-direction:row;align-items:center;padding-left:12px;padding-right:8px;gap:8px;"]);
59295
+ var IconContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
59296
+ displayName: "IconContainer",
59297
+ componentId: "sc-tn2lqb-3"
59298
+ })(["background-color:", ";border-radius:8px 0px 0px 8px;padding:16px 8px;display:flex;justify-content:center;align-items:center;"], function (p) {
59299
+ return getBackgroundColor(p);
59300
+ });
59301
+ var ToastIcon = function ToastIcon(_ref4) {
59302
+ var type = _ref4.type,
59303
+ classNamePrefix = _ref4.classNamePrefix;
59295
59304
  var name = {
59296
- success: 'CheckCircle',
59297
- error: 'Warning',
59305
+ success: 'Check',
59306
+ error: 'Close',
59298
59307
  warning: 'Warning',
59299
59308
  info: 'Info',
59300
59309
  generic: 'Info'
59301
59310
  }[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,
59311
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(IconContainer, {
59312
+ $type: type
59313
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
59311
59314
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59312
59315
  icon: true
59313
59316
  }),
59314
- size: "xs"
59315
- });
59317
+ color: "icon_white",
59318
+ name: name,
59319
+ size: "sm"
59320
+ }));
59316
59321
  };
59317
- var RemoveButton = function RemoveButton(_ref4) {
59318
- var onClick = _ref4.onClick,
59319
- dismissible = _ref4.dismissible,
59320
- classNamePrefix = _ref4.classNamePrefix,
59321
- type = _ref4.type;
59322
+ var RemoveButton = function RemoveButton(_ref5) {
59323
+ var onClick = _ref5.onClick,
59324
+ dismissible = _ref5.dismissible,
59325
+ classNamePrefix = _ref5.classNamePrefix;
59322
59326
  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,
59327
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
59328
59328
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
59329
59329
  dismissButton: true
59330
- })
59330
+ }),
59331
+ icon: "CloseSmall",
59332
+ onClick: onClick,
59333
+ size: "xs"
59331
59334
  });
59332
59335
  };
59333
59336
  RemoveButton.propTypes = {
@@ -59335,24 +59338,15 @@ RemoveButton.propTypes = {
59335
59338
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
59336
59339
  dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
59337
59340
  };
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
59341
  var getBackgroundColor = function getBackgroundColor(_ref6) {
59348
59342
  var $type = _ref6.$type,
59349
59343
  color = _ref6.theme.color;
59350
59344
  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;
59345
+ success: color.green_10,
59346
+ error: color.bg_fill_error,
59347
+ warning: color.bg_fill_warning,
59348
+ info: color.bg_fill_primary
59349
+ }[$type] || color.border_accent;
59356
59350
  };
59357
59351
 
59358
59352
  /***/ }),