@luminati-io/uikit 6.3.4 → 6.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -36408,8 +36408,8 @@ __webpack_require__.r(__webpack_exports__);
36408
36408
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
36409
36409
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
36410
36410
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
36411
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
36412
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
36411
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
36412
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
36413
36413
  /* harmony import */ var _breadcrumbs_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./breadcrumbs_item */ "./src/breadcrumbs/breadcrumbs_item.js");
36414
36414
  /* harmony import */ var _collapsed_items__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./collapsed_items */ "./src/breadcrumbs/collapsed_items.js");
36415
36415
  // LICENSE_CODE ZON
@@ -36503,7 +36503,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
36503
36503
  setHiddenItems([]);
36504
36504
  setRecalculationRender(true);
36505
36505
  }, [items]);
36506
- (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useResize)(runRecalculate);
36506
+ (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useResize)(runRecalculate);
36507
36507
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function () {
36508
36508
  var _document$fonts;
36509
36509
  runRecalculate();
@@ -36551,11 +36551,11 @@ var Breadcrumbs = function Breadcrumbs(props) {
36551
36551
  });
36552
36552
  });
36553
36553
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BreadcrumbsContainer, _extends({
36554
+ ref: containerRef
36555
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
36554
36556
  "data-testid": "breadcrumbs",
36555
36557
  "aria-label": "breadcrumbs",
36556
- "data-role": "breadcrumbs"
36557
- }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
36558
- ref: containerRef,
36558
+ "data-role": "breadcrumbs",
36559
36559
  tabIndex: 1,
36560
36560
  onBlur: handleBlur,
36561
36561
  onKeyDown: handleKeyDown
@@ -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;
@@ -45875,7 +45885,7 @@ __webpack_require__.r(__webpack_exports__);
45875
45885
 
45876
45886
  /*jslint react:true*/
45877
45887
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
45878
- var _excluded = ["id", "name", "value", "leftInnerContent", "leftOuterContent", "rightInnerContent", "rightOuterContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "onKeyDown", "placeholder", "disabled", "invalid", "autoFocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper"];
45888
+ var _excluded = ["id", "name", "value", "leftInnerContent", "leftOuterContent", "rightInnerContent", "rightOuterContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "onKeyDown", "placeholder", "disabled", "invalid", "autoFocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper", "classNamePrefix", "className"];
45879
45889
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
45880
45890
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45881
45891
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -45928,6 +45938,8 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45928
45938
  autoresize = props.autoresize,
45929
45939
  verticalAlign = props.verticalAlign,
45930
45940
  innerWrapper = props.innerWrapper,
45941
+ classNamePrefix = props.classNamePrefix,
45942
+ className = props.className,
45931
45943
  rest = _objectWithoutProperties(props, _excluded);
45932
45944
  var field = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
45933
45945
  var setFieldRefs = (0,_util__WEBPACK_IMPORTED_MODULE_9__.useSetRefsCallback)([fieldRef, field]);
@@ -45969,6 +45981,9 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45969
45981
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
45970
45982
  ref: ref
45971
45983
  }, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(rest), {
45984
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
45985
+ container: true
45986
+ }, className),
45972
45987
  flex_direction: "column",
45973
45988
  gap: "4px"
45974
45989
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputLabel, {
@@ -45977,10 +45992,15 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45977
45992
  labelIcon: labelIcon,
45978
45993
  labelTooltip: labelTooltip,
45979
45994
  required: required,
45980
- necessityIndicator: necessityIndicator
45995
+ necessityIndicator: necessityIndicator,
45996
+ classNamePrefix: classNamePrefix
45981
45997
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputContentWrapper, {
45982
45998
  $heightCalculationCallback: heightCalculationCallback
45983
- }, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, null, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
45999
+ }, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, {
46000
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46001
+ leftOuterContent: true
46002
+ })
46003
+ }, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
45984
46004
  ref: innerWrapper,
45985
46005
  $active: active,
45986
46006
  $disabled: disabled,
@@ -46004,7 +46024,12 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
46004
46024
  value: value,
46005
46025
  placeholder: placeholder,
46006
46026
  "aria-labelledby": label ? labelId : undefined
46007
- })), rightInnerContent), rightOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightOuterContentWrapper, null, rightOuterContent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HelperText, {
46027
+ })), rightInnerContent), rightOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightOuterContentWrapper, {
46028
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46029
+ rightOuterContent: true
46030
+ })
46031
+ }, rightOuterContent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HelperText, {
46032
+ classNamePrefix: classNamePrefix,
46008
46033
  invalid: invalid
46009
46034
  }, helperText));
46010
46035
  });
@@ -46147,11 +46172,65 @@ var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typogra
46147
46172
  var LeftOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46148
46173
  displayName: "LeftOuterContentWrapper",
46149
46174
  componentId: "sc-r60v1b-4"
