@luminati-io/uikit 6.3.5 → 6.3.6

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.
@@ -39260,7 +39260,9 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
39260
39260
  _props$variant = props.variant,
39261
39261
  variant = _props$variant === void 0 ? 'black' : _props$variant,
39262
39262
  loading = props.loading,
39263
- wrap = props.wrap;
39263
+ wrap = props.wrap,
39264
+ _props$copyButtonPlac = props.copyButtonPlacement,
39265
+ copyButtonPlacement = _props$copyButtonPlac === void 0 ? 'top' : _props$copyButtonPlac;
39264
39266
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockWrapper, _extends({
39265
39267
  ref: ref,
39266
39268
  "data-testid": "code_block"
@@ -39285,6 +39287,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
39285
39287
  copyButtonClassName: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
39286
39288
  copyButton: true
39287
39289
  }),
39290
+ copyButtonPlacement: copyButtonPlacement,
39288
39291
  onCopy: onCopy,
39289
39292
  loading: loading,
39290
39293
  wrap: wrap
@@ -39303,7 +39306,8 @@ CodeBlock.propTypes = {
39303
39306
  copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39304
39307
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39305
39308
  onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39306
- wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39309
+ wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39310
+ copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'bottom'])
39307
39311
  };
39308
39312
  var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
39309
39313
  displayName: "CodeBlockWrapper",
@@ -39378,6 +39382,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
39378
39382
  _ref$variant = _ref.variant,
39379
39383
  variant = _ref$variant === void 0 ? 'black' : _ref$variant,
39380
39384
  copyButtonClassName = _ref.copyButtonClassName,
39385
+ copyButtonPlacement = _ref.copyButtonPlacement,
39381
39386
  maxHeight = _ref.maxHeight,
39382
39387
  wrap = _ref.wrap;
39383
39388
  var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
@@ -39388,6 +39393,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
39388
39393
  maxHeight: maxHeight
39389
39394
  } : undefined
39390
39395
  }, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
39396
+ placement: copyButtonPlacement,
39391
39397
  className: copyButtonClassName,
39392
39398
  code: code,
39393
39399
  variant: variant,
@@ -39414,6 +39420,7 @@ CodeSnippet.propTypes = {
39414
39420
  lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
39415
39421
  copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
39416
39422
  copyButtonClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
39423
+ copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['top', 'bottom']),
39417
39424
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
39418
39425
  onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
39419
39426
  wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
@@ -39490,7 +39497,8 @@ var CopyButton = function CopyButton(_ref) {
39490
39497
  code = _ref.code,
39491
39498
  variant = _ref.variant,
39492
39499
  codeRef = _ref.codeRef,
39493
- onCopy = _ref.onCopy;
39500
+ onCopy = _ref.onCopy,
39501
+ placement = _ref.placement;
39494
39502
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(STATE.READY),
39495
39503
  _useState2 = _slicedToArray(_useState, 2),
39496
39504
  state = _useState2[0],
@@ -39522,7 +39530,8 @@ var CopyButton = function CopyButton(_ref) {
39522
39530
  className: className,
39523
39531
  type: "button",
39524
39532
  onClick: handleClick,
39525
- $variant: variant
39533
+ $variant: variant,
39534
+ $placement: placement
39526
39535
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
39527
39536
  viewBox: icon.viewBox
39528
39537
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
@@ -39532,12 +39541,13 @@ var CopyButton = function CopyButton(_ref) {
39532
39541
  var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
39533
39542
  displayName: "StyledButton",
39534
39543
  componentId: "sc-kvxvoe-0"
39535
- })(["position:absolute;inset-inline-end:", ";top:", ";z-index:1;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
39544
+ })(["position:absolute;inset-inline-end:", ";", ";z-index:1;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
39536
39545
  var theme = _ref2.theme;
39537
39546
  return theme.spacing['05'];
39538
39547
  }, function (_ref3) {
39539
- var theme = _ref3.theme;
39540
- return theme.spacing['05'];
39548
+ var theme = _ref3.theme,
39549
+ $placement = _ref3.$placement;
39550
+ return $placement == 'bottom' ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["bottom:", ""], theme.spacing['02']) : (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["top:", ""], theme.spacing['05']);
39541
39551
  }, function (_ref4) {
39542
39552
  var $variant = _ref4.$variant,
39543
39553
  color = _ref4.theme.color;
@@ -49069,11 +49079,6 @@ var DialogFooter = function DialogFooter(_ref3) {
49069
49079
  "data-testid": "modal_footer_ok_button"
49070
49080
  })));
49071
49081
  };
49072
-
49073
- // victorf: FIX backdrop vertical alignment with
49074
- // top: 0;
49075
- // transform: translate(0, ${$show=>$show ? '0': 'calc(50vh - 50%)'});
49076
-
49077
49082
  var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
49078
49083
  gap: '04',
49079
49084
  align_items: 'center',
@@ -50468,7 +50473,7 @@ var theme = function theme(cb) {
50468
50473
  return cb(p.$theme);
50469
50474
  };
50470
50475
  };
50471
- var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn,.", "-tab-btn:hover{background:", ";border:1px solid ", ";box-shadow:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";font-weight:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
50476
+ var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn{background:", ";border:1px solid ", ";box-shadow:", ";color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";font-weight:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
50472
50477
  return t.font_family.sans;
50473
50478
  }), theme(function (t) {
50474
50479
  return t.line_height.none;
@@ -50526,12 +50531,14 @@ var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalSt
50526
50531
  return t.color.text_tertiary;
50527
50532
  }), theme(function (t) {
50528
50533
  return t.color.bg_fill_primary_secondary;
50529
- }), prefixCls, prefixCls, theme(function (t) {
50534
+ }), prefixCls, theme(function (t) {
50530
50535
  return t.color.bg;
50531
50536
  }), theme(function (t) {
50532
50537
  return t.color.border;
50533
50538
  }), theme(function (t) {
50534
50539
  return t.shadow.meduim;
50540
+ }), theme(function (t) {
50541
+ return t.color.text_primary;
50535
50542
  }), prefixCls, prefixCls, theme(function (t) {
50536
50543
  return t.color.text_disabled;
50537
50544
  }), theme(function (t) {