@mw-kit/mw-ui 1.6.0 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12190,7 +12190,7 @@ var AbsoluteContainer = React__default.forwardRef(function (props, fowardedRef)
12190
12190
  var y = top * 100 / height;
12191
12191
 
12192
12192
  if (axis === 'y') {
12193
- var xDirection = x > center.x ? 'left' : 'right';
12193
+ var xDirection = x > center.x ? 'right' : 'left';
12194
12194
  var yDirection = y > center.y ? 'top' : 'bottom';
12195
12195
  var newPosition = xDirection + " " + yDirection;
12196
12196
  return newPosition;
@@ -12632,7 +12632,9 @@ var Input = styled.input(_templateObject3$a || (_templateObject3$a = _taggedTemp
12632
12632
  return theme.spacings.s2 + " " + theme.spacings.s3;
12633
12633
  }, function (_ref9) {
12634
12634
  var theme = _ref9.theme,
12635
- invalid = _ref9.invalid;
12635
+ invalid = _ref9.invalid,
12636
+ borderless = _ref9.borderless;
12637
+ if (borderless) return 'transparent';
12636
12638
  return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
12637
12639
  }, function (_ref10) {
12638
12640
  var theme = _ref10.theme,
@@ -12705,13 +12707,15 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12705
12707
  onPressEnter = _props.onPressEnter,
12706
12708
  htmlDisabled = _props.htmlDisabled,
12707
12709
  width = _props.width,
12708
- arrows = _props.arrows;
12710
+ arrows = _props.arrows,
12711
+ borderless = _props.borderless;
12709
12712
 
12710
12713
  var mask = getMask(props.mask);
12711
12714
  var intInvalid = invalid ? 1 : 0;
12712
12715
  var intRequired = required ? 1 : 0;
12713
12716
  var intDisabled = disabled ? 1 : 0;
12714
12717
  var intArrows = arrows ? 1 : 0;
12718
+ var intBorderless = borderless ? 1 : 0;
12715
12719
  var position;
12716
12720
  var iconWidth;
12717
12721
  var iconSubmit;
@@ -12727,10 +12731,11 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12727
12731
  iconOnClick = props.icon.onClick;
12728
12732
  }
12729
12733
 
12730
- var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'arrows'], {
12734
+ var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'arrows', 'borderless'], {
12731
12735
  invalid: intInvalid,
12732
12736
  type: 'text',
12733
- arrows: intArrows
12737
+ arrows: intArrows,
12738
+ borderless: intBorderless
12734
12739
  });
12735
12740
 
12736
12741
  var onChange = inputProps.onChange || function () {};
@@ -15265,14 +15270,14 @@ var DatePicker$1 = React__default.forwardRef(function (props, ref) {
15265
15270
  };
15266
15271
 
15267
15272
  useEffect(function () {
15268
- if (min && max && min > max) {
15273
+ if (props.min && props.max && props.min > props.max) {
15269
15274
  throw Error('Min prop must be less than Max');
15270
15275
  }
15271
15276
 
15272
15277
  if (props.value.some(function (v) {
15273
15278
  return v === '';
15274
15279
  })) {
15275
- setValue(intervalTypes.day.initial(min));
15280
+ setValue(intervalTypes.day.initial(props.min));
15276
15281
  return;
15277
15282
  }
15278
15283
 
@@ -15280,14 +15285,14 @@ var DatePicker$1 = React__default.forwardRef(function (props, ref) {
15280
15285
 
15281
15286
  if (value.some(function (v) {
15282
15287
  return !isDateInstance(v);
15283
- }) || !validate(value, min, max)) {
15284
- setValue(intervalTypes.day.initial(min));
15288
+ }) || !validate(value, props.min, props.max)) {
15289
+ setValue(intervalTypes.day.initial(props.min));
15285
15290
  return;
15286
15291
  }
15287
15292
 
15288
15293
  var newIntervalType = identify(value);
15289
15294
  setIntervalType(newIntervalType);
15290
- }, [props.value, min, max]);
15295
+ }, [props.value, props.min, props.max]);
15291
15296
  var inputProps = filterObject(props, ['min', 'max']);
15292
15297
 
15293
15298
  var getArrowProps = function getArrowProps(key) {
@@ -15371,17 +15376,17 @@ var DatePicker$1 = React__default.forwardRef(function (props, ref) {
15371
15376
  options: [{
15372
15377
  label: 'Hoje',
15373
15378
  onClick: function onClick() {
15374
- return setValue(intervalTypes.day.initial(min));
15379
+ return setValue(intervalTypes.day.initial(props.min));
15375
15380
  }
15376
15381
  }, {
15377
15382
  label: 'Semana',
15378
15383
  onClick: function onClick() {
15379
- return setValue(intervalTypes.week.initial(min));
15384
+ return setValue(intervalTypes.week.initial(props.min));
15380
15385
  }
15381
15386
  }, {
15382
15387
  label: 'Mês',
15383
15388
  onClick: function onClick() {
15384
- return setValue(intervalTypes.month.initial(min));
15389
+ return setValue(intervalTypes.month.initial(props.min));
15385
15390
  }
15386
15391
  }, {
15387
15392
  label: 'Personalizado',
@@ -15407,8 +15412,8 @@ var DatePicker$1 = React__default.forwardRef(function (props, ref) {
15407
15412
  setOpen(null);
15408
15413
  }
15409
15414
  },
15410
- min: min,
15411
- max: max,
15415
+ min: props.min,
15416
+ max: props.max,
15412
15417
  references: {
15413
15418
  bottom: '35px'
15414
15419
  },