@luminati-io/uikit 6.3.6 → 6.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -39876,6 +39876,7 @@ __webpack_require__.r(__webpack_exports__);
39876
39876
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
39877
39877
  /* harmony export */ INPUT_HORIZONTAL_PADDING: () => (/* binding */ INPUT_HORIZONTAL_PADDING),
39878
39878
  /* harmony export */ INPUT_VERTICAL_PADDING: () => (/* binding */ INPUT_VERTICAL_PADDING),
39879
+ /* harmony export */ PT_INPUT_SHARED: () => (/* binding */ PT_INPUT_SHARED),
39879
39880
  /* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
39880
39881
  /* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
39881
39882
  /* harmony export */ PT_TRIGGER: () => (/* binding */ PT_TRIGGER),
@@ -39918,6 +39919,32 @@ var TOOLTIP_PLACEMENT = function () {
39918
39919
  });
39919
39920
  });
39920
39921
  }();
39922
+ var PT_INPUT_SHARED = {
39923
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39924
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39925
+ value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
39926
+ onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39927
+ onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39928
+ onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39929
+ onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
39930
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39931
+ disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39932
+ invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39933
+ after: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39934
+ before: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39935
+ leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39936
+ leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39937
+ rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39938
+ rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39939
+ label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39940
+ labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
39941
+ labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39942
+ helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
39943
+ inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
39944
+ required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
39945
+ necessityIndicator: PT_NECESSITY_INDICATOR,
39946
+ autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
39947
+ };
39921
39948
 
39922
39949
  /***/ }),
39923
39950
 
@@ -45871,21 +45898,24 @@ __webpack_require__.r(__webpack_exports__);
45871
45898
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
45872
45899
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
45873
45900
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
45874
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
45875
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
45876
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
45877
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
45878
- /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
45879
- /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
45880
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
45881
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
45882
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
45901
+ /* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
45902
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
45903
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
45904
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
45905
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
45906
+ /* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
45907
+ /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
45908
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
45909
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
45910
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
45883
45911
  // LICENSE_CODE ZON
45884
45912
 
45885
45913
 
45886
45914
  /*jslint react:true*/
45887
45915
  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); }
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"];
45916
+ var _excluded = ["id", "name", "value", "leftInnerContent", "rightInnerContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "onKeyDown", "placeholder", "disabled", "invalid", "autoFocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper", "classNamePrefix", "className"];
45917
+ 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; }
45918
+ 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; }
45889
45919
  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; }
45890
45920
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
45891
45921
  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); }
@@ -45910,14 +45940,13 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
45910
45940
 
45911
45941
 
45912
45942
 
45943
+
45913
45944
  var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
45914
45945
  var id = props.id,
45915
45946
  name = props.name,
45916
45947
  value = props.value,
45917
45948
  leftInnerContent = props.leftInnerContent,
45918
- leftOuterContent = props.leftOuterContent,
45919
45949
  rightInnerContent = props.rightInnerContent,
45920
- rightOuterContent = props.rightOuterContent,
45921
45950
  heightCalculationCallback = props.heightCalculationCallback,
45922
45951
  Field = props.Field,
45923
45952
  fieldRef = props.fieldRef,
@@ -45942,7 +45971,7 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45942
45971
  className = props.className,
45943
45972
  rest = _objectWithoutProperties(props, _excluded);
45944
45973
  var field = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
45945
- var setFieldRefs = (0,_util__WEBPACK_IMPORTED_MODULE_9__.useSetRefsCallback)([fieldRef, field]);
45974
+ var setFieldRefs = (0,_util__WEBPACK_IMPORTED_MODULE_10__.useSetRefsCallback)([fieldRef, field]);
45946
45975
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),
45947
45976
  _useState2 = _slicedToArray(_useState, 2),
45948
45977
  active = _useState2[0],
@@ -45975,13 +46004,15 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45975
46004
  }, []);
45976
46005
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
45977
46006
  // XXX vadimv: hack to autoresize textarea
45978
- if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(field.current.scrollHeight);
46007
+ if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(field.current.scrollHeight);
45979
46008
  }, [autoresize, value]);
