@majoo-ui/react 1.61.0-rc.8 → 1.61.0-rc.9

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.
Files changed (3) hide show
  1. package/index.esm.js +181 -141
  2. package/index.umd.js +181 -141
  3. package/package.json +1 -1
package/index.umd.js CHANGED
@@ -1723,7 +1723,7 @@
1723
1723
  return target;
1724
1724
  }
1725
1725
 
1726
- const _excluded$B = ["children"],
1726
+ const _excluded$C = ["children"],
1727
1727
  _excluded2$4 = ["children"];
1728
1728
  var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
1729
1729
  const GridComponent = styled('div', {
@@ -1914,7 +1914,7 @@
1914
1914
  let {
1915
1915
  children
1916
1916
  } = _ref,
1917
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1917
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1918
1918
  return /*#__PURE__*/React__default["default"].createElement(GridComponent, _extends({}, props, {
1919
1919
  css: Object.assign({}, props.css, {
1920
1920
  gridAutoColumns: props.autoColumns,
@@ -1994,7 +1994,7 @@
1994
1994
  };
1995
1995
  GridItem.displayName = 'Grid Item';
1996
1996
 
1997
- const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
1997
+ const _excluded$B = ["children", "isCollapse", "css", "contentHeader"];
1998
1998
  var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1999
1999
  const StyledDiv$2 = styled(Flex$1, {
2000
2000
  justifyContent: 'center',
@@ -2038,7 +2038,7 @@
2038
2038
  css,
2039
2039
  contentHeader
2040
2040
  } = _ref,
2041
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2041
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
2042
2042
  return /*#__PURE__*/React__default["default"].createElement(StyledDiv$2, _extends({
2043
2043
  id: "retina-container",
2044
2044
  css: Object.assign({
@@ -2461,7 +2461,7 @@
2461
2461
  }), void 0);
2462
2462
  });
2463
2463
 
2464
- const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2464
+ const _excluded$A = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2465
2465
  var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
2466
2466
  const Context$2 = /*#__PURE__*/React__namespace.createContext();
2467
2467
  const StyledBanner = styled(Flex$1, {
@@ -2798,7 +2798,7 @@
2798
2798
  bannerBlock,
2799
2799
  icon
2800
2800
  } = _ref,
2801
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2801
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2802
2802
  return /*#__PURE__*/React__namespace.createElement(StyledBanner, _extends({
2803
2803
  variant: variant,
2804
2804
  hasAction: !!onClick,
@@ -3463,7 +3463,7 @@
3463
3463
  Card.Label = StyledLabel$2;
3464
3464
  Card.Description = StyledDescription$3;
3465
3465
 
3466
- const _excluded$y = ["children"];
3466
+ const _excluded$z = ["children"];
3467
3467
  var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3468
3468
  const BreadcrumbStyle = styled('nav', {
3469
3469
  wordWrap: 'break-word',
@@ -3519,7 +3519,7 @@
3519
3519
  let {
3520
3520
  children
3521
3521
  } = _ref,
3522
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3522
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
3523
3523
  return /*#__PURE__*/React__default["default"].createElement(BreadcrumbStyle, _extends({}, rest, {
3524
3524
  "aria-label": "breadcrumb",
3525
3525
  __self: undefined,
@@ -3781,7 +3781,7 @@
3781
3781
  };
3782
3782
  Badge.displayName = 'Badge';
3783
3783
 
3784
- const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3784
+ const _excluded$y = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3785
3785
  var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3786
3786
  const StyledAvatar = styled(AvatarPrimitive__namespace.Root, {
3787
3787
  width: '32px',
@@ -3826,7 +3826,7 @@
3826
3826
  onClick,
3827
3827
  css
3828
3828
  } = _ref,
3829
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3829
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3830
3830
  return /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({
3831
3831
  className: className,
3832
3832
  onClick: onClick,
@@ -3883,7 +3883,7 @@
3883
3883
  delayMs: 0
3884
3884
  };
3885
3885
 
3886
- const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3886
+ const _excluded$x = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3887
3887
  var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
3888
3888
  const ContainerFallback = styled(Flex$1, {
3889
3889
  boxSizing: 'border-box',
@@ -3933,7 +3933,7 @@
3933
3933
  cssFallback,
3934
3934
  rounded
3935
3935
  } = _ref,
3936
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3936
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3937
3937
  const {
3938
3938
  t
3939
3939
  } = reactI18next.useTranslation('translation');
@@ -4569,7 +4569,7 @@
4569
4569
 
4570
4570
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4571
4571
 
4572
- const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4572
+ const _excluded$w = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4573
4573
  var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
4574
4574
  const {
4575
4575
  zIndices: zIndices$2
@@ -4686,7 +4686,7 @@
4686
4686
  align,
4687
4687
  delayDuration
4688
4688
  } = _ref,
4689
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4689
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
4690
4690
  const [open, setOpen] = React.useState(false);
4691
4691
  return /*#__PURE__*/React__default["default"].createElement(Provider, {
4692
4692
  __self: undefined,
@@ -4775,7 +4775,7 @@
4775
4775
  delayDuration: 200
4776
4776
  };
4777
4777
 
4778
- const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4778
+ const _excluded$v = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4779
4779
  var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
4780
4780
  const StyledProgress$1 = react.styled(ProgressPrimitive__namespace.Root, {
4781
4781
  position: 'relative',
@@ -4894,7 +4894,7 @@
4894
4894
  rounded,
4895
4895
  width
4896
4896
  } = _ref,
4897
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4897
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4898
4898
  return /*#__PURE__*/React__default["default"].createElement(StyledProgress$1, _extends({
4899
4899
  className: className,
4900
4900
  value: value,
@@ -5587,7 +5587,7 @@
5587
5587
  return matches;
5588
5588
  }
5589
5589
 
5590
- const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5590
+ const _excluded$u = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5591
5591
  var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
5592
5592
  const TOAST_WIDTH = 576;
5593
5593
  const ANIMATION_DURATION = 400;
@@ -5756,7 +5756,7 @@
5756
5756
  captionOfAction,
5757
5757
  hrefOfAction
5758
5758
  } = _ref,
5759
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
5759
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
5760
5760
  const [isOpen, setIsOpen] = React__namespace.useState(false);
5761
5761
  const isMobile = useMediaQuery(`(max-width: 767px`);
5762
5762
  const close = React__namespace.useCallback(() => {
@@ -5939,7 +5939,7 @@
5939
5939
  dismissAfter: 5000
5940
5940
  };
5941
5941
 
5942
- const _excluded$s = ["preventDuplicate"];
5942
+ const _excluded$t = ["preventDuplicate"];
5943
5943
  var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5944
5944
  const ToastBox = styled(Flex$1, {
5945
5945
  position: 'fixed',
@@ -6003,7 +6003,7 @@
6003
6003
  const {
6004
6004
  preventDuplicate
6005
6005
  } = item,
6006
- toast = _objectWithoutPropertiesLoose(item, _excluded$s);
6006
+ toast = _objectWithoutPropertiesLoose(item, _excluded$t);
6007
6007
  return /*#__PURE__*/React__namespace.createElement(Toast, _extends({
6008
6008
  key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
6009
6009
  onRemove: () => removeToast(toast.id)
@@ -7236,7 +7236,7 @@
7236
7236
  return message;
7237
7237
  };
7238
7238
 
7239
- const _excluded$r = ["id", "disabledOfflineIntercept"];
7239
+ const _excluded$s = ["id", "disabledOfflineIntercept"];
7240
7240
  var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7241
7241
  let toastCount = 0;
7242
7242
  const ToastProvider = ({
@@ -7266,7 +7266,7 @@
7266
7266
  id,
7267
7267
  disabledOfflineIntercept
7268
7268
  } = toast,
7269
- rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
7269
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$s);
7270
7270
 
7271
7271
  // eslint-disable-next-line no-plusplus
7272
7272
  const uniqueId = ++toastCount;
@@ -7355,7 +7355,7 @@
7355
7355
  children
7356
7356
  }) => condition ? wrapper(children) : children;
7357
7357
 
7358
- const _excluded$q = ["count", "maxCount", "css"];
7358
+ const _excluded$r = ["count", "maxCount", "css"];
7359
7359
  var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7360
7360
  const formLabelClassStyle = {
7361
7361
  alignItems: 'start !important',
@@ -7459,7 +7459,7 @@
7459
7459
  maxCount,
7460
7460
  css
7461
7461
  } = _ref,
7462
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7462
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7463
7463
  const withCounter = Boolean(count || maxCount);
7464
7464
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
7465
7465
  condition: withCounter,
@@ -7506,7 +7506,7 @@
7506
7506
  };
7507
7507
  FormGroup.displayName = 'FormGroup';
7508
7508
 
7509
- const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7509
+ const _excluded$q = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7510
7510
  var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7511
7511
  const StyledLabel$1 = styled(LabelPrimitive__namespace.Root, Text$1, {
7512
7512
  display: 'inline-block',
@@ -7539,7 +7539,7 @@
7539
7539
  maxCount,
7540
7540
  labelCss
7541
7541
  } = _ref,
7542
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7542
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7543
7543
  return /*#__PURE__*/React__default["default"].createElement(Flex$1, {
7544
7544
  justify: "between",
7545
7545
  className: "form-label",
@@ -7623,7 +7623,7 @@
7623
7623
  };
7624
7624
  FormLabel.displayName = 'FormLabel';
7625
7625
 
7626
- const _excluded$o = ["children", "error", "errorMessage"];
7626
+ const _excluded$p = ["children", "error", "errorMessage"];
7627
7627
  var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7628
7628
  const StyledHelper = styled(Text$1, {
7629
7629
  display: 'inline-block',
@@ -7642,7 +7642,7 @@
7642
7642
  error,
7643
7643
  errorMessage
7644
7644
  } = _ref,
7645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7645
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7646
7646
  const errorByMessage = !!errorMessage;
7647
7647
  if (error === undefined && errorByMessage) {
7648
7648
  return /*#__PURE__*/React__default["default"].createElement(StyledHelper, _extends({
@@ -7831,7 +7831,7 @@
7831
7831
  }
7832
7832
  }));
7833
7833
 
7834
- const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7834
+ const _excluded$o = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7835
7835
  var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7836
7836
  const StyledIndicator$2 = styled(CheckboxPrimitive__namespace.Indicator, {
7837
7837
  alignItems: 'center',
@@ -7890,7 +7890,7 @@
7890
7890
  index,
7891
7891
  value
7892
7892
  } = _ref,
7893
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7893
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7894
7894
  const context = React.useContext(CheckboxContext);
7895
7895
  const [isChecked, setChecked] = React.useState(false);
7896
7896
  React.useEffect(() => {
@@ -7992,7 +7992,7 @@
7992
7992
  };
7993
7993
  InputCheckbox.displayName = 'InputCheckbox';
7994
7994
 
7995
- const _excluded$m = ["children", "size"];
7995
+ const _excluded$n = ["children", "size"];
7996
7996
  var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7997
7997
  const InputGroupStyle = styled('div', {
7998
7998
  display: 'flex',
@@ -8132,7 +8132,7 @@
8132
8132
  children,
8133
8133
  size = 'lg'
8134
8134
  } = _ref,
8135
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8135
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$n);
8136
8136
  const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8137
8137
  const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8138
8138
  const clone = children.map((child, index) => {
@@ -8331,7 +8331,7 @@
8331
8331
  children: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node])
8332
8332
  };
8333
8333
 
8334
- const _excluded$l = ["disabled", "readOnly"];
8334
+ const _excluded$m = ["disabled", "readOnly"];
8335
8335
  var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8336
8336
  const disabledStyle = {
8337
8337
  backgroundColor: '$formDisable',
@@ -8505,7 +8505,7 @@
8505
8505
  disabled,
8506
8506
  readOnly
8507
8507
  } = _ref,
8508
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8508
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8509
8509
  return /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
8510
8510
  ref: ref,
8511
8511
  disabled: disabled,
@@ -8533,7 +8533,7 @@
8533
8533
  };
8534
8534
  InputText.displayName = 'InputText';
8535
8535
 
8536
- const _excluded$k = ["disabled", "readOnly"];
8536
+ const _excluded$l = ["disabled", "readOnly"];
8537
8537
  var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8538
8538
  const StyledTextArea = styled(StyledInput$1, {
8539
8539
  variants: {
@@ -8555,7 +8555,7 @@
8555
8555
  disabled,
8556
8556
  readOnly
8557
8557
  } = _ref,
8558
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8558
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8559
8559
  const textareaRef = React.useRef(null);
8560
8560
  React.useEffect(() => {
8561
8561
  if (textareaRef.current) {
@@ -8645,7 +8645,7 @@
8645
8645
  };
8646
8646
  InputRadioGroup.displayName = 'InputRadioGroup';
8647
8647
 
8648
- const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8648
+ const _excluded$k = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8649
8649
  var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8650
8650
  const INDICATOR_BASE_STYLES = {
8651
8651
  alignItems: 'center',
@@ -8811,7 +8811,7 @@
8811
8811
  description,
8812
8812
  readOnly
8813
8813
  } = _ref,
8814
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8814
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8815
8815
  function renderInputType(type, checkedValue, onValueChange) {
8816
8816
  switch (type) {
8817
8817
  case 'number':
@@ -11094,7 +11094,7 @@
11094
11094
  }(React__default["default"].Component);
11095
11095
  NumberFormat.defaultProps = defaultProps;
11096
11096
 
11097
- const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11097
+ const _excluded$j = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11098
11098
  var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
11099
11099
  const StyledInput = styled(NumberFormat, {
11100
11100
  // Reset
@@ -11290,7 +11290,7 @@
11290
11290
  maxLength,
11291
11291
  thousandSeparator
11292
11292
  } = _ref,
11293
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11293
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
11294
11294
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
11295
11295
  condition: Boolean(control),
11296
11296
  wrapper: child => /*#__PURE__*/React__default["default"].createElement(reactHookForm.Controller, {
@@ -11355,7 +11355,7 @@
11355
11355
  InputNumber.name = 'InputText';
11356
11356
  InputNumber.displayName = 'InputNumber';
11357
11357
 
11358
- const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11358
+ const _excluded$i = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11359
11359
  var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
11360
11360
  const TagWrapper$4 = styled('div', {
11361
11361
  boxSizing: 'border-box',
@@ -11460,7 +11460,7 @@
11460
11460
  onRemove,
11461
11461
  readOnly
11462
11462
  } = _ref,
11463
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11463
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11464
11464
  return /*#__PURE__*/React__default["default"].createElement(TagWrapper$4, _extends({
11465
11465
  ref: ref,
11466
11466
  onClick: onClick,
@@ -11531,7 +11531,7 @@
11531
11531
  readOnly: false
11532
11532
  };
11533
11533
 
11534
- const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
11534
+ const _excluded$h = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
11535
11535
  var _jsxFileName$D = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
11536
11536
  const Wrapper$2 = styled('div', {
11537
11537
  margin: 0,
@@ -11654,7 +11654,7 @@
11654
11654
  unremovableTags,
11655
11655
  onRemoveItem
11656
11656
  } = _ref,
11657
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
11657
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11658
11658
  const [tags, setTags] = React__default["default"].useState(value);
11659
11659
  const [regexError, setRegexError] = React__default["default"].useState(false);
11660
11660
  React__default["default"].useEffect(() => {
@@ -11828,7 +11828,7 @@
11828
11828
  readOnly: false
11829
11829
  };
11830
11830
 
11831
- const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
11831
+ const _excluded$g = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
11832
11832
  var _jsxFileName$C = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
11833
11833
  const StyledThumb$1 = styled(SwitchPrimitive__namespace.Thumb, {
11834
11834
  display: 'block',
@@ -11900,7 +11900,7 @@
11900
11900
  dataOffLabel,
11901
11901
  disabled
11902
11902
  } = _ref,
11903
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
11903
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
11904
11904
  return /*#__PURE__*/React__default["default"].createElement(StyledSwitch, _extends({
11905
11905
  defaultChecked: defaultChecked,
11906
11906
  dataOnLabel: dataOnLabel,
@@ -12033,7 +12033,7 @@
12033
12033
  size: 24
12034
12034
  };
12035
12035
 
12036
- const _excluded$e = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue", "mobileOnly", "desktopOnly"];
12036
+ const _excluded$f = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue", "mobileOnly", "desktopOnly"];
12037
12037
  var _jsxFileName$z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
12038
12038
  const {
12039
12039
  colors: colors$7
@@ -12050,7 +12050,7 @@
12050
12050
  mobileOnly,
12051
12051
  desktopOnly
12052
12052
  } = _ref,
12053
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
12053
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
12054
12054
  const {
12055
12055
  t
12056
12056
  } = reactI18next.useTranslation(['MajooUI/inputSearchbox', 'translation']);
@@ -12332,7 +12332,7 @@
12332
12332
  }
12333
12333
  });
12334
12334
 
12335
- const _excluded$d = ["children"];
12335
+ const _excluded$e = ["children"];
12336
12336
  var _jsxFileName$y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/popover/Popover.js";
12337
12337
  const {
12338
12338
  zIndices: zIndices$1
@@ -12468,7 +12468,7 @@
12468
12468
  let {
12469
12469
  children
12470
12470
  } = _ref,
12471
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12471
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
12472
12472
  const {
12473
12473
  setOpenState
12474
12474
  } = React.useContext(PopoverContext);
@@ -13940,7 +13940,7 @@
13940
13940
  }), void 0);
13941
13941
  }
13942
13942
 
13943
- const _excluded$c = ["placeholder", "option", "value", "defaultValue", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "showTagSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter", "collapsible", "toggleInput", "fetchData", "onSearch", "isLoading", "maxSelectedItem", "mobileOnly", "desktopOnly", "label", "tagCss", "checkBoxCss", "optionListCss", "showCollapsibleCounter", "collapsibleLimit", "pageIndex", "onSelectAllChecked", "totalOptions"];
13943
+ const _excluded$d = ["placeholder", "option", "value", "defaultValue", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "showTagSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter", "collapsible", "toggleInput", "fetchData", "onSearch", "isLoading", "maxSelectedItem", "mobileOnly", "desktopOnly", "label", "tagCss", "checkBoxCss", "optionListCss", "showCollapsibleCounter", "collapsibleLimit", "pageIndex", "onSelectAllChecked", "totalOptions"];
13944
13944
  var _jsxFileName$w = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
13945
13945
  function _await(value, then, direct) {
13946
13946
  if (direct) {
@@ -14261,7 +14261,7 @@
14261
14261
  onSelectAllChecked,
14262
14262
  totalOptions
14263
14263
  } = _ref,
14264
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
14264
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
14265
14265
  const {
14266
14266
  t
14267
14267
  } = reactI18next.useTranslation(['MajooUI/inputSelectCheck', 'translation']);
@@ -16528,7 +16528,7 @@
16528
16528
  size: 'lg'
16529
16529
  };
16530
16530
 
16531
- const _excluded$b = ["children"],
16531
+ const _excluded$c = ["children"],
16532
16532
  _excluded2$3 = ["children", "showOverlay"];
16533
16533
  var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
16534
16534
  const Context$1 = /*#__PURE__*/React__default["default"].createContext();
@@ -16570,7 +16570,7 @@
16570
16570
  let {
16571
16571
  children
16572
16572
  } = _ref,
16573
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
16573
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
16574
16574
  return /*#__PURE__*/React__default["default"].createElement(DialogPrimitive__namespace.Root, _extends({}, props, {
16575
16575
  __self: this,
16576
16576
  __source: {
@@ -16878,7 +16878,7 @@
16878
16878
  DrawerFooter.displayName = 'DrawerFooter';
16879
16879
  DrawerCloseButton.displayName = 'DrawerCloseButton';
16880
16880
 
16881
- const _excluded$a = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
16881
+ const _excluded$b = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
16882
16882
  _excluded2$2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
16883
16883
  var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
16884
16884
  const ScrollButton$1 = styled(Button$4, {
@@ -17084,7 +17084,7 @@
17084
17084
  mobileOnly,
17085
17085
  desktopOnly
17086
17086
  } = _ref,
17087
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
17087
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
17088
17088
  const [listContainerScrollPosition, setlistContainerScrollPosition] = React.useState(0);
17089
17089
  const [scrollAreaWidth, setScrollAreaWidth] = React.useState(0);
17090
17090
  const listContainerRef = React.useRef();
@@ -19964,22 +19964,22 @@
19964
19964
  case NEXT_WEEK:
19965
19965
  {
19966
19966
  var currentDate = moment__default["default"](date === null || date === void 0 ? void 0 : date[1]).add(1, 'day');
19967
- var startThisWeek = currentDate.startOf('week').toDate();
19968
- var endThisWeek = currentDate.endOf('week').toDate();
19967
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19968
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19969
19969
  return [startThisWeek, endThisWeek];
19970
19970
  }
19971
19971
  case RANGE_WEEK:
19972
19972
  {
19973
19973
  var currentDate = moment__default["default"](date === null || date === void 0 ? void 0 : date[0]);
19974
- var startThisWeek = currentDate.startOf('week').toDate();
19975
- var endThisWeek = currentDate.endOf('week').toDate();
19974
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19975
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19976
19976
  return [startThisWeek, endThisWeek];
19977
19977
  }
19978
19978
  case PREV_WEEK:
19979
19979
  {
19980
19980
  var currentDate = moment__default["default"](date === null || date === void 0 ? void 0 : date[0]).subtract(1, 'day');
19981
- var startThisWeek = currentDate.startOf('week').toDate();
19982
- var endThisWeek = currentDate.endOf('week').toDate();
19981
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19982
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19983
19983
  return [startThisWeek, endThisWeek];
19984
19984
  }
19985
19985
  case RANGE_MONTH:
@@ -20840,7 +20840,7 @@
20840
20840
  }, void 0);
20841
20841
  }
20842
20842
 
20843
- const _excluded$9 = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20843
+ const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20844
20844
  var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
20845
20845
  const StyledSlider = react.styled(SliderPrimitive__namespace.Root, {
20846
20846
  position: 'relative',
@@ -21100,7 +21100,7 @@
21100
21100
  width,
21101
21101
  height
21102
21102
  } = _ref,
21103
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
21103
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
21104
21104
  return /*#__PURE__*/React__default["default"].createElement(StyledSlider, _extends({
21105
21105
  className: className,
21106
21106
  defaultValue: defaultValue,
@@ -21184,7 +21184,7 @@
21184
21184
  size: 'm'
21185
21185
  };
21186
21186
 
21187
- const _excluded$8 = ["className", "children", "onClick", "type", "size"];
21187
+ const _excluded$9 = ["className", "children", "onClick", "type", "size"];
21188
21188
  var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
21189
21189
  const TagWrapper$1 = styled('div', {
21190
21190
  boxSizing: 'border-box',
@@ -21285,7 +21285,7 @@
21285
21285
  type,
21286
21286
  size
21287
21287
  } = _ref,
21288
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
21288
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
21289
21289
  return /*#__PURE__*/React__default["default"].createElement(TagWrapper$1, _extends({
21290
21290
  ref: ref,
21291
21291
  className: className,
@@ -21345,7 +21345,7 @@
21345
21345
  }, props)));
21346
21346
  }
21347
21347
 
21348
- const _excluded$7 = ["children"],
21348
+ const _excluded$8 = ["children"],
21349
21349
  _excluded2$1 = ["children", "activeTabs"],
21350
21350
  _excluded3$1 = ["children", "icon", "activeTabs", "value"],
21351
21351
  _excluded4 = ["activeTabs"];
@@ -21493,7 +21493,7 @@
21493
21493
  let {
21494
21494
  children
21495
21495
  } = _ref,
21496
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21496
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
21497
21497
  const [activeTabs, setActiveTabs] = React.useState(props.defaultValue || '');
21498
21498
  return /*#__PURE__*/React__default["default"].createElement(StyledTabs, _extends({}, props, {
21499
21499
  onValueChange: value => {
@@ -21687,7 +21687,7 @@
21687
21687
  value: PropTypes__default["default"].string
21688
21688
  };
21689
21689
 
21690
- const _excluded$6 = ["children", "variantIcon"];
21690
+ const _excluded$7 = ["children", "variantIcon"];
21691
21691
  var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
21692
21692
  const NotificationBadgeRootStyle = styled('span', {
21693
21693
  position: 'relative',
@@ -21790,7 +21790,7 @@
21790
21790
  children,
21791
21791
  variantIcon
21792
21792
  } = _ref,
21793
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21793
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21794
21794
  const getIcon = () => {
21795
21795
  const isLeading = variantIcon === 'leading';
21796
21796
  return {
@@ -21842,7 +21842,7 @@
21842
21842
  dot: PropTypes__default["default"].bool
21843
21843
  };
21844
21844
 
21845
- const _excluded$5 = ["className", "children", "radius", "padding", "width", "height"];
21845
+ const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
21846
21846
  var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
21847
21847
  const PaperComponent = styled('div', {
21848
21848
  padding: '20px',
@@ -21888,7 +21888,7 @@
21888
21888
  width,
21889
21889
  height
21890
21890
  } = _ref,
21891
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
21891
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21892
21892
  return /*#__PURE__*/React__default["default"].createElement(PaperComponent, _extends({
21893
21893
  className: className,
21894
21894
  css: Object.assign({
@@ -22094,7 +22094,7 @@
22094
22094
  return newObj;
22095
22095
  };
22096
22096
 
22097
- const _excluded$4 = ["isActive", "onClick"];
22097
+ const _excluded$5 = ["isActive", "onClick"];
22098
22098
  var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
22099
22099
  const PrevNextButton = styled(Text$1, {
22100
22100
  padding: '$spacing-01',
@@ -22181,7 +22181,7 @@
22181
22181
  isActive,
22182
22182
  onClick
22183
22183
  } = _ref,
22184
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
22184
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
22185
22185
  return /*#__PURE__*/React__default["default"].createElement(Button$4, _extends({
22186
22186
  type: "button",
22187
22187
  onClick: onClick,
@@ -22582,7 +22582,7 @@
22582
22582
  }, t('btnSubmitText', 'Lanjutkan'))))));
22583
22583
  };
22584
22584
 
22585
- const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22585
+ const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22586
22586
  var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
22587
22587
  const LimitContainer = styled(Flex$1, {
22588
22588
  cursor: 'pointer'
@@ -22608,7 +22608,7 @@
22608
22608
  totalData,
22609
22609
  onChange
22610
22610
  } = _ref;
22611
- _objectWithoutPropertiesLoose(_ref, _excluded$3);
22611
+ _objectWithoutPropertiesLoose(_ref, _excluded$4);
22612
22612
  const {
22613
22613
  t
22614
22614
  } = reactI18next.useTranslation('MajooUI/pagination');
@@ -22815,7 +22815,7 @@
22815
22815
  }, limit.toString()))))));
22816
22816
  }
22817
22817
 
22818
- const _excluded$2 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22818
+ const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22819
22819
  var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
22820
22820
  function Pagination(_ref) {
22821
22821
  let {
@@ -22830,7 +22830,7 @@
22830
22830
  hidePagination,
22831
22831
  hideInputPageSection
22832
22832
  } = _ref,
22833
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
22833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
22834
22834
  const totalPages = totalPage || Math.ceil(totalData / limit);
22835
22835
  const isMobile = useMediaQuery('(max-width: 700px)');
22836
22836
  return /*#__PURE__*/React__default["default"].createElement(Flex$1, _extends({
@@ -25868,7 +25868,7 @@
25868
25868
  layer: '$modal'
25869
25869
  };
25870
25870
 
25871
- const _excluded$1 = ["children"];
25871
+ const _excluded$2 = ["children"];
25872
25872
  var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
25873
25873
  const overlayShow = keyframes({
25874
25874
  '0%': {
@@ -25941,7 +25941,7 @@
25941
25941
  let {
25942
25942
  children
25943
25943
  } = _ref,
25944
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
25944
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
25945
25945
  return /*#__PURE__*/React__default["default"].createElement(ADialog__namespace.Portal, {
25946
25946
  __self: undefined,
25947
25947
  __source: {
@@ -26501,7 +26501,7 @@
26501
26501
  const AlertDialogCancel = ADialog__namespace.Cancel;
26502
26502
  const AlertDialogConfirm = ADialog__namespace.Action;
26503
26503
 
26504
- const _excluded = ["side", "align", "children"],
26504
+ const _excluded$1 = ["side", "align", "children"],
26505
26505
  _excluded2 = ["children"],
26506
26506
  _excluded3 = ["asChild"];
26507
26507
  var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
@@ -26644,7 +26644,7 @@
26644
26644
  align,
26645
26645
  children
26646
26646
  } = _ref,
26647
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
26647
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
26648
26648
  return /*#__PURE__*/React__default["default"].createElement(DropdownMenuPrimitive__namespace.Root, _extends({}, props, {
26649
26649
  __self: undefined,
26650
26650
  __source: {
@@ -28639,6 +28639,7 @@
28639
28639
  });
28640
28640
  }
28641
28641
 
28642
+ const _excluded = ["customPreviewIcon"];
28642
28643
  var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
28643
28644
  const Input$2 = styled('input', {
28644
28645
  display: 'none !important'
@@ -28713,7 +28714,11 @@
28713
28714
  height: 32,
28714
28715
  padding: '$spacing-02'
28715
28716
  });
28716
- const IconStateFull = props => {
28717
+ const IconStateFull = _ref => {
28718
+ let {
28719
+ customPreviewIcon
28720
+ } = _ref,
28721
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
28717
28722
  const [isHover, setIsHover] = React.useState(false);
28718
28723
  function handleEnter() {
28719
28724
  setIsHover(true);
@@ -28731,6 +28736,25 @@
28731
28736
  lineNumber: 119,
28732
28737
  columnNumber: 5
28733
28738
  }
28739
+ })) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
28740
+ __self: undefined,
28741
+ __source: {
28742
+ fileName: _jsxFileName$9,
28743
+ lineNumber: 126,
28744
+ columnNumber: 5
28745
+ }
28746
+ }, !!customPreviewIcon ? /*#__PURE__*/React__default["default"].cloneElement(customPreviewIcon, Object.assign({}, customPreviewIcon.props, props, {
28747
+ color: isHover ? '#04C99E' : customPreviewIcon.props.color,
28748
+ onMouseEnter: handleEnter,
28749
+ onMouseLeave: handleLeave,
28750
+ style: Object.assign({
28751
+ cursor: 'pointer',
28752
+ background: 'rgba(39, 42, 42, 0.6)',
28753
+ borderRadius: 50,
28754
+ padding: '4px',
28755
+ width: 32,
28756
+ height: 32
28757
+ }, customPreviewIcon.props.style)
28734
28758
  })) : /*#__PURE__*/React__default["default"].createElement(EyeIcon, _extends({}, props, {
28735
28759
  color: isHover ? '#04C99E' : '#A5ABAB',
28736
28760
  onMouseEnter: handleEnter,
@@ -28738,10 +28762,10 @@
28738
28762
  __self: undefined,
28739
28763
  __source: {
28740
28764
  fileName: _jsxFileName$9,
28741
- lineNumber: 126,
28742
- columnNumber: 5
28765
+ lineNumber: 145,
28766
+ columnNumber: 9
28743
28767
  }
28744
- }));
28768
+ })));
28745
28769
  };
28746
28770
  const Upload = ({
28747
28771
  placeholder,
@@ -28780,7 +28804,9 @@
28780
28804
  hiddenToggleAspect,
28781
28805
  hiddenPreview,
28782
28806
  fullAspectCrop,
28783
- isDefaultCustomRatio
28807
+ isDefaultCustomRatio,
28808
+ customPreviewIcon,
28809
+ onPreviewIconClick
28784
28810
  }) => {
28785
28811
  const {
28786
28812
  t
@@ -29210,7 +29236,7 @@
29210
29236
  __self: this,
29211
29237
  __source: {
29212
29238
  fileName: _jsxFileName$9,
29213
- lineNumber: 615,
29239
+ lineNumber: 643,
29214
29240
  columnNumber: 7
29215
29241
  }
29216
29242
  }, /*#__PURE__*/React__default["default"].createElement(ButtonText, {
@@ -29220,7 +29246,7 @@
29220
29246
  __self: this,
29221
29247
  __source: {
29222
29248
  fileName: _jsxFileName$9,
29223
- lineNumber: 616,
29249
+ lineNumber: 644,
29224
29250
  columnNumber: 9
29225
29251
  }
29226
29252
  }, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
@@ -29235,7 +29261,7 @@
29235
29261
  __self: undefined,
29236
29262
  __source: {
29237
29263
  fileName: _jsxFileName$9,
29238
- lineNumber: 626,
29264
+ lineNumber: 654,
29239
29265
  columnNumber: 16
29240
29266
  }
29241
29267
  });
@@ -29246,7 +29272,7 @@
29246
29272
  __self: undefined,
29247
29273
  __source: {
29248
29274
  fileName: _jsxFileName$9,
29249
- lineNumber: 629,
29275
+ lineNumber: 657,
29250
29276
  columnNumber: 9
29251
29277
  }
29252
29278
  }, /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29256,7 +29282,7 @@
29256
29282
  __self: undefined,
29257
29283
  __source: {
29258
29284
  fileName: _jsxFileName$9,
29259
- lineNumber: 630,
29285
+ lineNumber: 658,
29260
29286
  columnNumber: 11
29261
29287
  }
29262
29288
  }, !disabled && /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
@@ -29265,7 +29291,7 @@
29265
29291
  __self: undefined,
29266
29292
  __source: {
29267
29293
  fileName: _jsxFileName$9,
29268
- lineNumber: 631,
29294
+ lineNumber: 659,
29269
29295
  columnNumber: 27
29270
29296
  }
29271
29297
  }), !hiddenPreview && /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29278,16 +29304,23 @@
29278
29304
  __self: undefined,
29279
29305
  __source: {
29280
29306
  fileName: _jsxFileName$9,
29281
- lineNumber: 633,
29307
+ lineNumber: 661,
29282
29308
  columnNumber: 15
29283
29309
  }
29284
29310
  }, /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
29285
29311
  type: "eye",
29286
- onClick: () => handlePreview(item),
29312
+ onClick: () => {
29313
+ if (onPreviewIconClick) {
29314
+ onPreviewIconClick(item);
29315
+ } else {
29316
+ handlePreview(item);
29317
+ }
29318
+ },
29319
+ customPreviewIcon: customPreviewIcon,
29287
29320
  __self: undefined,
29288
29321
  __source: {
29289
29322
  fileName: _jsxFileName$9,
29290
- lineNumber: 641,
29323
+ lineNumber: 669,
29291
29324
  columnNumber: 17
29292
29325
  }
29293
29326
  })), /*#__PURE__*/React__default["default"].createElement(Image, {
@@ -29297,7 +29330,7 @@
29297
29330
  __self: undefined,
29298
29331
  __source: {
29299
29332
  fileName: _jsxFileName$9,
29300
- lineNumber: 644,
29333
+ lineNumber: 682,
29301
29334
  columnNumber: 13
29302
29335
  }
29303
29336
  })), !disabled && renderButtonReplace(index));
@@ -29314,7 +29347,7 @@
29314
29347
  __self: undefined,
29315
29348
  __source: {
29316
29349
  fileName: _jsxFileName$9,
29317
- lineNumber: 655,
29350
+ lineNumber: 693,
29318
29351
  columnNumber: 16
29319
29352
  }
29320
29353
  });
@@ -29324,7 +29357,7 @@
29324
29357
  __self: undefined,
29325
29358
  __source: {
29326
29359
  fileName: _jsxFileName$9,
29327
- lineNumber: 658,
29360
+ lineNumber: 696,
29328
29361
  columnNumber: 9
29329
29362
  }
29330
29363
  }, /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29334,7 +29367,7 @@
29334
29367
  __self: undefined,
29335
29368
  __source: {
29336
29369
  fileName: _jsxFileName$9,
29337
- lineNumber: 659,
29370
+ lineNumber: 697,
29338
29371
  columnNumber: 11
29339
29372
  }
29340
29373
  }, !disabled && /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
@@ -29343,7 +29376,7 @@
29343
29376
  __self: undefined,
29344
29377
  __source: {
29345
29378
  fileName: _jsxFileName$9,
29346
- lineNumber: 660,
29379
+ lineNumber: 698,
29347
29380
  columnNumber: 27
29348
29381
  }
29349
29382
  }), /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29356,7 +29389,7 @@
29356
29389
  __self: undefined,
29357
29390
  __source: {
29358
29391
  fileName: _jsxFileName$9,
29359
- lineNumber: 661,
29392
+ lineNumber: 699,
29360
29393
  columnNumber: 13
29361
29394
  }
29362
29395
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29366,14 +29399,14 @@
29366
29399
  __self: undefined,
29367
29400
  __source: {
29368
29401
  fileName: _jsxFileName$9,
29369
- lineNumber: 669,
29402
+ lineNumber: 707,
29370
29403
  columnNumber: 15
29371
29404
  }
29372
29405
  }, /*#__PURE__*/React__default["default"].createElement(FileExtension, {
29373
29406
  __self: undefined,
29374
29407
  __source: {
29375
29408
  fileName: _jsxFileName$9,
29376
- lineNumber: 670,
29409
+ lineNumber: 708,
29377
29410
  columnNumber: 17
29378
29411
  }
29379
29412
  }, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
@@ -29381,7 +29414,7 @@
29381
29414
  __self: undefined,
29382
29415
  __source: {
29383
29416
  fileName: _jsxFileName$9,
29384
- lineNumber: 671,
29417
+ lineNumber: 709,
29385
29418
  columnNumber: 17
29386
29419
  }
29387
29420
  }, /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29396,7 +29429,7 @@
29396
29429
  __self: undefined,
29397
29430
  __source: {
29398
29431
  fileName: _jsxFileName$9,
29399
- lineNumber: 672,
29432
+ lineNumber: 710,
29400
29433
  columnNumber: 19
29401
29434
  }
29402
29435
  }, item.name)))), !hiddenPreview && /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29409,16 +29442,23 @@
29409
29442
  __self: undefined,
29410
29443
  __source: {
29411
29444
  fileName: _jsxFileName$9,
29412
- lineNumber: 688,
29445
+ lineNumber: 726,
29413
29446
  columnNumber: 15
29414
29447
  }
29415
29448
  }, /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
29416
29449
  type: "eye",
29417
- onClick: () => handleOpenFile(item),
29450
+ onClick: () => {
29451
+ if (onPreviewIconClick) {
29452
+ onPreviewIconClick(item);
29453
+ } else {
29454
+ handleOpenFile(item);
29455
+ }
29456
+ },
29457
+ customPreviewIcon: customPreviewIcon,
29418
29458
  __self: undefined,
29419
29459
  __source: {
29420
29460
  fileName: _jsxFileName$9,
29421
- lineNumber: 696,
29461
+ lineNumber: 734,
29422
29462
  columnNumber: 17
29423
29463
  }
29424
29464
  })), /*#__PURE__*/React__default["default"].createElement(Blank, {
@@ -29426,7 +29466,7 @@
29426
29466
  __self: undefined,
29427
29467
  __source: {
29428
29468
  fileName: _jsxFileName$9,
29429
- lineNumber: 699,
29469
+ lineNumber: 747,
29430
29470
  columnNumber: 13
29431
29471
  }
29432
29472
  })), !disabled && renderButtonReplace(index));
@@ -29441,7 +29481,7 @@
29441
29481
  __self: this,
29442
29482
  __source: {
29443
29483
  fileName: _jsxFileName$9,
29444
- lineNumber: 710,
29484
+ lineNumber: 758,
29445
29485
  columnNumber: 7
29446
29486
  }
29447
29487
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29455,7 +29495,7 @@
29455
29495
  __self: this,
29456
29496
  __source: {
29457
29497
  fileName: _jsxFileName$9,
29458
- lineNumber: 711,
29498
+ lineNumber: 759,
29459
29499
  columnNumber: 9
29460
29500
  }
29461
29501
  }, /*#__PURE__*/React__default["default"].createElement(LoadingBar, {
@@ -29481,7 +29521,7 @@
29481
29521
  __self: this,
29482
29522
  __source: {
29483
29523
  fileName: _jsxFileName$9,
29484
- lineNumber: 712,
29524
+ lineNumber: 760,
29485
29525
  columnNumber: 11
29486
29526
  }
29487
29527
  }), /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29489,14 +29529,14 @@
29489
29529
  __self: this,
29490
29530
  __source: {
29491
29531
  fileName: _jsxFileName$9,
29492
- lineNumber: 725,
29532
+ lineNumber: 773,
29493
29533
  columnNumber: 11
29494
29534
  }
29495
29535
  }, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default["default"].createElement(Text, {
29496
29536
  __self: this,
29497
29537
  __source: {
29498
29538
  fileName: _jsxFileName$9,
29499
- lineNumber: 726,
29539
+ lineNumber: 774,
29500
29540
  columnNumber: 11
29501
29541
  }
29502
29542
  }, t('uploadingLabel', 'Berkas sedang diunggah'))));
@@ -29508,7 +29548,7 @@
29508
29548
  __self: this,
29509
29549
  __source: {
29510
29550
  fileName: _jsxFileName$9,
29511
- lineNumber: 734,
29551
+ lineNumber: 782,
29512
29552
  columnNumber: 7
29513
29553
  }
29514
29554
  }, /*#__PURE__*/React__default["default"].createElement(ContainerUpload, {
@@ -29524,7 +29564,7 @@
29524
29564
  __self: this,
29525
29565
  __source: {
29526
29566
  fileName: _jsxFileName$9,
29527
- lineNumber: 735,
29567
+ lineNumber: 783,
29528
29568
  columnNumber: 9
29529
29569
  }
29530
29570
  }, /*#__PURE__*/React__default["default"].createElement(Input$2, {
@@ -29536,21 +29576,21 @@
29536
29576
  __self: this,
29537
29577
  __source: {
29538
29578
  fileName: _jsxFileName$9,
29539
- lineNumber: 746,
29579
+ lineNumber: 794,
29540
29580
  columnNumber: 11
29541
29581
  }
29542
29582
  }), /*#__PURE__*/React__default["default"].createElement(Children, {
29543
29583
  __self: this,
29544
29584
  __source: {
29545
29585
  fileName: _jsxFileName$9,
29546
- lineNumber: 747,
29586
+ lineNumber: 795,
29547
29587
  columnNumber: 11
29548
29588
  }
29549
29589
  }, children != null ? children : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
29550
29590
  __self: this,
29551
29591
  __source: {
29552
29592
  fileName: _jsxFileName$9,
29553
- lineNumber: 749,
29593
+ lineNumber: 797,
29554
29594
  columnNumber: 15
29555
29595
  }
29556
29596
  }, /*#__PURE__*/React__default["default"].createElement(IconCard, {
@@ -29559,7 +29599,7 @@
29559
29599
  __self: this,
29560
29600
  __source: {
29561
29601
  fileName: _jsxFileName$9,
29562
- lineNumber: 750,
29602
+ lineNumber: 798,
29563
29603
  columnNumber: 17
29564
29604
  }
29565
29605
  }, /*#__PURE__*/React__default["default"].createElement(icons.UploadOutline, {
@@ -29567,7 +29607,7 @@
29567
29607
  __self: this,
29568
29608
  __source: {
29569
29609
  fileName: _jsxFileName$9,
29570
- lineNumber: 751,
29610
+ lineNumber: 799,
29571
29611
  columnNumber: 19
29572
29612
  }
29573
29613
  })), /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29577,7 +29617,7 @@
29577
29617
  __self: this,
29578
29618
  __source: {
29579
29619
  fileName: _jsxFileName$9,
29580
- lineNumber: 753,
29620
+ lineNumber: 801,
29581
29621
  columnNumber: 17
29582
29622
  }
29583
29623
  }, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
@@ -29587,7 +29627,7 @@
29587
29627
  __self: this,
29588
29628
  __source: {
29589
29629
  fileName: _jsxFileName$9,
29590
- lineNumber: 760,
29630
+ lineNumber: 808,
29591
29631
  columnNumber: 19
29592
29632
  }
29593
29633
  }, error));
@@ -29599,7 +29639,7 @@
29599
29639
  __self: this,
29600
29640
  __source: {
29601
29641
  fileName: _jsxFileName$9,
29602
- lineNumber: 767,
29642
+ lineNumber: 815,
29603
29643
  columnNumber: 7
29604
29644
  }
29605
29645
  }, /*#__PURE__*/React__default["default"].createElement(ModalDialogTrigger, {
@@ -29607,7 +29647,7 @@
29607
29647
  __self: this,
29608
29648
  __source: {
29609
29649
  fileName: _jsxFileName$9,
29610
- lineNumber: 768,
29650
+ lineNumber: 816,
29611
29651
  columnNumber: 9
29612
29652
  }
29613
29653
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -29615,7 +29655,7 @@
29615
29655
  __self: this,
29616
29656
  __source: {
29617
29657
  fileName: _jsxFileName$9,
29618
- lineNumber: 769,
29658
+ lineNumber: 817,
29619
29659
  columnNumber: 11
29620
29660
  }
29621
29661
  })), /*#__PURE__*/React__default["default"].createElement(ModalDialogTitle, {
@@ -29628,7 +29668,7 @@
29628
29668
  __self: this,
29629
29669
  __source: {
29630
29670
  fileName: _jsxFileName$9,
29631
- lineNumber: 771,
29671
+ lineNumber: 819,
29632
29672
  columnNumber: 9
29633
29673
  }
29634
29674
  }, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default["default"].createElement(ModalDialogContent, {
@@ -29641,7 +29681,7 @@
29641
29681
  __self: this,
29642
29682
  __source: {
29643
29683
  fileName: _jsxFileName$9,
29644
- lineNumber: 774,
29684
+ lineNumber: 822,
29645
29685
  columnNumber: 9
29646
29686
  }
29647
29687
  }, /*#__PURE__*/React__default["default"].createElement(ReactCrop__default["default"], {
@@ -29652,7 +29692,7 @@
29652
29692
  __self: this,
29653
29693
  __source: {
29654
29694
  fileName: _jsxFileName$9,
29655
- lineNumber: 775,
29695
+ lineNumber: 830,
29656
29696
  columnNumber: 11
29657
29697
  }
29658
29698
  }, /*#__PURE__*/React__default["default"].createElement(Image, {
@@ -29666,14 +29706,14 @@
29666
29706
  __self: this,
29667
29707
  __source: {
29668
29708
  fileName: _jsxFileName$9,
29669
- lineNumber: 776,
29709
+ lineNumber: 831,
29670
29710
  columnNumber: 13
29671
29711
  }
29672
29712
  }))), /*#__PURE__*/React__default["default"].createElement(ModalDialogFooter, {
29673
29713
  __self: this,
29674
29714
  __source: {
29675
29715
  fileName: _jsxFileName$9,
29676
- lineNumber: 787,
29716
+ lineNumber: 842,
29677
29717
  columnNumber: 9
29678
29718
  }
29679
29719
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29685,14 +29725,14 @@
29685
29725
  __self: this,
29686
29726
  __source: {
29687
29727
  fileName: _jsxFileName$9,
29688
- lineNumber: 788,
29728
+ lineNumber: 843,
29689
29729
  columnNumber: 11
29690
29730
  }
29691
29731
  }, hiddenToggleAspect ? /*#__PURE__*/React__default["default"].createElement(Box, {
29692
29732
  __self: this,
29693
29733
  __source: {
29694
29734
  fileName: _jsxFileName$9,
29695
- lineNumber: 790,
29735
+ lineNumber: 845,
29696
29736
  columnNumber: 15
29697
29737
  }
29698
29738
  }) : /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
@@ -29700,7 +29740,7 @@
29700
29740
  __self: this,
29701
29741
  __source: {
29702
29742
  fileName: _jsxFileName$9,
29703
- lineNumber: 792,
29743
+ lineNumber: 847,
29704
29744
  columnNumber: 15
29705
29745
  }
29706
29746
  }, /*#__PURE__*/React__default["default"].createElement(icons.ImageOutline, {
@@ -29712,7 +29752,7 @@
29712
29752
  __self: this,
29713
29753
  __source: {
29714
29754
  fileName: _jsxFileName$9,
29715
- lineNumber: 793,
29755
+ lineNumber: 848,
29716
29756
  columnNumber: 17
29717
29757
  }
29718
29758
  })), /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29720,7 +29760,7 @@
29720
29760
  __self: this,
29721
29761
  __source: {
29722
29762
  fileName: _jsxFileName$9,
29723
- lineNumber: 800,
29763
+ lineNumber: 855,
29724
29764
  columnNumber: 13
29725
29765
  }
29726
29766
  }, /*#__PURE__*/React__default["default"].createElement(Button$4, {
@@ -29729,7 +29769,7 @@
29729
29769
  __self: this,
29730
29770
  __source: {
29731
29771
  fileName: _jsxFileName$9,
29732
- lineNumber: 801,
29772
+ lineNumber: 856,
29733
29773
  columnNumber: 15
29734
29774
  }
29735
29775
  }, t('label.cancel', 'Batal', {
@@ -29739,7 +29779,7 @@
29739
29779
  __self: this,
29740
29780
  __source: {
29741
29781
  fileName: _jsxFileName$9,
29742
- lineNumber: 804,
29782
+ lineNumber: 859,
29743
29783
  columnNumber: 15
29744
29784
  }
29745
29785
  }, t('save', 'Simpan', {
@@ -29756,7 +29796,7 @@
29756
29796
  __self: undefined,
29757
29797
  __source: {
29758
29798
  fileName: _jsxFileName$9,
29759
- lineNumber: 813,
29799
+ lineNumber: 868,
29760
29800
  columnNumber: 5
29761
29801
  }
29762
29802
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
@@ -29765,7 +29805,7 @@
29765
29805
  __self: undefined,
29766
29806
  __source: {
29767
29807
  fileName: _jsxFileName$9,
29768
- lineNumber: 816,
29808
+ lineNumber: 871,
29769
29809
  columnNumber: 32
29770
29810
  }
29771
29811
  }) : renderUpload(), showCropper && renderCropper());