46150
- })(["border-top-left-radius:4px;border-bottom-left-radius:4px;height:100%;"]);
46175
+ })(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:1px solid ", ";border-bottom:1px solid ", ";border-left:1px solid ", ";padding:0 ", ";border-top-left-radius:4px;border-bottom-left-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref12) {
46176
+ var color = _ref12.theme.color;
46177
+ return color.bg_fill;
46178
+ }, function (_ref13) {
46179
+ var color = _ref13.theme.color;
46180
+ return color.border;
46181
+ }, function (_ref14) {
46182
+ var color = _ref14.theme.color;
46183
+ return color.border;
46184
+ }, function (_ref15) {
46185
+ var color = _ref15.theme.color;
46186
+ return color.border;
46187
+ }, function (_ref16) {
46188
+ var spacing = _ref16.theme.spacing;
46189
+ return spacing['04'];
46190
+ }, function (_ref17) {
46191
+ var font_family = _ref17.theme.font_family;
46192
+ return font_family.sans;
46193
+ }, function (_ref18) {
46194
+ var font_size = _ref18.theme.font_size;
46195
+ return font_size.sm;
46196
+ }, function (_ref19) {
46197
+ var font_weight = _ref19.theme.font_weight;
46198
+ return font_weight.regular;
46199
+ }, function (_ref20) {
46200
+ var color = _ref20.theme.color;
46201
+ return color.text_quaternary;
46202
+ });
46151
46203
  var RightOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46152
46204
  displayName: "RightOuterContentWrapper",
46153
46205
  componentId: "sc-r60v1b-5"
46154
- })(["border-top-right-radius:4px;border-bottom-right-radius:4px;height:100%;"]);
46206
+ })(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:1px solid ", ";border-right:1px solid ", ";border-bottom:1px solid ", ";padding:0 ", ";border-top-right-radius:4px;border-bottom-right-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref21) {
46207
+ var color = _ref21.theme.color;
46208
+ return color.bg_fill;
46209
+ }, function (_ref22) {
46210
+ var color = _ref22.theme.color;
46211
+ return color.border;
46212
+ }, function (_ref23) {
46213
+ var color = _ref23.theme.color;
46214
+ return color.border;
46215
+ }, function (_ref24) {
46216
+ var color = _ref24.theme.color;
46217
+ return color.border;
46218
+ }, function (_ref25) {
46219
+ var spacing = _ref25.theme.spacing;
46220
+ return spacing['04'];
46221
+ }, function (_ref26) {
46222
+ var font_family = _ref26.theme.font_family;
46223
+ return font_family.sans;
46224
+ }, function (_ref27) {
46225
+ var font_size = _ref27.theme.font_size;
46226
+ return font_size.sm;
46227
+ }, function (_ref28) {
46228
+ var font_weight = _ref28.theme.font_weight;
46229
+ return font_weight.regular;
46230
+ }, function (_ref29) {
46231
+ var color = _ref29.theme.color;
46232
+ return color.text_quaternary;
46233
+ });
46155
46234
  var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).withConfig({
46156
46235
  displayName: "InputContentWrapper",
46157
46236
  componentId: "sc-r60v1b-6"
@@ -46161,11 +46240,11 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
46161
46240
  var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46162
46241
  displayName: "InputWrapper",
46163
46242
  componentId: "sc-r60v1b-7"
46164
- })(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", " box-shadow:", ";"], function (_ref12) {
46165
- var font_family = _ref12.theme.font_family;
46243
+ })(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", " box-shadow:", ";"], function (_ref30) {
46244
+ var font_family = _ref30.theme.font_family;
46166
46245
  return font_family.sans;
46167
- }, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_HORIZONTAL_PADDING, function (_ref13) {
46168
- var $verticalAlign = _ref13.$verticalAlign;
46246
+ }, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_HORIZONTAL_PADDING, function (_ref31) {
46247
+ var $verticalAlign = _ref31.$verticalAlign;
46169
46248
  return $verticalAlign !== null && $verticalAlign !== void 0 ? $verticalAlign : 'normal';
46170
46249
  }, function (props) {
46171
46250
  return props.$leftOuterContent ? '0' : '4px';
@@ -46178,26 +46257,31 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
46178
46257
  }, function (props) {
46179
46258
  var _props$$heightCalcula;
46180
46259
  return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
46181
- }, function (_ref14) {
46182
- var $disabled = _ref14.$disabled,
46183
- $invalid = _ref14.$invalid,
46184
- $active = _ref14.$active,
46185
- color = _ref14.theme.color;
46260
+ }, function (_ref32) {
46261
+ var $disabled = _ref32.$disabled,
46262
+ $invalid = _ref32.$invalid,
46263
+ $active = _ref32.$active,
46264
+ color = _ref32.theme.color;
46186
46265
  if ($disabled) {
46187
46266
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:default;background-color:", ";border-color:", ";color:", ";"], color.bg_fill_teritary, color.border_disabled, color.text_disabled);
46188
46267
  }
46189
46268
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:text;background-color:", ";color:", ";border-color:", ";&:hover{border-color:", ";}"], color.bg, color.text_tertiary, $invalid ? color.border_error : $active ? color.border_primary : color.border, color.border_accent);
46190
- }, function (_ref15) {
46191
- var $active = _ref15.$active,
46192
- shadow = _ref15.theme.shadow;
46269
+ }, function (_ref33) {
46270
+ var $active = _ref33.$active,
46271
+ shadow = _ref33.theme.shadow;
46193
46272
  return $active ? shadow.primary : null;
46194
46273
  });
