@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.esm.js CHANGED
@@ -1618,7 +1618,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
1618
1618
  return target;
1619
1619
  }
1620
1620
 
1621
- const _excluded$B = ["children"],
1621
+ const _excluded$C = ["children"],
1622
1622
  _excluded2$4 = ["children"];
1623
1623
  var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
1624
1624
  const GridComponent = styled('div', {
@@ -1809,7 +1809,7 @@ const Grid = _ref => {
1809
1809
  let {
1810
1810
  children
1811
1811
  } = _ref,
1812
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1812
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1813
1813
  return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
1814
1814
  css: Object.assign({}, props.css, {
1815
1815
  gridAutoColumns: props.autoColumns,
@@ -1889,7 +1889,7 @@ GridItem.propTypes = {
1889
1889
  };
1890
1890
  GridItem.displayName = 'Grid Item';
1891
1891
 
1892
- const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
1892
+ const _excluded$B = ["children", "isCollapse", "css", "contentHeader"];
1893
1893
  var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1894
1894
  const StyledDiv$2 = styled(Flex$1, {
1895
1895
  justifyContent: 'center',
@@ -1933,7 +1933,7 @@ const PageContainer = _ref => {
1933
1933
  css,
1934
1934
  contentHeader
1935
1935
  } = _ref,
1936
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1936
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1937
1937
  return /*#__PURE__*/React__default.createElement(StyledDiv$2, _extends({
1938
1938
  id: "retina-container",
1939
1939
  css: Object.assign({
@@ -2391,7 +2391,7 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
2391
2391
  }), void 0);
2392
2392
  });
2393
2393
 
2394
- const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2394
+ const _excluded$A = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2395
2395
  var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
2396
2396
  const Context$2 = /*#__PURE__*/React.createContext();
2397
2397
  const StyledBanner = styled(Flex$1, {
@@ -2728,7 +2728,7 @@ const Banner = _ref => {
2728
2728
  bannerBlock,
2729
2729
  icon
2730
2730
  } = _ref,
2731
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2731
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2732
2732
  return /*#__PURE__*/React.createElement(StyledBanner, _extends({
2733
2733
  variant: variant,
2734
2734
  hasAction: !!onClick,
@@ -3392,7 +3392,7 @@ Card.defaultProps = {
3392
3392
  Card.Label = StyledLabel$2;
3393
3393
  Card.Description = StyledDescription$3;
3394
3394
 
3395
- const _excluded$y = ["children"];
3395
+ const _excluded$z = ["children"];
3396
3396
  var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3397
3397
  const BreadcrumbStyle = styled('nav', {
3398
3398
  wordWrap: 'break-word',
@@ -3448,7 +3448,7 @@ const BreadcrumbBase = _ref => {
3448
3448
  let {
3449
3449
  children
3450
3450
  } = _ref,
3451
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3451
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
3452
3452
  return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
3453
3453
  "aria-label": "breadcrumb",
3454
3454
  __self: undefined,
@@ -3712,7 +3712,7 @@ Badge.defaultProps = {
3712
3712
  };
3713
3713
  Badge.displayName = 'Badge';
3714
3714
 
3715
- const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3715
+ const _excluded$y = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3716
3716
  var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3717
3717
  const StyledAvatar = styled(AvatarPrimitive.Root, {
3718
3718
  width: '32px',
@@ -3757,7 +3757,7 @@ function Avatar(_ref) {
3757
3757
  onClick,
3758
3758
  css
3759
3759
  } = _ref,
3760
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3760
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3761
3761
  return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
3762
3762
  className: className,
3763
3763
  onClick: onClick,
@@ -3814,7 +3814,7 @@ Avatar.defaultProps = {
3814
3814
  delayMs: 0
3815
3815
  };
3816
3816
 
3817
- const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3817
+ const _excluded$x = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3818
3818
  var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
3819
3819
  const ContainerFallback = styled(Flex$1, {
3820
3820
  boxSizing: 'border-box',
@@ -3864,7 +3864,7 @@ function Image(_ref) {
3864
3864
  cssFallback,
3865
3865
  rounded
3866
3866
  } = _ref,
3867
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3867
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3868
3868
  const {
3869
3869
  t
3870
3870
  } = useTranslation('translation');
@@ -4500,7 +4500,7 @@ for (var COLLECTION_NAME in DOMIterables) {
4500
4500
 
4501
4501
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4502
4502
 
4503
- const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4503
+ const _excluded$w = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4504
4504
  var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
4505
4505
  const {
4506
4506
  zIndices: zIndices$2
@@ -4617,7 +4617,7 @@ const Tooltip$1 = _ref => {
4617
4617
  align,
4618
4618
  delayDuration
4619
4619
  } = _ref,
4620
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4620
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
4621
4621
  const [open, setOpen] = useState(false);
4622
4622
  return /*#__PURE__*/React__default.createElement(Provider, {
4623
4623
  __self: undefined,
@@ -4706,7 +4706,7 @@ Tooltip$1.defaultProps = {
4706
4706
  delayDuration: 200
4707
4707
  };
4708
4708
 
4709
- const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4709
+ const _excluded$v = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4710
4710
  var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
4711
4711
  const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
4712
4712
  position: 'relative',
@@ -4825,7 +4825,7 @@ function Progress$1(_ref) {
4825
4825
  rounded,
4826
4826
  width
4827
4827
  } = _ref,
4828
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4828
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4829
4829
  return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
4830
4830
  className: className,
4831
4831
  value: value,
@@ -5518,7 +5518,7 @@ function useMediaQuery(query) {
5518
5518
  return matches;
5519
5519
  }
5520
5520
 
5521
- const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5521
+ const _excluded$u = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5522
5522
  var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
5523
5523
  const TOAST_WIDTH = 576;
5524
5524
  const ANIMATION_DURATION = 400;
@@ -5687,7 +5687,7 @@ const Toast = _ref => {
5687
5687
  captionOfAction,
5688
5688
  hrefOfAction
5689
5689
  } = _ref,
5690
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
5690
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
5691
5691
  const [isOpen, setIsOpen] = React.useState(false);
5692
5692
  const isMobile = useMediaQuery(`(max-width: 767px`);
5693
5693
  const close = React.useCallback(() => {
@@ -5870,7 +5870,7 @@ Toast.defaultProps = {
5870
5870
  dismissAfter: 5000
5871
5871
  };
5872
5872
 
5873
- const _excluded$s = ["preventDuplicate"];
5873
+ const _excluded$t = ["preventDuplicate"];
5874
5874
  var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5875
5875
  const ToastBox = styled(Flex$1, {
5876
5876
  position: 'fixed',
@@ -5934,7 +5934,7 @@ const ToastContainer = ({
5934
5934
  const {
5935
5935
  preventDuplicate
5936
5936
  } = item,
5937
- toast = _objectWithoutPropertiesLoose(item, _excluded$s);
5937
+ toast = _objectWithoutPropertiesLoose(item, _excluded$t);
5938
5938
  return /*#__PURE__*/React.createElement(Toast, _extends({
5939
5939
  key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
5940
5940
  onRemove: () => removeToast(toast.id)
@@ -7166,7 +7166,7 @@ const catchError = e => {
7166
7166
  return message;
7167
7167
  };
7168
7168
 
7169
- const _excluded$r = ["id", "disabledOfflineIntercept"];
7169
+ const _excluded$s = ["id", "disabledOfflineIntercept"];
7170
7170
  var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7171
7171
  let toastCount = 0;
7172
7172
  const ToastProvider = ({
@@ -7196,7 +7196,7 @@ const ToastProvider = ({
7196
7196
  id,
7197
7197
  disabledOfflineIntercept
7198
7198
  } = toast,
7199
- rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
7199
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$s);
7200
7200
 
7201
7201
  // eslint-disable-next-line no-plusplus
7202
7202
  const uniqueId = ++toastCount;
@@ -7285,7 +7285,7 @@ const ConditionalWrapper = ({
7285
7285
  children
7286
7286
  }) => condition ? wrapper(children) : children;
7287
7287
 
7288
- const _excluded$q = ["count", "maxCount", "css"];
7288
+ const _excluded$r = ["count", "maxCount", "css"];
7289
7289
  var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7290
7290
  const formLabelClassStyle = {
7291
7291
  alignItems: 'start !important',
@@ -7389,7 +7389,7 @@ const FormGroup = _ref => {
7389
7389
  maxCount,
7390
7390
  css
7391
7391
  } = _ref,
7392
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7392
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7393
7393
  const withCounter = Boolean(count || maxCount);
7394
7394
  return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
7395
7395
  condition: withCounter,
@@ -7436,7 +7436,7 @@ const FormGroup = _ref => {
7436
7436
  };
7437
7437
  FormGroup.displayName = 'FormGroup';
7438
7438
 
7439
- const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7439
+ const _excluded$q = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7440
7440
  var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7441
7441
  const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
7442
7442
  display: 'inline-block',
@@ -7469,7 +7469,7 @@ const FormLabel = _ref => {
7469
7469
  maxCount,
7470
7470
  labelCss
7471
7471
  } = _ref,
7472
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7472
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7473
7473
  return /*#__PURE__*/React__default.createElement(Flex$1, {
7474
7474
  justify: "between",
7475
7475
  className: "form-label",
@@ -7553,7 +7553,7 @@ FormLabel.defaultProps = {
7553
7553
  };
7554
7554
  FormLabel.displayName = 'FormLabel';
7555
7555
 
7556
- const _excluded$o = ["children", "error", "errorMessage"];
7556
+ const _excluded$p = ["children", "error", "errorMessage"];
7557
7557
  var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7558
7558
  const StyledHelper = styled(Text$1, {
7559
7559
  display: 'inline-block',
@@ -7572,7 +7572,7 @@ const FormHelper = _ref => {
7572
7572
  error,
7573
7573
  errorMessage
7574
7574
  } = _ref,
7575
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7575
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7576
7576
  const errorByMessage = !!errorMessage;
7577
7577
  if (error === undefined && errorByMessage) {
7578
7578
  return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
@@ -7761,7 +7761,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
7761
7761
  }
7762
7762
  }));
7763
7763
 
7764
- const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7764
+ const _excluded$o = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7765
7765
  var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7766
7766
  const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
7767
7767
  alignItems: 'center',
@@ -7820,7 +7820,7 @@ const Checkbox = _ref => {
7820
7820
  index,
7821
7821
  value
7822
7822
  } = _ref,
7823
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7823
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7824
7824
  const context = useContext(CheckboxContext);
7825
7825
  const [isChecked, setChecked] = useState(false);
7826
7826
  useEffect(() => {
@@ -7922,7 +7922,7 @@ InputCheckbox.propTypes = {
7922
7922
  };
7923
7923
  InputCheckbox.displayName = 'InputCheckbox';
7924
7924
 
7925
- const _excluded$m = ["children", "size"];
7925
+ const _excluded$n = ["children", "size"];
7926
7926
  var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7927
7927
  const InputGroupStyle = styled('div', {
7928
7928
  display: 'flex',
@@ -8062,7 +8062,7 @@ const InputGroup = _ref => {
8062
8062
  children,
8063
8063
  size = 'lg'
8064
8064
  } = _ref,
8065
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8065
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$n);
8066
8066
  const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8067
8067
  const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8068
8068
  const clone = children.map((child, index) => {
@@ -8261,7 +8261,7 @@ InputSuffix.propTypes = {
8261
8261
  children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
8262
8262
  };
8263
8263
 
8264
- const _excluded$l = ["disabled", "readOnly"];
8264
+ const _excluded$m = ["disabled", "readOnly"];
8265
8265
  var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8266
8266
  const disabledStyle = {
8267
8267
  backgroundColor: '$formDisable',
@@ -8435,7 +8435,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8435
8435
  disabled,
8436
8436
  readOnly
8437
8437
  } = _ref,
8438
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8438
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8439
8439
  return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
8440
8440
  ref: ref,
8441
8441
  disabled: disabled,
@@ -8463,7 +8463,7 @@ InputText.propTypes = {
8463
8463
  };
8464
8464
  InputText.displayName = 'InputText';
8465
8465
 
8466
- const _excluded$k = ["disabled", "readOnly"];
8466
+ const _excluded$l = ["disabled", "readOnly"];
8467
8467
  var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8468
8468
  const StyledTextArea = styled(StyledInput$1, {
8469
8469
  variants: {
@@ -8485,7 +8485,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8485
8485
  disabled,
8486
8486
  readOnly
8487
8487
  } = _ref,
8488
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8488
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8489
8489
  const textareaRef = useRef(null);
8490
8490
  useEffect(() => {
8491
8491
  if (textareaRef.current) {
@@ -8575,7 +8575,7 @@ InputRadioGroup.propTypes = {
8575
8575
  };
8576
8576
  InputRadioGroup.displayName = 'InputRadioGroup';
8577
8577
 
8578
- const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8578
+ const _excluded$k = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8579
8579
  var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8580
8580
  const INDICATOR_BASE_STYLES = {
8581
8581
  alignItems: 'center',
@@ -8741,7 +8741,7 @@ const InputRadio = _ref => {
8741
8741
  description,
8742
8742
  readOnly
8743
8743
  } = _ref,
8744
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8744
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8745
8745
  function renderInputType(type, checkedValue, onValueChange) {
8746
8746
  switch (type) {
8747
8747
  case 'number':
@@ -8866,7 +8866,7 @@ const InputRadio = _ref => {
8866
8866
  variant: "caption",
8867
8867
  color: "secondary",
8868
8868
  css: {
8869
- marginTop: '10px'
8869
+ marginLeft: '29px'
8870
8870
  },
8871
8871
  __self: undefined,
8872
8872
  __source: {
@@ -11024,7 +11024,7 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
11024
11024
  }(React__default.Component);
11025
11025
  NumberFormat.defaultProps = defaultProps;
11026
11026
 
11027
- const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11027
+ const _excluded$j = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11028
11028
  var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
11029
11029
  const StyledInput = styled(NumberFormat, {
11030
11030
  // Reset
@@ -11220,7 +11220,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11220
11220
  maxLength,
11221
11221
  thousandSeparator
11222
11222
  } = _ref,
11223
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11223
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
11224
11224
  return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
11225
11225
  condition: Boolean(control),
11226
11226
  wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
@@ -11285,7 +11285,7 @@ InputNumber.defaultProps = {
11285
11285
  InputNumber.name = 'InputText';
11286
11286
  InputNumber.displayName = 'InputNumber';
11287
11287
 
11288
- const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11288
+ const _excluded$i = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11289
11289
  var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
11290
11290
  const TagWrapper$4 = styled('div', {
11291
11291
  boxSizing: 'border-box',
@@ -11390,7 +11390,7 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11390
11390
  onRemove,
11391
11391
  readOnly
11392
11392
  } = _ref,
11393
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11393
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11394
11394
  return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
11395
11395
  ref: ref,
11396
11396
  onClick: onClick,
@@ -11461,7 +11461,7 @@ Tag.defaultProps = {
11461
11461
  readOnly: false
11462
11462
  };
11463
11463
 
11464
- const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
11464
+ const _excluded$h = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
11465
11465
  var _jsxFileName$D = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
11466
11466
  const Wrapper$2 = styled('div', {
11467
11467
  margin: 0,
@@ -11584,7 +11584,7 @@ function TagsInput(_ref) {
11584
11584
  unremovableTags,
11585
11585
  onRemoveItem
11586
11586
  } = _ref,
11587
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
11587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11588
11588
  const [tags, setTags] = React__default.useState(value);
11589
11589
  const [regexError, setRegexError] = React__default.useState(false);
11590
11590
  React__default.useEffect(() => {
@@ -11758,7 +11758,7 @@ TagsInput.defaultProps = {
11758
11758
  readOnly: false
11759
11759
  };
11760
11760
 
11761
- const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
11761
+ const _excluded$g = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
11762
11762
  var _jsxFileName$C = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
11763
11763
  const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
11764
11764
  display: 'block',
@@ -11830,7 +11830,7 @@ const InputSwitch = _ref => {
11830
11830
  dataOffLabel,
11831
11831
  disabled
11832
11832
  } = _ref,
11833
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
11833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
11834
11834
  return /*#__PURE__*/React__default.createElement(StyledSwitch, _extends({
11835
11835
  defaultChecked: defaultChecked,
11836
11836
  dataOnLabel: dataOnLabel,
@@ -11963,7 +11963,7 @@ SvgSearchOutline.defaultProps = {
11963
11963
  size: 24
11964
11964
  };
11965
11965
 
11966
- const _excluded$e = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue", "mobileOnly", "desktopOnly"];
11966
+ const _excluded$f = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue", "mobileOnly", "desktopOnly"];
11967
11967
  var _jsxFileName$z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
11968
11968
  const {
11969
11969
  colors: colors$7
@@ -11980,7 +11980,7 @@ const InputSearchbox = _ref => {
11980
11980
  mobileOnly,
11981
11981
  desktopOnly
11982
11982
  } = _ref,
11983
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
11983
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
11984
11984
  const {
11985
11985
  t
11986
11986
  } = useTranslation(['MajooUI/inputSearchbox', 'translation']);
@@ -12262,7 +12262,7 @@ $$5({ target: 'Array', proto: true, forced: FORCED$1 }, {
12262
12262
  }
12263
12263
  });
12264
12264
 
12265
- const _excluded$d = ["children"];
12265
+ const _excluded$e = ["children"];
12266
12266
  var _jsxFileName$y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/popover/Popover.js";
12267
12267
  const {
12268
12268
  zIndices: zIndices$1
@@ -12398,7 +12398,7 @@ const PopoverClose = _ref => {
12398
12398
  let {
12399
12399
  children
12400
12400
  } = _ref,
12401
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12401
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
12402
12402
  const {
12403
12403
  setOpenState
12404
12404
  } = useContext(PopoverContext);
@@ -13803,7 +13803,7 @@ function OptionGroupItem({
13803
13803
  }), void 0);
13804
13804
  }
13805
13805
 
13806
- 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"];
13806
+ 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"];
13807
13807
  var _jsxFileName$w = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
13808
13808
  const Wrapper$1 = styled('div', {
13809
13809
  margin: 0,
@@ -14103,7 +14103,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
14103
14103
  onSelectAllChecked,
14104
14104
  totalOptions
14105
14105
  } = _ref,
14106
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
14106
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
14107
14107
  const {
14108
14108
  t
14109
14109
  } = useTranslation(['MajooUI/inputSelectCheck', 'translation']);
@@ -16319,7 +16319,7 @@ InputCounter.defaultProps = {
16319
16319
  size: 'lg'
16320
16320
  };
16321
16321
 
16322
- const _excluded$b = ["children"],
16322
+ const _excluded$c = ["children"],
16323
16323
  _excluded2$3 = ["children", "showOverlay"];
16324
16324
  var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
16325
16325
  const Context$1 = /*#__PURE__*/React__default.createContext();
@@ -16361,7 +16361,7 @@ function Drawer(_ref) {
16361
16361
  let {
16362
16362
  children
16363
16363
  } = _ref,
16364
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
16364
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
16365
16365
  return /*#__PURE__*/React__default.createElement(DialogPrimitive.Root, _extends({}, props, {
16366
16366
  __self: this,
16367
16367
  __source: {
@@ -16669,7 +16669,7 @@ DrawerBody.displayName = 'DrawerBody';
16669
16669
  DrawerFooter.displayName = 'DrawerFooter';
16670
16670
  DrawerCloseButton.displayName = 'DrawerCloseButton';
16671
16671
 
16672
- const _excluded$a = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
16672
+ const _excluded$b = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
16673
16673
  _excluded2$2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
16674
16674
  var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
16675
16675
  const ScrollButton$1 = styled(Button$4, {
@@ -16875,7 +16875,7 @@ function ButtonGroup$1(_ref) {
16875
16875
  mobileOnly,
16876
16876
  desktopOnly
16877
16877
  } = _ref,
16878
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
16878
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
16879
16879
  const [listContainerScrollPosition, setlistContainerScrollPosition] = useState(0);
16880
16880
  const [scrollAreaWidth, setScrollAreaWidth] = useState(0);
16881
16881
  const listContainerRef = useRef();
@@ -17783,7 +17783,8 @@ function InputTimePicker({
17783
17783
  maxDate,
17784
17784
  isInvalid,
17785
17785
  portalled,
17786
- contentCss
17786
+ contentCss,
17787
+ onInputOpenChange
17787
17788
  }) {
17788
17789
  const [openPicker, setOpenPicker] = useState(false);
17789
17790
  function handleChange() {
@@ -17800,7 +17801,7 @@ function InputTimePicker({
17800
17801
  __self: this,
17801
17802
  __source: {
17802
17803
  fileName: _jsxFileName$q,
17803
- lineNumber: 47,
17804
+ lineNumber: 48,
17804
17805
  columnNumber: 5
17805
17806
  }
17806
17807
  }, /*#__PURE__*/React__default.createElement(InputLeftElement, {
@@ -17809,14 +17810,14 @@ function InputTimePicker({
17809
17810
  __self: this,
17810
17811
  __source: {
17811
17812
  fileName: _jsxFileName$q,
17812
- lineNumber: 48,
17813
+ lineNumber: 49,
17813
17814
  columnNumber: 35
17814
17815
  }
17815
17816
  }),
17816
17817
  __self: this,
17817
17818
  __source: {
17818
17819
  fileName: _jsxFileName$q,
17819
- lineNumber: 48,
17820
+ lineNumber: 49,
17820
17821
  columnNumber: 7
17821
17822
  }
17822
17823
  }), /*#__PURE__*/React__default.createElement(InputText, {
@@ -17832,7 +17833,7 @@ function InputTimePicker({
17832
17833
  __self: this,
17833
17834
  __source: {
17834
17835
  fileName: _jsxFileName$q,
17835
- lineNumber: 49,
17836
+ lineNumber: 50,
17836
17837
  columnNumber: 7
17837
17838
  }
17838
17839
  }));
@@ -17856,18 +17857,23 @@ function InputTimePicker({
17856
17857
  __self: this,
17857
17858
  __source: {
17858
17859
  fileName: _jsxFileName$q,
17859
- lineNumber: 63,
17860
+ lineNumber: 64,
17860
17861
  columnNumber: 5
17861
17862
  }
17862
17863
  });
17863
17864
  return /*#__PURE__*/React__default.createElement(Popover, {
17864
17865
  open: openPicker,
17865
- onOpenChange: setOpenPicker,
17866
+ onOpenChange: open => {
17867
+ setOpenPicker(open);
17868
+ if (onInputOpenChange) {
17869
+ onInputOpenChange(open);
17870
+ }
17871
+ },
17866
17872
  placement: placement,
17867
17873
  __self: this,
17868
17874
  __source: {
17869
17875
  fileName: _jsxFileName$q,
17870
- lineNumber: 82,
17876
+ lineNumber: 83,
17871
17877
  columnNumber: 5
17872
17878
  }
17873
17879
  }, disabled || readOnly ? /*#__PURE__*/React__default.createElement(Box, {
@@ -17875,14 +17881,14 @@ function InputTimePicker({
17875
17881
  __self: this,
17876
17882
  __source: {
17877
17883
  fileName: _jsxFileName$q,
17878
- lineNumber: 84,
17884
+ lineNumber: 94,
17879
17885
  columnNumber: 9
17880
17886
  }
17881
17887
  }, renderInputGroup()) : /*#__PURE__*/React__default.createElement(PopoverTrigger, {
17882
17888
  __self: this,
17883
17889
  __source: {
17884
17890
  fileName: _jsxFileName$q,
17885
- lineNumber: 86,
17891
+ lineNumber: 96,
17886
17892
  columnNumber: 9
17887
17893
  }
17888
17894
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -17890,7 +17896,7 @@ function InputTimePicker({
17890
17896
  __self: this,
17891
17897
  __source: {
17892
17898
  fileName: _jsxFileName$q,
17893
- lineNumber: 87,
17899
+ lineNumber: 97,
17894
17900
  columnNumber: 11
17895
17901
  }
17896
17902
  }, renderInputGroup())), /*#__PURE__*/React__default.createElement(PopoverContent, {
@@ -17898,7 +17904,7 @@ function InputTimePicker({
17898
17904
  __self: this,
17899
17905
  __source: {
17900
17906
  fileName: _jsxFileName$q,
17901
- lineNumber: 90,
17907
+ lineNumber: 100,
17902
17908
  columnNumber: 7
17903
17909
  }
17904
17910
  }, renderTimePicker({
@@ -17989,7 +17995,11 @@ InputTimePicker.propTypes = {
17989
17995
  /**
17990
17996
  Additional TimePicker styles.
17991
17997
  */
17992
- contentCss: PropTypes.object
17998
+ contentCss: PropTypes.object,
17999
+ /**
18000
+ Input open change callback.
18001
+ */
18002
+ onInputOpenChange: PropTypes.func
17993
18003
  };
17994
18004
  InputTimePicker.displayName = 'InputTimePicker';
17995
18005
 
@@ -19687,22 +19697,22 @@ function advancePickerDate(type, date) {
19687
19697
  case NEXT_WEEK:
19688
19698
  {
19689
19699
  const currentDate = moment(date === null || date === void 0 ? void 0 : date[1]).add(1, 'day');
19690
- const startThisWeek = currentDate.startOf('week').toDate();
19691
- const endThisWeek = currentDate.endOf('week').toDate();
19700
+ const startThisWeek = currentDate.startOf('isoWeek').toDate();
19701
+ const endThisWeek = currentDate.endOf('isoWeek').toDate();
19692
19702
  return [startThisWeek, endThisWeek];
19693
19703
  }
19694
19704
  case RANGE_WEEK:
19695
19705
  {
19696
19706
  const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]);
19697
- const startThisWeek = currentDate.startOf('week').toDate();
19698
- const endThisWeek = currentDate.endOf('week').toDate();
19707
+ const startThisWeek = currentDate.startOf('isoWeek').toDate();
19708
+ const endThisWeek = currentDate.endOf('isoWeek').toDate();
19699
19709
  return [startThisWeek, endThisWeek];
19700
19710
  }
19701
19711
  case PREV_WEEK:
19702
19712
  {
19703
19713
  const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]).subtract(1, 'day');
19704
- const startThisWeek = currentDate.startOf('week').toDate();
19705
- const endThisWeek = currentDate.endOf('week').toDate();
19714
+ const startThisWeek = currentDate.startOf('isoWeek').toDate();
19715
+ const endThisWeek = currentDate.endOf('isoWeek').toDate();
19706
19716
  return [startThisWeek, endThisWeek];
19707
19717
  }
19708
19718
  case RANGE_MONTH:
@@ -20526,7 +20536,7 @@ function InputSignature({
20526
20536
  }, void 0);
20527
20537
  }
20528
20538
 
20529
- const _excluded$9 = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20539
+ const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
20530
20540
  var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
20531
20541
  const StyledSlider = styled$1(SliderPrimitive.Root, {
20532
20542
  position: 'relative',
@@ -20786,7 +20796,7 @@ function Slider(_ref) {
20786
20796
  width,
20787
20797
  height
20788
20798
  } = _ref,
20789
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
20799
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
20790
20800
  return /*#__PURE__*/React__default.createElement(StyledSlider, _extends({
20791
20801
  className: className,
20792
20802
  defaultValue: defaultValue,
@@ -20870,7 +20880,7 @@ Slider.defaultProps = {
20870
20880
  size: 'm'
20871
20881
  };
20872
20882
 
20873
- const _excluded$8 = ["className", "children", "onClick", "type", "size"];
20883
+ const _excluded$9 = ["className", "children", "onClick", "type", "size"];
20874
20884
  var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
20875
20885
  const TagWrapper$1 = styled('div', {
20876
20886
  boxSizing: 'border-box',
@@ -20971,7 +20981,7 @@ const TagStatus = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
20971
20981
  type,
20972
20982
  size
20973
20983
  } = _ref,
20974
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
20984
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
20975
20985
  return /*#__PURE__*/React__default.createElement(TagWrapper$1, _extends({
20976
20986
  ref: ref,
20977
20987
  className: className,
@@ -21031,7 +21041,7 @@ function addPropsToChildren(children, props) {
21031
21041
  }, props)));
21032
21042
  }
21033
21043
 
21034
- const _excluded$7 = ["children"],
21044
+ const _excluded$8 = ["children"],
21035
21045
  _excluded2$1 = ["children", "activeTabs"],
21036
21046
  _excluded3$1 = ["children", "icon", "activeTabs", "value"],
21037
21047
  _excluded4 = ["activeTabs"];
@@ -21179,7 +21189,7 @@ const Tabs$1 = _ref => {
21179
21189
  let {
21180
21190
  children
21181
21191
  } = _ref,
21182
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21192
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
21183
21193
  const [activeTabs, setActiveTabs] = useState(props.defaultValue || '');
21184
21194
  return /*#__PURE__*/React__default.createElement(StyledTabs, _extends({}, props, {
21185
21195
  onValueChange: value => {
@@ -21373,7 +21383,7 @@ TabsContent$1.propTypes = {
21373
21383
  value: PropTypes.string
21374
21384
  };
21375
21385
 
21376
- const _excluded$6 = ["children", "variantIcon"];
21386
+ const _excluded$7 = ["children", "variantIcon"];
21377
21387
  var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
21378
21388
  const NotificationBadgeRootStyle = styled('span', {
21379
21389
  position: 'relative',
@@ -21476,7 +21486,7 @@ const NotificationBadge = _ref => {
21476
21486
  children,
21477
21487
  variantIcon
21478
21488
  } = _ref,
21479
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21489
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
21480
21490
  const getIcon = () => {
21481
21491
  const isLeading = variantIcon === 'leading';
21482
21492
  return {
@@ -21528,7 +21538,7 @@ NotificationBadge.propTypes = {
21528
21538
  dot: PropTypes.bool
21529
21539
  };
21530
21540
 
21531
- const _excluded$5 = ["className", "children", "radius", "padding", "width", "height"];
21541
+ const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
21532
21542
  var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
21533
21543
  const PaperComponent = styled('div', {
21534
21544
  padding: '20px',
@@ -21574,7 +21584,7 @@ const Paper = _ref => {
21574
21584
  width,
21575
21585
  height
21576
21586
  } = _ref,
21577
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
21587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
21578
21588
  return /*#__PURE__*/React__default.createElement(PaperComponent, _extends({
21579
21589
  className: className,
21580
21590
  css: Object.assign({
@@ -21781,7 +21791,7 @@ const removeUndefinedFields = obj => {
21781
21791
  return newObj;
21782
21792
  };
21783
21793
 
21784
- const _excluded$4 = ["isActive", "onClick"];
21794
+ const _excluded$5 = ["isActive", "onClick"];
21785
21795
  var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
21786
21796
  const PrevNextButton = styled(Text$1, {
21787
21797
  padding: '$spacing-01',
@@ -21868,7 +21878,7 @@ const PageButton = _ref => {
21868
21878
  isActive,
21869
21879
  onClick
21870
21880
  } = _ref,
21871
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
21881
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
21872
21882
  return /*#__PURE__*/React__default.createElement(Button$4, _extends({
21873
21883
  type: "button",
21874
21884
  onClick: onClick,
@@ -22269,7 +22279,7 @@ const PaginationButton = ({
22269
22279
  }, t('btnSubmitText', 'Lanjutkan'))))));
22270
22280
  };
22271
22281
 
22272
- const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22282
+ const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
22273
22283
  var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
22274
22284
  const LimitContainer = styled(Flex$1, {
22275
22285
  cursor: 'pointer'
@@ -22295,7 +22305,7 @@ function PaginationInfo(_ref) {
22295
22305
  totalData,
22296
22306
  onChange
22297
22307
  } = _ref;
22298
- _objectWithoutPropertiesLoose(_ref, _excluded$3);
22308
+ _objectWithoutPropertiesLoose(_ref, _excluded$4);
22299
22309
  const {
22300
22310
  t
22301
22311
  } = useTranslation('MajooUI/pagination');
@@ -22502,7 +22512,7 @@ function PaginationInfo(_ref) {
22502
22512
  }, limit.toString()))))));
22503
22513
  }
22504
22514
 
22505
- const _excluded$2 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22515
+ const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
22506
22516
  var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
22507
22517
  function Pagination(_ref) {
22508
22518
  let {
@@ -22517,7 +22527,7 @@ function Pagination(_ref) {
22517
22527
  hidePagination,
22518
22528
  hideInputPageSection
22519
22529
  } = _ref,
22520
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
22530
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
22521
22531
  const totalPages = totalPage || Math.ceil(totalData / limit);
22522
22532
  const isMobile = useMediaQuery('(max-width: 700px)');
22523
22533
  return /*#__PURE__*/React__default.createElement(Flex$1, _extends({
@@ -25389,7 +25399,7 @@ PageDialog.defaultProps = {
25389
25399
  layer: '$modal'
25390
25400
  };
25391
25401
 
25392
- const _excluded$1 = ["children"];
25402
+ const _excluded$2 = ["children"];
25393
25403
  var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
25394
25404
  const overlayShow = keyframes({
25395
25405
  '0%': {
@@ -25462,7 +25472,7 @@ const Content$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
25462
25472
  let {
25463
25473
  children
25464
25474
  } = _ref,
25465
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
25475
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
25466
25476
  return /*#__PURE__*/React__default.createElement(ADialog.Portal, {
25467
25477
  __self: undefined,
25468
25478
  __source: {
@@ -26022,7 +26032,7 @@ const AlertDialogDescription = StyledDescription$1;
26022
26032
  const AlertDialogCancel = ADialog.Cancel;
26023
26033
  const AlertDialogConfirm = ADialog.Action;
26024
26034
 
26025
- const _excluded = ["side", "align", "children"],
26035
+ const _excluded$1 = ["side", "align", "children"],
26026
26036
  _excluded2 = ["children"],
26027
26037
  _excluded3 = ["asChild"];
26028
26038
  var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
@@ -26165,7 +26175,7 @@ const DropdownMenuContext = _ref => {
26165
26175
  align,
26166
26176
  children
26167
26177
  } = _ref,
26168
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
26178
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
26169
26179
  return /*#__PURE__*/React__default.createElement(DropdownMenuPrimitive.Root, _extends({}, props, {
26170
26180
  __self: undefined,
26171
26181
  __source: {
@@ -28136,6 +28146,7 @@ function imgPreview(image, crop, scale = 1, rotate = 0, ratio, type) {
28136
28146
  });
28137
28147
  }
28138
28148
 
28149
+ const _excluded = ["customPreviewIcon"];
28139
28150
  var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
28140
28151
  const Input$2 = styled('input', {
28141
28152
  display: 'none !important'
@@ -28210,7 +28221,11 @@ const EyeIcon = styled(EyeOutline, {
28210
28221
  height: 32,
28211
28222
  padding: '$spacing-02'
28212
28223
  });
28213
- const IconStateFull = props => {
28224
+ const IconStateFull = _ref => {
28225
+ let {
28226
+ customPreviewIcon
28227
+ } = _ref,
28228
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
28214
28229
  const [isHover, setIsHover] = useState(false);
28215
28230
  function handleEnter() {
28216
28231
  setIsHover(true);
@@ -28228,6 +28243,25 @@ const IconStateFull = props => {
28228
28243
  lineNumber: 119,
28229
28244
  columnNumber: 5
28230
28245
  }
28246
+ })) : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
28247
+ __self: undefined,
28248
+ __source: {
28249
+ fileName: _jsxFileName$9,
28250
+ lineNumber: 126,
28251
+ columnNumber: 5
28252
+ }
28253
+ }, !!customPreviewIcon ? /*#__PURE__*/React__default.cloneElement(customPreviewIcon, Object.assign({}, customPreviewIcon.props, props, {
28254
+ color: isHover ? '#04C99E' : customPreviewIcon.props.color,
28255
+ onMouseEnter: handleEnter,
28256
+ onMouseLeave: handleLeave,
28257
+ style: Object.assign({
28258
+ cursor: 'pointer',
28259
+ background: 'rgba(39, 42, 42, 0.6)',
28260
+ borderRadius: 50,
28261
+ padding: '4px',
28262
+ width: 32,
28263
+ height: 32
28264
+ }, customPreviewIcon.props.style)
28231
28265
  })) : /*#__PURE__*/React__default.createElement(EyeIcon, _extends({}, props, {
28232
28266
  color: isHover ? '#04C99E' : '#A5ABAB',
28233
28267
  onMouseEnter: handleEnter,
@@ -28235,10 +28269,10 @@ const IconStateFull = props => {
28235
28269
  __self: undefined,
28236
28270
  __source: {
28237
28271
  fileName: _jsxFileName$9,
28238
- lineNumber: 126,
28239
- columnNumber: 5
28272
+ lineNumber: 145,
28273
+ columnNumber: 9
28240
28274
  }
28241
- }));
28275
+ })));
28242
28276
  };
28243
28277
  const Upload = ({
28244
28278
  placeholder,
@@ -28277,7 +28311,9 @@ const Upload = ({
28277
28311
  hiddenToggleAspect,
28278
28312
  hiddenPreview,
28279
28313
  fullAspectCrop,
28280
- isDefaultCustomRatio
28314
+ isDefaultCustomRatio,
28315
+ customPreviewIcon,
28316
+ onPreviewIconClick
28281
28317
  }) => {
28282
28318
  const {
28283
28319
  t
@@ -28435,7 +28471,7 @@ const Upload = ({
28435
28471
  let newFile = files[i];
28436
28472
  newFile.uid = new Date().getTime();
28437
28473
  newFile.url = URL.createObjectURL(newFile);
28438
- if (action) {
28474
+ if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
28439
28475
  upload({
28440
28476
  url: action,
28441
28477
  file: newFile,
@@ -28453,10 +28489,16 @@ const Upload = ({
28453
28489
  let uid = fileProgress.uid;
28454
28490
  fileProgress.status = 'uploading';
28455
28491
  fileProgress.percent = percent;
28492
+ fileProgress.name = newFile.name;
28493
+ fileProgress.type = newFile.type;
28494
+ fileProgress.size = newFile.size;
28456
28495
  let arrProgress = [...arrFile];
28457
28496
  for (let i = 0; i < arrProgress.length; i++) {
28458
28497
  if (arrProgress[i].uid === uid) {
28459
28498
  arrProgress[i] = fileProgress;
28499
+ arrProgress[i].name = newFile.name;
28500
+ arrProgress[i].type = newFile.type;
28501
+ arrProgress[i].size = newFile.size;
28460
28502
  }
28461
28503
  }
28462
28504
  onChange == null ? void 0 : (_onChange = onChange({
@@ -28472,9 +28514,15 @@ const Upload = ({
28472
28514
  let uid = fileSuccess.uid;
28473
28515
  fileSuccess.url = result;
28474
28516
  fileSuccess.status = 'done';
28475
- for (let i = 0; i < arrFile.length; i++) {
28476
- if (arrFile[i].uid === uid) {
28477
- arrFile[i] = fileSuccess;
28517
+ fileSuccess.name = newFile.name;
28518
+ fileSuccess.type = newFile.type;
28519
+ fileSuccess.size = newFile.size;
28520
+ for (let j = 0; j < arrFile.length; j++) {
28521
+ if (arrFile[j].uid === uid) {
28522
+ arrFile[j] = fileSuccess;
28523
+ arrFile[j].name = newFile.name;
28524
+ arrFile[j].type = newFile.type;
28525
+ arrFile[j].size = newFile.size;
28478
28526
  }
28479
28527
  }
28480
28528
  onChange == null ? void 0 : (_onChange2 = onChange({
@@ -28489,9 +28537,15 @@ const Upload = ({
28489
28537
  let uid = fileError.uid;
28490
28538
  fileError.status = 'error';
28491
28539
  fileError.error = error;
28540
+ fileError.name = newFile.name;
28541
+ fileError.type = newFile.type;
28542
+ fileError.size = newFile.size;
28492
28543
  for (let i = 0; i < arrFile.length; i++) {
28493
28544
  if (arrFile[i].uid === uid) {
28494
28545
  arrFile[i] = fileError;
28546
+ arrFile[i].name = newFile.name;
28547
+ arrFile[i].type = newFile.type;
28548
+ arrFile[i].size = newFile.size;
28495
28549
  }
28496
28550
  }
28497
28551
  onChange == null ? void 0 : (_onChange3 = onChange({
@@ -28707,7 +28761,7 @@ const Upload = ({
28707
28761
  __self: this,
28708
28762
  __source: {
28709
28763
  fileName: _jsxFileName$9,
28710
- lineNumber: 615,
28764
+ lineNumber: 664,
28711
28765
  columnNumber: 7
28712
28766
  }
28713
28767
  }, /*#__PURE__*/React__default.createElement(ButtonText, {
@@ -28717,7 +28771,7 @@ const Upload = ({
28717
28771
  __self: this,
28718
28772
  __source: {
28719
28773
  fileName: _jsxFileName$9,
28720
- lineNumber: 616,
28774
+ lineNumber: 665,
28721
28775
  columnNumber: 9
28722
28776
  }
28723
28777
  }, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
@@ -28732,7 +28786,7 @@ const Upload = ({
28732
28786
  __self: undefined,
28733
28787
  __source: {
28734
28788
  fileName: _jsxFileName$9,
28735
- lineNumber: 626,
28789
+ lineNumber: 675,
28736
28790
  columnNumber: 16
28737
28791
  }
28738
28792
  });
@@ -28743,7 +28797,7 @@ const Upload = ({
28743
28797
  __self: undefined,
28744
28798
  __source: {
28745
28799
  fileName: _jsxFileName$9,
28746
- lineNumber: 629,
28800
+ lineNumber: 678,
28747
28801
  columnNumber: 9
28748
28802
  }
28749
28803
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -28753,7 +28807,7 @@ const Upload = ({
28753
28807
  __self: undefined,
28754
28808
  __source: {
28755
28809
  fileName: _jsxFileName$9,
28756
- lineNumber: 630,
28810
+ lineNumber: 679,
28757
28811
  columnNumber: 11
28758
28812
  }
28759
28813
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28762,7 +28816,7 @@ const Upload = ({
28762
28816
  __self: undefined,
28763
28817
  __source: {
28764
28818
  fileName: _jsxFileName$9,
28765
- lineNumber: 631,
28819
+ lineNumber: 680,
28766
28820
  columnNumber: 27
28767
28821
  }
28768
28822
  }), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
@@ -28775,16 +28829,23 @@ const Upload = ({
28775
28829
  __self: undefined,
28776
28830
  __source: {
28777
28831
  fileName: _jsxFileName$9,
28778
- lineNumber: 633,
28832
+ lineNumber: 682,
28779
28833
  columnNumber: 15
28780
28834
  }
28781
28835
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
28782
28836
  type: "eye",
28783
- onClick: () => handlePreview(item),
28837
+ onClick: () => {
28838
+ if (onPreviewIconClick) {
28839
+ onPreviewIconClick(item);
28840
+ } else {
28841
+ handlePreview(item);
28842
+ }
28843
+ },
28844
+ customPreviewIcon: customPreviewIcon,
28784
28845
  __self: undefined,
28785
28846
  __source: {
28786
28847
  fileName: _jsxFileName$9,
28787
- lineNumber: 641,
28848
+ lineNumber: 690,
28788
28849
  columnNumber: 17
28789
28850
  }
28790
28851
  })), /*#__PURE__*/React__default.createElement(Image, {
@@ -28794,7 +28855,7 @@ const Upload = ({
28794
28855
  __self: undefined,
28795
28856
  __source: {
28796
28857
  fileName: _jsxFileName$9,
28797
- lineNumber: 644,
28858
+ lineNumber: 703,
28798
28859
  columnNumber: 13
28799
28860
  }
28800
28861
  })), !disabled && renderButtonReplace(index));
@@ -28811,7 +28872,7 @@ const Upload = ({
28811
28872
  __self: undefined,
28812
28873
  __source: {
28813
28874
  fileName: _jsxFileName$9,
28814
- lineNumber: 655,
28875
+ lineNumber: 714,
28815
28876
  columnNumber: 16
28816
28877
  }
28817
28878
  });
@@ -28821,7 +28882,7 @@ const Upload = ({
28821
28882
  __self: undefined,
28822
28883
  __source: {
28823
28884
  fileName: _jsxFileName$9,
28824
- lineNumber: 658,
28885
+ lineNumber: 717,
28825
28886
  columnNumber: 9
28826
28887
  }
28827
28888
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -28831,7 +28892,7 @@ const Upload = ({
28831
28892
  __self: undefined,
28832
28893
  __source: {
28833
28894
  fileName: _jsxFileName$9,
28834
- lineNumber: 659,
28895
+ lineNumber: 718,
28835
28896
  columnNumber: 11
28836
28897
  }
28837
28898
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28840,7 +28901,7 @@ const Upload = ({
28840
28901
  __self: undefined,
28841
28902
  __source: {
28842
28903
  fileName: _jsxFileName$9,
28843
- lineNumber: 660,
28904
+ lineNumber: 719,
28844
28905
  columnNumber: 27
28845
28906
  }
28846
28907
  }), /*#__PURE__*/React__default.createElement(Box, {
@@ -28853,7 +28914,7 @@ const Upload = ({
28853
28914
  __self: undefined,
28854
28915
  __source: {
28855
28916
  fileName: _jsxFileName$9,
28856
- lineNumber: 661,
28917
+ lineNumber: 720,
28857
28918
  columnNumber: 13
28858
28919
  }
28859
28920
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28863,14 +28924,14 @@ const Upload = ({
28863
28924
  __self: undefined,
28864
28925
  __source: {
28865
28926
  fileName: _jsxFileName$9,
28866
- lineNumber: 669,
28927
+ lineNumber: 728,
28867
28928
  columnNumber: 15
28868
28929
  }
28869
28930
  }, /*#__PURE__*/React__default.createElement(FileExtension, {
28870
28931
  __self: undefined,
28871
28932
  __source: {
28872
28933
  fileName: _jsxFileName$9,
28873
- lineNumber: 670,
28934
+ lineNumber: 729,
28874
28935
  columnNumber: 17
28875
28936
  }
28876
28937
  }, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
@@ -28878,7 +28939,7 @@ const Upload = ({
28878
28939
  __self: undefined,
28879
28940
  __source: {
28880
28941
  fileName: _jsxFileName$9,
28881
- lineNumber: 671,
28942
+ lineNumber: 730,
28882
28943
  columnNumber: 17
28883
28944
  }
28884
28945
  }, /*#__PURE__*/React__default.createElement(Text, {
@@ -28893,7 +28954,7 @@ const Upload = ({
28893
28954
  __self: undefined,
28894
28955
  __source: {
28895
28956
  fileName: _jsxFileName$9,
28896
- lineNumber: 672,
28957
+ lineNumber: 731,
28897
28958
  columnNumber: 19
28898
28959
  }
28899
28960
  }, item.name)))), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
@@ -28906,16 +28967,23 @@ const Upload = ({
28906
28967
  __self: undefined,
28907
28968
  __source: {
28908
28969
  fileName: _jsxFileName$9,
28909
- lineNumber: 688,
28970
+ lineNumber: 747,
28910
28971
  columnNumber: 15
28911
28972
  }
28912
28973
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
28913
28974
  type: "eye",
28914
- onClick: () => handleOpenFile(item),
28975
+ onClick: () => {
28976
+ if (onPreviewIconClick) {
28977
+ onPreviewIconClick(item);
28978
+ } else {
28979
+ handleOpenFile(item);
28980
+ }
28981
+ },
28982
+ customPreviewIcon: customPreviewIcon,
28915
28983
  __self: undefined,
28916
28984
  __source: {
28917
28985
  fileName: _jsxFileName$9,
28918
- lineNumber: 696,
28986
+ lineNumber: 755,
28919
28987
  columnNumber: 17
28920
28988
  }
28921
28989
  })), /*#__PURE__*/React__default.createElement(Blank, {
@@ -28923,7 +28991,7 @@ const Upload = ({
28923
28991
  __self: undefined,
28924
28992
  __source: {
28925
28993
  fileName: _jsxFileName$9,
28926
- lineNumber: 699,
28994
+ lineNumber: 768,
28927
28995
  columnNumber: 13
28928
28996
  }
28929
28997
  })), !disabled && renderButtonReplace(index));
@@ -28938,7 +29006,7 @@ const Upload = ({
28938
29006
  __self: this,
28939
29007
  __source: {
28940
29008
  fileName: _jsxFileName$9,
28941
- lineNumber: 710,
29009
+ lineNumber: 779,
28942
29010
  columnNumber: 7
28943
29011
  }
28944
29012
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28952,7 +29020,7 @@ const Upload = ({
28952
29020
  __self: this,
28953
29021
  __source: {
28954
29022
  fileName: _jsxFileName$9,
28955
- lineNumber: 711,
29023
+ lineNumber: 780,
28956
29024
  columnNumber: 9
28957
29025
  }
28958
29026
  }, /*#__PURE__*/React__default.createElement(LoadingBar, {
@@ -28978,7 +29046,7 @@ const Upload = ({
28978
29046
  __self: this,
28979
29047
  __source: {
28980
29048
  fileName: _jsxFileName$9,
28981
- lineNumber: 712,
29049
+ lineNumber: 781,
28982
29050
  columnNumber: 11
28983
29051
  }
28984
29052
  }), /*#__PURE__*/React__default.createElement(Text, {
@@ -28986,14 +29054,14 @@ const Upload = ({
28986
29054
  __self: this,
28987
29055
  __source: {
28988
29056
  fileName: _jsxFileName$9,
28989
- lineNumber: 725,
29057
+ lineNumber: 794,
28990
29058
  columnNumber: 11
28991
29059
  }
28992
29060
  }, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
28993
29061
  __self: this,
28994
29062
  __source: {
28995
29063
  fileName: _jsxFileName$9,
28996
- lineNumber: 726,
29064
+ lineNumber: 795,
28997
29065
  columnNumber: 11
28998
29066
  }
28999
29067
  }, t('uploadingLabel', 'Berkas sedang diunggah'))));
@@ -29005,7 +29073,7 @@ const Upload = ({
29005
29073
  __self: this,
29006
29074
  __source: {
29007
29075
  fileName: _jsxFileName$9,
29008
- lineNumber: 734,
29076
+ lineNumber: 803,
29009
29077
  columnNumber: 7
29010
29078
  }
29011
29079
  }, /*#__PURE__*/React__default.createElement(ContainerUpload, {
@@ -29021,7 +29089,7 @@ const Upload = ({
29021
29089
  __self: this,
29022
29090
  __source: {
29023
29091
  fileName: _jsxFileName$9,
29024
- lineNumber: 735,
29092
+ lineNumber: 804,
29025
29093
  columnNumber: 9
29026
29094
  }
29027
29095
  }, /*#__PURE__*/React__default.createElement(Input$2, {
@@ -29033,21 +29101,21 @@ const Upload = ({
29033
29101
  __self: this,
29034
29102
  __source: {
29035
29103
  fileName: _jsxFileName$9,
29036
- lineNumber: 746,
29104
+ lineNumber: 815,
29037
29105
  columnNumber: 11
29038
29106
  }
29039
29107
  }), /*#__PURE__*/React__default.createElement(Children, {
29040
29108
  __self: this,
29041
29109
  __source: {
29042
29110
  fileName: _jsxFileName$9,
29043
- lineNumber: 747,
29111
+ lineNumber: 816,
29044
29112
  columnNumber: 11
29045
29113
  }
29046
29114
  }, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
29047
29115
  __self: this,
29048
29116
  __source: {
29049
29117
  fileName: _jsxFileName$9,
29050
- lineNumber: 749,
29118
+ lineNumber: 818,
29051
29119
  columnNumber: 15
29052
29120
  }
29053
29121
  }, /*#__PURE__*/React__default.createElement(IconCard, {
@@ -29056,7 +29124,7 @@ const Upload = ({
29056
29124
  __self: this,
29057
29125
  __source: {
29058
29126
  fileName: _jsxFileName$9,
29059
- lineNumber: 750,
29127
+ lineNumber: 819,
29060
29128
  columnNumber: 17
29061
29129
  }
29062
29130
  }, /*#__PURE__*/React__default.createElement(UploadOutline, {
@@ -29064,7 +29132,7 @@ const Upload = ({
29064
29132
  __self: this,
29065
29133
  __source: {
29066
29134
  fileName: _jsxFileName$9,
29067
- lineNumber: 751,
29135
+ lineNumber: 820,
29068
29136
  columnNumber: 19
29069
29137
  }
29070
29138
  })), /*#__PURE__*/React__default.createElement(Text, {
@@ -29074,7 +29142,7 @@ const Upload = ({
29074
29142
  __self: this,
29075
29143
  __source: {
29076
29144
  fileName: _jsxFileName$9,
29077
- lineNumber: 753,
29145
+ lineNumber: 822,
29078
29146
  columnNumber: 17
29079
29147
  }
29080
29148
  }, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
@@ -29084,7 +29152,7 @@ const Upload = ({
29084
29152
  __self: this,
29085
29153
  __source: {
29086
29154
  fileName: _jsxFileName$9,
29087
- lineNumber: 760,
29155
+ lineNumber: 829,
29088
29156
  columnNumber: 19
29089
29157
  }
29090
29158
  }, error));
@@ -29096,7 +29164,7 @@ const Upload = ({
29096
29164
  __self: this,
29097
29165
  __source: {
29098
29166
  fileName: _jsxFileName$9,
29099
- lineNumber: 767,
29167
+ lineNumber: 836,
29100
29168
  columnNumber: 7
29101
29169
  }
29102
29170
  }, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
@@ -29104,7 +29172,7 @@ const Upload = ({
29104
29172
  __self: this,
29105
29173
  __source: {
29106
29174
  fileName: _jsxFileName$9,
29107
- lineNumber: 768,
29175
+ lineNumber: 837,
29108
29176
  columnNumber: 9
29109
29177
  }
29110
29178
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -29112,7 +29180,7 @@ const Upload = ({
29112
29180
  __self: this,
29113
29181
  __source: {
29114
29182
  fileName: _jsxFileName$9,
29115
- lineNumber: 769,
29183
+ lineNumber: 838,
29116
29184
  columnNumber: 11
29117
29185
  }
29118
29186
  })), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
@@ -29125,7 +29193,7 @@ const Upload = ({
29125
29193
  __self: this,
29126
29194
  __source: {
29127
29195
  fileName: _jsxFileName$9,
29128
- lineNumber: 771,
29196
+ lineNumber: 840,
29129
29197
  columnNumber: 9
29130
29198
  }
29131
29199
  }, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
@@ -29138,7 +29206,7 @@ const Upload = ({
29138
29206
  __self: this,
29139
29207
  __source: {
29140
29208
  fileName: _jsxFileName$9,
29141
- lineNumber: 774,
29209
+ lineNumber: 843,
29142
29210
  columnNumber: 9
29143
29211
  }
29144
29212
  }, /*#__PURE__*/React__default.createElement(ReactCrop, {
@@ -29149,7 +29217,7 @@ const Upload = ({
29149
29217
  __self: this,
29150
29218
  __source: {
29151
29219
  fileName: _jsxFileName$9,
29152
- lineNumber: 775,
29220
+ lineNumber: 851,
29153
29221
  columnNumber: 11
29154
29222
  }
29155
29223
  }, /*#__PURE__*/React__default.createElement(Image, {
@@ -29163,14 +29231,14 @@ const Upload = ({
29163
29231
  __self: this,
29164
29232
  __source: {
29165
29233
  fileName: _jsxFileName$9,
29166
- lineNumber: 776,
29234
+ lineNumber: 852,
29167
29235
  columnNumber: 13
29168
29236
  }
29169
29237
  }))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
29170
29238
  __self: this,
29171
29239
  __source: {
29172
29240
  fileName: _jsxFileName$9,
29173
- lineNumber: 787,
29241
+ lineNumber: 863,
29174
29242
  columnNumber: 9
29175
29243
  }
29176
29244
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -29182,14 +29250,14 @@ const Upload = ({
29182
29250
  __self: this,
29183
29251
  __source: {
29184
29252
  fileName: _jsxFileName$9,
29185
- lineNumber: 788,
29253
+ lineNumber: 864,
29186
29254
  columnNumber: 11
29187
29255
  }
29188
29256
  }, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
29189
29257
  __self: this,
29190
29258
  __source: {
29191
29259
  fileName: _jsxFileName$9,
29192
- lineNumber: 790,
29260
+ lineNumber: 866,
29193
29261
  columnNumber: 15
29194
29262
  }
29195
29263
  }) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
@@ -29197,7 +29265,7 @@ const Upload = ({
29197
29265
  __self: this,
29198
29266
  __source: {
29199
29267
  fileName: _jsxFileName$9,
29200
- lineNumber: 792,
29268
+ lineNumber: 868,
29201
29269
  columnNumber: 15
29202
29270
  }
29203
29271
  }, /*#__PURE__*/React__default.createElement(ImageOutline, {
@@ -29209,7 +29277,7 @@ const Upload = ({
29209
29277
  __self: this,
29210
29278
  __source: {
29211
29279
  fileName: _jsxFileName$9,
29212
- lineNumber: 793,
29280
+ lineNumber: 869,
29213
29281
  columnNumber: 17
29214
29282
  }
29215
29283
  })), /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -29217,7 +29285,7 @@ const Upload = ({
29217
29285
  __self: this,
29218
29286
  __source: {
29219
29287
  fileName: _jsxFileName$9,
29220
- lineNumber: 800,
29288
+ lineNumber: 876,
29221
29289
  columnNumber: 13
29222
29290
  }
29223
29291
  }, /*#__PURE__*/React__default.createElement(Button$4, {
@@ -29226,7 +29294,7 @@ const Upload = ({
29226
29294
  __self: this,
29227
29295
  __source: {
29228
29296
  fileName: _jsxFileName$9,
29229
- lineNumber: 801,
29297
+ lineNumber: 877,
29230
29298
  columnNumber: 15
29231
29299
  }
29232
29300
  }, t('label.cancel', 'Batal', {
@@ -29236,7 +29304,7 @@ const Upload = ({
29236
29304
  __self: this,
29237
29305
  __source: {
29238
29306
  fileName: _jsxFileName$9,
29239
- lineNumber: 804,
29307
+ lineNumber: 880,
29240
29308
  columnNumber: 15
29241
29309
  }
29242
29310
  }, t('save', 'Simpan', {
@@ -29253,7 +29321,7 @@ const Upload = ({
29253
29321
  __self: undefined,
29254
29322
  __source: {
29255
29323
  fileName: _jsxFileName$9,
29256
- lineNumber: 813,
29324
+ lineNumber: 889,
29257
29325
  columnNumber: 5
29258
29326
  }
29259
29327
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
@@ -29262,7 +29330,7 @@ const Upload = ({
29262
29330
  __self: undefined,
29263
29331
  __source: {
29264
29332
  fileName: _jsxFileName$9,
29265
- lineNumber: 816,
29333
+ lineNumber: 892,
29266
29334
  columnNumber: 32
29267
29335
  }
29268
29336
  }) : renderUpload(), showCropper && renderCropper());