@luminati-io/uikit 1.9.12 → 1.9.14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/uikit.umd.js CHANGED
@@ -23919,16 +23919,18 @@ __webpack_require__.r(__webpack_exports__);
23919
23919
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
23920
23920
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
23921
23921
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
23922
- /* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
23922
+ /* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
23923
23923
  /* harmony import */ var react_select_creatable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-select/creatable */ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js");
23924
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
23925
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
23926
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
23927
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
23928
- /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
23929
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
23930
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
23931
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
23924
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! styled-components */ "styled-components");
23925
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_4__);
23926
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
23927
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
23928
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
23929
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
23930
+ /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
23931
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
23932
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
23933
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
23932
23934
  // LICENSE_CODE ZON
23933
23935
 
23934
23936
 
@@ -23956,7 +23958,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
23956
23958
 
23957
23959
 
23958
23960
 
23959
- var Item = _menu__WEBPACK_IMPORTED_MODULE_6__["default"].Item;
23961
+
23960
23962
  var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
23961
23963
  var label = props.label,
23962
23964
  labelIcon = props.labelIcon,
@@ -23984,17 +23986,17 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
23984
23986
  menuPlacement = props.menuPlacement,
23985
23987
  components = props.components,
23986
23988
  rest = _objectWithoutProperties(props, _excluded);
23987
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(props.id);
23988
- var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
23989
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(props.id);
23990
+ var t = (0,_translation__WEBPACK_IMPORTED_MODULE_9__.useTranslate)();
23989
23991
  var styles = useCustomStyles(size);
23990
- var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
23991
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
23992
+ var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_13__["default"];
23993
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, _extends({
23992
23994
  ref: ref,
23993
23995
  "data-testid": "dropdown"
23994
23996
  }, rest, {
23995
23997
  flex_direction: "column",
23996
- gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
23997
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.InputLabel, {
23998
+ gap: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["02"]
23999
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.InputLabel, {
23998
24000
  id: labelId,
23999
24001
  label: label,
24000
24002
  labelIcon: labelIcon,
@@ -24035,7 +24037,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
24035
24037
  },
24036
24038
  closeMenuOnSelect: !multiselect,
24037
24039
  menuPlacement: menuPlacement
24038
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.HelperText, {
24040
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.HelperText, {
24039
24041
  invalid: invalid
24040
24042
  }, helperText));
24041
24043
  });
@@ -24081,7 +24083,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
24081
24083
  height: "18px",
24082
24084
  viewBox: ic.viewBox,
24083
24085
  style: {
24084
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
24086
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_9,
24085
24087
  cursor: isDisabled ? 'default' : 'pointer'
24086
24088
  }
24087
24089
  }, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
@@ -24099,7 +24101,7 @@ var ClearIndicator = function ClearIndicator(props) {
24099
24101
  height: "18px",
24100
24102
  viewBox: ic.viewBox,
24101
24103
  style: {
24102
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
24104
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_9,
24103
24105
  cursor: 'pointer'
24104
24106
  }
24105
24107
  }, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
@@ -24107,6 +24109,12 @@ var ClearIndicator = function ClearIndicator(props) {
24107
24109
  }));
24108
24110
  };
24109
24111
  ClearIndicator.displayName = 'ClearIndicator';