46195
- var HelperText = function HelperText(props) {
46196
- var children = props.children,
46197
- invalid = props.invalid;
46274
+ var HelperText = function HelperText(_ref34) {
46275
+ var classNamePrefix = _ref34.classNamePrefix,
46276
+ children = _ref34.children,
46277
+ invalid = _ref34.invalid;
46198
46278
  if (!children) return null;
46199
46279
  var color = invalid ? 'text_error' : 'text_quaternary';
46200
46280
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
46281
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46282
+ helperText: true,
46283
+ 'helperText--invalid': invalid
46284
+ }),
46201
46285
  "data-role": "description",
46202
46286
  variant: "xs",
46203
46287
  color: color
@@ -46434,6 +46518,8 @@ var Textbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
46434
46518
  }));
46435
46519
  });
46436
46520
  Textbox.propTypes = {
46521
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46522
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46437
46523
  value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46438
46524
  onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
46439
46525
  onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
@@ -46990,8 +47076,8 @@ __webpack_require__.r(__webpack_exports__);
46990
47076
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
46991
47077
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
46992
47078
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
46993
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
46994
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
47079
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
47080
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
46995
47081
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
46996
47082
  // LICENSE_CODE ZON
46997
47083
 
@@ -47021,7 +47107,7 @@ var Toggle = function Toggle(_ref) {
47021
47107
  var checked = evt.target.checked;
47022
47108
  onChange === null || onChange === void 0 || onChange(checked, evt);
47023
47109
  }, [onChange]);
47024
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
47110
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
47025
47111
  $size: size
47026
47112
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
47027
47113
  id: id,
@@ -47030,7 +47116,7 @@ var Toggle = function Toggle(_ref) {
47030
47116
  checked: value,
47031
47117
  onChange: handleChange,
47032
47118
  disabled: disabled
47033
- }), label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
47119
+ }), label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
47034
47120
  variant: "sm",
47035
47121
  tag: "span",
47036
47122
  color: disabled ? 'text_disabled' : 'text',
@@ -47053,7 +47139,7 @@ var ToggleInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input
47053
47139
  }).withConfig({
47054
47140
  displayName: "ToggleInput",
47055
47141
  componentId: "sc-14lfe6n-1"
47056
- })(["&&{box-sizing:border-box;width:", ";height:", ";display:flex;align-items:center;margin:0;padding:0 2px;vertical-align:top;background-color:", ";border-radius:25px;outline:none;cursor:pointer;appearance:none;transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);&:hover:not(:disabled){background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}&:checked{background-color:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}}}&::after{content:\"\";display:block;width:", ";height:", ";border-radius:50%;background-color:", ";box-shadow:0 2px 2px rgba(0,0,0,0.1);transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);}&:checked::after{transform:translateX(", ");}"], function (_ref2) {
47142
+ })(["&&{box-sizing:border-box;width:", ";height:", ";display:flex;align-items:center;margin:0;padding:0 2px;vertical-align:top;background-color:", ";border-radius:25px;outline:none;cursor:pointer;appearance:none;transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);&:hover:not(:disabled){background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}&:checked{background-color:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}}}&::after{content:'';display:block;width:", ";height:", ";border-radius:50%;background-color:", ";box-shadow:0 2px 2px rgba(0,0,0,0.1);transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);}&:checked::after{transform:translateX( ", " );}"], function (_ref2) {
47057
47143
  var $size = _ref2.$size;
47058
47144
  return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 32 : 44);
47059
47145
  }, function (_ref3) {
@@ -47645,7 +47731,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
47645
47731
 
47646
47732
 
47647
47733
 
47648
- // import pickAttrs from 'rc-util/lib/pickAttrs';
47649
47734
 
47650
47735
 
47651
47736
 
@@ -48994,11 +49079,6 @@ var DialogFooter = function DialogFooter(_ref3) {
48994
49079
  "data-testid": "modal_footer_ok_button"
48995
49080
  })));
48996
49081
  };
48997
-
48998
- // victorf: FIX backdrop vertical alignment with
48999
- // top: 0;
49000
- // transform: translate(0, ${$show=>$show ? '0': 'calc(50vh - 50%)'});
49001
-
49002
49082
  var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
49003
49083
  gap: '04',
49004
49084
  align_items: 'center',
