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

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 +227 -159
  2. package/index.umd.js +227 -159
  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':
@@ -8936,7 +8936,7 @@
8936
8936
  variant: "caption",
8937
8937
  color: "secondary",
8938
8938
  css: {
8939
- marginTop: '10px'
8939
+ marginLeft: '29px'
8940
8940
  },
8941
8941
  __self: undefined,
8942
8942
  __source: {
@@ -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();
@@ -17996,7 +17996,8 @@
17996
17996
  maxDate,
17997
17997
  isInvalid,
17998
17998
  portalled,
17999
- contentCss
17999
+ contentCss,
18000
+ onInputOpenChange
18000
18001
  }) {
18001
18002
  const [openPicker, setOpenPicker] = React.useState(false);
18002
18003
  function handleChange() {
@@ -18013,7 +18014,7 @@
18013
18014
  __self: this,
18014
18015
  __source: {
18015
18016
  fileName: _jsxFileName$q,
18016
- lineNumber: 47,
18017
+ lineNumber: 48,
18017
18018
  columnNumber: 5
18018
18019
  }
18019
18020
  }, /*#__PURE__*/React__default["default"].createElement(InputLeftElement, {
@@ -18022,14 +18023,14 @@
18022
18023
  __self: this,
18023
18024
  __source: {
18024
18025
  fileName: _jsxFileName$q,
18025
- lineNumber: 48,
18026
+ lineNumber: 49,
18026
18027
  columnNumber: 35
18027
18028
  }
18028
18029
  }),
18029
18030
  __self: this,
18030
18031
  __source: {
18031
18032
  fileName: _jsxFileName$q,
18032
- lineNumber: 48,
18033
+ lineNumber: 49,
18033
18034
  columnNumber: 7
18034
18035
  }
18035
18036
  }), /*#__PURE__*/React__default["default"].createElement(InputText, {
@@ -18045,7 +18046,7 @@
18045
18046
  __self: this,
18046
18047
  __source: {
18047
18048
  fileName: _jsxFileName$q,
18048
- lineNumber: 49,
18049
+ lineNumber: 50,
18049
18050
  columnNumber: 7
18050
18051
  }
18051
18052
  }));
@@ -18069,18 +18070,23 @@
18069
18070
  __self: this,
18070
18071
  __source: {
18071
18072
  fileName: _jsxFileName$q,
18072
- lineNumber: 63,
18073
+ lineNumber: 64,
18073
18074
  columnNumber: 5
18074
18075
  }
18075
18076
  });
18076
18077
  return /*#__PURE__*/React__default["default"].createElement(Popover, {
18077
18078
  open: openPicker,
18078
- onOpenChange: setOpenPicker,
18079
+ onOpenChange: open => {
18080
+ setOpenPicker(open);
18081
+ if (onInputOpenChange) {
18082
+ onInputOpenChange(open);
18083
+ }
18084
+ },
18079
18085
  placement: placement,
18080
18086
  __self: this,
18081
18087
  __source: {
18082
18088
  fileName: _jsxFileName$q,
18083
- lineNumber: 82,
18089
+ lineNumber: 83,
18084
18090
  columnNumber: 5
18085
18091
  }
18086
18092
  }, disabled || readOnly ? /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -18088,14 +18094,14 @@
18088
18094
  __self: this,
18089
18095
  __source: {
18090
18096
  fileName: _jsxFileName$q,
18091
- lineNumber: 84,
18097
+ lineNumber: 94,
18092
18098
  columnNumber: 9
18093
18099
  }
18094
18100
  }, renderInputGroup()) : /*#__PURE__*/React__default["default"].createElement(PopoverTrigger, {
18095
18101
  __self: this,
18096
18102
  __source: {
18097
18103
  fileName: _jsxFileName$q,
18098
- lineNumber: 86,
18104
+ lineNumber: 96,
18099
18105
  columnNumber: 9
18100
18106
  }
18101
18107
  }, /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -18103,7 +18109,7 @@
18103
18109
  __self: this,
18104
18110
  __source: {
18105
18111
  fileName: _jsxFileName$q,
18106
- lineNumber: 87,
18112
+ lineNumber: 97,
18107
18113
  columnNumber: 11
18108
18114
  }
18109
18115
  }, renderInputGroup())), /*#__PURE__*/React__default["default"].createElement(PopoverContent, {
@@ -18111,7 +18117,7 @@
18111
18117
  __self: this,
18112
18118
  __source: {
18113
18119
  fileName: _jsxFileName$q,
18114
- lineNumber: 90,
18120
+ lineNumber: 100,
18115
18121
  columnNumber: 7
18116
18122
  }
18117
18123
  }, renderTimePicker({
@@ -18202,7 +18208,11 @@
18202
18208
  /**
18203
18209
  Additional TimePicker styles.
18204
18210
  */
18205
- contentCss: PropTypes__default["default"].object
18211
+ contentCss: PropTypes__default["default"].object,
18212
+ /**
18213
+ Input open change callback.
18214
+ */
18215
+ onInputOpenChange: PropTypes__default["default"].func
18206
18216
  };
18207
18217
  InputTimePicker.displayName = 'InputTimePicker';
18208
18218
 
@@ -19964,22 +19974,22 @@
19964
19974
  case NEXT_WEEK:
19965
19975
  {
19966
19976
  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();
19977
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19978
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19969
19979
  return [startThisWeek, endThisWeek];
19970
19980
  }
19971
19981
  case RANGE_WEEK:
19972
19982
  {
19973
19983
  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();
19984
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19985
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19976
19986
  return [startThisWeek, endThisWeek];
19977
19987
  }
19978
19988
  case PREV_WEEK:
19979
19989
  {
19980
19990
  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();
19991
+ var startThisWeek = currentDate.startOf('isoWeek').toDate();
19992
+ var endThisWeek = currentDate.endOf('isoWeek').toDate();
19983
19993
  return [startThisWeek, endThisWeek];
19984
19994
  }
19985
19995
  case RANGE_MONTH:
@@ -20840,7 +20850,7 @@
20840
20850
  }, void 0);