24112
+ var StyledItem = styled_components__WEBPACK_IMPORTED_MODULE_4___default()(_menu__WEBPACK_IMPORTED_MODULE_7__["default"].Item).withConfig({
24113
+ displayName: "StyledItem",
24114
+ componentId: "sc-1clfzmr-0"
24115
+ })(["", ""], function (props) {
24116
+ return props.selected ? "background-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.blue_3, ";") : undefined;
24117
+ });
24110
24118
  var Option = function Option(props) {
24111
24119
  var data = props.data,
24112
24120
  className = props.className,
@@ -24116,7 +24124,7 @@ var Option = function Option(props) {
24116
24124
  isSelected = props.isSelected,
24117
24125
  innerRef = props.innerRef,
24118
24126
  innerProps = props.innerProps;
24119
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Item, _extends({
24127
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledItem, _extends({
24120
24128
  ref: innerRef,
24121
24129
  type: "item",
24122
24130
  className: cx({
@@ -24141,7 +24149,7 @@ var Group = function Group(props) {
24141
24149
  innerProps = props.innerProps,
24142
24150
  children = props.children,
24143
24151
  isFirstItem = props.isFirstItem;
24144
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuItemGroup, _extends({
24152
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_7__.MenuItemGroup, _extends({
24145
24153
  ref: innerRef,
24146
24154
  isFirstItem: isFirstItem,
24147
24155
  className: cx({
@@ -24159,7 +24167,7 @@ var MenuList = function MenuList(props) {
24159
24167
  innerRef = props.innerRef,
24160
24168
  innerProps = props.innerProps,
24161
24169
  children = props.children;
24162
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuContainer, _extends({
24170
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_7__.MenuContainer, _extends({
24163
24171
  ref: innerRef,
24164
24172
  noShadow: true,
24165
24173
  role: "menu",
@@ -24183,25 +24191,25 @@ var useCustomStyles = function useCustomStyles(size) {
24183
24191
  md: 40,
24184
24192
  lg: 48
24185
24193
  };
24186
- var borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_7;
24187
- var color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50;
24188
- var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white;
24194
+ var borderColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_7;
24195
+ var color = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_11_50;
24196
+ var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.white;
24189
24197
  var cursor = 'text';
24190
24198
  if (state.isDisabled) {
24191
- color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9;
24192
- borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6;
24193
- backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2;
24199
+ color = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_9;
24200
+ borderColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_6;
24201
+ backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_2;
24194
24202
  cursor = 'default';
24195
- } else if (state.selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.red_11;else if (state.isFocused) borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_11;
24203
+ } else if (state.selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.red_11;else if (state.isFocused) borderColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.blue_11;
24196
24204
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24197
- minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(height[size] || height.sm),
24198
- padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputHorizontalPadding, "px"),
24205
+ minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(height[size] || height.sm),
24206
+ padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_12__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_12__.inputHorizontalPadding, "px"),
24199
24207
  /* Label/sm */
24200
- fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
24208
+ fontFamily: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_family.sans,
24201
24209
  fontStyle: 'normal',
24202
- fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
24203
- fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
24204
- lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
24210
+ fontWeight: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_weight.regular,
24211
+ fontSize: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_size.sm,
24212
+ lineHeight: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].line_height.none,
24205
24213
  color: color,
24206
24214
  backgroundColor: backgroundColor,
24207
24215
  borderColor: borderColor,
@@ -24216,12 +24224,12 @@ var useCustomStyles = function useCustomStyles(size) {
24216
24224
  },
24217
24225
  placeholder: function placeholder(baseStyles) {
24218
24226
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24219
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11
24227
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_11
24220
24228
  });
24221
24229
  },
24222
24230
  indicatorsContainer: function indicatorsContainer(baseStyles) {
24223
24231
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24224
- gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["03"],
24232
+ gap: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["03"],
24225
24233
  minHeight: '24px'
24226
24234
  });
24227
24235
  },
@@ -24229,48 +24237,56 @@ var useCustomStyles = function useCustomStyles(size) {
24229
24237
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24230
24238
  padding: 0,
24231
24239
  boxSizing: 'border-box',
24232
- minWidth: '168px',
24240
+ minWidth: 'fit-content',
24233
24241
  maxWidth: '540px',
24234
- width: 'max-content',
24235
- backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white,
24236
- borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
24237
- boxShadow: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].box_shadow.md
24242
+ width: '100%',
24243
+ backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.white,
24244
+ borderRadius: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["02"],
24245
+ boxShadow: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].box_shadow.md
24238
24246
  });
24239
24247
  },
24240
24248
  menuPortal: function menuPortal(baseStyles) {
24241
24249
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24242
- zIndex: _constants__WEBPACK_IMPORTED_MODULE_10__.Z_INDEX.dropdown
24250
+ zIndex: _constants__WEBPACK_IMPORTED_MODULE_11__.Z_INDEX.dropdown
24243
24251
  });
24244
24252
  },
24245
24253
  multiValue: function multiValue(baseStyles) {
24246
24254
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24247
- backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
24248
- borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
24255
+ backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_3,
24256
+ borderRadius: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["02"]
24249
24257
  });
24250
24258
  },
24251
24259
  multiValueLabel: function multiValueLabel(baseStyles) {
24252
24260
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24253
24261
  /* Label/sm */
24254
- fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
24262
+ fontFamily: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_family.sans,
24255
24263
  fontStyle: 'normal',
24256
- fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
24257
- fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
24258
- lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
24259
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_25,
24260
- paddingLeft: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
24261
- paddingRight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["00"]
24264
+ fontWeight: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_weight.regular,
24265
+ fontSize: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].font_size.sm,
24266
+ lineHeight: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].line_height.none,
24267
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_11_25,
24268
+ paddingLeft: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["02"],
24269
+ paddingRight: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["00"]
24262
24270
  });
24263
24271
  },
24264
24272
  multiValueRemove: function multiValueRemove(baseStyles) {
24265
24273
  return _objectSpread(_objectSpread({}, baseStyles), {}, {
24266
- borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
24267
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11,
24274
+ borderRadius: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].spacing["02"],
24275
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_11,
24268
24276
  cursor: 'pointer',
24269
24277
  ':hover': {
24270
- backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
24271
- color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50
24278
+ backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_3,
24279
+ color: _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.gray_11_50
24272
24280
  }
24273
24281
  });
24282
+ },
24283
+ option: function option(baseStyles, state) {
24284
+ console.log(baseStyles, state);
24285
+ var backgroundColor = baseStyles.backgroundColor;
24286
+ if (state.selected) backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_8__["default"].color.blue_3;
24287
+ return _objectSpread(_objectSpread({}, baseStyles), {}, {
24288
+ backgroundColor: backgroundColor
24289
+ });
24274
24290
  }
24275
24291
  };