@@ -49662,9 +49742,9 @@ __webpack_require__.r(__webpack_exports__);
49662
49742
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
49663
49743
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
49664
49744
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
49665
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
49666
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49667
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
49745
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
49746
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
49747
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49668
49748
  /* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
49669
49749
  // LICENSE_CODE ZON
49670
49750
 
@@ -49689,15 +49769,15 @@ var Progress = function Progress(_ref) {
49689
49769
  if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, _extends({}, rest, {
49690
49770
  progress: progress
49691
49771
  }));
49692
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
49772
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(rest), {
49693
49773
  flex_direction: "column",
49694
49774
  gap: "03"
49695
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
49775
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
49696
49776
  align_items: "flex-end",
49697
49777
  justify_content: "space-between"
49698
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
49778
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
49699
49779
  color: "text"
49700
- }, leftText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
49780
+ }, leftText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
49701
49781
  color: "text"
49702
49782
  }, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, {
49703
49783
  progress: progress
@@ -49730,7 +49810,7 @@ __webpack_require__.r(__webpack_exports__);
49730
49810
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49731
49811
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "prop-types");
49732
49812
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
49733
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
49813
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
49734
49814
  // LICENSE_CODE ZON
49735
49815
 
49736
49816
 
@@ -49748,7 +49828,7 @@ var ProgressBar = function ProgressBar(_ref) {
49748
49828
  rest = _objectWithoutProperties(_ref, _excluded);
49749
49829
  var percentage = lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default()(progress, 0, 100);
49750
49830
  var percentageFmt = percentage.toFixed(2);
49751
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarFill, {
49831
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarFill, {
49752
49832
  $width: percentageFmt
49753
49833
  }));
49754
49834
  };
@@ -49811,8 +49891,8 @@ __webpack_require__.r(__webpack_exports__);
49811
49891
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
49812
49892
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
49813
49893
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
49814
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49815
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
49894
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
49895
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
49816
49896
  /* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
49817
49897
  // LICENSE_CODE ZON
49818
49898
 
@@ -49836,18 +49916,18 @@ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
49836
49916
  children = _ref.children,
49837
49917
  container_style = _ref.container_style,
49838
49918
  rest = _objectWithoutProperties(_ref, _excluded);
49839
- var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
49919
+ var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Paragraph, {
49840
49920
  variant: "lg_snug",
49841
49921
  color: "text"
49842
49922
  }, children) : children;
49843
49923
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
49844
49924
  ref: ref,
49845
49925
  $type: type
49846
- }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest)), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_5__.SnackbarIcon, {
49926
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_5__.SnackbarIcon, {
49847
49927
  type: type
49848
49928
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
49849
49929
  style: container_style
49850
- }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
49930
+ }, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
49851
49931
  variant: "lg",
49852
49932
  color: "text"
49853
49933
  }, header), content));
@@ -50054,7 +50134,7 @@ __webpack_require__.r(__webpack_exports__);
50054
50134
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
50055
50135
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
50056
50136
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
50057
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
50137
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
50058
50138
  // LICENSE_CODE ZON
50059
50139
 
50060
50140
 
@@ -50106,7 +50186,7 @@ var Group = function Group(_ref) {
50106
50186
  $variant: variant,
50107
50187
  "aria-orientation": variant == 'vertical' ? 'vertical' : 'horizontal',
50108
50188
  onKeyDown: handleKeyDown
50109
- }, (0,_util__WEBPACK_IMPORTED_MODULE_3__.getCommonProps)(rest)), react__WEBPACK_IMPORTED_MODULE_1__.Children.map(children, function (child) {
50189
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest)), react__WEBPACK_IMPORTED_MODULE_1__.Children.map(children, function (child) {
50110
50190
  return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, {
50111
50191
  variant: variant
50112
50192
  });
@@ -50184,8 +50264,8 @@ __webpack_require__.r(__webpack_exports__);
50184
50264
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
50185
50265
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
50186
50266
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
50187
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
50188
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
50267
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
50268
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
50189
50269
  // LICENSE_CODE ZON
50190
50270
 
50191
50271
 
@@ -50210,17 +50290,17 @@ var Tab = function Tab(_ref) {
50210
50290
  rightContent = _ref.rightContent,
50211
50291
  rest = _objectWithoutProperties(_ref, _excluded);
50212
50292
  var Wrap = variant == 'vertical' ? Left : react__WEBPACK_IMPORTED_MODULE_1__.Fragment;
50213
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TabContainer, _extends({
50293
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TabContainer, _extends({}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
50294
+ $variant: variant,
50214
50295
  role: "tab",
50215
50296
  className: className,
50216
- $variant: variant,
50217
50297
  "aria-selected": !!selected,
50218
50298
  tabIndex: selected ? 0 : -1,
50219
50299
  "aria-disabled": disabled ? 'true' : undefined,
50220
50300
  disabled: !!disabled
50221
- }, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
50301
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
50222
50302
  $variant: variant,
50223
- $selected: selected
50303
+ $disabled: disabled
50224
50304
  }, text)), rightContent);
50225
50305
  };
50226
50306
  Tab.propTypes = {
@@ -50234,32 +50314,32 @@ Tab.propTypes = {
50234
50314
  var TabContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
50235
50315
  displayName: "TabContainer",
50236
50316
  componentId: "sc-dgfrlb-0"
50237
- })(["display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;cursor:pointer;&[aria-disabled=true]{cursor:not-allowed;}", ""], function (_ref2) {
50317
+ })(["display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;cursor:pointer;&[aria-disabled='true']{cursor:not-allowed;}", ""], function (_ref2) {
50238
50318
  var $variant = _ref2.$variant,
50239
50319
  _ref2$theme = _ref2.theme,
50240
50320
  color = _ref2$theme.color,
50241
50321
  shadow = _ref2$theme.shadow;
50242
50322
  if ($variant == 'underline') {
50243
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;&[aria-selected=true]{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&[aria-disabled=true]{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}"], color.text_tertiary, color.border_secondary, color.text_primary, color.border_primary, color.text_tertiary, color.border, color.text_disabled, color.border_disabled);
50323
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;&[aria-selected='true']{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&[aria-disabled='true']{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}"], color.text_tertiary, color.border_secondary, color.text_primary, color.border_primary, color.text_tertiary, color.border, color.text_disabled, color.border_disabled);
50244
50324
  }
50245
50325
  if ($variant == 'contain') {
50246
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";&[aria-selected=true]{color:", ";background:", ";border:1px solid ", ";box-shadow:", ";}&:hover{color:", ";background:", ";}&[aria-disabled=true]{color:", ";background:", ";border:0 none;box-shadow:none;}"], color.text_tertiary, color.text_primary, color.bg, color.border, shadow.meduim, color.text_tertiary, color.bg_fill_primary_secondary, color.text_disabled, color.bg_fill_teritary);
50326
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";&[aria-selected='true']{color:", ";background:", ";border:1px solid ", ";box-shadow:", ";}&:hover{color:", ";background:", ";}&[aria-disabled='true']{color:", ";background:", ";border:0 none;box-shadow:none;}"], color.text_tertiary, color.text_primary, color.bg, color.border, shadow.meduim, color.text_tertiary, color.bg_fill_primary_secondary, color.text_disabled, color.bg_fill_teritary);
50247
50327
  }
50248
50328
  if ($variant == 'vertical') {
50249
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:200px;height:40px;padding:0 12px;justify-content:space-between;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";&[aria-selected=true]{color:", ";background:", ";border-left-color:", ";}&:hover{color:", ";border-left-color:", ";}&[aria-disabled=true]{color:", ";background:0 none;border-left-color:transparent;}"], color.text, color.text, color.bg_fill_primary_secondary, color.bg_fill_primary_secondary, color.text, color.border, color.text_disabled);
50329
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:200px;height:40px;padding:0 12px;justify-content:space-between;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";&[aria-selected='true']{color:", ";background:", ";border-left-color:", ";}&:hover{color:", ";border-left-color:", ";}&[aria-disabled='true']{color:", ";background:0 none;border-left-color:transparent;}"], color.text, color.text, color.bg_fill_primary_secondary, color.bg_fill_primary_secondary, color.text, color.border, color.text_disabled);
50250
50330
  }
50251
50331
  // main
50252
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;&[aria-selected=true]{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&[aria-disabled=true]{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}"], color.text, color.border_teritary, color.text_primary, color.border_primary, color.text, color.border, color.text_disabled, color.border_disabled);
50332
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["width:fit-content;height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;&[aria-selected='true']{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}&[aria-disabled='true']{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}"], color.text, color.border_teritary, color.text_primary, color.border_primary, color.text, color.border, color.text_disabled, color.border_disabled);
50253
50333
  });
50254
50334
  var Left = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
50255
50335
  displayName: "Left",
50256
50336
  componentId: "sc-dgfrlb-1"
50257
50337
  })(["display:flex;align-items:center;gap:8px;flex:1 0 0;min-width:0;"]);
50258
- var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_3__.Label).attrs(function (props) {
50338
+ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_4__.Label).attrs(function (props) {
50259
50339
  var v = {
50260
50340
  main: 'lg',
50261
50341
  underline: 'xs',
50262
- contain: 'base',
50342
+ contain: 'lg',
50263
50343
  vertical: 'sm'
50264
50344
  };
50265
50345
  return {
@@ -50271,9 +50351,9 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
50271
50351
  componentId: "sc-dgfrlb-2"
50272
50352
  })(["min-width:0;overflow-x:clip;text-overflow:ellipsis;", ""], function (_ref3) {
50273
50353
  var $variant = _ref3.$variant,
50274
- $selected = _ref3.$selected,
50354
+ $disabled = _ref3.$disabled,
50275
50355
  font_weight = _ref3.theme.font_weight;
50276
- if ($variant == 'contain' && $selected) return "font-weight: ".concat(font_weight.semibold, ";");
50356
+ if ($variant == 'contain' && $disabled) return "font-weight: ".concat(font_weight.regular, ";");
50277
50357
  });
50278
50358
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tab);
50279
50359
 
@@ -50393,7 +50473,7 @@ var theme = function theme(cb) {
50393
50473
  return cb(p.$theme);
50394
50474
  };
50395
50475
  };
50396
- 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:", ";font-weight:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";}}}}&-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) {
50397
50477
  return t.font_family.sans;
50398
50478
  }), theme(function (t) {
50399
50479
  return t.line_height.none;
@@ -50444,25 +50524,27 @@ var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalSt
50444
50524
  }), prefixCls, prefixCls, theme(function (t) {
50445
50525
  return t.color.text_tertiary;
50446
50526
  }), theme(function (t) {
50447
- return t.font_size.xs;
50527
+ return t.font_size.md;
50448
50528
  }), theme(function (t) {
50449
- return t.font_weight.regular;
50529
+ return t.font_weight.semibold;
50450
50530
  }), theme(function (t) {
50451
50531
  return t.color.text_tertiary;
50452
50532
  }), theme(function (t) {
50453
50533
  return t.color.bg_fill_primary_secondary;
50454
- }), prefixCls, prefixCls, theme(function (t) {
50534
+ }), prefixCls, theme(function (t) {
50455
50535
  return t.color.bg;
50456
50536
  }), theme(function (t) {
50457
50537
  return t.color.border;
50458
50538
  }), theme(function (t) {
50459
50539
  return t.shadow.meduim;
50460
50540
  }), theme(function (t) {
50461
- return t.font_weight.semibold;
50541
+ return t.color.text_primary;
50462
50542
  }), prefixCls, prefixCls, theme(function (t) {
50463
50543
  return t.color.text_disabled;
50464
50544
  }), theme(function (t) {
50465
50545
  return t.color.bg_fill_teritary;
50546
+ }), theme(function (t) {
50547
+ return t.font_weight.regular;
50466
50548
  }), prefixCls, prefixCls, theme(function (t) {
50467
50549
  return t.color.text;
50468
50550
  }), theme(function (t) {
@@ -54687,27 +54769,32 @@ var StyledGroup = styled_components__WEBPACK_IMPORTED_MODULE_1___default().ul.wi
54687
54769
 
54688
54770
  /***/ }),
