@majoo-ui/react 1.61.0-rc.1 → 1.61.0-rc.10
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
|
|
@@ -28687,7 +28733,7 @@ const Upload = ({
|
|
|
28687
28733
|
__self: this,
|
|
28688
28734
|
__source: {
|
|
28689
28735
|
fileName: _jsxFileName$9,
|
|
28690
|
-
lineNumber:
|
|
28736
|
+
lineNumber: 643,
|
|
28691
28737
|
columnNumber: 7
|
|
28692
28738
|
}
|
|
28693
28739
|
}, /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
@@ -28697,7 +28743,7 @@ const Upload = ({
|
|
|
28697
28743
|
__self: this,
|
|
28698
28744
|
__source: {
|
|
28699
28745
|
fileName: _jsxFileName$9,
|
|
28700
|
-
lineNumber:
|
|
28746
|
+
lineNumber: 644,
|
|
28701
28747
|
columnNumber: 9
|
|
28702
28748
|
}
|
|
28703
28749
|
}, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
|
|
@@ -28712,7 +28758,7 @@ const Upload = ({
|
|
|
28712
28758
|
__self: undefined,
|
|
28713
28759
|
__source: {
|
|
28714
28760
|
fileName: _jsxFileName$9,
|
|
28715
|
-
lineNumber:
|
|
28761
|
+
lineNumber: 654,
|
|
28716
28762
|
columnNumber: 16
|
|
28717
28763
|
}
|
|
28718
28764
|
});
|
|
@@ -28723,7 +28769,7 @@ const Upload = ({
|
|
|
28723
28769
|
__self: undefined,
|
|
28724
28770
|
__source: {
|
|
28725
28771
|
fileName: _jsxFileName$9,
|
|
28726
|
-
lineNumber:
|
|
28772
|
+
lineNumber: 657,
|
|
28727
28773
|
columnNumber: 9
|
|
28728
28774
|
}
|
|
28729
28775
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28733,7 +28779,7 @@ const Upload = ({
|
|
|
28733
28779
|
__self: undefined,
|
|
28734
28780
|
__source: {
|
|
28735
28781
|
fileName: _jsxFileName$9,
|
|
28736
|
-
lineNumber:
|
|
28782
|
+
lineNumber: 658,
|
|
28737
28783
|
columnNumber: 11
|
|
28738
28784
|
}
|
|
28739
28785
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28742,7 +28788,7 @@ const Upload = ({
|
|
|
28742
28788
|
__self: undefined,
|
|
28743
28789
|
__source: {
|
|
28744
28790
|
fileName: _jsxFileName$9,
|
|
28745
|
-
lineNumber:
|
|
28791
|
+
lineNumber: 659,
|
|
28746
28792
|
columnNumber: 27
|
|
28747
28793
|
}
|
|
28748
28794
|
}), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28755,16 +28801,23 @@ const Upload = ({
|
|
|
28755
28801
|
__self: undefined,
|
|
28756
28802
|
__source: {
|
|
28757
28803
|
fileName: _jsxFileName$9,
|
|
28758
|
-
lineNumber:
|
|
28804
|
+
lineNumber: 661,
|
|
28759
28805
|
columnNumber: 15
|
|
28760
28806
|
}
|
|
28761
28807
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28762
28808
|
type: "eye",
|
|
28763
|
-
onClick: () =>
|
|
28809
|
+
onClick: () => {
|
|
28810
|
+
if (onPreviewIconClick) {
|
|
28811
|
+
onPreviewIconClick(item);
|
|
28812
|
+
} else {
|
|
28813
|
+
handlePreview(item);
|
|
28814
|
+
}
|
|
28815
|
+
},
|
|
28816
|
+
customPreviewIcon: customPreviewIcon,
|
|
28764
28817
|
__self: undefined,
|
|
28765
28818
|
__source: {
|
|
28766
28819
|
fileName: _jsxFileName$9,
|
|
28767
|
-
lineNumber:
|
|
28820
|
+
lineNumber: 669,
|
|
28768
28821
|
columnNumber: 17
|
|
28769
28822
|
}
|
|
28770
28823
|
})), /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -28774,7 +28827,7 @@ const Upload = ({
|
|
|
28774
28827
|
__self: undefined,
|
|
28775
28828
|
__source: {
|
|
28776
28829
|
fileName: _jsxFileName$9,
|
|
28777
|
-
lineNumber:
|
|
28830
|
+
lineNumber: 682,
|
|
28778
28831
|
columnNumber: 13
|
|
28779
28832
|
}
|
|
28780
28833
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28791,7 +28844,7 @@ const Upload = ({
|
|
|
28791
28844
|
__self: undefined,
|
|
28792
28845
|
__source: {
|
|
28793
28846
|
fileName: _jsxFileName$9,
|
|
28794
|
-
lineNumber:
|
|
28847
|
+
lineNumber: 693,
|
|
28795
28848
|
columnNumber: 16
|
|
28796
28849
|
}
|
|
28797
28850
|
});
|
|
@@ -28801,7 +28854,7 @@ const Upload = ({
|
|
|
28801
28854
|
__self: undefined,
|
|
28802
28855
|
__source: {
|
|
28803
28856
|
fileName: _jsxFileName$9,
|
|
28804
|
-
lineNumber:
|
|
28857
|
+
lineNumber: 696,
|
|
28805
28858
|
columnNumber: 9
|
|
28806
28859
|
}
|
|
28807
28860
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28811,7 +28864,7 @@ const Upload = ({
|
|
|
28811
28864
|
__self: undefined,
|
|
28812
28865
|
__source: {
|
|
28813
28866
|
fileName: _jsxFileName$9,
|
|
28814
|
-
lineNumber:
|
|
28867
|
+
lineNumber: 697,
|
|
28815
28868
|
columnNumber: 11
|
|
28816
28869
|
}
|
|
28817
28870
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28820,7 +28873,7 @@ const Upload = ({
|
|
|
28820
28873
|
__self: undefined,
|
|
28821
28874
|
__source: {
|
|
28822
28875
|
fileName: _jsxFileName$9,
|
|
28823
|
-
lineNumber:
|
|
28876
|
+
lineNumber: 698,
|
|
28824
28877
|
columnNumber: 27
|
|
28825
28878
|
}
|
|
28826
28879
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28833,7 +28886,7 @@ const Upload = ({
|
|
|
28833
28886
|
__self: undefined,
|
|
28834
28887
|
__source: {
|
|
28835
28888
|
fileName: _jsxFileName$9,
|
|
28836
|
-
lineNumber:
|
|
28889
|
+
lineNumber: 699,
|
|
28837
28890
|
columnNumber: 13
|
|
28838
28891
|
}
|
|
28839
28892
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28843,14 +28896,14 @@ const Upload = ({
|
|
|
28843
28896
|
__self: undefined,
|
|
28844
28897
|
__source: {
|
|
28845
28898
|
fileName: _jsxFileName$9,
|
|
28846
|
-
lineNumber:
|
|
28899
|
+
lineNumber: 707,
|
|
28847
28900
|
columnNumber: 15
|
|
28848
28901
|
}
|
|
28849
28902
|
}, /*#__PURE__*/React__default.createElement(FileExtension, {
|
|
28850
28903
|
__self: undefined,
|
|
28851
28904
|
__source: {
|
|
28852
28905
|
fileName: _jsxFileName$9,
|
|
28853
|
-
lineNumber:
|
|
28906
|
+
lineNumber: 708,
|
|
28854
28907
|
columnNumber: 17
|
|
28855
28908
|
}
|
|
28856
28909
|
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -28858,7 +28911,7 @@ const Upload = ({
|
|
|
28858
28911
|
__self: undefined,
|
|
28859
28912
|
__source: {
|
|
28860
28913
|
fileName: _jsxFileName$9,
|
|
28861
|
-
lineNumber:
|
|
28914
|
+
lineNumber: 709,
|
|
28862
28915
|
columnNumber: 17
|
|
28863
28916
|
}
|
|
28864
28917
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28873,7 +28926,7 @@ const Upload = ({
|
|
|
28873
28926
|
__self: undefined,
|
|
28874
28927
|
__source: {
|
|
28875
28928
|
fileName: _jsxFileName$9,
|
|
28876
|
-
lineNumber:
|
|
28929
|
+
lineNumber: 710,
|
|
28877
28930
|
columnNumber: 19
|
|
28878
28931
|
}
|
|
28879
28932
|
}, item.name)))), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28886,16 +28939,23 @@ const Upload = ({
|
|
|
28886
28939
|
__self: undefined,
|
|
28887
28940
|
__source: {
|
|
28888
28941
|
fileName: _jsxFileName$9,
|
|
28889
|
-
lineNumber:
|
|
28942
|
+
lineNumber: 726,
|
|
28890
28943
|
columnNumber: 15
|
|
28891
28944
|
}
|
|
28892
28945
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28893
28946
|
type: "eye",
|
|
28894
|
-
onClick: () =>
|
|
28947
|
+
onClick: () => {
|
|
28948
|
+
if (onPreviewIconClick) {
|
|
28949
|
+
onPreviewIconClick(item);
|
|
28950
|
+
} else {
|
|
28951
|
+
handleOpenFile(item);
|
|
28952
|
+
}
|
|
28953
|
+
},
|
|
28954
|
+
customPreviewIcon: customPreviewIcon,
|
|
28895
28955
|
__self: undefined,
|
|
28896
28956
|
__source: {
|
|
28897
28957
|
fileName: _jsxFileName$9,
|
|
28898
|
-
lineNumber:
|
|
28958
|
+
lineNumber: 734,
|
|
28899
28959
|
columnNumber: 17
|
|
28900
28960
|
}
|
|
28901
28961
|
})), /*#__PURE__*/React__default.createElement(Blank, {
|
|
@@ -28903,7 +28963,7 @@ const Upload = ({
|
|
|
28903
28963
|
__self: undefined,
|
|
28904
28964
|
__source: {
|
|
28905
28965
|
fileName: _jsxFileName$9,
|
|
28906
|
-
lineNumber:
|
|
28966
|
+
lineNumber: 747,
|
|
28907
28967
|
columnNumber: 13
|
|
28908
28968
|
}
|
|
28909
28969
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28918,7 +28978,7 @@ const Upload = ({
|
|
|
28918
28978
|
__self: this,
|
|
28919
28979
|
__source: {
|
|
28920
28980
|
fileName: _jsxFileName$9,
|
|
28921
|
-
lineNumber:
|
|
28981
|
+
lineNumber: 758,
|
|
28922
28982
|
columnNumber: 7
|
|
28923
28983
|
}
|
|
28924
28984
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28932,7 +28992,7 @@ const Upload = ({
|
|
|
28932
28992
|
__self: this,
|
|
28933
28993
|
__source: {
|
|
28934
28994
|
fileName: _jsxFileName$9,
|
|
28935
|
-
lineNumber:
|
|
28995
|
+
lineNumber: 759,
|
|
28936
28996
|
columnNumber: 9
|
|
28937
28997
|
}
|
|
28938
28998
|
}, /*#__PURE__*/React__default.createElement(LoadingBar, {
|
|
@@ -28958,7 +29018,7 @@ const Upload = ({
|
|
|
28958
29018
|
__self: this,
|
|
28959
29019
|
__source: {
|
|
28960
29020
|
fileName: _jsxFileName$9,
|
|
28961
|
-
lineNumber:
|
|
29021
|
+
lineNumber: 760,
|
|
28962
29022
|
columnNumber: 11
|
|
28963
29023
|
}
|
|
28964
29024
|
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28966,14 +29026,14 @@ const Upload = ({
|
|
|
28966
29026
|
__self: this,
|
|
28967
29027
|
__source: {
|
|
28968
29028
|
fileName: _jsxFileName$9,
|
|
28969
|
-
lineNumber:
|
|
29029
|
+
lineNumber: 773,
|
|
28970
29030
|
columnNumber: 11
|
|
28971
29031
|
}
|
|
28972
29032
|
}, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
|
|
28973
29033
|
__self: this,
|
|
28974
29034
|
__source: {
|
|
28975
29035
|
fileName: _jsxFileName$9,
|
|
28976
|
-
lineNumber:
|
|
29036
|
+
lineNumber: 774,
|
|
28977
29037
|
columnNumber: 11
|
|
28978
29038
|
}
|
|
28979
29039
|
}, t('uploadingLabel', 'Berkas sedang diunggah'))));
|
|
@@ -28985,7 +29045,7 @@ const Upload = ({
|
|
|
28985
29045
|
__self: this,
|
|
28986
29046
|
__source: {
|
|
28987
29047
|
fileName: _jsxFileName$9,
|
|
28988
|
-
lineNumber:
|
|
29048
|
+
lineNumber: 782,
|
|
28989
29049
|
columnNumber: 7
|
|
28990
29050
|
}
|
|
28991
29051
|
}, /*#__PURE__*/React__default.createElement(ContainerUpload, {
|
|
@@ -29001,7 +29061,7 @@ const Upload = ({
|
|
|
29001
29061
|
__self: this,
|
|
29002
29062
|
__source: {
|
|
29003
29063
|
fileName: _jsxFileName$9,
|
|
29004
|
-
lineNumber:
|
|
29064
|
+
lineNumber: 783,
|
|
29005
29065
|
columnNumber: 9
|
|
29006
29066
|
}
|
|
29007
29067
|
}, /*#__PURE__*/React__default.createElement(Input$2, {
|
|
@@ -29013,21 +29073,21 @@ const Upload = ({
|
|
|
29013
29073
|
__self: this,
|
|
29014
29074
|
__source: {
|
|
29015
29075
|
fileName: _jsxFileName$9,
|
|
29016
|
-
lineNumber:
|
|
29076
|
+
lineNumber: 794,
|
|
29017
29077
|
columnNumber: 11
|
|
29018
29078
|
}
|
|
29019
29079
|
}), /*#__PURE__*/React__default.createElement(Children, {
|
|
29020
29080
|
__self: this,
|
|
29021
29081
|
__source: {
|
|
29022
29082
|
fileName: _jsxFileName$9,
|
|
29023
|
-
lineNumber:
|
|
29083
|
+
lineNumber: 795,
|
|
29024
29084
|
columnNumber: 11
|
|
29025
29085
|
}
|
|
29026
29086
|
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
29027
29087
|
__self: this,
|
|
29028
29088
|
__source: {
|
|
29029
29089
|
fileName: _jsxFileName$9,
|
|
29030
|
-
lineNumber:
|
|
29090
|
+
lineNumber: 797,
|
|
29031
29091
|
columnNumber: 15
|
|
29032
29092
|
}
|
|
29033
29093
|
}, /*#__PURE__*/React__default.createElement(IconCard, {
|
|
@@ -29036,7 +29096,7 @@ const Upload = ({
|
|
|
29036
29096
|
__self: this,
|
|
29037
29097
|
__source: {
|
|
29038
29098
|
fileName: _jsxFileName$9,
|
|
29039
|
-
lineNumber:
|
|
29099
|
+
lineNumber: 798,
|
|
29040
29100
|
columnNumber: 17
|
|
29041
29101
|
}
|
|
29042
29102
|
}, /*#__PURE__*/React__default.createElement(UploadOutline, {
|
|
@@ -29044,7 +29104,7 @@ const Upload = ({
|
|
|
29044
29104
|
__self: this,
|
|
29045
29105
|
__source: {
|
|
29046
29106
|
fileName: _jsxFileName$9,
|
|
29047
|
-
lineNumber:
|
|
29107
|
+
lineNumber: 799,
|
|
29048
29108
|
columnNumber: 19
|
|
29049
29109
|
}
|
|
29050
29110
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -29054,7 +29114,7 @@ const Upload = ({
|
|
|
29054
29114
|
__self: this,
|
|
29055
29115
|
__source: {
|
|
29056
29116
|
fileName: _jsxFileName$9,
|
|
29057
|
-
lineNumber:
|
|
29117
|
+
lineNumber: 801,
|
|
29058
29118
|
columnNumber: 17
|
|
29059
29119
|
}
|
|
29060
29120
|
}, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
@@ -29064,7 +29124,7 @@ const Upload = ({
|
|
|
29064
29124
|
__self: this,
|
|
29065
29125
|
__source: {
|
|
29066
29126
|
fileName: _jsxFileName$9,
|
|
29067
|
-
lineNumber:
|
|
29127
|
+
lineNumber: 808,
|
|
29068
29128
|
columnNumber: 19
|
|
29069
29129
|
}
|
|
29070
29130
|
}, error));
|
|
@@ -29076,7 +29136,7 @@ const Upload = ({
|
|
|
29076
29136
|
__self: this,
|
|
29077
29137
|
__source: {
|
|
29078
29138
|
fileName: _jsxFileName$9,
|
|
29079
|
-
lineNumber:
|
|
29139
|
+
lineNumber: 815,
|
|
29080
29140
|
columnNumber: 7
|
|
29081
29141
|
}
|
|
29082
29142
|
}, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
|
|
@@ -29084,7 +29144,7 @@ const Upload = ({
|
|
|
29084
29144
|
__self: this,
|
|
29085
29145
|
__source: {
|
|
29086
29146
|
fileName: _jsxFileName$9,
|
|
29087
|
-
lineNumber:
|
|
29147
|
+
lineNumber: 816,
|
|
29088
29148
|
columnNumber: 9
|
|
29089
29149
|
}
|
|
29090
29150
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -29092,7 +29152,7 @@ const Upload = ({
|
|
|
29092
29152
|
__self: this,
|
|
29093
29153
|
__source: {
|
|
29094
29154
|
fileName: _jsxFileName$9,
|
|
29095
|
-
lineNumber:
|
|
29155
|
+
lineNumber: 817,
|
|
29096
29156
|
columnNumber: 11
|
|
29097
29157
|
}
|
|
29098
29158
|
})), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
|
|
@@ -29105,7 +29165,7 @@ const Upload = ({
|
|
|
29105
29165
|
__self: this,
|
|
29106
29166
|
__source: {
|
|
29107
29167
|
fileName: _jsxFileName$9,
|
|
29108
|
-
lineNumber:
|
|
29168
|
+
lineNumber: 819,
|
|
29109
29169
|
columnNumber: 9
|
|
29110
29170
|
}
|
|
29111
29171
|
}, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
|
|
@@ -29118,7 +29178,7 @@ const Upload = ({
|
|
|
29118
29178
|
__self: this,
|
|
29119
29179
|
__source: {
|
|
29120
29180
|
fileName: _jsxFileName$9,
|
|
29121
|
-
lineNumber:
|
|
29181
|
+
lineNumber: 822,
|
|
29122
29182
|
columnNumber: 9
|
|
29123
29183
|
}
|
|
29124
29184
|
}, /*#__PURE__*/React__default.createElement(ReactCrop, {
|
|
@@ -29129,7 +29189,7 @@ const Upload = ({
|
|
|
29129
29189
|
__self: this,
|
|
29130
29190
|
__source: {
|
|
29131
29191
|
fileName: _jsxFileName$9,
|
|
29132
|
-
lineNumber:
|
|
29192
|
+
lineNumber: 830,
|
|
29133
29193
|
columnNumber: 11
|
|
29134
29194
|
}
|
|
29135
29195
|
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -29143,14 +29203,14 @@ const Upload = ({
|
|
|
29143
29203
|
__self: this,
|
|
29144
29204
|
__source: {
|
|
29145
29205
|
fileName: _jsxFileName$9,
|
|
29146
|
-
lineNumber:
|
|
29206
|
+
lineNumber: 831,
|
|
29147
29207
|
columnNumber: 13
|
|
29148
29208
|
}
|
|
29149
29209
|
}))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
|
|
29150
29210
|
__self: this,
|
|
29151
29211
|
__source: {
|
|
29152
29212
|
fileName: _jsxFileName$9,
|
|
29153
|
-
lineNumber:
|
|
29213
|
+
lineNumber: 842,
|
|
29154
29214
|
columnNumber: 9
|
|
29155
29215
|
}
|
|
29156
29216
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29162,14 +29222,14 @@ const Upload = ({
|
|
|
29162
29222
|
__self: this,
|
|
29163
29223
|
__source: {
|
|
29164
29224
|
fileName: _jsxFileName$9,
|
|
29165
|
-
lineNumber:
|
|
29225
|
+
lineNumber: 843,
|
|
29166
29226
|
columnNumber: 11
|
|
29167
29227
|
}
|
|
29168
29228
|
}, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
|
|
29169
29229
|
__self: this,
|
|
29170
29230
|
__source: {
|
|
29171
29231
|
fileName: _jsxFileName$9,
|
|
29172
|
-
lineNumber:
|
|
29232
|
+
lineNumber: 845,
|
|
29173
29233
|
columnNumber: 15
|
|
29174
29234
|
}
|
|
29175
29235
|
}) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -29177,7 +29237,7 @@ const Upload = ({
|
|
|
29177
29237
|
__self: this,
|
|
29178
29238
|
__source: {
|
|
29179
29239
|
fileName: _jsxFileName$9,
|
|
29180
|
-
lineNumber:
|
|
29240
|
+
lineNumber: 847,
|
|
29181
29241
|
columnNumber: 15
|
|
29182
29242
|
}
|
|
29183
29243
|
}, /*#__PURE__*/React__default.createElement(ImageOutline, {
|
|
@@ -29189,7 +29249,7 @@ const Upload = ({
|
|
|
29189
29249
|
__self: this,
|
|
29190
29250
|
__source: {
|
|
29191
29251
|
fileName: _jsxFileName$9,
|
|
29192
|
-
lineNumber:
|
|
29252
|
+
lineNumber: 848,
|
|
29193
29253
|
columnNumber: 17
|
|
29194
29254
|
}
|
|
29195
29255
|
})), /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29197,7 +29257,7 @@ const Upload = ({
|
|
|
29197
29257
|
__self: this,
|
|
29198
29258
|
__source: {
|
|
29199
29259
|
fileName: _jsxFileName$9,
|
|
29200
|
-
lineNumber:
|
|
29260
|
+
lineNumber: 855,
|
|
29201
29261
|
columnNumber: 13
|
|
29202
29262
|
}
|
|
29203
29263
|
}, /*#__PURE__*/React__default.createElement(Button$4, {
|
|
@@ -29206,7 +29266,7 @@ const Upload = ({
|
|
|
29206
29266
|
__self: this,
|
|
29207
29267
|
__source: {
|
|
29208
29268
|
fileName: _jsxFileName$9,
|
|
29209
|
-
lineNumber:
|
|
29269
|
+
lineNumber: 856,
|
|
29210
29270
|
columnNumber: 15
|
|
29211
29271
|
}
|
|
29212
29272
|
}, t('label.cancel', 'Batal', {
|
|
@@ -29216,7 +29276,7 @@ const Upload = ({
|
|
|
29216
29276
|
__self: this,
|
|
29217
29277
|
__source: {
|
|
29218
29278
|
fileName: _jsxFileName$9,
|
|
29219
|
-
lineNumber:
|
|
29279
|
+
lineNumber: 859,
|
|
29220
29280
|
columnNumber: 15
|
|
29221
29281
|
}
|
|
29222
29282
|
}, t('save', 'Simpan', {
|
|
@@ -29233,7 +29293,7 @@ const Upload = ({
|
|
|
29233
29293
|
__self: undefined,
|
|
29234
29294
|
__source: {
|
|
29235
29295
|
fileName: _jsxFileName$9,
|
|
29236
|
-
lineNumber:
|
|
29296
|
+
lineNumber: 868,
|
|
29237
29297
|
columnNumber: 5
|
|
29238
29298
|
}
|
|
29239
29299
|
}, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
@@ -29242,7 +29302,7 @@ const Upload = ({
|
|
|
29242
29302
|
__self: undefined,
|
|
29243
29303
|
__source: {
|
|
29244
29304
|
fileName: _jsxFileName$9,
|
|
29245
|
-
lineNumber:
|
|
29305
|
+
lineNumber: 871,
|
|
29246
29306
|
columnNumber: 32
|
|
29247
29307
|
}
|
|
29248
29308
|
}) : renderUpload(), showCropper && renderCropper());
|