45980
- var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(id);
45981
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
46009
+ var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(id);
46010
+ var leftOuterContent = props.leftOuterContent || props.before;
46011
+ var rightOuterContent = props.rightOuterContent || props.after;
46012
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, _extends({
45982
46013
  ref: ref
45983
- }, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(rest), {
45984
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46014
+ }, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
46015
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
45985
46016
  container: true
45986
46017
  }, className),
45987
46018
  flex_direction: "column",
@@ -45997,9 +46028,10 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
45997
46028
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputContentWrapper, {
45998
46029
  $heightCalculationCallback: heightCalculationCallback
45999
46030
  }, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, {
46000
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46031
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
46001
46032
  leftOuterContent: true
46002
- })
46033
+ }),
46034
+ $unstyled: !!props.leftOuterContent
46003
46035
  }, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
46004
46036
  ref: innerWrapper,
46005
46037
  $active: active,
@@ -46025,43 +46057,25 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
46025
46057
  placeholder: placeholder,
46026
46058
  "aria-labelledby": label ? labelId : undefined
46027
46059
  })), rightInnerContent), rightOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightOuterContentWrapper, {
46028
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46060
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
46029
46061
  rightOuterContent: true
46030
- })
46062
+ }),
46063
+ $unstyled: !!props.rightOuterContent
46031
46064
  }, rightOuterContent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HelperText, {
46032
46065
  classNamePrefix: classNamePrefix,
46033
46066
  invalid: invalid
46034
46067
  }, helperText));
46035
46068
  });
46036
46069
  FieldWrapper.displayName = 'FieldWrapper';
46037
- FieldWrapper.propTypes = {
46038
- value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
46039
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
46040
- onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
46041
- onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
46042
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46043
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46044
- invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46045
- leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46046
- leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46047
- rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46048
- rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46049
- label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46050
- labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46051
- labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46052
- helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46053
- inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
46070
+ FieldWrapper.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_12__.PT_INPUT_SHARED), {}, {
46071
+ heightCalculationCallback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
46054
46072
  Field: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().elementType),
46055
46073
  fieldRef: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
46056
46074
  current: prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Element)
46057
46075
  })]),
46058
- required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46059
- necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_11__.PT_NECESSITY_INDICATOR,
46060
- autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46061
- heightCalculationCallback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
46062
46076
  autoresize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46063
46077
  verticalAlign: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
46064
- };
46078
+ });
46065
46079
  var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withConfig({
46066
46080
  displayName: "Field",
46067
46081
  componentId: "sc-r60v1b-0"
@@ -46096,14 +46110,14 @@ var InputLabel = function InputLabel(_ref7) {
46096
46110
  necessityIndicator = _ref7$necessityIndica === void 0 ? 'asterisk' : _ref7$necessityIndica,
46097
46111
  _ref7$variant = _ref7.variant,
46098
46112
  variant = _ref7$variant === void 0 ? 'sm' : _ref7$variant;
46099
- var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
46113
+ var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
46100
46114
  if (!label) return null;
46101
46115
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
46102
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46116
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
46103
46117
  label: true
46104
46118
  }, className)
46105
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
46106
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, _defineProperty({
46119
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_9__.Label, {
46120
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, _defineProperty({
46107
46121
  labelText: true
46108
46122
  }, 'labelText--is-required', required)),
46109
46123
  id: id,
@@ -46113,10 +46127,10 @@ var InputLabel = function InputLabel(_ref7) {
46113
46127
  }, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
46114
46128
  required: required,
46115
46129
  indicator: necessityIndicator
46116
- })), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip2, {
46130
+ })), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip2, {
46117
46131
  tooltip: labelTooltip
46118
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
46119
- className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
46132
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
46133
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
46120
46134
  labelIcon: true
46121
46135
  }),
46122
46136
  name: labelIcon,
@@ -46125,11 +46139,14 @@ var InputLabel = function InputLabel(_ref7) {
46125
46139
  })));
46126
46140
  };