20841
20851
  }
20842
20852
 
20843
- const _excluded$9 = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20853
+ const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20844
20854
  var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
20845
20855
  const StyledSlider = react.styled(SliderPrimitive__namespace.Root, {
20846
20856
  position: 'relative',
@@ -21100,7 +21110,7 @@
21100
21110
  width,
21101
21111
  height
21102
21112
  } = _ref,
21103
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
21113
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
21104
21114
  return /*#__PURE__*/React__default["default"].createElement(StyledSlider, _extends({
21105
21115
  className: className,
21106
21116
  defaultValue: defaultValue,
@@ -21184,7 +21194,7 @@
21184
21194
  size: 'm'
21185
21195
  };
21186
21196
 
21187
- const _excluded$8 = ["className", "children", "onClick", "type", "size"];
21197
+ const _excluded$9 = ["className", "children", "onClick", "type", "size"];
21188
21198
  var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
21189
21199
  const TagWrapper$1 = styled('div', {
21190
21200
  boxSizing: 'border-box',
@@ -21285,7 +21295,7 @@
21285
21295
  type,
21286
21296
  size
21287
21297
  } = _ref,
21288
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
21298
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
21289
21299
  return /*#__PURE__*/React__default["default"].createElement(TagWrapper$1, _extends({
21290
21300
  ref: ref,
21291
21301
  className: className,
@@ -21345,7 +21355,7 @@
21345
21355
  }, props)));
21346
21356
  }
21347
21357
 
21348
- const _excluded$7 = ["children"],
21358
+ const _excluded$8 = ["children"],
21349
21359
  _excluded2$1 = ["children", "activeTabs"],
21350
21360
  _excluded3$1 = ["children", "icon", "activeTabs", "value"],
21351
21361
  _excluded4 = ["activeTabs"];
@@ -21493,7 +21503,7 @@
21493
21503
  let {
21494
21504
  children
21495
21505
  } = _ref,
21496
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21506
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
21497
21507
  const [activeTabs, setActiveTabs] = React.useState(props.defaultValue || '');
21498
21508
  return /*#__PURE__*/React__default["default"].createElement(StyledTabs, _extends({}, props, {
21499
21509
  onValueChange: value => {
@@ -21687,7 +21697,7 @@
21687
21697
  value: PropTypes__default["default"].string
21688
21698
  };
21689
21699
 
21690
- const _excluded$6 = ["children", "variantIcon"];
21700
+ const _excluded$7 = ["children", "variantIcon"];
21691
21701
  var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
21692
21702
  const NotificationBadgeRootStyle = styled('span', {
21693
21703
  position: 'relative',
@@ -21790,7 +21800,7 @@
21790
21800
  children,
21791
21801
  variantIcon
21792
21802
  } = _ref,
21793
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21803
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21794
21804
  const getIcon = () => {
21795
21805
  const isLeading = variantIcon === 'leading';
21796
21806
  return {
@@ -21842,7 +21852,7 @@
21842
21852
  dot: PropTypes__default["default"].bool
21843
21853
  };
21844
21854
 
21845
- const _excluded$5 = ["className", "children", "radius", "padding", "width", "height"];
21855
+ const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
21846
21856
  var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
21847
21857
  const PaperComponent = styled('div', {
21848
21858
  padding: '20px',
@@ -21888,7 +21898,7 @@
21888
21898
  width,
21889
21899
  height
21890
21900
  } = _ref,
21891
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
21901
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21892
21902
  return /*#__PURE__*/React__default["default"].createElement(PaperComponent, _extends({
21893
21903
  className: className,
21894
21904
  css: Object.assign({
@@ -22094,7 +22104,7 @@
22094
22104
  return newObj;
22095
22105
  };
22096
22106
 
22097
- const _excluded$4 = ["isActive", "onClick"];
22107
+ const _excluded$5 = ["isActive", "onClick"];
22098
22108
  var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
22099
22109
  const PrevNextButton = styled(Text$1, {
22100
22110
  padding: '$spacing-01',
@@ -22181,7 +22191,7 @@
22181
22191
  isActive,
22182
22192
  onClick
22183
22193
  } = _ref,
22184
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
22194
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
22185
22195
  return /*#__PURE__*/React__default["default"].createElement(Button$4, _extends({
22186
22196
  type: "button",
22187
22197
  onClick: onClick,
@@ -22582,7 +22592,7 @@
22582
22592
  }, t('btnSubmitText', 'Lanjutkan'))))));
22583
22593
  };
22584
22594
 
22585
- const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22595
+ const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22586
22596
  var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
22587
22597
  const LimitContainer = styled(Flex$1, {
22588
22598
  cursor: 'pointer'
@@ -22608,7 +22618,7 @@
22608
22618
  totalData,
22609
22619
  onChange
22610
22620
  } = _ref;
22611
- _objectWithoutPropertiesLoose(_ref, _excluded$3);
22621
+ _objectWithoutPropertiesLoose(_ref, _excluded$4);
22612
22622
  const {
22613
22623
  t
22614
22624
  } = reactI18next.useTranslation('MajooUI/pagination');
@@ -22815,7 +22825,7 @@
22815
22825
  }, limit.toString()))))));
22816
22826
  }
22817
22827
 
22818
- const _excluded$2 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22828
+ const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22819
22829
  var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
22820
22830
  function Pagination(_ref) {
22821
22831
  let {
@@ -22830,7 +22840,7 @@
22830
22840
  hidePagination,
22831
22841
  hideInputPageSection
22832
22842
  } = _ref,
22833
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
22843
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
22834
22844
  const totalPages = totalPage || Math.ceil(totalData / limit);
22835
22845
  const isMobile = useMediaQuery('(max-width: 700px)');
22836
22846
  return /*#__PURE__*/React__default["default"].createElement(Flex$1, _extends({
@@ -25868,7 +25878,7 @@
25868
25878
  layer: '$modal'
25869
25879
  };
25870
25880
 
25871
- const _excluded$1 = ["children"];
25881
+ const _excluded$2 = ["children"];
25872
25882
  var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
25873
25883
  const overlayShow = keyframes({
25874
25884
  '0%': {
@@ -25941,7 +25951,7 @@
25941
25951
  let {
25942
25952
  children
25943
25953
  } = _ref,
25944
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
25954
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
25945
25955
  return /*#__PURE__*/React__default["default"].createElement(ADialog__namespace.Portal, {
25946
25956
  __self: undefined,
25947
25957
  __source: {
@@ -26501,7 +26511,7 @@
26501
26511
  const AlertDialogCancel = ADialog__namespace.Cancel;
26502
26512
  const AlertDialogConfirm = ADialog__namespace.Action;
26503
26513
 
26504
- const _excluded = ["side", "align", "children"],
26514
+ const _excluded$1 = ["side", "align", "children"],
26505
26515
  _excluded2 = ["children"],
26506
26516
  _excluded3 = ["asChild"];
26507
26517
  var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
@@ -26644,7 +26654,7 @@
26644
26654
  align,
26645
26655
  children
26646
26656
  } = _ref,
26647
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
26657
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
26648
26658
  return /*#__PURE__*/React__default["default"].createElement(DropdownMenuPrimitive__namespace.Root, _extends({}, props, {
26649
26659
  __self: undefined,
26650
26660
  __source: {
@@ -28639,6 +28649,7 @@
28639
28649
  });
28640
28650
  }
28641
28651
 
28652
+ const _excluded = ["customPreviewIcon"];
28642
28653
  var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
28643
28654
  const Input$2 = styled('input', {
28644
28655
  display: 'none !important'
@@ -28713,7 +28724,11 @@
28713
28724
  height: 32,
28714
28725
  padding: '$spacing-02'
28715
28726
  });
28716
- const IconStateFull = props => {
28727
+ const IconStateFull = _ref => {
28728
+ let {
28729
+ customPreviewIcon
28730
+ } = _ref,
28731
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
28717
28732
  const [isHover, setIsHover] = React.useState(false);
28718
28733
  function handleEnter() {
28719
28734
  setIsHover(true);
@@ -28731,6 +28746,25 @@
28731
28746
  lineNumber: 119,
28732
28747
  columnNumber: 5
28733
28748
  }
28749
+ })) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
28750
+ __self: undefined,
28751
+ __source: {
28752
+ fileName: _jsxFileName$9,
28753
+ lineNumber: 126,
28754
+ columnNumber: 5
28755
+ }
28756
+ }, !!customPreviewIcon ? /*#__PURE__*/React__default["default"].cloneElement(customPreviewIcon, Object.assign({}, customPreviewIcon.props, props, {
28757
+ color: isHover ? '#04C99E' : customPreviewIcon.props.color,
28758
+ onMouseEnter: handleEnter,
28759
+ onMouseLeave: handleLeave,
28760
+ style: Object.assign({
28761
+ cursor: 'pointer',
28762
+ background: 'rgba(39, 42, 42, 0.6)',
28763
+ borderRadius: 50,
28764
+ padding: '4px',
28765
+ width: 32,
28766
+ height: 32
28767
+ }, customPreviewIcon.props.style)
28734
28768
  })) : /*#__PURE__*/React__default["default"].createElement(EyeIcon, _extends({}, props, {
28735
28769
  color: isHover ? '#04C99E' : '#A5ABAB',
28736
28770
  onMouseEnter: handleEnter,
@@ -28738,10 +28772,10 @@
28738
28772
  __self: undefined,
28739
28773
  __source: {
28740
28774
  fileName: _jsxFileName$9,
28741
- lineNumber: 126,
28742
- columnNumber: 5
28775
+ lineNumber: 145,
28776
+ columnNumber: 9
28743
28777
  }
28744
- }));
28778
+ })));
28745
28779
  };
28746
28780
  const Upload = ({
28747
28781
  placeholder,
@@ -28780,7 +28814,9 @@
28780
28814
  hiddenToggleAspect,
28781
28815
  hiddenPreview,
28782
28816
  fullAspectCrop,
28783
- isDefaultCustomRatio
28817
+ isDefaultCustomRatio,
28818
+ customPreviewIcon,
28819
+ onPreviewIconClick
28784
28820
  }) => {
28785
28821
  const {
28786
28822
  t
@@ -28938,7 +28974,7 @@
28938
28974
  let newFile = files[i];
28939
28975
  newFile.uid = new Date().getTime();
28940
28976
  newFile.url = URL.createObjectURL(newFile);
28941
- if (action) {
28977
+ if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
28942
28978
  upload({
28943
28979
  url: action,
28944
28980
  file: newFile,
@@ -28956,10 +28992,16 @@
28956
28992
  let uid = fileProgress.uid;
28957
28993
  fileProgress.status = 'uploading';
28958
28994
  fileProgress.percent = percent;
28995
+ fileProgress.name = newFile.name;
28996
+ fileProgress.type = newFile.type;
28997
+ fileProgress.size = newFile.size;
28959
28998
  let arrProgress = [...arrFile];
28960
28999
  for (let i = 0; i < arrProgress.length; i++) {
28961
29000
  if (arrProgress[i].uid === uid) {
28962
29001
  arrProgress[i] = fileProgress;
29002
+ arrProgress[i].name = newFile.name;
29003
+ arrProgress[i].type = newFile.type;
29004
+ arrProgress[i].size = newFile.size;
28963
29005
  }
28964
29006
  }
28965
29007
  onChange == null ? void 0 : (_onChange = onChange({
@@ -28975,9 +29017,15 @@
28975
29017
  let uid = fileSuccess.uid;
28976
29018
  fileSuccess.url = result;
28977
29019
  fileSuccess.status = 'done';
28978
- for (let i = 0; i < arrFile.length; i++) {
28979
- if (arrFile[i].uid === uid) {
28980
- arrFile[i] = fileSuccess;
29020
+ fileSuccess.name = newFile.name;
29021
+ fileSuccess.type = newFile.type;
29022
+ fileSuccess.size = newFile.size;
29023
+ for (let j = 0; j < arrFile.length; j++) {
29024
+ if (arrFile[j].uid === uid) {
29025
+ arrFile[j] = fileSuccess;
29026
+ arrFile[j].name = newFile.name;
29027
+ arrFile[j].type = newFile.type;
29028
+ arrFile[j].size = newFile.size;
28981
29029
  }
28982
29030
  }
28983
29031
  onChange == null ? void 0 : (_onChange2 = onChange({
@@ -28992,9 +29040,15 @@
28992
29040
  let uid = fileError.uid;
28993
29041
  fileError.status = 'error';
28994
29042
  fileError.error = error;
29043
+ fileError.name = newFile.name;
29044
+ fileError.type = newFile.type;
29045
+ fileError.size = newFile.size;
28995
29046
  for (let i = 0; i < arrFile.length; i++) {
28996
29047
  if (arrFile[i].uid === uid) {
28997
29048
  arrFile[i] = fileError;
29049
+ arrFile[i].name = newFile.name;
29050
+ arrFile[i].type = newFile.type;
29051
+ arrFile[i].size = newFile.size;
28998
29052
  }
28999
29053
  }
29000
29054
  onChange == null ? void 0 : (_onChange3 = onChange({
@@ -29210,7 +29264,7 @@
29210
29264
  __self: this,
29211
29265
  __source: {
29212
29266
  fileName: _jsxFileName$9,
29213
- lineNumber: 615,
29267
+ lineNumber: 664,
29214
29268
  columnNumber: 7
29215
29269
  }
29216
29270
  }, /*#__PURE__*/React__default["default"].createElement(ButtonText, {
@@ -29220,7 +29274,7 @@
29220
29274
  __self: this,
29221
29275
  __source: {
29222
29276
  fileName: _jsxFileName$9,
29223
- lineNumber: 616,
29277
+ lineNumber: 665,
29224
29278
  columnNumber: 9
29225
29279
  }
29226
29280
  }, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
@@ -29235,7 +29289,7 @@
29235
29289
  __self: undefined,
29236
29290
  __source: {
29237
29291
  fileName: _jsxFileName$9,
29238
- lineNumber: 626,
29292
+ lineNumber: 675,
29239
29293
  columnNumber: 16
29240
29294
  }
29241
29295
  });
@@ -29246,7 +29300,7 @@
29246
29300
  __self: undefined,
29247
29301
  __source: {
29248
29302
  fileName: _jsxFileName$9,
29249
- lineNumber: 629,
29303
+ lineNumber: 678,
29250
29304
  columnNumber: 9
29251
29305
  }
29252
29306
  }, /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29256,7 +29310,7 @@
29256
29310
  __self: undefined,
29257
29311
  __source: {
29258
29312
  fileName: _jsxFileName$9,
29259
- lineNumber: 630,
29313
+ lineNumber: 679,
29260
29314
  columnNumber: 11
29261
29315
  }
29262
29316
  }, !disabled && /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
@@ -29265,7 +29319,7 @@
29265
29319
  __self: undefined,
29266
29320
  __source: {
29267
29321
  fileName: _jsxFileName$9,
29268
- lineNumber: 631,
29322
+ lineNumber: 680,
29269
29323
  columnNumber: 27
29270
29324
  }
29271
29325
  }), !hiddenPreview && /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29278,16 +29332,23 @@
29278
29332
  __self: undefined,
29279
29333
  __source: {
29280
29334
  fileName: _jsxFileName$9,
29281
- lineNumber: 633,
29335
+ lineNumber: 682,
29282
29336
  columnNumber: 15
29283
29337
  }
29284
29338
  }, /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
29285
29339
  type: "eye",
29286
- onClick: () => handlePreview(item),
29340
+ onClick: () => {
29341
+ if (onPreviewIconClick) {
29342
+ onPreviewIconClick(item);
29343
+ } else {
29344
+ handlePreview(item);
29345
+ }
29346
+ },
29347
+ customPreviewIcon: customPreviewIcon,
29287
29348
  __self: undefined,
29288
29349
  __source: {
29289
29350
  fileName: _jsxFileName$9,
29290
- lineNumber: 641,
29351
+ lineNumber: 690,
29291
29352
  columnNumber: 17
29292
29353
  }
29293
29354
  })), /*#__PURE__*/React__default["default"].createElement(Image, {
@@ -29297,7 +29358,7 @@
29297
29358
  __self: undefined,
29298
29359
  __source: {
29299
29360
  fileName: _jsxFileName$9,
29300
- lineNumber: 644,
29361
+ lineNumber: 703,
29301
29362
  columnNumber: 13
29302
29363
  }
29303
29364
  })), !disabled && renderButtonReplace(index));
@@ -29314,7 +29375,7 @@
29314
29375
  __self: undefined,
29315
29376
  __source: {
29316
29377
  fileName: _jsxFileName$9,
29317
- lineNumber: 655,
29378
+ lineNumber: 714,
29318
29379
  columnNumber: 16
29319
29380
  }
29320
29381
  });
@@ -29324,7 +29385,7 @@
29324
29385
  __self: undefined,
29325
29386
  __source: {
29326
29387
  fileName: _jsxFileName$9,
29327
- lineNumber: 658,
29388
+ lineNumber: 717,
29328
29389
  columnNumber: 9
29329
29390
  }
29330
29391
  }, /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29334,7 +29395,7 @@
29334
29395
  __self: undefined,
29335
29396
  __source: {
29336
29397
  fileName: _jsxFileName$9,
29337
- lineNumber: 659,
29398
+ lineNumber: 718,
29338
29399
  columnNumber: 11
29339
29400
  }
29340
29401
  }, !disabled && /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
@@ -29343,7 +29404,7 @@
29343
29404
  __self: undefined,
29344
29405
  __source: {
29345
29406
  fileName: _jsxFileName$9,
29346
- lineNumber: 660,
29407
+ lineNumber: 719,
29347
29408
  columnNumber: 27
29348
29409
  }
29349
29410
  }), /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29356,7 +29417,7 @@
29356
29417
  __self: undefined,
29357
29418
  __source: {
29358
29419
  fileName: _jsxFileName$9,
29359
- lineNumber: 661,
29420
+ lineNumber: 720,
29360
29421
  columnNumber: 13
29361
29422
  }
29362
29423
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29366,14 +29427,14 @@
29366
29427
  __self: undefined,
29367
29428
  __source: {
29368
29429
  fileName: _jsxFileName$9,
29369
- lineNumber: 669,
29430
+ lineNumber: 728,
29370
29431
  columnNumber: 15
29371
29432
  }
29372
29433
  }, /*#__PURE__*/React__default["default"].createElement(FileExtension, {
29373
29434
  __self: undefined,
29374
29435
  __source: {
29375
29436
  fileName: _jsxFileName$9,
29376
- lineNumber: 670,
29437
+ lineNumber: 729,
29377
29438
  columnNumber: 17
29378
29439
  }
29379
29440
  }, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
@@ -29381,7 +29442,7 @@
29381
29442
  __self: undefined,
29382
29443
  __source: {
29383
29444
  fileName: _jsxFileName$9,
29384
- lineNumber: 671,
29445
+ lineNumber: 730,
29385
29446
  columnNumber: 17
29386
29447
  }
29387
29448
  }, /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29396,7 +29457,7 @@
29396
29457
  __self: undefined,
29397
29458
  __source: {
29398
29459
  fileName: _jsxFileName$9,
29399
- lineNumber: 672,
29460
+ lineNumber: 731,
29400
29461
  columnNumber: 19
29401
29462
  }
29402
29463
  }, item.name)))), !hiddenPreview && /*#__PURE__*/React__default["default"].createElement(Box, {
@@ -29409,16 +29470,23 @@
29409
29470
  __self: undefined,
29410
29471
  __source: {
29411
29472
  fileName: _jsxFileName$9,
29412
- lineNumber: 688,
29473
+ lineNumber: 747,
29413
29474
  columnNumber: 15
29414
29475
  }
29415
29476
  }, /*#__PURE__*/React__default["default"].createElement(IconStateFull, {
29416
29477
  type: "eye",
29417
- onClick: () => handleOpenFile(item),
29478
+ onClick: () => {
29479
+ if (onPreviewIconClick) {
29480
+ onPreviewIconClick(item);
29481
+ } else {
29482
+ handleOpenFile(item);
29483
+ }
29484
+ },
29485
+ customPreviewIcon: customPreviewIcon,
29418
29486
  __self: undefined,
29419
29487
  __source: {
29420
29488
  fileName: _jsxFileName$9,
29421
- lineNumber: 696,
29489
+ lineNumber: 755,
29422
29490
  columnNumber: 17
29423
29491
  }
29424
29492
  })), /*#__PURE__*/React__default["default"].createElement(Blank, {
@@ -29426,7 +29494,7 @@
29426
29494
  __self: undefined,
29427
29495
  __source: {
29428
29496
  fileName: _jsxFileName$9,
29429
- lineNumber: 699,
29497
+ lineNumber: 768,
29430
29498
  columnNumber: 13
29431
29499
  }
29432
29500
  })), !disabled && renderButtonReplace(index));