24276
24292
  }, [size]);
@@ -24759,14 +24775,6 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
24759
24775
  setActive(false);
24760
24776
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
24761
24777
  };
24762
- var onValueChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
24763
- onChange.apply(void 0, arguments);
24764
- // XXX vadimv: hack to autoresize textarea
24765
- if (autoresize) {
24766
- field.current.style.height = 0;
24767
- field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(field.current.scrollHeight);
24768
- }
24769
- }, [onChange]);
24770
24778
  var onWrapperClick = function onWrapperClick() {
24771
24779
  var _field$current;
24772
24780
  return field === null || field === void 0 ? void 0 : (_field$current = field.current) === null || _field$current === void 0 ? void 0 : _field$current.focus();
@@ -24775,6 +24783,10 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
24775
24783
  var _field$current2;
24776
24784
  if (autofocus) field === null || field === void 0 ? void 0 : (_field$current2 = field.current) === null || _field$current2 === void 0 ? void 0 : _field$current2.focus();
24777
24785
  }, []);
24786
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
24787
+ // XXX vadimv: hack to autoresize textarea
24788
+ if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(field.current.scrollHeight);
24789
+ }, [autoresize, value]);
24778
24790
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
24779
24791
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
24780
24792
  ref: ref
@@ -24801,7 +24813,7 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
24801
24813
  }, leftInnerContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Field, _extends({}, props.inputProps, {
24802
24814
  ref: field,
24803
24815
  disabled: disabled,
24804
- onChange: onValueChange,
24816
+ onChange: onChange,
24805
24817
  onFocus: onFieldFocus,
24806
24818
  onBlur: onFieldBlur,
24807
24819
  value: value,
@@ -25452,6 +25464,11 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
25452
25464
  size = props.size,
25453
25465
  icon = props.icon,
25454
25466
  rest = _objectWithoutProperties(props, _excluded);
25467
+ if (variant == 'inline') {
25468
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
25469
+ ref: ref
25470
+ }, rest, (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getLinkProps)(props)), text);
25471
+ }
25455
25472
  var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', props),
25456
25473
  isLeft = _getIconProps.isLeft,
25457
25474
  isRight = _getIconProps.isRight,