54689
54771
 
54690
- /***/ "./src/themes/index.js":
54691
- /*!*****************************!*\
54692
- !*** ./src/themes/index.js ***!
54693
- \*****************************/
54772
+ /***/ "./src/themes/constant.js":
54773
+ /*!********************************!*\
54774
+ !*** ./src/themes/constant.js ***!
54775
+ \********************************/
54694
54776
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
54695
54777
 
54696
54778
  "use strict";
54697
54779
  __webpack_require__.r(__webpack_exports__);
54698
54780
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
54699
- /* harmony export */ ThemeProvider: () => (/* binding */ ThemeProvider),
54781
+ /* harmony export */ chartPalette: () => (/* binding */ chartPalette),
54700
54782
  /* harmony export */ color: () => (/* binding */ color),
54701
- /* harmony export */ darkTheme: () => (/* binding */ darkTheme),
54702
- /* harmony export */ lightTheme: () => (/* binding */ lightTheme),
54703
- /* harmony export */ useTheme: () => (/* reexport safe */ styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)
54783
+ /* harmony export */ componentDark: () => (/* binding */ componentDark),
54784
+ /* harmony export */ componentLight: () => (/* binding */ componentLight),
54785
+ /* harmony export */ fontFamily: () => (/* binding */ fontFamily),
54786
+ /* harmony export */ fontSize: () => (/* binding */ fontSize),
54787
+ /* harmony export */ fontWeight: () => (/* binding */ fontWeight),
54788
+ /* harmony export */ letterSpacing: () => (/* binding */ letterSpacing),
54789
+ /* harmony export */ lineHeight: () => (/* binding */ lineHeight),
54790
+ /* harmony export */ scrollbars: () => (/* binding */ scrollbars),
54791
+ /* harmony export */ semanticDark: () => (/* binding */ semanticDark),
54792
+ /* harmony export */ semanticLight: () => (/* binding */ semanticLight),
54793
+ /* harmony export */ shadow: () => (/* binding */ shadow),
54794
+ /* harmony export */ spacing: () => (/* binding */ spacing)
54704
54795
  /* harmony export */ });