@@ -29441,7 +29509,7 @@
29441
29509
  __self: this,
29442
29510
  __source: {
29443
29511
  fileName: _jsxFileName$9,
29444
- lineNumber: 710,
29512
+ lineNumber: 779,
29445
29513
  columnNumber: 7
29446
29514
  }
29447
29515
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29455,7 +29523,7 @@
29455
29523
  __self: this,
29456
29524
  __source: {
29457
29525
  fileName: _jsxFileName$9,
29458
- lineNumber: 711,
29526
+ lineNumber: 780,
29459
29527
  columnNumber: 9
29460
29528
  }
29461
29529
  }, /*#__PURE__*/React__default["default"].createElement(LoadingBar, {
@@ -29481,7 +29549,7 @@
29481
29549
  __self: this,
29482
29550
  __source: {
29483
29551
  fileName: _jsxFileName$9,
29484
- lineNumber: 712,
29552
+ lineNumber: 781,
29485
29553
  columnNumber: 11
29486
29554
  }
29487
29555
  }), /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29489,14 +29557,14 @@
29489
29557
  __self: this,
29490
29558
  __source: {
29491
29559
  fileName: _jsxFileName$9,
29492
- lineNumber: 725,
29560
+ lineNumber: 794,
29493
29561
  columnNumber: 11
29494
29562
  }