@@ -25480,16 +25497,21 @@ Link.defaultProps = {
25480
25497
  };
25481
25498
  Link.propTypes = {
25482
25499
  text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired),
25483
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary']),
25500
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
25484
25501
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
25485
25502
  icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
25486
25503
  iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
25487
25504
  href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
25488
25505
  newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
25489
25506
  };
25507
+ var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
25508
+ displayName: "InlineLink",
25509
+ componentId: "sc-1ilmd36-0"
25510
+ })(["justify-content:center;text-decoration:underline;background:0 none;border:0 none;padding:0;cursor:pointer;&:disabled{cursor:not-allowed;}&:hover,:visited,:focus{text-decoration:underline;}"]);
25511
+ InlineLink.displayName = 'InlineLink';
25490
25512
  var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
25491
25513
  displayName: "StyledLink",
25492
- componentId: "sc-1ilmd36-0"
25514
+ componentId: "sc-1ilmd36-1"
25493
25515
  })(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
25494
25516
  return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.size == 'lg' ? 8 : 4);
25495
25517
  }, function (props) {
@@ -25553,8 +25575,7 @@ __webpack_require__.r(__webpack_exports__);
25553
25575
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
25554
25576
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
25555
25577
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
25556
- /* harmony import */ var _menu_item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./menu_item */ "./src/menu/menu_item.js");
25557
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
25578
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
25558
25579
  // LICENSE_CODE ZON
25559
25580
 
25560
25581
 
@@ -25566,19 +25587,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25566
25587
 
25567
25588
 
25568
25589
 
25569
-
25570
25590
  var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
25571
25591
  var items = props.items,
25572
25592
  size = props.size,
25573
25593
  rest = _objectWithoutProperties(props, _excluded);
25574
25594
  if (!items || !items.length) return null;
25575
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_3__.MenuContainer, _extends({
25595
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
25576
25596
  ref: ref
25577
25597
  }, rest, {
25578
25598
  role: "menu",
25579
25599
  "data-testid": "menu"
25580
- }), (0,_menu_item__WEBPACK_IMPORTED_MODULE_2__.buildMenuItems)(items, {
25581
- size: size
25600
+ }), items.map(function (item, ind) {
25601
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Menu.Item, _extends({
25602
+ key: item.key
25603
+ }, item, {
25604
+ size: size,
25605
+ isFirstItem: ind == 0
25606
+ }));
25582
25607
  }));
25583
25608
  });
25584
25609
  Menu.displayName = 'Menu';
@@ -25602,7 +25627,6 @@ Menu.propTypes = {
25602
25627
  "use strict";
25603
25628
  __webpack_require__.r(__webpack_exports__);
25604
25629
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25605
- /* harmony export */ "buildMenuItems": () => (/* binding */ buildMenuItems),
25606
25630
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
25607
25631
  /* harmony export */ });
25608
25632
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
@@ -25617,9 +25641,10 @@ __webpack_require__.r(__webpack_exports__);
25617
25641
  /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip.js");