46127
46141
  InputLabel.propTypes = {
46142
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46143
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46144
+ id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46128
46145
  label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46129
46146
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46130
46147
  labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
46131
46148
  required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
46132
- necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_11__.PT_NECESSITY_INDICATOR,
46149
+ necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_12__.PT_NECESSITY_INDICATOR,
46133
46150
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
46134
46151
  };
46135
46152
  var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
@@ -46139,25 +46156,27 @@ var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
46139
46156
  var spacing = _ref8.theme.spacing;
46140
46157
  return spacing['03'];
46141
46158
  });
46142
- var NecessityIndicator = function NecessityIndicator(props) {
46143
- var required = props.required,
46144
- indicator = props.indicator;
46145
- var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
46159
+ var NecessityIndicator = function NecessityIndicator(_ref9) {
46160
+ var required = _ref9.required,
46161
+ indicator = _ref9.indicator;
46162
+ var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
46146
46163
  if (indicator == 'none') return null;
46147
- if (indicator == 'text') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Indicator, null, t(required ? '(required)' : '(optional)'));
46164
+ if (indicator == 'text') {
46165
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Indicator, null, t(required ? '(required)' : '(optional)'));
46166
+ }
46148
46167
  return required ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Asterisk, null) : null;
46149
46168
  };
46150
46169
  var Indicator = styled_components__WEBPACK_IMPORTED_MODULE_2___default().span.withConfig({
46151
46170
  displayName: "Indicator",
46152
46171
  componentId: "sc-r60v1b-2"
46153
- })(["color:", ";margin-left:", ";"], function (_ref9) {
46154
- var color = _ref9.theme.color;
46172
+ })(["color:", ";margin-left:", ";"], function (_ref10) {
46173
+ var color = _ref10.theme.color;
46155
46174
  return color.text_disabled;
46156
- }, function (_ref10) {
46157
- var spacing = _ref10.theme.spacing;
46175
+ }, function (_ref11) {
46176
+ var spacing = _ref11.theme.spacing;
46158
46177
  return spacing['02'];
46159
46178
  });
46160
- var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
46179
+ var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_9__.Label).attrs({
46161
46180
  tag: 'span',
46162
46181
  variant: 'xs',
46163
46182
  color: 'border_error',
@@ -46165,73 +46184,84 @@ var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typogra
46165
46184
  }).withConfig({
46166
46185
  displayName: "Asterisk",
46167
46186
  componentId: "sc-r60v1b-3"
46168
- })(["margin-left:", ";"], function (_ref11) {
46169
- var spacing = _ref11.theme.spacing;
46187
+ })(["margin-left:", ";"], function (_ref12) {
46188
+ var spacing = _ref12.theme.spacing;
46170
46189
  return spacing['02'];
46171
46190
  });
46172
46191
  var LeftOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46173
46192
  displayName: "LeftOuterContentWrapper",
46174
46193
  componentId: "sc-r60v1b-4"
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) {
46194
+ })(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:", ";border-bottom:", ";border-left:", ";padding:", ";border-top-left-radius:4px;border-bottom-left-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref13) {
46179
46195
  var color = _ref13.theme.color;
46180
- return color.border;
46196
+ return color.bg_fill;
46181
46197
  }, function (_ref14) {
46182
- var color = _ref14.theme.color;
46183
- return color.border;
46198
+ var $unstyled = _ref14.$unstyled,
46199
+ color = _ref14.theme.color;
46200
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46184
46201
  }, function (_ref15) {
46185
- var color = _ref15.theme.color;
46186
- return color.border;
46202
+ var $unstyled = _ref15.$unstyled,
46203
+ color = _ref15.theme.color;
46204
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46187
46205
  }, function (_ref16) {
46188
- var spacing = _ref16.theme.spacing;
46189
- return spacing['04'];
46206
+ var $unstyled = _ref16.$unstyled,
46207
+ color = _ref16.theme.color;
46208
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46190
46209
  }, function (_ref17) {
46191
- var font_family = _ref17.theme.font_family;
46192
- return font_family.sans;
46210
+ var $unstyled = _ref17.$unstyled,
46211
+ spacing = _ref17.theme.spacing;
46212
+ return $unstyled ? '0' : spacing['04'];
46193
46213
  }, function (_ref18) {
46194
- var font_size = _ref18.theme.font_size;
46195
- return font_size.sm;
46214
+ var font_family = _ref18.theme.font_family;
46215
+ return font_family.sans;
46196
46216
  }, function (_ref19) {
46197
- var font_weight = _ref19.theme.font_weight;
46198
- return font_weight.regular;
46217
+ var font_size = _ref19.theme.font_size;
46218
+ return font_size.sm;
46199
46219
  }, function (_ref20) {
46200
- var color = _ref20.theme.color;
46220
+ var font_weight = _ref20.theme.font_weight;
46221
+ return font_weight.regular;
46222
+ }, function (_ref21) {
46223
+ var color = _ref21.theme.color;
46201
46224
  return color.text_quaternary;
46202
46225
  });
