@majoo-ui/react 1.61.0-rc.1 → 1.61.0-rc.11
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.
package/index.esm.js
CHANGED
|
@@ -1618,7 +1618,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1618
1618
|
return target;
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
|
-
const _excluded$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
14106
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
14107
14107
|
const {
|
|
14108
14108
|
t
|
|
14109
14109
|
} = useTranslation(['MajooUI/inputSelectCheck', 'translation']);
|
|
@@ -15453,7 +15453,8 @@ function InputResourceList({
|
|
|
15453
15453
|
defaultSort,
|
|
15454
15454
|
title,
|
|
15455
15455
|
hideSelectAll,
|
|
15456
|
-
customHeader
|
|
15456
|
+
customHeader,
|
|
15457
|
+
checkDisableItems
|
|
15457
15458
|
}) {
|
|
15458
15459
|
const {
|
|
15459
15460
|
t
|
|
@@ -15462,6 +15463,12 @@ function InputResourceList({
|
|
|
15462
15463
|
const [query, setQuery] = useState();
|
|
15463
15464
|
const [sortType, setSortType] = useState('asc');
|
|
15464
15465
|
const [data, setData] = useState([]);
|
|
15466
|
+
const filteredValue = useMemo(() => {
|
|
15467
|
+
const dataValues = data.map(({
|
|
15468
|
+
value
|
|
15469
|
+
}) => value);
|
|
15470
|
+
return (value || []).filter(x => dataValues.includes(x.value));
|
|
15471
|
+
}, [JSON.stringify(value), JSON.stringify(data)]);
|
|
15465
15472
|
const scrollerRef = useRef(null);
|
|
15466
15473
|
useEffect(() => {
|
|
15467
15474
|
function filterUnique(params) {
|
|
@@ -15491,7 +15498,7 @@ function InputResourceList({
|
|
|
15491
15498
|
children: [jsxs(Flex$1, Object.assign({
|
|
15492
15499
|
align: "center"
|
|
15493
15500
|
}, {
|
|
15494
|
-
children: [jsx(InputCheckbox, {
|
|
15501
|
+
children: [jsx(InputCheckbox, Object.assign({
|
|
15495
15502
|
label: jsxs(Flex$1, Object.assign({
|
|
15496
15503
|
gap: 3,
|
|
15497
15504
|
align: "center"
|
|
@@ -15523,7 +15530,9 @@ function InputResourceList({
|
|
|
15523
15530
|
index: index,
|
|
15524
15531
|
value: resource.value,
|
|
15525
15532
|
disabled: isDisabled
|
|
15526
|
-
},
|
|
15533
|
+
}, Object.assign({}, checkDisableItems && isDisabled && {
|
|
15534
|
+
checked: isDisabled
|
|
15535
|
+
})), void 0), (resource === null || resource === void 0 ? void 0 : resource.icon) && jsx(Box, Object.assign({
|
|
15527
15536
|
css: {
|
|
15528
15537
|
marginLeft: '$spacing-03'
|
|
15529
15538
|
}
|
|
@@ -15623,13 +15632,14 @@ function InputResourceList({
|
|
|
15623
15632
|
}), void 0);
|
|
15624
15633
|
}
|
|
15625
15634
|
function toggleCheckAll() {
|
|
15626
|
-
if ((
|
|
15627
|
-
for (let i = 0; i <
|
|
15628
|
-
onItemUncheck === null || onItemUncheck === void 0 ? void 0 : onItemUncheck(
|
|
15635
|
+
if ((filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) && (filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) < (data === null || data === void 0 ? void 0 : data.length) || (filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) === (data === null || data === void 0 ? void 0 : data.length)) {
|
|
15636
|
+
for (let i = 0; i < filteredValue.length; i++) {
|
|
15637
|
+
onItemUncheck === null || onItemUncheck === void 0 ? void 0 : onItemUncheck(filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue[i]);
|
|
15629
15638
|
}
|
|
15630
15639
|
} else {
|
|
15631
15640
|
for (let i = 0; i < (data === null || data === void 0 ? void 0 : data.length); i++) {
|
|
15632
|
-
|
|
15641
|
+
const isEnabled = enabledItems ? enabledItems.find(id => id === (data === null || data === void 0 ? void 0 : data[i].value)) || enabledItems.length === 0 : true;
|
|
15642
|
+
if (isEnabled) onItemCheck === null || onItemCheck === void 0 ? void 0 : onItemCheck(data === null || data === void 0 ? void 0 : data[i]);
|
|
15633
15643
|
}
|
|
15634
15644
|
}
|
|
15635
15645
|
}
|
|
@@ -15657,8 +15667,8 @@ function InputResourceList({
|
|
|
15657
15667
|
}
|
|
15658
15668
|
}, {
|
|
15659
15669
|
children: [!hideSelectAll && jsx(InputCheckbox, {
|
|
15660
|
-
checked: (
|
|
15661
|
-
indeterminate: Boolean((
|
|
15670
|
+
checked: (filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) === (data === null || data === void 0 ? void 0 : data.length) && data.length > 0,
|
|
15671
|
+
indeterminate: Boolean((filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) && (filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) < (data === null || data === void 0 ? void 0 : data.length)),
|
|
15662
15672
|
onCheckedChange: toggleCheckAll,
|
|
15663
15673
|
css: {
|
|
15664
15674
|
marginRight: '$spacing-02'
|
|
@@ -16222,7 +16232,8 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16222
16232
|
disabledDecrement,
|
|
16223
16233
|
prefix,
|
|
16224
16234
|
suffix,
|
|
16225
|
-
size
|
|
16235
|
+
size,
|
|
16236
|
+
disableManualInput
|
|
16226
16237
|
} = props;
|
|
16227
16238
|
const [inputValue, setInputValue] = useState((_a = value !== null && value !== void 0 ? value : min) !== null && _a !== void 0 ? _a : 0);
|
|
16228
16239
|
useEffect(() => {
|
|
@@ -16278,8 +16289,8 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16278
16289
|
}, void 0)
|
|
16279
16290
|
}), void 0), jsx(Input$4, {
|
|
16280
16291
|
ref: ref,
|
|
16281
|
-
disabled: disabled || disabledIncrement || disabledDecrement,
|
|
16282
|
-
disabledChange: disabledIncrement || disabledDecrement,
|
|
16292
|
+
disabled: disabled || disabledIncrement || disabledDecrement || disableManualInput,
|
|
16293
|
+
disabledChange: disabledIncrement || disabledDecrement || disableManualInput,
|
|
16283
16294
|
value: inputValue,
|
|
16284
16295
|
allowNegative: allowNegative,
|
|
16285
16296
|
onChange: handleChange,
|
|
@@ -16308,7 +16319,7 @@ InputCounter.defaultProps = {
|
|
|
16308
16319
|
size: 'lg'
|
|
16309
16320
|
};
|
|
16310
16321
|
|
|
16311
|
-
const _excluded$
|
|
16322
|
+
const _excluded$c = ["children"],
|
|
16312
16323
|
_excluded2$3 = ["children", "showOverlay"];
|
|
16313
16324
|
var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
16314
16325
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
@@ -16350,7 +16361,7 @@ function Drawer(_ref) {
|
|
|
16350
16361
|
let {
|
|
16351
16362
|
children
|
|
16352
16363
|
} = _ref,
|
|
16353
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16364
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
16354
16365
|
return /*#__PURE__*/React__default.createElement(DialogPrimitive.Root, _extends({}, props, {
|
|
16355
16366
|
__self: this,
|
|
16356
16367
|
__source: {
|
|
@@ -16658,7 +16669,7 @@ DrawerBody.displayName = 'DrawerBody';
|
|
|
16658
16669
|
DrawerFooter.displayName = 'DrawerFooter';
|
|
16659
16670
|
DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
16660
16671
|
|
|
16661
|
-
const _excluded$
|
|
16672
|
+
const _excluded$b = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
|
|
16662
16673
|
_excluded2$2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
16663
16674
|
var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
16664
16675
|
const ScrollButton$1 = styled(Button$4, {
|
|
@@ -16864,7 +16875,7 @@ function ButtonGroup$1(_ref) {
|
|
|
16864
16875
|
mobileOnly,
|
|
16865
16876
|
desktopOnly
|
|
16866
16877
|
} = _ref,
|
|
16867
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16878
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
16868
16879
|
const [listContainerScrollPosition, setlistContainerScrollPosition] = useState(0);
|
|
16869
16880
|
const [scrollAreaWidth, setScrollAreaWidth] = useState(0);
|
|
16870
16881
|
const listContainerRef = useRef();
|
|
@@ -19676,22 +19687,22 @@ function advancePickerDate(type, date) {
|
|
|
19676
19687
|
case NEXT_WEEK:
|
|
19677
19688
|
{
|
|
19678
19689
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[1]).add(1, 'day');
|
|
19679
|
-
const startThisWeek = currentDate.startOf('
|
|
19680
|
-
const endThisWeek = currentDate.endOf('
|
|
19690
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19691
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19681
19692
|
return [startThisWeek, endThisWeek];
|
|
19682
19693
|
}
|
|
19683
19694
|
case RANGE_WEEK:
|
|
19684
19695
|
{
|
|
19685
19696
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]);
|
|
19686
|
-
const startThisWeek = currentDate.startOf('
|
|
19687
|
-
const endThisWeek = currentDate.endOf('
|
|
19697
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19698
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19688
19699
|
return [startThisWeek, endThisWeek];
|
|
19689
19700
|
}
|
|
19690
19701
|
case PREV_WEEK:
|
|
19691
19702
|
{
|
|
19692
19703
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]).subtract(1, 'day');
|
|
19693
|
-
const startThisWeek = currentDate.startOf('
|
|
19694
|
-
const endThisWeek = currentDate.endOf('
|
|
19704
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19705
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19695
19706
|
return [startThisWeek, endThisWeek];
|
|
19696
19707
|
}
|
|
19697
19708
|
case RANGE_MONTH:
|
|
@@ -20438,10 +20449,8 @@ const SignatureContainer = styled$1(Flex$1, {
|
|
|
20438
20449
|
},
|
|
20439
20450
|
disabled: {
|
|
20440
20451
|
true: {
|
|
20441
|
-
border: 'none',
|
|
20442
20452
|
cursor: 'not-allowed',
|
|
20443
20453
|
'&:hover': {
|
|
20444
|
-
border: 'none',
|
|
20445
20454
|
background: '$bgGray'
|
|
20446
20455
|
}
|
|
20447
20456
|
}
|
|
@@ -20471,7 +20480,7 @@ function InputSignature({
|
|
|
20471
20480
|
children: [jsx(SignatureContainer, Object.assign({
|
|
20472
20481
|
hasContent: !!signatureImage,
|
|
20473
20482
|
onClick: () => {
|
|
20474
|
-
if (!disabled) {
|
|
20483
|
+
if (!disabled && !signatureImage) {
|
|
20475
20484
|
setOpen(true);
|
|
20476
20485
|
}
|
|
20477
20486
|
},
|
|
@@ -20504,7 +20513,7 @@ function InputSignature({
|
|
|
20504
20513
|
variant: "label",
|
|
20505
20514
|
color: "disable"
|
|
20506
20515
|
}, {
|
|
20507
|
-
children: t('placeholder', 'Tanda tangan
|
|
20516
|
+
children: t('placeholder', 'Tanda tangan di sini')
|
|
20508
20517
|
}), void 0)
|
|
20509
20518
|
}), void 0), jsx(SignatureModal, {
|
|
20510
20519
|
t: t,
|
|
@@ -20512,12 +20521,12 @@ function InputSignature({
|
|
|
20512
20521
|
onOpenChange: setOpen,
|
|
20513
20522
|
onSave: handleSave,
|
|
20514
20523
|
isMobile: isMobile,
|
|
20515
|
-
title: title || t('
|
|
20524
|
+
title: title || signatureImage ? t('editTitle', 'Ubah Tanda Tangan') : t('addTitle', 'Tambah Tanda Tangan')
|
|
20516
20525
|
}, void 0)]
|
|
20517
20526
|
}, void 0);
|
|
20518
20527
|
}
|
|
20519
20528
|
|
|
20520
|
-
const _excluded$
|
|
20529
|
+
const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
20521
20530
|
var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
20522
20531
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
20523
20532
|
position: 'relative',
|
|
@@ -20777,7 +20786,7 @@ function Slider(_ref) {
|
|
|
20777
20786
|
width,
|
|
20778
20787
|
height
|
|
20779
20788
|
} = _ref,
|
|
20780
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20789
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
20781
20790
|
return /*#__PURE__*/React__default.createElement(StyledSlider, _extends({
|
|
20782
20791
|
className: className,
|
|
20783
20792
|
defaultValue: defaultValue,
|
|
@@ -20861,7 +20870,7 @@ Slider.defaultProps = {
|
|
|
20861
20870
|
size: 'm'
|
|
20862
20871
|
};
|
|
20863
20872
|
|
|
20864
|
-
const _excluded$
|
|
20873
|
+
const _excluded$9 = ["className", "children", "onClick", "type", "size"];
|
|
20865
20874
|
var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
20866
20875
|
const TagWrapper$1 = styled('div', {
|
|
20867
20876
|
boxSizing: 'border-box',
|
|
@@ -20962,7 +20971,7 @@ const TagStatus = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
20962
20971
|
type,
|
|
20963
20972
|
size
|
|
20964
20973
|
} = _ref,
|
|
20965
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20974
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
20966
20975
|
return /*#__PURE__*/React__default.createElement(TagWrapper$1, _extends({
|
|
20967
20976
|
ref: ref,
|
|
20968
20977
|
className: className,
|
|
@@ -21022,7 +21031,7 @@ function addPropsToChildren(children, props) {
|
|
|
21022
21031
|
}, props)));
|
|
21023
21032
|
}
|
|
21024
21033
|
|
|
21025
|
-
const _excluded$
|
|
21034
|
+
const _excluded$8 = ["children"],
|
|
21026
21035
|
_excluded2$1 = ["children", "activeTabs"],
|
|
21027
21036
|
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
21028
21037
|
_excluded4 = ["activeTabs"];
|
|
@@ -21170,7 +21179,7 @@ const Tabs$1 = _ref => {
|
|
|
21170
21179
|
let {
|
|
21171
21180
|
children
|
|
21172
21181
|
} = _ref,
|
|
21173
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21182
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
21174
21183
|
const [activeTabs, setActiveTabs] = useState(props.defaultValue || '');
|
|
21175
21184
|
return /*#__PURE__*/React__default.createElement(StyledTabs, _extends({}, props, {
|
|
21176
21185
|
onValueChange: value => {
|
|
@@ -21364,7 +21373,7 @@ TabsContent$1.propTypes = {
|
|
|
21364
21373
|
value: PropTypes.string
|
|
21365
21374
|
};
|
|
21366
21375
|
|
|
21367
|
-
const _excluded$
|
|
21376
|
+
const _excluded$7 = ["children", "variantIcon"];
|
|
21368
21377
|
var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
21369
21378
|
const NotificationBadgeRootStyle = styled('span', {
|
|
21370
21379
|
position: 'relative',
|
|
@@ -21467,7 +21476,7 @@ const NotificationBadge = _ref => {
|
|
|
21467
21476
|
children,
|
|
21468
21477
|
variantIcon
|
|
21469
21478
|
} = _ref,
|
|
21470
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21479
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
21471
21480
|
const getIcon = () => {
|
|
21472
21481
|
const isLeading = variantIcon === 'leading';
|
|
21473
21482
|
return {
|
|
@@ -21519,7 +21528,7 @@ NotificationBadge.propTypes = {
|
|
|
21519
21528
|
dot: PropTypes.bool
|
|
21520
21529
|
};
|
|
21521
21530
|
|
|
21522
|
-
const _excluded$
|
|
21531
|
+
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
21523
21532
|
var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
21524
21533
|
const PaperComponent = styled('div', {
|
|
21525
21534
|
padding: '20px',
|
|
@@ -21565,7 +21574,7 @@ const Paper = _ref => {
|
|
|
21565
21574
|
width,
|
|
21566
21575
|
height
|
|
21567
21576
|
} = _ref,
|
|
21568
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21577
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
21569
21578
|
return /*#__PURE__*/React__default.createElement(PaperComponent, _extends({
|
|
21570
21579
|
className: className,
|
|
21571
21580
|
css: Object.assign({
|
|
@@ -21772,7 +21781,7 @@ const removeUndefinedFields = obj => {
|
|
|
21772
21781
|
return newObj;
|
|
21773
21782
|
};
|
|
21774
21783
|
|
|
21775
|
-
const _excluded$
|
|
21784
|
+
const _excluded$5 = ["isActive", "onClick"];
|
|
21776
21785
|
var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
21777
21786
|
const PrevNextButton = styled(Text$1, {
|
|
21778
21787
|
padding: '$spacing-01',
|
|
@@ -21859,7 +21868,7 @@ const PageButton = _ref => {
|
|
|
21859
21868
|
isActive,
|
|
21860
21869
|
onClick
|
|
21861
21870
|
} = _ref,
|
|
21862
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21871
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
21863
21872
|
return /*#__PURE__*/React__default.createElement(Button$4, _extends({
|
|
21864
21873
|
type: "button",
|
|
21865
21874
|
onClick: onClick,
|
|
@@ -22260,7 +22269,7 @@ const PaginationButton = ({
|
|
|
22260
22269
|
}, t('btnSubmitText', 'Lanjutkan'))))));
|
|
22261
22270
|
};
|
|
22262
22271
|
|
|
22263
|
-
const _excluded$
|
|
22272
|
+
const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
22264
22273
|
var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
22265
22274
|
const LimitContainer = styled(Flex$1, {
|
|
22266
22275
|
cursor: 'pointer'
|
|
@@ -22286,7 +22295,7 @@ function PaginationInfo(_ref) {
|
|
|
22286
22295
|
totalData,
|
|
22287
22296
|
onChange
|
|
22288
22297
|
} = _ref;
|
|
22289
|
-
_objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22298
|
+
_objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
22290
22299
|
const {
|
|
22291
22300
|
t
|
|
22292
22301
|
} = useTranslation('MajooUI/pagination');
|
|
@@ -22493,7 +22502,7 @@ function PaginationInfo(_ref) {
|
|
|
22493
22502
|
}, limit.toString()))))));
|
|
22494
22503
|
}
|
|
22495
22504
|
|
|
22496
|
-
const _excluded$
|
|
22505
|
+
const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
|
|
22497
22506
|
var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
22498
22507
|
function Pagination(_ref) {
|
|
22499
22508
|
let {
|
|
@@ -22508,7 +22517,7 @@ function Pagination(_ref) {
|
|
|
22508
22517
|
hidePagination,
|
|
22509
22518
|
hideInputPageSection
|
|
22510
22519
|
} = _ref,
|
|
22511
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22520
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
22512
22521
|
const totalPages = totalPage || Math.ceil(totalData / limit);
|
|
22513
22522
|
const isMobile = useMediaQuery('(max-width: 700px)');
|
|
22514
22523
|
return /*#__PURE__*/React__default.createElement(Flex$1, _extends({
|
|
@@ -23890,13 +23899,15 @@ function Table({
|
|
|
23890
23899
|
hidePagination = false,
|
|
23891
23900
|
searchQuery,
|
|
23892
23901
|
additionalExceptionIds = [],
|
|
23893
|
-
|
|
23902
|
+
expanded: controlledExpanded = {},
|
|
23903
|
+
onExpandedChange,
|
|
23894
23904
|
id = null,
|
|
23895
23905
|
onColumnChange,
|
|
23896
23906
|
virtualized = true,
|
|
23897
23907
|
withoutLimit = false,
|
|
23898
23908
|
additionalHeader,
|
|
23899
|
-
outerContainerCss
|
|
23909
|
+
outerContainerCss,
|
|
23910
|
+
autoResetExpanded = true
|
|
23900
23911
|
}) {
|
|
23901
23912
|
var _a, _b, _c, _d;
|
|
23902
23913
|
const [openMenu, setOpen] = useState(false);
|
|
@@ -23924,18 +23935,27 @@ function Table({
|
|
|
23924
23935
|
selectedRowIds: selectedIds
|
|
23925
23936
|
});
|
|
23926
23937
|
}
|
|
23938
|
+
if (controlledExpanded) {
|
|
23939
|
+
Object.assign(initialState, {
|
|
23940
|
+
expanded: controlledExpanded
|
|
23941
|
+
});
|
|
23942
|
+
}
|
|
23927
23943
|
return Object.keys(initialState).length > 0 ? initialState : undefined;
|
|
23928
23944
|
};
|
|
23929
23945
|
const instance = useTable({
|
|
23930
23946
|
columns,
|
|
23931
23947
|
data: useMemo(() => formattingData(rawData, rowGroup), [rawData, rowGroup]),
|
|
23932
23948
|
initialState: getInitialState(),
|
|
23949
|
+
state: {
|
|
23950
|
+
expanded: controlledExpanded
|
|
23951
|
+
},
|
|
23933
23952
|
manualPagination: !!fetchData,
|
|
23934
23953
|
manualSortBy: !!fetchData,
|
|
23935
23954
|
defaultCanSort: true,
|
|
23936
23955
|
pageCount: totalPage || Math.ceil(totalData / limit),
|
|
23937
23956
|
autoResetSortBy: false,
|
|
23938
|
-
autoResetExpanded
|
|
23957
|
+
autoResetExpanded,
|
|
23958
|
+
onExpandedChange,
|
|
23939
23959
|
autoResetPage: false,
|
|
23940
23960
|
autoResetSelectedRows: false,
|
|
23941
23961
|
getRowId: showDuplicatedData ? undefined : row => row[keyId] || JSON.stringify(row)
|
|
@@ -24180,8 +24200,8 @@ function Table({
|
|
|
24180
24200
|
firstUpdate.current = false;
|
|
24181
24201
|
return;
|
|
24182
24202
|
}
|
|
24183
|
-
|
|
24184
|
-
}, [expanded,
|
|
24203
|
+
onExpandedChange === null || onExpandedChange === void 0 ? void 0 : onExpandedChange(expanded);
|
|
24204
|
+
}, [expanded, onExpandedChange]);
|
|
24185
24205
|
useEffect(() => {
|
|
24186
24206
|
if (hiddenColumns) setHiddenColumns(hiddenColumns);
|
|
24187
24207
|
}, [hiddenColumns]);
|
|
@@ -25369,7 +25389,7 @@ PageDialog.defaultProps = {
|
|
|
25369
25389
|
layer: '$modal'
|
|
25370
25390
|
};
|
|
25371
25391
|
|
|
25372
|
-
const _excluded$
|
|
25392
|
+
const _excluded$2 = ["children"];
|
|
25373
25393
|
var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
25374
25394
|
const overlayShow = keyframes({
|
|
25375
25395
|
'0%': {
|
|
@@ -25442,7 +25462,7 @@ const Content$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
25442
25462
|
let {
|
|
25443
25463
|
children
|
|
25444
25464
|
} = _ref,
|
|
25445
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25465
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
25446
25466
|
return /*#__PURE__*/React__default.createElement(ADialog.Portal, {
|
|
25447
25467
|
__self: undefined,
|
|
25448
25468
|
__source: {
|
|
@@ -26002,7 +26022,7 @@ const AlertDialogDescription = StyledDescription$1;
|
|
|
26002
26022
|
const AlertDialogCancel = ADialog.Cancel;
|
|
26003
26023
|
const AlertDialogConfirm = ADialog.Action;
|
|
26004
26024
|
|
|
26005
|
-
const _excluded = ["side", "align", "children"],
|
|
26025
|
+
const _excluded$1 = ["side", "align", "children"],
|
|
26006
26026
|
_excluded2 = ["children"],
|
|
26007
26027
|
_excluded3 = ["asChild"];
|
|
26008
26028
|
var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
@@ -26145,7 +26165,7 @@ const DropdownMenuContext = _ref => {
|
|
|
26145
26165
|
align,
|
|
26146
26166
|
children
|
|
26147
26167
|
} = _ref,
|
|
26148
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
26168
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
26149
26169
|
return /*#__PURE__*/React__default.createElement(DropdownMenuPrimitive.Root, _extends({}, props, {
|
|
26150
26170
|
__self: undefined,
|
|
26151
26171
|
__source: {
|
|
@@ -28116,6 +28136,7 @@ function imgPreview(image, crop, scale = 1, rotate = 0, ratio, type) {
|
|
|
28116
28136
|
});
|
|
28117
28137
|
}
|
|
28118
28138
|
|
|
28139
|
+
const _excluded = ["customPreviewIcon"];
|
|
28119
28140
|
var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
28120
28141
|
const Input$2 = styled('input', {
|
|
28121
28142
|
display: 'none !important'
|
|
@@ -28190,7 +28211,11 @@ const EyeIcon = styled(EyeOutline, {
|
|
|
28190
28211
|
height: 32,
|
|
28191
28212
|
padding: '$spacing-02'
|
|
28192
28213
|
});
|
|
28193
|
-
const IconStateFull =
|
|
28214
|
+
const IconStateFull = _ref => {
|
|
28215
|
+
let {
|
|
28216
|
+
customPreviewIcon
|
|
28217
|
+
} = _ref,
|
|
28218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
28194
28219
|
const [isHover, setIsHover] = useState(false);
|
|
28195
28220
|
function handleEnter() {
|
|
28196
28221
|
setIsHover(true);
|
|
@@ -28208,6 +28233,25 @@ const IconStateFull = props => {
|
|
|
28208
28233
|
lineNumber: 119,
|
|
28209
28234
|
columnNumber: 5
|
|
28210
28235
|
}
|
|
28236
|
+
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
28237
|
+
__self: undefined,
|
|
28238
|
+
__source: {
|
|
28239
|
+
fileName: _jsxFileName$9,
|
|
28240
|
+
lineNumber: 126,
|
|
28241
|
+
columnNumber: 5
|
|
28242
|
+
}
|
|
28243
|
+
}, !!customPreviewIcon ? /*#__PURE__*/React__default.cloneElement(customPreviewIcon, Object.assign({}, customPreviewIcon.props, props, {
|
|
28244
|
+
color: isHover ? '#04C99E' : customPreviewIcon.props.color,
|
|
28245
|
+
onMouseEnter: handleEnter,
|
|
28246
|
+
onMouseLeave: handleLeave,
|
|
28247
|
+
style: Object.assign({
|
|
28248
|
+
cursor: 'pointer',
|
|
28249
|
+
background: 'rgba(39, 42, 42, 0.6)',
|
|
28250
|
+
borderRadius: 50,
|
|
28251
|
+
padding: '4px',
|
|
28252
|
+
width: 32,
|
|
28253
|
+
height: 32
|
|
28254
|
+
}, customPreviewIcon.props.style)
|
|
28211
28255
|
})) : /*#__PURE__*/React__default.createElement(EyeIcon, _extends({}, props, {
|
|
28212
28256
|
color: isHover ? '#04C99E' : '#A5ABAB',
|
|
28213
28257
|
onMouseEnter: handleEnter,
|
|
@@ -28215,10 +28259,10 @@ const IconStateFull = props => {
|
|
|
28215
28259
|
__self: undefined,
|
|
28216
28260
|
__source: {
|
|
28217
28261
|
fileName: _jsxFileName$9,
|
|
28218
|
-
lineNumber:
|
|
28219
|
-
columnNumber:
|
|
28262
|
+
lineNumber: 145,
|
|
28263
|
+
columnNumber: 9
|
|
28220
28264
|
}
|
|
28221
|
-
}));
|
|
28265
|
+
})));
|
|
28222
28266
|
};
|
|
28223
28267
|
const Upload = ({
|
|
28224
28268
|
placeholder,
|
|
@@ -28257,7 +28301,9 @@ const Upload = ({
|
|
|
28257
28301
|
hiddenToggleAspect,
|
|
28258
28302
|
hiddenPreview,
|
|
28259
28303
|
fullAspectCrop,
|
|
28260
|
-
isDefaultCustomRatio
|
|
28304
|
+
isDefaultCustomRatio,
|
|
28305
|
+
customPreviewIcon,
|
|
28306
|
+
onPreviewIconClick
|
|
28261
28307
|
}) => {
|
|
28262
28308
|
const {
|
|
28263
28309
|
t
|
|
@@ -28433,10 +28479,16 @@ const Upload = ({
|
|
|
28433
28479
|
let uid = fileProgress.uid;
|
|
28434
28480
|
fileProgress.status = 'uploading';
|
|
28435
28481
|
fileProgress.percent = percent;
|
|
28482
|
+
fileProgress.name = newFile.name;
|
|
28483
|
+
fileProgress.type = newFile.type;
|
|
28484
|
+
fileProgress.size = newFile.size;
|
|
28436
28485
|
let arrProgress = [...arrFile];
|
|
28437
28486
|
for (let i = 0; i < arrProgress.length; i++) {
|
|
28438
28487
|
if (arrProgress[i].uid === uid) {
|
|
28439
28488
|
arrProgress[i] = fileProgress;
|
|
28489
|
+
arrProgress[i].name = newFile.name;
|
|
28490
|
+
arrProgress[i].type = newFile.type;
|
|
28491
|
+
arrProgress[i].size = newFile.size;
|
|
28440
28492
|
}
|
|
28441
28493
|
}
|
|
28442
28494
|
onChange == null ? void 0 : (_onChange = onChange({
|
|
@@ -28452,9 +28504,15 @@ const Upload = ({
|
|
|
28452
28504
|
let uid = fileSuccess.uid;
|
|
28453
28505
|
fileSuccess.url = result;
|
|
28454
28506
|
fileSuccess.status = 'done';
|
|
28455
|
-
|
|
28456
|
-
|
|
28457
|
-
|
|
28507
|
+
fileSuccess.name = newFile.name;
|
|
28508
|
+
fileSuccess.type = newFile.type;
|
|
28509
|
+
fileSuccess.size = newFile.size;
|
|
28510
|
+
for (let j = 0; j < arrFile.length; j++) {
|
|
28511
|
+
if (arrFile[j].uid === uid) {
|
|
28512
|
+
arrFile[j] = fileSuccess;
|
|
28513
|
+
arrFile[j].name = newFile.name;
|
|
28514
|
+
arrFile[j].type = newFile.type;
|
|
28515
|
+
arrFile[j].size = newFile.size;
|
|
28458
28516
|
}
|
|
28459
28517
|
}
|
|
28460
28518
|
onChange == null ? void 0 : (_onChange2 = onChange({
|
|
@@ -28469,9 +28527,15 @@ const Upload = ({
|
|
|
28469
28527
|
let uid = fileError.uid;
|
|
28470
28528
|
fileError.status = 'error';
|
|
28471
28529
|
fileError.error = error;
|
|
28530
|
+
fileError.name = newFile.name;
|
|
28531
|
+
fileError.type = newFile.type;
|
|
28532
|
+
fileError.size = newFile.size;
|
|
28472
28533
|
for (let i = 0; i < arrFile.length; i++) {
|
|
28473
28534
|
if (arrFile[i].uid === uid) {
|
|
28474
28535
|
arrFile[i] = fileError;
|
|
28536
|
+
arrFile[i].name = newFile.name;
|
|
28537
|
+
arrFile[i].type = newFile.type;
|
|
28538
|
+
arrFile[i].size = newFile.size;
|
|
28475
28539
|
}
|
|
28476
28540
|
}
|
|
28477
28541
|
onChange == null ? void 0 : (_onChange3 = onChange({
|
|
@@ -28687,7 +28751,7 @@ const Upload = ({
|
|
|
28687
28751
|
__self: this,
|
|
28688
28752
|
__source: {
|
|
28689
28753
|
fileName: _jsxFileName$9,
|
|
28690
|
-
lineNumber:
|
|
28754
|
+
lineNumber: 664,
|
|
28691
28755
|
columnNumber: 7
|
|
28692
28756
|
}
|
|
28693
28757
|
}, /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
@@ -28697,7 +28761,7 @@ const Upload = ({
|
|
|
28697
28761
|
__self: this,
|
|
28698
28762
|
__source: {
|
|
28699
28763
|
fileName: _jsxFileName$9,
|
|
28700
|
-
lineNumber:
|
|
28764
|
+
lineNumber: 665,
|
|
28701
28765
|
columnNumber: 9
|
|
28702
28766
|
}
|
|
28703
28767
|
}, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
|
|
@@ -28712,7 +28776,7 @@ const Upload = ({
|
|
|
28712
28776
|
__self: undefined,
|
|
28713
28777
|
__source: {
|
|
28714
28778
|
fileName: _jsxFileName$9,
|
|
28715
|
-
lineNumber:
|
|
28779
|
+
lineNumber: 675,
|
|
28716
28780
|
columnNumber: 16
|
|
28717
28781
|
}
|
|
28718
28782
|
});
|
|
@@ -28723,7 +28787,7 @@ const Upload = ({
|
|
|
28723
28787
|
__self: undefined,
|
|
28724
28788
|
__source: {
|
|
28725
28789
|
fileName: _jsxFileName$9,
|
|
28726
|
-
lineNumber:
|
|
28790
|
+
lineNumber: 678,
|
|
28727
28791
|
columnNumber: 9
|
|
28728
28792
|
}
|
|
28729
28793
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28733,7 +28797,7 @@ const Upload = ({
|
|
|
28733
28797
|
__self: undefined,
|
|
28734
28798
|
__source: {
|
|
28735
28799
|
fileName: _jsxFileName$9,
|
|
28736
|
-
lineNumber:
|
|
28800
|
+
lineNumber: 679,
|
|
28737
28801
|
columnNumber: 11
|
|
28738
28802
|
}
|
|
28739
28803
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28742,7 +28806,7 @@ const Upload = ({
|
|
|
28742
28806
|
__self: undefined,
|
|
28743
28807
|
__source: {
|
|
28744
28808
|
fileName: _jsxFileName$9,
|
|
28745
|
-
lineNumber:
|
|
28809
|
+
lineNumber: 680,
|
|
28746
28810
|
columnNumber: 27
|
|
28747
28811
|
}
|
|
28748
28812
|
}), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28755,16 +28819,23 @@ const Upload = ({
|
|
|
28755
28819
|
__self: undefined,
|
|
28756
28820
|
__source: {
|
|
28757
28821
|
fileName: _jsxFileName$9,
|
|
28758
|
-
lineNumber:
|
|
28822
|
+
lineNumber: 682,
|
|
28759
28823
|
columnNumber: 15
|
|
28760
28824
|
}
|
|
28761
28825
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28762
28826
|
type: "eye",
|
|
28763
|
-
onClick: () =>
|
|
28827
|
+
onClick: () => {
|
|
28828
|
+
if (onPreviewIconClick) {
|
|
28829
|
+
onPreviewIconClick(item);
|
|
28830
|
+
} else {
|
|
28831
|
+
handlePreview(item);
|
|
28832
|
+
}
|
|
28833
|
+
},
|
|
28834
|
+
customPreviewIcon: customPreviewIcon,
|
|
28764
28835
|
__self: undefined,
|
|
28765
28836
|
__source: {
|
|
28766
28837
|
fileName: _jsxFileName$9,
|
|
28767
|
-
lineNumber:
|
|
28838
|
+
lineNumber: 690,
|
|
28768
28839
|
columnNumber: 17
|
|
28769
28840
|
}
|
|
28770
28841
|
})), /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -28774,7 +28845,7 @@ const Upload = ({
|
|
|
28774
28845
|
__self: undefined,
|
|
28775
28846
|
__source: {
|
|
28776
28847
|
fileName: _jsxFileName$9,
|
|
28777
|
-
lineNumber:
|
|
28848
|
+
lineNumber: 703,
|
|
28778
28849
|
columnNumber: 13
|
|
28779
28850
|
}
|
|
28780
28851
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28791,7 +28862,7 @@ const Upload = ({
|
|
|
28791
28862
|
__self: undefined,
|
|
28792
28863
|
__source: {
|
|
28793
28864
|
fileName: _jsxFileName$9,
|
|
28794
|
-
lineNumber:
|
|
28865
|
+
lineNumber: 714,
|
|
28795
28866
|
columnNumber: 16
|
|
28796
28867
|
}
|
|
28797
28868
|
});
|
|
@@ -28801,7 +28872,7 @@ const Upload = ({
|
|
|
28801
28872
|
__self: undefined,
|
|
28802
28873
|
__source: {
|
|
28803
28874
|
fileName: _jsxFileName$9,
|
|
28804
|
-
lineNumber:
|
|
28875
|
+
lineNumber: 717,
|
|
28805
28876
|
columnNumber: 9
|
|
28806
28877
|
}
|
|
28807
28878
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28811,7 +28882,7 @@ const Upload = ({
|
|
|
28811
28882
|
__self: undefined,
|
|
28812
28883
|
__source: {
|
|
28813
28884
|
fileName: _jsxFileName$9,
|
|
28814
|
-
lineNumber:
|
|
28885
|
+
lineNumber: 718,
|
|
28815
28886
|
columnNumber: 11
|
|
28816
28887
|
}
|
|
28817
28888
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28820,7 +28891,7 @@ const Upload = ({
|
|
|
28820
28891
|
__self: undefined,
|
|
28821
28892
|
__source: {
|
|
28822
28893
|
fileName: _jsxFileName$9,
|
|
28823
|
-
lineNumber:
|
|
28894
|
+
lineNumber: 719,
|
|
28824
28895
|
columnNumber: 27
|
|
28825
28896
|
}
|
|
28826
28897
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28833,7 +28904,7 @@ const Upload = ({
|
|
|
28833
28904
|
__self: undefined,
|
|
28834
28905
|
__source: {
|
|
28835
28906
|
fileName: _jsxFileName$9,
|
|
28836
|
-
lineNumber:
|
|
28907
|
+
lineNumber: 720,
|
|
28837
28908
|
columnNumber: 13
|
|
28838
28909
|
}
|
|
28839
28910
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28843,14 +28914,14 @@ const Upload = ({
|
|
|
28843
28914
|
__self: undefined,
|
|
28844
28915
|
__source: {
|
|
28845
28916
|
fileName: _jsxFileName$9,
|
|
28846
|
-
lineNumber:
|
|
28917
|
+
lineNumber: 728,
|
|
28847
28918
|
columnNumber: 15
|
|
28848
28919
|
}
|
|
28849
28920
|
}, /*#__PURE__*/React__default.createElement(FileExtension, {
|
|
28850
28921
|
__self: undefined,
|
|
28851
28922
|
__source: {
|
|
28852
28923
|
fileName: _jsxFileName$9,
|
|
28853
|
-
lineNumber:
|
|
28924
|
+
lineNumber: 729,
|
|
28854
28925
|
columnNumber: 17
|
|
28855
28926
|
}
|
|
28856
28927
|
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -28858,7 +28929,7 @@ const Upload = ({
|
|
|
28858
28929
|
__self: undefined,
|
|
28859
28930
|
__source: {
|
|
28860
28931
|
fileName: _jsxFileName$9,
|
|
28861
|
-
lineNumber:
|
|
28932
|
+
lineNumber: 730,
|
|
28862
28933
|
columnNumber: 17
|
|
28863
28934
|
}
|
|
28864
28935
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28873,7 +28944,7 @@ const Upload = ({
|
|
|
28873
28944
|
__self: undefined,
|
|
28874
28945
|
__source: {
|
|
28875
28946
|
fileName: _jsxFileName$9,
|
|
28876
|
-
lineNumber:
|
|
28947
|
+
lineNumber: 731,
|
|
28877
28948
|
columnNumber: 19
|
|
28878
28949
|
}
|
|
28879
28950
|
}, item.name)))), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28886,16 +28957,23 @@ const Upload = ({
|
|
|
28886
28957
|
__self: undefined,
|
|
28887
28958
|
__source: {
|
|
28888
28959
|
fileName: _jsxFileName$9,
|
|
28889
|
-
lineNumber:
|
|
28960
|
+
lineNumber: 747,
|
|
28890
28961
|
columnNumber: 15
|
|
28891
28962
|
}
|
|
28892
28963
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28893
28964
|
type: "eye",
|
|
28894
|
-
onClick: () =>
|
|
28965
|
+
onClick: () => {
|
|
28966
|
+
if (onPreviewIconClick) {
|
|
28967
|
+
onPreviewIconClick(item);
|
|
28968
|
+
} else {
|
|
28969
|
+
handleOpenFile(item);
|
|
28970
|
+
}
|
|
28971
|
+
},
|
|
28972
|
+
customPreviewIcon: customPreviewIcon,
|
|
28895
28973
|
__self: undefined,
|
|
28896
28974
|
__source: {
|
|
28897
28975
|
fileName: _jsxFileName$9,
|
|
28898
|
-
lineNumber:
|
|
28976
|
+
lineNumber: 755,
|
|
28899
28977
|
columnNumber: 17
|
|
28900
28978
|
}
|
|
28901
28979
|
})), /*#__PURE__*/React__default.createElement(Blank, {
|
|
@@ -28903,7 +28981,7 @@ const Upload = ({
|
|
|
28903
28981
|
__self: undefined,
|
|
28904
28982
|
__source: {
|
|
28905
28983
|
fileName: _jsxFileName$9,
|
|
28906
|
-
lineNumber:
|
|
28984
|
+
lineNumber: 768,
|
|
28907
28985
|
columnNumber: 13
|
|
28908
28986
|
}
|
|
28909
28987
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28918,7 +28996,7 @@ const Upload = ({
|
|
|
28918
28996
|
__self: this,
|
|
28919
28997
|
__source: {
|
|
28920
28998
|
fileName: _jsxFileName$9,
|
|
28921
|
-
lineNumber:
|
|
28999
|
+
lineNumber: 779,
|
|
28922
29000
|
columnNumber: 7
|
|
28923
29001
|
}
|
|
28924
29002
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28932,7 +29010,7 @@ const Upload = ({
|
|
|
28932
29010
|
__self: this,
|
|
28933
29011
|
__source: {
|
|
28934
29012
|
fileName: _jsxFileName$9,
|
|
28935
|
-
lineNumber:
|
|
29013
|
+
lineNumber: 780,
|
|
28936
29014
|
columnNumber: 9
|
|
28937
29015
|
}
|
|
28938
29016
|
}, /*#__PURE__*/React__default.createElement(LoadingBar, {
|
|
@@ -28958,7 +29036,7 @@ const Upload = ({
|
|
|
28958
29036
|
__self: this,
|
|
28959
29037
|
__source: {
|
|
28960
29038
|
fileName: _jsxFileName$9,
|
|
28961
|
-
lineNumber:
|
|
29039
|
+
lineNumber: 781,
|
|
28962
29040
|
columnNumber: 11
|
|
28963
29041
|
}
|
|
28964
29042
|
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28966,14 +29044,14 @@ const Upload = ({
|
|
|
28966
29044
|
__self: this,
|
|
28967
29045
|
__source: {
|
|
28968
29046
|
fileName: _jsxFileName$9,
|
|
28969
|
-
lineNumber:
|
|
29047
|
+
lineNumber: 794,
|
|
28970
29048
|
columnNumber: 11
|
|
28971
29049
|
}
|
|
28972
29050
|
}, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
|
|
28973
29051
|
__self: this,
|
|
28974
29052
|
__source: {
|
|
28975
29053
|
fileName: _jsxFileName$9,
|
|
28976
|
-
lineNumber:
|
|
29054
|
+
lineNumber: 795,
|
|
28977
29055
|
columnNumber: 11
|
|
28978
29056
|
}
|
|
28979
29057
|
}, t('uploadingLabel', 'Berkas sedang diunggah'))));
|
|
@@ -28985,7 +29063,7 @@ const Upload = ({
|
|
|
28985
29063
|
__self: this,
|
|
28986
29064
|
__source: {
|
|
28987
29065
|
fileName: _jsxFileName$9,
|
|
28988
|
-
lineNumber:
|
|
29066
|
+
lineNumber: 803,
|
|
28989
29067
|
columnNumber: 7
|
|
28990
29068
|
}
|
|
28991
29069
|
}, /*#__PURE__*/React__default.createElement(ContainerUpload, {
|
|
@@ -29001,7 +29079,7 @@ const Upload = ({
|
|
|
29001
29079
|
__self: this,
|
|
29002
29080
|
__source: {
|
|
29003
29081
|
fileName: _jsxFileName$9,
|
|
29004
|
-
lineNumber:
|
|
29082
|
+
lineNumber: 804,
|
|
29005
29083
|
columnNumber: 9
|
|
29006
29084
|
}
|
|
29007
29085
|
}, /*#__PURE__*/React__default.createElement(Input$2, {
|
|
@@ -29013,21 +29091,21 @@ const Upload = ({
|
|
|
29013
29091
|
__self: this,
|
|
29014
29092
|
__source: {
|
|
29015
29093
|
fileName: _jsxFileName$9,
|
|
29016
|
-
lineNumber:
|
|
29094
|
+
lineNumber: 815,
|
|
29017
29095
|
columnNumber: 11
|
|
29018
29096
|
}
|
|
29019
29097
|
}), /*#__PURE__*/React__default.createElement(Children, {
|
|
29020
29098
|
__self: this,
|
|
29021
29099
|
__source: {
|
|
29022
29100
|
fileName: _jsxFileName$9,
|
|
29023
|
-
lineNumber:
|
|
29101
|
+
lineNumber: 816,
|
|
29024
29102
|
columnNumber: 11
|
|
29025
29103
|
}
|
|
29026
29104
|
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
29027
29105
|
__self: this,
|
|
29028
29106
|
__source: {
|
|
29029
29107
|
fileName: _jsxFileName$9,
|
|
29030
|
-
lineNumber:
|
|
29108
|
+
lineNumber: 818,
|
|
29031
29109
|
columnNumber: 15
|
|
29032
29110
|
}
|
|
29033
29111
|
}, /*#__PURE__*/React__default.createElement(IconCard, {
|
|
@@ -29036,7 +29114,7 @@ const Upload = ({
|
|
|
29036
29114
|
__self: this,
|
|
29037
29115
|
__source: {
|
|
29038
29116
|
fileName: _jsxFileName$9,
|
|
29039
|
-
lineNumber:
|
|
29117
|
+
lineNumber: 819,
|
|
29040
29118
|
columnNumber: 17
|
|
29041
29119
|
}
|
|
29042
29120
|
}, /*#__PURE__*/React__default.createElement(UploadOutline, {
|
|
@@ -29044,7 +29122,7 @@ const Upload = ({
|
|
|
29044
29122
|
__self: this,
|
|
29045
29123
|
__source: {
|
|
29046
29124
|
fileName: _jsxFileName$9,
|
|
29047
|
-
lineNumber:
|
|
29125
|
+
lineNumber: 820,
|
|
29048
29126
|
columnNumber: 19
|
|
29049
29127
|
}
|
|
29050
29128
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -29054,7 +29132,7 @@ const Upload = ({
|
|
|
29054
29132
|
__self: this,
|
|
29055
29133
|
__source: {
|
|
29056
29134
|
fileName: _jsxFileName$9,
|
|
29057
|
-
lineNumber:
|
|
29135
|
+
lineNumber: 822,
|
|
29058
29136
|
columnNumber: 17
|
|
29059
29137
|
}
|
|
29060
29138
|
}, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
@@ -29064,7 +29142,7 @@ const Upload = ({
|
|
|
29064
29142
|
__self: this,
|
|
29065
29143
|
__source: {
|
|
29066
29144
|
fileName: _jsxFileName$9,
|
|
29067
|
-
lineNumber:
|
|
29145
|
+
lineNumber: 829,
|
|
29068
29146
|
columnNumber: 19
|
|
29069
29147
|
}
|
|
29070
29148
|
}, error));
|
|
@@ -29076,7 +29154,7 @@ const Upload = ({
|
|
|
29076
29154
|
__self: this,
|
|
29077
29155
|
__source: {
|
|
29078
29156
|
fileName: _jsxFileName$9,
|
|
29079
|
-
lineNumber:
|
|
29157
|
+
lineNumber: 836,
|
|
29080
29158
|
columnNumber: 7
|
|
29081
29159
|
}
|
|
29082
29160
|
}, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
|
|
@@ -29084,7 +29162,7 @@ const Upload = ({
|
|
|
29084
29162
|
__self: this,
|
|
29085
29163
|
__source: {
|
|
29086
29164
|
fileName: _jsxFileName$9,
|
|
29087
|
-
lineNumber:
|
|
29165
|
+
lineNumber: 837,
|
|
29088
29166
|
columnNumber: 9
|
|
29089
29167
|
}
|
|
29090
29168
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -29092,7 +29170,7 @@ const Upload = ({
|
|
|
29092
29170
|
__self: this,
|
|
29093
29171
|
__source: {
|
|
29094
29172
|
fileName: _jsxFileName$9,
|
|
29095
|
-
lineNumber:
|
|
29173
|
+
lineNumber: 838,
|
|
29096
29174
|
columnNumber: 11
|
|
29097
29175
|
}
|
|
29098
29176
|
})), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
|
|
@@ -29105,7 +29183,7 @@ const Upload = ({
|
|
|
29105
29183
|
__self: this,
|
|
29106
29184
|
__source: {
|
|
29107
29185
|
fileName: _jsxFileName$9,
|
|
29108
|
-
lineNumber:
|
|
29186
|
+
lineNumber: 840,
|
|
29109
29187
|
columnNumber: 9
|
|
29110
29188
|
}
|
|
29111
29189
|
}, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
|
|
@@ -29118,7 +29196,7 @@ const Upload = ({
|
|
|
29118
29196
|
__self: this,
|
|
29119
29197
|
__source: {
|
|
29120
29198
|
fileName: _jsxFileName$9,
|
|
29121
|
-
lineNumber:
|
|
29199
|
+
lineNumber: 843,
|
|
29122
29200
|
columnNumber: 9
|
|
29123
29201
|
}
|
|
29124
29202
|
}, /*#__PURE__*/React__default.createElement(ReactCrop, {
|
|
@@ -29129,7 +29207,7 @@ const Upload = ({
|
|
|
29129
29207
|
__self: this,
|
|
29130
29208
|
__source: {
|
|
29131
29209
|
fileName: _jsxFileName$9,
|
|
29132
|
-
lineNumber:
|
|
29210
|
+
lineNumber: 851,
|
|
29133
29211
|
columnNumber: 11
|
|
29134
29212
|
}
|
|
29135
29213
|
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -29143,14 +29221,14 @@ const Upload = ({
|
|
|
29143
29221
|
__self: this,
|
|
29144
29222
|
__source: {
|
|
29145
29223
|
fileName: _jsxFileName$9,
|
|
29146
|
-
lineNumber:
|
|
29224
|
+
lineNumber: 852,
|
|
29147
29225
|
columnNumber: 13
|
|
29148
29226
|
}
|
|
29149
29227
|
}))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
|
|
29150
29228
|
__self: this,
|
|
29151
29229
|
__source: {
|
|
29152
29230
|
fileName: _jsxFileName$9,
|
|
29153
|
-
lineNumber:
|
|
29231
|
+
lineNumber: 863,
|
|
29154
29232
|
columnNumber: 9
|
|
29155
29233
|
}
|
|
29156
29234
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29162,14 +29240,14 @@ const Upload = ({
|
|
|
29162
29240
|
__self: this,
|
|
29163
29241
|
__source: {
|
|
29164
29242
|
fileName: _jsxFileName$9,
|
|
29165
|
-
lineNumber:
|
|
29243
|
+
lineNumber: 864,
|
|
29166
29244
|
columnNumber: 11
|
|
29167
29245
|
}
|
|
29168
29246
|
}, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
|
|
29169
29247
|
__self: this,
|
|
29170
29248
|
__source: {
|
|
29171
29249
|
fileName: _jsxFileName$9,
|
|
29172
|
-
lineNumber:
|
|
29250
|
+
lineNumber: 866,
|
|
29173
29251
|
columnNumber: 15
|
|
29174
29252
|
}
|
|
29175
29253
|
}) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -29177,7 +29255,7 @@ const Upload = ({
|
|
|
29177
29255
|
__self: this,
|
|
29178
29256
|
__source: {
|
|
29179
29257
|
fileName: _jsxFileName$9,
|
|
29180
|
-
lineNumber:
|
|
29258
|
+
lineNumber: 868,
|
|
29181
29259
|
columnNumber: 15
|
|
29182
29260
|
}
|
|
29183
29261
|
}, /*#__PURE__*/React__default.createElement(ImageOutline, {
|
|
@@ -29189,7 +29267,7 @@ const Upload = ({
|
|
|
29189
29267
|
__self: this,
|
|
29190
29268
|
__source: {
|
|
29191
29269
|
fileName: _jsxFileName$9,
|
|
29192
|
-
lineNumber:
|
|
29270
|
+
lineNumber: 869,
|
|
29193
29271
|
columnNumber: 17
|
|
29194
29272
|
}
|
|
29195
29273
|
})), /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29197,7 +29275,7 @@ const Upload = ({
|
|
|
29197
29275
|
__self: this,
|
|
29198
29276
|
__source: {
|
|
29199
29277
|
fileName: _jsxFileName$9,
|
|
29200
|
-
lineNumber:
|
|
29278
|
+
lineNumber: 876,
|
|
29201
29279
|
columnNumber: 13
|
|
29202
29280
|
}
|
|
29203
29281
|
}, /*#__PURE__*/React__default.createElement(Button$4, {
|
|
@@ -29206,7 +29284,7 @@ const Upload = ({
|
|
|
29206
29284
|
__self: this,
|
|
29207
29285
|
__source: {
|
|
29208
29286
|
fileName: _jsxFileName$9,
|
|
29209
|
-
lineNumber:
|
|
29287
|
+
lineNumber: 877,
|
|
29210
29288
|
columnNumber: 15
|
|
29211
29289
|
}
|
|
29212
29290
|
}, t('label.cancel', 'Batal', {
|
|
@@ -29216,7 +29294,7 @@ const Upload = ({
|
|
|
29216
29294
|
__self: this,
|
|
29217
29295
|
__source: {
|
|
29218
29296
|
fileName: _jsxFileName$9,
|
|
29219
|
-
lineNumber:
|
|
29297
|
+
lineNumber: 880,
|
|
29220
29298
|
columnNumber: 15
|
|
29221
29299
|
}
|
|
29222
29300
|
}, t('save', 'Simpan', {
|
|
@@ -29233,7 +29311,7 @@ const Upload = ({
|
|
|
29233
29311
|
__self: undefined,
|
|
29234
29312
|
__source: {
|
|
29235
29313
|
fileName: _jsxFileName$9,
|
|
29236
|
-
lineNumber:
|
|
29314
|
+
lineNumber: 889,
|
|
29237
29315
|
columnNumber: 5
|
|
29238
29316
|
}
|
|
29239
29317
|
}, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
@@ -29242,7 +29320,7 @@ const Upload = ({
|
|
|
29242
29320
|
__self: undefined,
|
|
29243
29321
|
__source: {
|
|
29244
29322
|
fileName: _jsxFileName$9,
|
|
29245
|
-
lineNumber:
|
|
29323
|
+
lineNumber: 892,
|
|
29246
29324
|
columnNumber: 32
|
|
29247
29325
|
}
|
|
29248
29326
|
}) : renderUpload(), showCropper && renderCropper());
|