25618
25642
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
25619
25643
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
25620
- /* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
25621
- /* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
25622
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
25644
+ /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
25645
+ /* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
25646
+ /* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
25647
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
25623
25648
  // LICENSE_CODE ZON
25624
25649
 
25625
25650
 
@@ -25641,6 +25666,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25641
25666
 
25642
25667
 
25643
25668
 
25669
+
25644
25670
  var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
25645
25671
  var type = props.type,
25646
25672
  text = props.text,
@@ -25656,15 +25682,15 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
25656
25682
  subMenu = props.subMenu,
25657
25683
  tooltip = props.tooltip,
25658
25684
  rest = _objectWithoutProperties(props, _excluded);
25659
- if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_9__["default"], {
25685
+ if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_10__["default"], {
25660
25686
  ref: ref
25661
25687
  });
25662
- var subItems = Array.isArray(children) && children.length ? buildMenuItems(children, {
25688
+ var subItems = buildSubItems(children, {
25663
25689
  size: size
25664
- }) : undefined;
25690
+ });
25665
25691
  var isSubMenu = subMenu || subItems;
25666
25692
  if (type == 'group') {
25667
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_10__["default"], _extends({
25693
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_11__["default"], _extends({
25668
25694
  ref: ref,
25669
25695
  text: text
25670
25696
  }, rest), subItems);
@@ -25675,7 +25701,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
25675
25701
  var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
25676
25702
  var labelColor = disabled ? 'gray_9' : variant == 'negative' ? 'red_11' : 'gray_11_50';
25677
25703
  var Comp = subItems ? MenuItemPopover : MenuItemButton;
25678
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.MenuItemContainer, {
25704
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuItemContainer, {
25679
25705
  ref: ref,
25680
25706
  as: tag,
25681
25707
  role: "menuitem"
@@ -25691,8 +25717,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
25691
25717
  }
25692
25718
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItemText, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, iconProps, {
25693
25719
  color: iconColor
25694
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
25695
- variant: "sm",
25720
+ })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PrimaryText, {
25696
25721
  no_wrap: true,
25697
25722
  color: labelColor
25698
25723
  }, text), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SecondaryIcon, {
@@ -25739,7 +25764,7 @@ var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function
25739
25764
  onClick: props.popover.toggle
25740
25765
  }));
25741
25766
  }, function (props) {
25742
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.MenuContainer, {
25767
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_12__.MenuContainer, {
25743
25768
  onClick: props.popover.hide
25744
25769
  }, props.subItems);
25745
25770
  }, {
@@ -25771,13 +25796,20 @@ var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__
25771
25796
  displayName: "RightIcon",
25772
25797
  componentId: "sc-vtiffr-2"
25773
25798
  })(["margin-left:auto;"]);
25799
+ var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
25800
+ variant: 'sm',
25801
+ no_wrap: true
25802
+ }).withConfig({
25803
+ displayName: "PrimaryText",
25804
+ componentId: "sc-vtiffr-3"
25805
+ })(["overflow-x:hidden;text-overflow:ellipsis;"]);
25774
25806
  var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
25775
25807
  variant: 'sm',
25776
25808
  color: 'gray_9',
25777
25809
  no_wrap: true
25778
25810
  }).withConfig({
25779
25811
  displayName: "SecondaryText",
25780
- componentId: "sc-vtiffr-3"
25812
+ componentId: "sc-vtiffr-4"
25781
25813
  })(["margin-left:auto;"]);
25782
25814
  var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_7__.Label).attrs({
25783
25815
  variant: 'xs',
@@ -25785,16 +25817,16 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
25785
25817
  no_wrap: true
25786
25818
  }).withConfig({
25787
25819
  displayName: "Description",
25788
- componentId: "sc-vtiffr-4"
25820
+ componentId: "sc-vtiffr-5"
25789
25821
  })(["max-width:516px;text-overflow:ellipsis;overflow-x:clip;"]);
25790
- var buildMenuItems = function buildMenuItems(items, itemProps) {
25791
- return items.map(function (item, ind) {
25792
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(MenuItem, _extends({
25822
+ var buildSubItems = function buildSubItems(children, itemProps) {
25823
+ return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
25824
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_9__["default"].Item, _extends({
25793
25825
  key: item.key
25794
25826
  }, item, itemProps, {
25795
25827
  isFirstItem: ind == 0
25796
25828
  }));
25797
- });
25829
+ }) : undefined;
25798
25830
  };
25799
25831
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MenuItem);
25800
25832
 
@@ -26858,6 +26890,7 @@ Provider.propTypes = {
26858
26890
  disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26859
26891
  disableEditing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26860
26892
  onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
26893
+ hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26861
26894
  hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26862
26895
  getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
26863
26896
  getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
@@ -27371,7 +27404,9 @@ var TableHeader = function TableHeader(props) {
27371
27404
  compact = props.compact,
27372
27405
  left = props.left;
27373
27406
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
27374
- headerGroups = _useTableContext.headerGroups;
27407
+ headerGroups = _useTableContext.headerGroups,
27408
+ hideHeader = _useTableContext.hideHeader;
27409
+ if (hideHeader) return null;
27375
27410
  var style = {};
27376
27411
  if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toPixel)(-left);
27377
27412
  var dataAttributes = {};