29495
29563
  }, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default["default"].createElement(Text, {
29496
29564
  __self: this,
29497
29565
  __source: {
29498
29566
  fileName: _jsxFileName$9,
29499
- lineNumber: 726,
29567
+ lineNumber: 795,
29500
29568
  columnNumber: 11
29501
29569
  }
29502
29570
  }, t('uploadingLabel', 'Berkas sedang diunggah'))));
@@ -29508,7 +29576,7 @@
29508
29576
  __self: this,
29509
29577
  __source: {
29510
29578
  fileName: _jsxFileName$9,
29511
- lineNumber: 734,
29579
+ lineNumber: 803,
29512
29580
  columnNumber: 7
29513
29581
  }
29514
29582
  }, /*#__PURE__*/React__default["default"].createElement(ContainerUpload, {
@@ -29524,7 +29592,7 @@
29524
29592
  __self: this,
29525
29593
  __source: {
29526
29594
  fileName: _jsxFileName$9,
29527
- lineNumber: 735,
29595
+ lineNumber: 804,
29528
29596
  columnNumber: 9
29529
29597
  }
29530
29598
  }, /*#__PURE__*/React__default["default"].createElement(Input$2, {
@@ -29536,21 +29604,21 @@
29536
29604
  __self: this,
29537
29605
  __source: {
29538
29606
  fileName: _jsxFileName$9,
29539
- lineNumber: 746,
29607
+ lineNumber: 815,
29540
29608
  columnNumber: 11
29541
29609
  }
29542
29610
  }), /*#__PURE__*/React__default["default"].createElement(Children, {
29543
29611
  __self: this,
29544
29612
  __source: {
29545
29613
  fileName: _jsxFileName$9,
29546
- lineNumber: 747,
29614
+ lineNumber: 816,
29547
29615
  columnNumber: 11
29548
29616
  }
29549
29617
  }, children != null ? children : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
29550
29618
  __self: this,
29551
29619
  __source: {
29552
29620
  fileName: _jsxFileName$9,
29553
- lineNumber: 749,
29621
+ lineNumber: 818,
29554
29622
  columnNumber: 15
29555
29623
  }
29556
29624
  }, /*#__PURE__*/React__default["default"].createElement(IconCard, {
@@ -29559,7 +29627,7 @@
29559
29627
  __self: this,
29560
29628
  __source: {
29561
29629
  fileName: _jsxFileName$9,
29562
- lineNumber: 750,
29630
+ lineNumber: 819,
29563
29631
  columnNumber: 17
29564
29632
  }
29565
29633
  }, /*#__PURE__*/React__default["default"].createElement(icons.UploadOutline, {
@@ -29567,7 +29635,7 @@
29567
29635
  __self: this,
29568
29636
  __source: {
29569
29637
  fileName: _jsxFileName$9,
29570
- lineNumber: 751,
29638
+ lineNumber: 820,
29571
29639
  columnNumber: 19
29572
29640
  }
29573
29641
  })), /*#__PURE__*/React__default["default"].createElement(Text, {
@@ -29577,7 +29645,7 @@
29577
29645
  __self: this,
29578
29646
  __source: {
29579
29647
  fileName: _jsxFileName$9,
29580
- lineNumber: 753,
29648
+ lineNumber: 822,
29581
29649
  columnNumber: 17
29582
29650
  }
29583
29651
  }, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
@@ -29587,7 +29655,7 @@
29587
29655
  __self: this,
29588
29656
  __source: {
29589
29657
  fileName: _jsxFileName$9,
29590
- lineNumber: 760,
29658
+ lineNumber: 829,
29591
29659
  columnNumber: 19
29592
29660
  }
29593
29661
  }, error));