54705
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
54706
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
54707
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
54708
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
54709
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
54710
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
54796
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
54797
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
54711
54798
  // LICENSE_CODE ZON
54712
54799
 
54713
54800
 
@@ -54719,70 +54806,59 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
54719
54806
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
54720
54807
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
54721
54808
 
54722
-
54723
-
54724
54809
  var shadow = {
54725
54810
  small: '0px 0px 2px rgba(0, 0, 0, 0.04), 0px 4px 24px rgba(0, 0, 0, 0.04)',
54726
- medium: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 8px 24px rgba(0, 0, 0, 0.08)',
54811
+ medium: '0px 0px 2px rgba(0, 0, 0, 0.08), ' + '0px 8px 24px rgba(0, 0, 0, 0.08)',
54727
54812
  large: '0px 0px 2px rgba(0, 0, 0, 0.12), 0px 0px 96px rgba(0, 0, 0, 0.16)',
54728
54813
  primary: '0px 0px 0px 2px rgba(0, 106, 220, 0.40)',
54729
54814
  success: '0px 0px 0px 2px rgba(6, 122, 111, 0.40)',
54730
54815
  error: '0px 0px 0px 2px rgba(205, 43, 49, 0.40)'
54731
54816
  };
54732
- var baseTheme = {
54733
- font_family: {
54734
- sans: "'Inter', sans-serif",
54735
- mono: "'Monaco', sans-serif"
54736
- },
54737
- font_size: {
54738
- xxs: '11px',
54739
- xs: '12px',
54740
- sm: '13px',
54741
- md: '14px',
54742
- lg: '18px',
54743
- xl: '28px'
54744
- },
54745
- font_weight: {
54746
- regular: '400',
54747
- medium: '500',
54748
- semibold: '600'
54749
- },
54750
- letter_spacing: {
54751
- normal: '0em',
54752
- wide: '0.02em'
54753
- },
54754
- line_height: {
54755
- none: '100%',
54756
- snug: '125%',
54757
- loose: '150%'
54758
- },
54759
- spacing: {
54760
- '00': '0px',
54761
- '01': '2px',
54762
- '02': '4px',
54763
- '03': '8px',
54764
- '04': '12px',
54765
- '05': '16px',
54766
- '06': '24px',
54767
- '07': '32px',
54768
- '08': '40px',
54769
- '09': '48px',
54770
- '10': '64px',
54771
- '11': '72px'
54772
- },
54773
- // obsolete. use shadow
54774
- box_shadow: {
54775
- sm: '0px 0px 2px rgba(0, 0, 0, 0.04),' + '0px 4px 24px rgba(0, 0, 0, 0.04)',
54776
- md: '0px 0px 2px rgba(0, 0, 0, 0.08),' + '0px 8px 24px rgba(0, 0, 0, 0.08)',
54777
- lg: '0px 0px 2px rgba(0, 0, 0, 0.12),' + '0px 0px 96px rgba(0, 0, 0, 0.16)'
54778
- },
54779
- shadow: shadow,
54780
- scrollbars: {
54781
- thin: (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["scrollbar-color:#FFFFFF #DFE3E6;scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:#FFFFFF;}&::-webkit-scrollbar-thumb{background-color:#DFE3E6;border-radius:2px;}"]),
54782
- auto: (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["scrollbar-color:#FFFFFF #DFE3E6;scrollbar-width:auto;&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:#FFFFFF;}&::-webkit-scrollbar-thumb{background-color:#DFE3E6;border-radius:4px;}"])
54783
- },
54784
- chart_palette: ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224']
54785
- };
54817
+ var spacing = {
54818
+ '00': '0px',
54819
+ '01': '2px',
54820
+ '02': '4px',
54821
+ '03': '8px',
54822
+ '04': '12px',
54823
+ '05': '16px',
54824
+ '06': '24px',
54825
+ '07': '32px',
54826
+ '08': '40px',
54827
+ '09': '48px',
54828
+ 10: '64px',
54829
+ 11: '72px'
54830
+ };
54831
+ var fontFamily = {
54832
+ sans: "'Inter', sans-serif",
54833
+ mono: "'Monaco', sans-serif"
54834
+ };
54835
+ var fontSize = {
54836
+ xxs: '11px',
54837
+ xs: '12px',
54838
+ sm: '13px',
54839
+ md: '14px',
54840
+ lg: '18px',
54841
+ xl: '28px'
54842
+ };
54843
+ var fontWeight = {
54844
+ regular: '400',
54845
+ medium: '500',
54846
+ semibold: '600'
54847
+ };
54848
+ var letterSpacing = {
54849
+ normal: '0em',
54850
+ wide: '0.02em'
54851
+ };
54852
+ var lineHeight = {
54853
+ none: 'normal',
54854
+ snug: '125%',
54855
+ loose: '150%'
54856
+ };
54857
+ var scrollbars = {
54858
+ thin: (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["scrollbar-color:#ffffff #dfe3e6;scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:#ffffff;}&::-webkit-scrollbar-thumb{background-color:#dfe3e6;border-radius:2px;}"]),
54859
+ auto: (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["scrollbar-color:#ffffff #dfe3e6;scrollbar-width:auto;&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:#ffffff;}&::-webkit-scrollbar-thumb{background-color:#dfe3e6;border-radius:4px;}"])
54860
+ };
54861
+ var chartPalette = ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'];
54786
54862
  var color = {
54787
54863
  blue_1: '#FBFDFF',
54788
54864
  blue_2: '#F5FAFF',
@@ -54999,9 +55075,6 @@ var componentLight = {
54999
55075
  popover_border: semanticLight.border_secondary,
55000
55076
  popover_shadow: shadow.medium
55001
55077
  };
55002
- var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55003
- color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticLight), componentLight)
55004
- });
55005
55078
  var semanticDark = _objectSpread(_objectSpread({}, semanticLight), {}, {
55006
55079
  bg: color.gray_12,
55007
55080
  bg_elevated: color.gray_11_75,
@@ -55119,7 +55192,7 @@ var componentDark = _objectSpread(_objectSpread({}, componentLight), {}, {
55119
55192
  code_text_shadow_black: 'rgba(43, 47, 49, 0.3)',
55120
55193
  code_header_bg_black: color.gray_11_25,
55121
55194
  code_bg_white: color.black,
55122
- code_text_white: color.text,
55195
+ code_text_white: semanticDark.text,
55123
55196
  code_text_shadow_white: 'rgba(0, 0, 0, 0.3)',
55124
55197
  code_header_bg_white: color.gray_11_75,
55125
55198
  code_bg_icon_black: color.gray_11_25,
@@ -55139,9 +55212,78 @@ var componentDark = _objectSpread(_objectSpread({}, componentLight), {}, {
55139
55212
  popover_border: semanticDark.border,
55140
55213
  popover_shadow: '0px 6px 12px -3px rgba(1, 4, 9, 0.40), ' + '0px 6px 16px 0px rgba(1, 4, 9, 0.40);'
55141
55214
  });
55215
+
55216
+ /***/ }),
55217
+
55218
+ /***/ "./src/themes/index.js":
55219
+ /*!*****************************!*\
55220
+ !*** ./src/themes/index.js ***!
55221
+ \*****************************/
55222
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
55223
+
55224
+ "use strict";
55225
+ __webpack_require__.r(__webpack_exports__);
55226
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
55227
+ /* harmony export */ ThemeProvider: () => (/* binding */ ThemeProvider),
55228
+ /* harmony export */ color: () => (/* reexport safe */ _constant__WEBPACK_IMPORTED_MODULE_3__.color),
55229
+ /* harmony export */ darkTheme: () => (/* binding */ darkTheme),
55230
+ /* harmony export */ lightTheme: () => (/* binding */ lightTheme),
55231
+ /* harmony export */ useTheme: () => (/* reexport safe */ styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)
55232
+ /* harmony export */ });
55233
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
55234
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
55235
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
55236
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
55237
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
55238
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
55239
+ /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/themes/constant.js");
55240
+ // LICENSE_CODE ZON
55241
+
55242
+
55243
+ /*jslint react:true*/
55244
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
55245
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
55246
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55247
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
55248
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
55249
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
55250
+
55251
+
55252
+
55253
+
55254
+ var baseTheme = {
55255
+ font_family: _constant__WEBPACK_IMPORTED_MODULE_3__.fontFamily,
55256
+ font_size: _constant__WEBPACK_IMPORTED_MODULE_3__.fontSize,
55257
+ font_weight: _constant__WEBPACK_IMPORTED_MODULE_3__.fontWeight,
55258
+ letter_spacing: _constant__WEBPACK_IMPORTED_MODULE_3__.letterSpacing,
55259
+ spacing: _constant__WEBPACK_IMPORTED_MODULE_3__.spacing,
55260
+ shadow: _constant__WEBPACK_IMPORTED_MODULE_3__.shadow,
55261
+ scrollbars: _constant__WEBPACK_IMPORTED_MODULE_3__.scrollbars,
55262
+ chart_palette: _constant__WEBPACK_IMPORTED_MODULE_3__.chartPalette,
55263
+ // new line-height has none: normal
55264
+ line_height: {
55265
+ none: '100%',
55266
+ snug: _constant__WEBPACK_IMPORTED_MODULE_3__.lineHeight.snug,
55267
+ loose: _constant__WEBPACK_IMPORTED_MODULE_3__.lineHeight.loose
55268
+ },
55269
+ // obsolete. use shadow
55270
+ box_shadow: {
55271
+ sm: _constant__WEBPACK_IMPORTED_MODULE_3__.shadow.small,
55272
+ md: _constant__WEBPACK_IMPORTED_MODULE_3__.shadow.medium,
55273
+ lg: _constant__WEBPACK_IMPORTED_MODULE_3__.shadow.large
55274
+ }
55275
+ };
55276
+ var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55277
+ color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticLight), _constant__WEBPACK_IMPORTED_MODULE_3__.componentLight)
55278
+ });
55279
+ // addVar('--uikit-', lightTheme.color);
55280
+
55142
55281
  var darkTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