46203
46226
  var RightOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46204
46227
  displayName: "RightOuterContentWrapper",
46205
46228
  componentId: "sc-r60v1b-5"
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) {
46229
+ })(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;padding:0 ", ";border-top:", ";border-right:", ";border-bottom:", ";padding:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref22) {
46210
46230
  var color = _ref22.theme.color;
46211
- return color.border;
46231
+ return color.bg_fill;
46212
46232
  }, function (_ref23) {
46213
- var color = _ref23.theme.color;
46214
- return color.border;
46233
+ var spacing = _ref23.theme.spacing;
46234
+ return spacing['04'];
46215
46235
  }, function (_ref24) {
46216
- var color = _ref24.theme.color;
46217
- return color.border;
46236
+ var $unstyled = _ref24.$unstyled,
46237
+ color = _ref24.theme.color;
46238
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46218
46239
  }, function (_ref25) {
46219
- var spacing = _ref25.theme.spacing;
46220
- return spacing['04'];
46240
+ var $unstyled = _ref25.$unstyled,
46241
+ color = _ref25.theme.color;
46242
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46221
46243
  }, function (_ref26) {
46222
- var font_family = _ref26.theme.font_family;
46223
- return font_family.sans;
46244
+ var $unstyled = _ref26.$unstyled,
46245
+ color = _ref26.theme.color;
46246
+ return $unstyled ? '0 none' : "1px solid ".concat(color.border);
46224
46247
  }, function (_ref27) {
46225
- var font_size = _ref27.theme.font_size;
46226
- return font_size.sm;
46248
+ var $unstyled = _ref27.$unstyled,
46249
+ spacing = _ref27.theme.spacing;
46250
+ return $unstyled ? '0' : spacing['04'];
46227
46251
  }, function (_ref28) {
46228
- var font_weight = _ref28.theme.font_weight;
46229
- return font_weight.regular;
46252
+ var font_family = _ref28.theme.font_family;
46253
+ return font_family.sans;
46230
46254
  }, function (_ref29) {
46231
- var color = _ref29.theme.color;
46255
+ var font_size = _ref29.theme.font_size;
46256
+ return font_size.sm;
46257
+ }, function (_ref30) {
46258
+ var font_weight = _ref30.theme.font_weight;
46259
+ return font_weight.regular;
46260
+ }, function (_ref31) {
46261
+ var color = _ref31.theme.color;
46232
46262
  return color.text_quaternary;
46233
46263
  });