@@ -29599,7 +29667,7 @@
29599
29667
  __self: this,
29600
29668
  __source: {
29601
29669
  fileName: _jsxFileName$9,
29602
- lineNumber: 767,
29670
+ lineNumber: 836,
29603
29671
  columnNumber: 7
29604
29672
  }
29605
29673
  }, /*#__PURE__*/React__default["default"].createElement(ModalDialogTrigger, {
@@ -29607,7 +29675,7 @@
29607
29675
  __self: this,
29608
29676
  __source: {
29609
29677
  fileName: _jsxFileName$9,
29610
- lineNumber: 768,
29678
+ lineNumber: 837,
29611
29679
  columnNumber: 9
29612
29680
  }
29613
29681
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -29615,7 +29683,7 @@
29615
29683
  __self: this,
29616
29684
  __source: {
29617
29685
  fileName: _jsxFileName$9,
29618
- lineNumber: 769,
29686
+ lineNumber: 838,
29619
29687
  columnNumber: 11
29620
29688
  }
29621
29689
  })), /*#__PURE__*/React__default["default"].createElement(ModalDialogTitle, {
@@ -29628,7 +29696,7 @@
29628
29696
  __self: this,
29629
29697
  __source: {
29630
29698
  fileName: _jsxFileName$9,
29631
- lineNumber: 771,
29699
+ lineNumber: 840,
29632
29700
  columnNumber: 9
29633
29701
  }
29634
29702
  }, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default["default"].createElement(ModalDialogContent, {
@@ -29641,7 +29709,7 @@
29641
29709
  __self: this,
29642
29710
  __source: {
29643
29711
  fileName: _jsxFileName$9,
29644
- lineNumber: 774,
29712
+ lineNumber: 843,
29645
29713
  columnNumber: 9
29646
29714
  }
29647
29715
  }, /*#__PURE__*/React__default["default"].createElement(ReactCrop__default["default"], {
@@ -29652,7 +29720,7 @@
29652
29720
  __self: this,
29653
29721
  __source: {
29654
29722
  fileName: _jsxFileName$9,
29655
- lineNumber: 775,
29723
+ lineNumber: 851,
29656
29724
  columnNumber: 11
29657
29725
  }
29658
29726
  }, /*#__PURE__*/React__default["default"].createElement(Image, {
@@ -29666,14 +29734,14 @@
29666
29734
  __self: this,
29667
29735
  __source: {
29668
29736
  fileName: _jsxFileName$9,
29669
- lineNumber: 776,
29737
+ lineNumber: 852,
29670
29738
  columnNumber: 13
29671
29739
  }
29672
29740
  }))), /*#__PURE__*/React__default["default"].createElement(ModalDialogFooter, {
29673
29741
  __self: this,
29674
29742
  __source: {
29675
29743
  fileName: _jsxFileName$9,
29676
- lineNumber: 787,
29744
+ lineNumber: 863,
29677
29745
  columnNumber: 9
29678
29746
  }
29679
29747
  }, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29685,14 +29753,14 @@
29685
29753
  __self: this,
29686
29754
  __source: {
29687
29755
  fileName: _jsxFileName$9,
29688
- lineNumber: 788,
29756
+ lineNumber: 864,
29689
29757
  columnNumber: 11
29690
29758
  }
29691
29759
  }, hiddenToggleAspect ? /*#__PURE__*/React__default["default"].createElement(Box, {
29692
29760
  __self: this,
29693
29761
  __source: {
29694
29762
  fileName: _jsxFileName$9,
29695
- lineNumber: 790,
29763
+ lineNumber: 866,
29696
29764
  columnNumber: 15
29697
29765
  }
29698
29766
  }) : /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
@@ -29700,7 +29768,7 @@
29700
29768
  __self: this,
29701
29769
  __source: {
29702
29770
  fileName: _jsxFileName$9,
29703
- lineNumber: 792,
29771
+ lineNumber: 868,
29704
29772
  columnNumber: 15
29705
29773
  }
29706
29774
  }, /*#__PURE__*/React__default["default"].createElement(icons.ImageOutline, {
@@ -29712,7 +29780,7 @@
29712
29780
  __self: this,
29713
29781
  __source: {
29714
29782
  fileName: _jsxFileName$9,
29715
- lineNumber: 793,
29783
+ lineNumber: 869,
29716
29784
  columnNumber: 17
29717
29785
  }
29718
29786
  })), /*#__PURE__*/React__default["default"].createElement(Flex$1, {
@@ -29720,7 +29788,7 @@
29720
29788
  __self: this,
29721
29789
  __source: {
29722
29790
  fileName: _jsxFileName$9,
29723
- lineNumber: 800,
29791
+ lineNumber: 876,
29724
29792
  columnNumber: 13
29725
29793
  }
29726
29794
  }, /*#__PURE__*/React__default["default"].createElement(Button$4, {
@@ -29729,7 +29797,7 @@
29729
29797
  __self: this,
29730
29798
  __source: {
29731
29799
  fileName: _jsxFileName$9,
29732
- lineNumber: 801,
29800
+ lineNumber: 877,
29733
29801
  columnNumber: 15
29734
29802
  }
29735
29803
  }, t('label.cancel', 'Batal', {
@@ -29739,7 +29807,7 @@
29739
29807
  __self: this,
29740
29808
  __source: {
29741
29809
  fileName: _jsxFileName$9,
29742
- lineNumber: 804,
29810
+ lineNumber: 880,
29743
29811
  columnNumber: 15
29744
29812
  }
29745
29813
  }, t('save', 'Simpan', {
@@ -29756,7 +29824,7 @@
29756
29824
  __self: undefined,
29757
29825
  __source: {
29758
29826
  fileName: _jsxFileName$9,
29759
- lineNumber: 813,
29827
+ lineNumber: 889,
29760
29828
  columnNumber: 5
29761
29829
  }
29762
29830
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
@@ -29765,7 +29833,7 @@
29765
29833
  __self: undefined,
29766
29834
  __source: {
29767
29835
  fileName: _jsxFileName$9,
29768
- lineNumber: 816,
29836
+ lineNumber: 892,
29769
29837
  columnNumber: 32
29770
29838
  }
29771
29839
  }) : renderUpload(), showCropper && renderCropper());