55143
- color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticDark), componentDark)
55282
+ color: _objectSpread(_objectSpread(_objectSpread({}, _constant__WEBPACK_IMPORTED_MODULE_3__.color), _constant__WEBPACK_IMPORTED_MODULE_3__.semanticDark), _constant__WEBPACK_IMPORTED_MODULE_3__.componentDark)
55144
55283
  });
55284
+ // addVar('--uikit-', darkTheme.color);
55285
+
55286
+ var PT_THEME = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['light', 'dark']);
55145
55287
  var ThemeProvider = function ThemeProvider(_ref) {
55146
55288
  var theme = _ref.theme,
55147
55289
  children = _ref.children;
@@ -55151,9 +55293,40 @@ var ThemeProvider = function ThemeProvider(_ref) {
55151
55293
  }, children);
55152
55294
  };
55153
55295
  ThemeProvider.propTypes = {
55154
- theme: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['light', 'dark'])
55296
+ theme: PT_THEME
55155
55297
  };
55156
55298
 
55299
+ // export const CSSVariables = ({theme})=>{
55300
+ // const vars = theme == 'dark' ? darkVariables : lightVariables;
55301
+ // return <CSSVariablesGlobalStyle $variables={vars} />;
55302
+ // };
55303
+ // CSSVariables.propTypes = {theme: PT_THEME};
55304
+
55305
+ // const variables =
55306
+ // buildVars('--uikit-font-family-', fontFamily) +
55307
+ // buildVars('--uikit-font-size-', fontSize) +
55308
+ // buildVars('--uikit-font-weight-', fontWeight) +
55309
+ // buildVars('--uikit-letter-spacing-', letterSpacing) +
55310
+ // buildVars('--uikit-line-height-', lineHeight) +
55311
+ // buildVars('--uikit-spacing-', spacing) +
55312
+ // buildVars('--uikit-shadow-', shadow) +
55313
+ // buildVars('--uikit-', color);
55314
+
55315
+ // const lightVariables =
55316
+ // variables +
55317
+ // buildVars('--uikit-', semanticLight) +
55318
+ // buildVars('--uikit-', componentLight);
55319
+
55320
+ // const darkVariables =
55321
+ // variables +
55322
+ // buildVars('--uikit-', semanticDark) +
55323
+ // buildVars('--uikit-', componentDark);
55324
+
55325
+ // const CSSVariablesGlobalStyle = createGlobalStyle`:root {
55326
+ // ${({$variables})=>$variables}
55327
+ // }`;
55328
+
55329
+
55157
55330
 
55158
55331
  /***/ }),
55159
55332
 
@@ -56354,7 +56527,7 @@ __webpack_require__.r(__webpack_exports__);
56354
56527
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
56355
56528
  /* harmony export */ getTypographyProps: () => (/* binding */ getTypographyProps)
56356
56529
  /* harmony export */ });
56357
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
56530
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
56358
56531
  // LICENSE_CODE ZON
56359
56532
 
56360
56533
 
@@ -56394,7 +56567,7 @@ var getTypographyProps = function getTypographyProps(props) {
56394
56567
  no_wrap: no_wrap,
56395
56568
  underline: underline,
56396
56569
  whiteSpace: whiteSpace
56397
- }, (0,_util__WEBPACK_IMPORTED_MODULE_0__.getCommonProps)(props));
56570
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_0__["default"])(props));
56398
56571
  };
56399
56572
 
56400
56573
  /***/ }),