46234
- var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).withConfig({
46264
+ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).withConfig({
46235
46265
  displayName: "InputContentWrapper",
46236
46266
  componentId: "sc-r60v1b-6"
46237
46267
  })(["", " border-radius:4px;"], function (props) {
@@ -46240,11 +46270,11 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
46240
46270
  var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
46241
46271
  displayName: "InputWrapper",
46242
46272
  componentId: "sc-r60v1b-7"
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;
46273
+ })(["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 (_ref32) {
46274
+ var font_family = _ref32.theme.font_family;
46245
46275
  return font_family.sans;
46246
- }, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_11__.INPUT_HORIZONTAL_PADDING, function (_ref31) {
46247
- var $verticalAlign = _ref31.$verticalAlign;
46276
+ }, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_HORIZONTAL_PADDING, function (_ref33) {
46277
+ var $verticalAlign = _ref33.$verticalAlign;
46248
46278
  return $verticalAlign !== null && $verticalAlign !== void 0 ? $verticalAlign : 'normal';
46249
46279
  }, function (props) {
46250
46280
  return props.$leftOuterContent ? '0' : '4px';
@@ -46257,28 +46287,28 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
46257
46287
  }, function (props) {
46258
46288
  var _props$$heightCalcula;
46259
46289
  return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
46260
- }, function (_ref32) {
46261
- var $disabled = _ref32.$disabled,
46262
- $invalid = _ref32.$invalid,
46263
- $active = _ref32.$active,
46264
- color = _ref32.theme.color;
46290
+ }, function (_ref34) {
46291
+ var $disabled = _ref34.$disabled,
46292
+ $invalid = _ref34.$invalid,
46293
+ $active = _ref34.$active,
46294
+ color = _ref34.theme.color;
46265
46295
  if ($disabled) {
46266
46296
  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);
46267
46297
  }
46268
46298
  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);
46269
- }, function (_ref33) {
46270
- var $active = _ref33.$active,
46271
- shadow = _ref33.theme.shadow;
46299
+ }, function (_ref35) {
46300
+ var $active = _ref35.$active,
46301
+ shadow = _ref35.theme.shadow;
46272
46302
  return $active ? shadow.primary : null;
46273
46303
  });
46274
- var HelperText = function HelperText(_ref34) {
46275
- var classNamePrefix = _ref34.classNamePrefix,
46276
- children = _ref34.children,
46277
- invalid = _ref34.invalid;
46304
+ var HelperText = function HelperText(_ref36) {
46305
+ var classNamePrefix = _ref36.classNamePrefix,
46306
+ children = _ref36.children,
46307
+ invalid = _ref36.invalid;
46278
46308
  if (!children) return null;
46279
46309
  var color = invalid ? 'text_error' : 'text_quaternary';
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, {
46310
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_9__.Label, {
46311
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
46282
46312
  helperText: true,
46283
46313
  'helperText--invalid': invalid
46284
46314
  }),
@@ -46289,6 +46319,7 @@ var HelperText = function HelperText(_ref34) {
46289
46319
  };
46290
46320
  HelperText.displayName = 'HelperText';
46291
46321
  HelperText.propTypes = {
46322
+ classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
46292
46323
  invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
46293
46324
  };
46294
46325
  var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
@@ -46299,7 +46330,7 @@ var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
46299
46330
  md: 40,
46300
46331
  lg: 48
46301
46332
  };
46302
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(height[size] || height.sm));
46333
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(height[size] || height.sm));
46303
46334
  }, [size]);
46304
46335
  };
46305
46336
 
@@ -46517,40 +46548,16 @@ var Textbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
46517
46548
  }, inputProps)
46518
46549
  }));
46519
46550
  });
46520
- Textbox.propTypes = {
46521
- className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46522
- classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46551
+ Textbox.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_2__.PT_INPUT_SHARED), {}, {
46523
46552
  value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46524
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
46525
- onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
46526
- onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
46527
- onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
46528
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46529
- disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
46530
- required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
46531
- necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_2__.PT_NECESSITY_INDICATOR,
46532
- invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
46533
- leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46534
- leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46535
- rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46536
- rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46537
- label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46538
- labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46539
- labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46540
- helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
46541
- inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
46542
46553
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
46543
- autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
46544
- fieldRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
46545
- current: prop_types__WEBPACK_IMPORTED_MODULE_1___default().instanceOf(Element)
46546
- })]),
46547
46554
  minLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
46548
46555
  maxLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
46549
46556
  type: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
46550
46557
  tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
46551
46558
  readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
46552
46559
  autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
46553
- };
46560
+ });
46554
46561
  Textbox.displayName = 'Textbox';
46555
46562
 
46556
46563
  /***/ }),