@majoo-ui/react 1.61.0-rc.8 → 1.61.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +181 -141
- package/index.umd.js +181 -141
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1618,7 +1618,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1618
1618
|
return target;
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
|
-
const _excluded$
|
|
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':
|
|
@@ -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']);
|
|
@@ -16319,7 +16319,7 @@ InputCounter.defaultProps = {
|
|
|
16319
16319
|
size: 'lg'
|
|
16320
16320
|
};
|
|
16321
16321
|
|
|
16322
|
-
const _excluded$
|
|
16322
|
+
const _excluded$c = ["children"],
|
|
16323
16323
|
_excluded2$3 = ["children", "showOverlay"];
|
|
16324
16324
|
var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
16325
16325
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
@@ -16361,7 +16361,7 @@ function Drawer(_ref) {
|
|
|
16361
16361
|
let {
|
|
16362
16362
|
children
|
|
16363
16363
|
} = _ref,
|
|
16364
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16364
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
16365
16365
|
return /*#__PURE__*/React__default.createElement(DialogPrimitive.Root, _extends({}, props, {
|
|
16366
16366
|
__self: this,
|
|
16367
16367
|
__source: {
|
|
@@ -16669,7 +16669,7 @@ DrawerBody.displayName = 'DrawerBody';
|
|
|
16669
16669
|
DrawerFooter.displayName = 'DrawerFooter';
|
|
16670
16670
|
DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
16671
16671
|
|
|
16672
|
-
const _excluded$
|
|
16672
|
+
const _excluded$b = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
|
|
16673
16673
|
_excluded2$2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
16674
16674
|
var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
16675
16675
|
const ScrollButton$1 = styled(Button$4, {
|
|
@@ -16875,7 +16875,7 @@ function ButtonGroup$1(_ref) {
|
|
|
16875
16875
|
mobileOnly,
|
|
16876
16876
|
desktopOnly
|
|
16877
16877
|
} = _ref,
|
|
16878
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16878
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
16879
16879
|
const [listContainerScrollPosition, setlistContainerScrollPosition] = useState(0);
|
|
16880
16880
|
const [scrollAreaWidth, setScrollAreaWidth] = useState(0);
|
|
16881
16881
|
const listContainerRef = useRef();
|
|
@@ -19687,22 +19687,22 @@ function advancePickerDate(type, date) {
|
|
|
19687
19687
|
case NEXT_WEEK:
|
|
19688
19688
|
{
|
|
19689
19689
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[1]).add(1, 'day');
|
|
19690
|
-
const startThisWeek = currentDate.startOf('
|
|
19691
|
-
const endThisWeek = currentDate.endOf('
|
|
19690
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19691
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19692
19692
|
return [startThisWeek, endThisWeek];
|
|
19693
19693
|
}
|
|
19694
19694
|
case RANGE_WEEK:
|
|
19695
19695
|
{
|
|
19696
19696
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]);
|
|
19697
|
-
const startThisWeek = currentDate.startOf('
|
|
19698
|
-
const endThisWeek = currentDate.endOf('
|
|
19697
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19698
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19699
19699
|
return [startThisWeek, endThisWeek];
|
|
19700
19700
|
}
|
|
19701
19701
|
case PREV_WEEK:
|
|
19702
19702
|
{
|
|
19703
19703
|
const currentDate = moment(date === null || date === void 0 ? void 0 : date[0]).subtract(1, 'day');
|
|
19704
|
-
const startThisWeek = currentDate.startOf('
|
|
19705
|
-
const endThisWeek = currentDate.endOf('
|
|
19704
|
+
const startThisWeek = currentDate.startOf('isoWeek').toDate();
|
|
19705
|
+
const endThisWeek = currentDate.endOf('isoWeek').toDate();
|
|
19706
19706
|
return [startThisWeek, endThisWeek];
|
|
19707
19707
|
}
|
|
19708
19708
|
case RANGE_MONTH:
|
|
@@ -20526,7 +20526,7 @@ function InputSignature({
|
|
|
20526
20526
|
}, void 0);
|
|
20527
20527
|
}
|
|
20528
20528
|
|
|
20529
|
-
const _excluded$
|
|
20529
|
+
const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
20530
20530
|
var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
20531
20531
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
20532
20532
|
position: 'relative',
|
|
@@ -20786,7 +20786,7 @@ function Slider(_ref) {
|
|
|
20786
20786
|
width,
|
|
20787
20787
|
height
|
|
20788
20788
|
} = _ref,
|
|
20789
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20789
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
20790
20790
|
return /*#__PURE__*/React__default.createElement(StyledSlider, _extends({
|
|
20791
20791
|
className: className,
|
|
20792
20792
|
defaultValue: defaultValue,
|
|
@@ -20870,7 +20870,7 @@ Slider.defaultProps = {
|
|
|
20870
20870
|
size: 'm'
|
|
20871
20871
|
};
|
|
20872
20872
|
|
|
20873
|
-
const _excluded$
|
|
20873
|
+
const _excluded$9 = ["className", "children", "onClick", "type", "size"];
|
|
20874
20874
|
var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
20875
20875
|
const TagWrapper$1 = styled('div', {
|
|
20876
20876
|
boxSizing: 'border-box',
|
|
@@ -20971,7 +20971,7 @@ const TagStatus = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
20971
20971
|
type,
|
|
20972
20972
|
size
|
|
20973
20973
|
} = _ref,
|
|
20974
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20974
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
20975
20975
|
return /*#__PURE__*/React__default.createElement(TagWrapper$1, _extends({
|
|
20976
20976
|
ref: ref,
|
|
20977
20977
|
className: className,
|
|
@@ -21031,7 +21031,7 @@ function addPropsToChildren(children, props) {
|
|
|
21031
21031
|
}, props)));
|
|
21032
21032
|
}
|
|
21033
21033
|
|
|
21034
|
-
const _excluded$
|
|
21034
|
+
const _excluded$8 = ["children"],
|
|
21035
21035
|
_excluded2$1 = ["children", "activeTabs"],
|
|
21036
21036
|
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
21037
21037
|
_excluded4 = ["activeTabs"];
|
|
@@ -21179,7 +21179,7 @@ const Tabs$1 = _ref => {
|
|
|
21179
21179
|
let {
|
|
21180
21180
|
children
|
|
21181
21181
|
} = _ref,
|
|
21182
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21182
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
21183
21183
|
const [activeTabs, setActiveTabs] = useState(props.defaultValue || '');
|
|
21184
21184
|
return /*#__PURE__*/React__default.createElement(StyledTabs, _extends({}, props, {
|
|
21185
21185
|
onValueChange: value => {
|
|
@@ -21373,7 +21373,7 @@ TabsContent$1.propTypes = {
|
|
|
21373
21373
|
value: PropTypes.string
|
|
21374
21374
|
};
|
|
21375
21375
|
|
|
21376
|
-
const _excluded$
|
|
21376
|
+
const _excluded$7 = ["children", "variantIcon"];
|
|
21377
21377
|
var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
21378
21378
|
const NotificationBadgeRootStyle = styled('span', {
|
|
21379
21379
|
position: 'relative',
|
|
@@ -21476,7 +21476,7 @@ const NotificationBadge = _ref => {
|
|
|
21476
21476
|
children,
|
|
21477
21477
|
variantIcon
|
|
21478
21478
|
} = _ref,
|
|
21479
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21479
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
21480
21480
|
const getIcon = () => {
|
|
21481
21481
|
const isLeading = variantIcon === 'leading';
|
|
21482
21482
|
return {
|
|
@@ -21528,7 +21528,7 @@ NotificationBadge.propTypes = {
|
|
|
21528
21528
|
dot: PropTypes.bool
|
|
21529
21529
|
};
|
|
21530
21530
|
|
|
21531
|
-
const _excluded$
|
|
21531
|
+
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
21532
21532
|
var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
21533
21533
|
const PaperComponent = styled('div', {
|
|
21534
21534
|
padding: '20px',
|
|
@@ -21574,7 +21574,7 @@ const Paper = _ref => {
|
|
|
21574
21574
|
width,
|
|
21575
21575
|
height
|
|
21576
21576
|
} = _ref,
|
|
21577
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21577
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
21578
21578
|
return /*#__PURE__*/React__default.createElement(PaperComponent, _extends({
|
|
21579
21579
|
className: className,
|
|
21580
21580
|
css: Object.assign({
|
|
@@ -21781,7 +21781,7 @@ const removeUndefinedFields = obj => {
|
|
|
21781
21781
|
return newObj;
|
|
21782
21782
|
};
|
|
21783
21783
|
|
|
21784
|
-
const _excluded$
|
|
21784
|
+
const _excluded$5 = ["isActive", "onClick"];
|
|
21785
21785
|
var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
21786
21786
|
const PrevNextButton = styled(Text$1, {
|
|
21787
21787
|
padding: '$spacing-01',
|
|
@@ -21868,7 +21868,7 @@ const PageButton = _ref => {
|
|
|
21868
21868
|
isActive,
|
|
21869
21869
|
onClick
|
|
21870
21870
|
} = _ref,
|
|
21871
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21871
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
21872
21872
|
return /*#__PURE__*/React__default.createElement(Button$4, _extends({
|
|
21873
21873
|
type: "button",
|
|
21874
21874
|
onClick: onClick,
|
|
@@ -22269,7 +22269,7 @@ const PaginationButton = ({
|
|
|
22269
22269
|
}, t('btnSubmitText', 'Lanjutkan'))))));
|
|
22270
22270
|
};
|
|
22271
22271
|
|
|
22272
|
-
const _excluded$
|
|
22272
|
+
const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
22273
22273
|
var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
22274
22274
|
const LimitContainer = styled(Flex$1, {
|
|
22275
22275
|
cursor: 'pointer'
|
|
@@ -22295,7 +22295,7 @@ function PaginationInfo(_ref) {
|
|
|
22295
22295
|
totalData,
|
|
22296
22296
|
onChange
|
|
22297
22297
|
} = _ref;
|
|
22298
|
-
_objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22298
|
+
_objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
22299
22299
|
const {
|
|
22300
22300
|
t
|
|
22301
22301
|
} = useTranslation('MajooUI/pagination');
|
|
@@ -22502,7 +22502,7 @@ function PaginationInfo(_ref) {
|
|
|
22502
22502
|
}, limit.toString()))))));
|
|
22503
22503
|
}
|
|
22504
22504
|
|
|
22505
|
-
const _excluded$
|
|
22505
|
+
const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
|
|
22506
22506
|
var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
22507
22507
|
function Pagination(_ref) {
|
|
22508
22508
|
let {
|
|
@@ -22517,7 +22517,7 @@ function Pagination(_ref) {
|
|
|
22517
22517
|
hidePagination,
|
|
22518
22518
|
hideInputPageSection
|
|
22519
22519
|
} = _ref,
|
|
22520
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22520
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
22521
22521
|
const totalPages = totalPage || Math.ceil(totalData / limit);
|
|
22522
22522
|
const isMobile = useMediaQuery('(max-width: 700px)');
|
|
22523
22523
|
return /*#__PURE__*/React__default.createElement(Flex$1, _extends({
|
|
@@ -25389,7 +25389,7 @@ PageDialog.defaultProps = {
|
|
|
25389
25389
|
layer: '$modal'
|
|
25390
25390
|
};
|
|
25391
25391
|
|
|
25392
|
-
const _excluded$
|
|
25392
|
+
const _excluded$2 = ["children"];
|
|
25393
25393
|
var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
25394
25394
|
const overlayShow = keyframes({
|
|
25395
25395
|
'0%': {
|
|
@@ -25462,7 +25462,7 @@ const Content$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
25462
25462
|
let {
|
|
25463
25463
|
children
|
|
25464
25464
|
} = _ref,
|
|
25465
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25465
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
25466
25466
|
return /*#__PURE__*/React__default.createElement(ADialog.Portal, {
|
|
25467
25467
|
__self: undefined,
|
|
25468
25468
|
__source: {
|
|
@@ -26022,7 +26022,7 @@ const AlertDialogDescription = StyledDescription$1;
|
|
|
26022
26022
|
const AlertDialogCancel = ADialog.Cancel;
|
|
26023
26023
|
const AlertDialogConfirm = ADialog.Action;
|
|
26024
26024
|
|
|
26025
|
-
const _excluded = ["side", "align", "children"],
|
|
26025
|
+
const _excluded$1 = ["side", "align", "children"],
|
|
26026
26026
|
_excluded2 = ["children"],
|
|
26027
26027
|
_excluded3 = ["asChild"];
|
|
26028
26028
|
var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
@@ -26165,7 +26165,7 @@ const DropdownMenuContext = _ref => {
|
|
|
26165
26165
|
align,
|
|
26166
26166
|
children
|
|
26167
26167
|
} = _ref,
|
|
26168
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
26168
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
26169
26169
|
return /*#__PURE__*/React__default.createElement(DropdownMenuPrimitive.Root, _extends({}, props, {
|
|
26170
26170
|
__self: undefined,
|
|
26171
26171
|
__source: {
|
|
@@ -28136,6 +28136,7 @@ function imgPreview(image, crop, scale = 1, rotate = 0, ratio, type) {
|
|
|
28136
28136
|
});
|
|
28137
28137
|
}
|
|
28138
28138
|
|
|
28139
|
+
const _excluded = ["customPreviewIcon"];
|
|
28139
28140
|
var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
28140
28141
|
const Input$2 = styled('input', {
|
|
28141
28142
|
display: 'none !important'
|
|
@@ -28210,7 +28211,11 @@ const EyeIcon = styled(EyeOutline, {
|
|
|
28210
28211
|
height: 32,
|
|
28211
28212
|
padding: '$spacing-02'
|
|
28212
28213
|
});
|
|
28213
|
-
const IconStateFull =
|
|
28214
|
+
const IconStateFull = _ref => {
|
|
28215
|
+
let {
|
|
28216
|
+
customPreviewIcon
|
|
28217
|
+
} = _ref,
|
|
28218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
28214
28219
|
const [isHover, setIsHover] = useState(false);
|
|
28215
28220
|
function handleEnter() {
|
|
28216
28221
|
setIsHover(true);
|
|
@@ -28228,6 +28233,25 @@ const IconStateFull = props => {
|
|
|
28228
28233
|
lineNumber: 119,
|
|
28229
28234
|
columnNumber: 5
|
|
28230
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)
|
|
28231
28255
|
})) : /*#__PURE__*/React__default.createElement(EyeIcon, _extends({}, props, {
|
|
28232
28256
|
color: isHover ? '#04C99E' : '#A5ABAB',
|
|
28233
28257
|
onMouseEnter: handleEnter,
|
|
@@ -28235,10 +28259,10 @@ const IconStateFull = props => {
|
|
|
28235
28259
|
__self: undefined,
|
|
28236
28260
|
__source: {
|
|
28237
28261
|
fileName: _jsxFileName$9,
|
|
28238
|
-
lineNumber:
|
|
28239
|
-
columnNumber:
|
|
28262
|
+
lineNumber: 145,
|
|
28263
|
+
columnNumber: 9
|
|
28240
28264
|
}
|
|
28241
|
-
}));
|
|
28265
|
+
})));
|
|
28242
28266
|
};
|
|
28243
28267
|
const Upload = ({
|
|
28244
28268
|
placeholder,
|
|
@@ -28277,7 +28301,9 @@ const Upload = ({
|
|
|
28277
28301
|
hiddenToggleAspect,
|
|
28278
28302
|
hiddenPreview,
|
|
28279
28303
|
fullAspectCrop,
|
|
28280
|
-
isDefaultCustomRatio
|
|
28304
|
+
isDefaultCustomRatio,
|
|
28305
|
+
customPreviewIcon,
|
|
28306
|
+
onPreviewIconClick
|
|
28281
28307
|
}) => {
|
|
28282
28308
|
const {
|
|
28283
28309
|
t
|
|
@@ -28707,7 +28733,7 @@ const Upload = ({
|
|
|
28707
28733
|
__self: this,
|
|
28708
28734
|
__source: {
|
|
28709
28735
|
fileName: _jsxFileName$9,
|
|
28710
|
-
lineNumber:
|
|
28736
|
+
lineNumber: 643,
|
|
28711
28737
|
columnNumber: 7
|
|
28712
28738
|
}
|
|
28713
28739
|
}, /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
@@ -28717,7 +28743,7 @@ const Upload = ({
|
|
|
28717
28743
|
__self: this,
|
|
28718
28744
|
__source: {
|
|
28719
28745
|
fileName: _jsxFileName$9,
|
|
28720
|
-
lineNumber:
|
|
28746
|
+
lineNumber: 644,
|
|
28721
28747
|
columnNumber: 9
|
|
28722
28748
|
}
|
|
28723
28749
|
}, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
|
|
@@ -28732,7 +28758,7 @@ const Upload = ({
|
|
|
28732
28758
|
__self: undefined,
|
|
28733
28759
|
__source: {
|
|
28734
28760
|
fileName: _jsxFileName$9,
|
|
28735
|
-
lineNumber:
|
|
28761
|
+
lineNumber: 654,
|
|
28736
28762
|
columnNumber: 16
|
|
28737
28763
|
}
|
|
28738
28764
|
});
|
|
@@ -28743,7 +28769,7 @@ const Upload = ({
|
|
|
28743
28769
|
__self: undefined,
|
|
28744
28770
|
__source: {
|
|
28745
28771
|
fileName: _jsxFileName$9,
|
|
28746
|
-
lineNumber:
|
|
28772
|
+
lineNumber: 657,
|
|
28747
28773
|
columnNumber: 9
|
|
28748
28774
|
}
|
|
28749
28775
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28753,7 +28779,7 @@ const Upload = ({
|
|
|
28753
28779
|
__self: undefined,
|
|
28754
28780
|
__source: {
|
|
28755
28781
|
fileName: _jsxFileName$9,
|
|
28756
|
-
lineNumber:
|
|
28782
|
+
lineNumber: 658,
|
|
28757
28783
|
columnNumber: 11
|
|
28758
28784
|
}
|
|
28759
28785
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28762,7 +28788,7 @@ const Upload = ({
|
|
|
28762
28788
|
__self: undefined,
|
|
28763
28789
|
__source: {
|
|
28764
28790
|
fileName: _jsxFileName$9,
|
|
28765
|
-
lineNumber:
|
|
28791
|
+
lineNumber: 659,
|
|
28766
28792
|
columnNumber: 27
|
|
28767
28793
|
}
|
|
28768
28794
|
}), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28775,16 +28801,23 @@ const Upload = ({
|
|
|
28775
28801
|
__self: undefined,
|
|
28776
28802
|
__source: {
|
|
28777
28803
|
fileName: _jsxFileName$9,
|
|
28778
|
-
lineNumber:
|
|
28804
|
+
lineNumber: 661,
|
|
28779
28805
|
columnNumber: 15
|
|
28780
28806
|
}
|
|
28781
28807
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28782
28808
|
type: "eye",
|
|
28783
|
-
onClick: () =>
|
|
28809
|
+
onClick: () => {
|
|
28810
|
+
if (onPreviewIconClick) {
|
|
28811
|
+
onPreviewIconClick(item);
|
|
28812
|
+
} else {
|
|
28813
|
+
handlePreview(item);
|
|
28814
|
+
}
|
|
28815
|
+
},
|
|
28816
|
+
customPreviewIcon: customPreviewIcon,
|
|
28784
28817
|
__self: undefined,
|
|
28785
28818
|
__source: {
|
|
28786
28819
|
fileName: _jsxFileName$9,
|
|
28787
|
-
lineNumber:
|
|
28820
|
+
lineNumber: 669,
|
|
28788
28821
|
columnNumber: 17
|
|
28789
28822
|
}
|
|
28790
28823
|
})), /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -28794,7 +28827,7 @@ const Upload = ({
|
|
|
28794
28827
|
__self: undefined,
|
|
28795
28828
|
__source: {
|
|
28796
28829
|
fileName: _jsxFileName$9,
|
|
28797
|
-
lineNumber:
|
|
28830
|
+
lineNumber: 682,
|
|
28798
28831
|
columnNumber: 13
|
|
28799
28832
|
}
|
|
28800
28833
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28811,7 +28844,7 @@ const Upload = ({
|
|
|
28811
28844
|
__self: undefined,
|
|
28812
28845
|
__source: {
|
|
28813
28846
|
fileName: _jsxFileName$9,
|
|
28814
|
-
lineNumber:
|
|
28847
|
+
lineNumber: 693,
|
|
28815
28848
|
columnNumber: 16
|
|
28816
28849
|
}
|
|
28817
28850
|
});
|
|
@@ -28821,7 +28854,7 @@ const Upload = ({
|
|
|
28821
28854
|
__self: undefined,
|
|
28822
28855
|
__source: {
|
|
28823
28856
|
fileName: _jsxFileName$9,
|
|
28824
|
-
lineNumber:
|
|
28857
|
+
lineNumber: 696,
|
|
28825
28858
|
columnNumber: 9
|
|
28826
28859
|
}
|
|
28827
28860
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28831,7 +28864,7 @@ const Upload = ({
|
|
|
28831
28864
|
__self: undefined,
|
|
28832
28865
|
__source: {
|
|
28833
28866
|
fileName: _jsxFileName$9,
|
|
28834
|
-
lineNumber:
|
|
28867
|
+
lineNumber: 697,
|
|
28835
28868
|
columnNumber: 11
|
|
28836
28869
|
}
|
|
28837
28870
|
}, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
@@ -28840,7 +28873,7 @@ const Upload = ({
|
|
|
28840
28873
|
__self: undefined,
|
|
28841
28874
|
__source: {
|
|
28842
28875
|
fileName: _jsxFileName$9,
|
|
28843
|
-
lineNumber:
|
|
28876
|
+
lineNumber: 698,
|
|
28844
28877
|
columnNumber: 27
|
|
28845
28878
|
}
|
|
28846
28879
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28853,7 +28886,7 @@ const Upload = ({
|
|
|
28853
28886
|
__self: undefined,
|
|
28854
28887
|
__source: {
|
|
28855
28888
|
fileName: _jsxFileName$9,
|
|
28856
|
-
lineNumber:
|
|
28889
|
+
lineNumber: 699,
|
|
28857
28890
|
columnNumber: 13
|
|
28858
28891
|
}
|
|
28859
28892
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28863,14 +28896,14 @@ const Upload = ({
|
|
|
28863
28896
|
__self: undefined,
|
|
28864
28897
|
__source: {
|
|
28865
28898
|
fileName: _jsxFileName$9,
|
|
28866
|
-
lineNumber:
|
|
28899
|
+
lineNumber: 707,
|
|
28867
28900
|
columnNumber: 15
|
|
28868
28901
|
}
|
|
28869
28902
|
}, /*#__PURE__*/React__default.createElement(FileExtension, {
|
|
28870
28903
|
__self: undefined,
|
|
28871
28904
|
__source: {
|
|
28872
28905
|
fileName: _jsxFileName$9,
|
|
28873
|
-
lineNumber:
|
|
28906
|
+
lineNumber: 708,
|
|
28874
28907
|
columnNumber: 17
|
|
28875
28908
|
}
|
|
28876
28909
|
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -28878,7 +28911,7 @@ const Upload = ({
|
|
|
28878
28911
|
__self: undefined,
|
|
28879
28912
|
__source: {
|
|
28880
28913
|
fileName: _jsxFileName$9,
|
|
28881
|
-
lineNumber:
|
|
28914
|
+
lineNumber: 709,
|
|
28882
28915
|
columnNumber: 17
|
|
28883
28916
|
}
|
|
28884
28917
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28893,7 +28926,7 @@ const Upload = ({
|
|
|
28893
28926
|
__self: undefined,
|
|
28894
28927
|
__source: {
|
|
28895
28928
|
fileName: _jsxFileName$9,
|
|
28896
|
-
lineNumber:
|
|
28929
|
+
lineNumber: 710,
|
|
28897
28930
|
columnNumber: 19
|
|
28898
28931
|
}
|
|
28899
28932
|
}, item.name)))), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28906,16 +28939,23 @@ const Upload = ({
|
|
|
28906
28939
|
__self: undefined,
|
|
28907
28940
|
__source: {
|
|
28908
28941
|
fileName: _jsxFileName$9,
|
|
28909
|
-
lineNumber:
|
|
28942
|
+
lineNumber: 726,
|
|
28910
28943
|
columnNumber: 15
|
|
28911
28944
|
}
|
|
28912
28945
|
}, /*#__PURE__*/React__default.createElement(IconStateFull, {
|
|
28913
28946
|
type: "eye",
|
|
28914
|
-
onClick: () =>
|
|
28947
|
+
onClick: () => {
|
|
28948
|
+
if (onPreviewIconClick) {
|
|
28949
|
+
onPreviewIconClick(item);
|
|
28950
|
+
} else {
|
|
28951
|
+
handleOpenFile(item);
|
|
28952
|
+
}
|
|
28953
|
+
},
|
|
28954
|
+
customPreviewIcon: customPreviewIcon,
|
|
28915
28955
|
__self: undefined,
|
|
28916
28956
|
__source: {
|
|
28917
28957
|
fileName: _jsxFileName$9,
|
|
28918
|
-
lineNumber:
|
|
28958
|
+
lineNumber: 734,
|
|
28919
28959
|
columnNumber: 17
|
|
28920
28960
|
}
|
|
28921
28961
|
})), /*#__PURE__*/React__default.createElement(Blank, {
|
|
@@ -28923,7 +28963,7 @@ const Upload = ({
|
|
|
28923
28963
|
__self: undefined,
|
|
28924
28964
|
__source: {
|
|
28925
28965
|
fileName: _jsxFileName$9,
|
|
28926
|
-
lineNumber:
|
|
28966
|
+
lineNumber: 747,
|
|
28927
28967
|
columnNumber: 13
|
|
28928
28968
|
}
|
|
28929
28969
|
})), !disabled && renderButtonReplace(index));
|
|
@@ -28938,7 +28978,7 @@ const Upload = ({
|
|
|
28938
28978
|
__self: this,
|
|
28939
28979
|
__source: {
|
|
28940
28980
|
fileName: _jsxFileName$9,
|
|
28941
|
-
lineNumber:
|
|
28981
|
+
lineNumber: 758,
|
|
28942
28982
|
columnNumber: 7
|
|
28943
28983
|
}
|
|
28944
28984
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28952,7 +28992,7 @@ const Upload = ({
|
|
|
28952
28992
|
__self: this,
|
|
28953
28993
|
__source: {
|
|
28954
28994
|
fileName: _jsxFileName$9,
|
|
28955
|
-
lineNumber:
|
|
28995
|
+
lineNumber: 759,
|
|
28956
28996
|
columnNumber: 9
|
|
28957
28997
|
}
|
|
28958
28998
|
}, /*#__PURE__*/React__default.createElement(LoadingBar, {
|
|
@@ -28978,7 +29018,7 @@ const Upload = ({
|
|
|
28978
29018
|
__self: this,
|
|
28979
29019
|
__source: {
|
|
28980
29020
|
fileName: _jsxFileName$9,
|
|
28981
|
-
lineNumber:
|
|
29021
|
+
lineNumber: 760,
|
|
28982
29022
|
columnNumber: 11
|
|
28983
29023
|
}
|
|
28984
29024
|
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -28986,14 +29026,14 @@ const Upload = ({
|
|
|
28986
29026
|
__self: this,
|
|
28987
29027
|
__source: {
|
|
28988
29028
|
fileName: _jsxFileName$9,
|
|
28989
|
-
lineNumber:
|
|
29029
|
+
lineNumber: 773,
|
|
28990
29030
|
columnNumber: 11
|
|
28991
29031
|
}
|
|
28992
29032
|
}, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
|
|
28993
29033
|
__self: this,
|
|
28994
29034
|
__source: {
|
|
28995
29035
|
fileName: _jsxFileName$9,
|
|
28996
|
-
lineNumber:
|
|
29036
|
+
lineNumber: 774,
|
|
28997
29037
|
columnNumber: 11
|
|
28998
29038
|
}
|
|
28999
29039
|
}, t('uploadingLabel', 'Berkas sedang diunggah'))));
|
|
@@ -29005,7 +29045,7 @@ const Upload = ({
|
|
|
29005
29045
|
__self: this,
|
|
29006
29046
|
__source: {
|
|
29007
29047
|
fileName: _jsxFileName$9,
|
|
29008
|
-
lineNumber:
|
|
29048
|
+
lineNumber: 782,
|
|
29009
29049
|
columnNumber: 7
|
|
29010
29050
|
}
|
|
29011
29051
|
}, /*#__PURE__*/React__default.createElement(ContainerUpload, {
|
|
@@ -29021,7 +29061,7 @@ const Upload = ({
|
|
|
29021
29061
|
__self: this,
|
|
29022
29062
|
__source: {
|
|
29023
29063
|
fileName: _jsxFileName$9,
|
|
29024
|
-
lineNumber:
|
|
29064
|
+
lineNumber: 783,
|
|
29025
29065
|
columnNumber: 9
|
|
29026
29066
|
}
|
|
29027
29067
|
}, /*#__PURE__*/React__default.createElement(Input$2, {
|
|
@@ -29033,21 +29073,21 @@ const Upload = ({
|
|
|
29033
29073
|
__self: this,
|
|
29034
29074
|
__source: {
|
|
29035
29075
|
fileName: _jsxFileName$9,
|
|
29036
|
-
lineNumber:
|
|
29076
|
+
lineNumber: 794,
|
|
29037
29077
|
columnNumber: 11
|
|
29038
29078
|
}
|
|
29039
29079
|
}), /*#__PURE__*/React__default.createElement(Children, {
|
|
29040
29080
|
__self: this,
|
|
29041
29081
|
__source: {
|
|
29042
29082
|
fileName: _jsxFileName$9,
|
|
29043
|
-
lineNumber:
|
|
29083
|
+
lineNumber: 795,
|
|
29044
29084
|
columnNumber: 11
|
|
29045
29085
|
}
|
|
29046
29086
|
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
29047
29087
|
__self: this,
|
|
29048
29088
|
__source: {
|
|
29049
29089
|
fileName: _jsxFileName$9,
|
|
29050
|
-
lineNumber:
|
|
29090
|
+
lineNumber: 797,
|
|
29051
29091
|
columnNumber: 15
|
|
29052
29092
|
}
|
|
29053
29093
|
}, /*#__PURE__*/React__default.createElement(IconCard, {
|
|
@@ -29056,7 +29096,7 @@ const Upload = ({
|
|
|
29056
29096
|
__self: this,
|
|
29057
29097
|
__source: {
|
|
29058
29098
|
fileName: _jsxFileName$9,
|
|
29059
|
-
lineNumber:
|
|
29099
|
+
lineNumber: 798,
|
|
29060
29100
|
columnNumber: 17
|
|
29061
29101
|
}
|
|
29062
29102
|
}, /*#__PURE__*/React__default.createElement(UploadOutline, {
|
|
@@ -29064,7 +29104,7 @@ const Upload = ({
|
|
|
29064
29104
|
__self: this,
|
|
29065
29105
|
__source: {
|
|
29066
29106
|
fileName: _jsxFileName$9,
|
|
29067
|
-
lineNumber:
|
|
29107
|
+
lineNumber: 799,
|
|
29068
29108
|
columnNumber: 19
|
|
29069
29109
|
}
|
|
29070
29110
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -29074,7 +29114,7 @@ const Upload = ({
|
|
|
29074
29114
|
__self: this,
|
|
29075
29115
|
__source: {
|
|
29076
29116
|
fileName: _jsxFileName$9,
|
|
29077
|
-
lineNumber:
|
|
29117
|
+
lineNumber: 801,
|
|
29078
29118
|
columnNumber: 17
|
|
29079
29119
|
}
|
|
29080
29120
|
}, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
@@ -29084,7 +29124,7 @@ const Upload = ({
|
|
|
29084
29124
|
__self: this,
|
|
29085
29125
|
__source: {
|
|
29086
29126
|
fileName: _jsxFileName$9,
|
|
29087
|
-
lineNumber:
|
|
29127
|
+
lineNumber: 808,
|
|
29088
29128
|
columnNumber: 19
|
|
29089
29129
|
}
|
|
29090
29130
|
}, error));
|
|
@@ -29096,7 +29136,7 @@ const Upload = ({
|
|
|
29096
29136
|
__self: this,
|
|
29097
29137
|
__source: {
|
|
29098
29138
|
fileName: _jsxFileName$9,
|
|
29099
|
-
lineNumber:
|
|
29139
|
+
lineNumber: 815,
|
|
29100
29140
|
columnNumber: 7
|
|
29101
29141
|
}
|
|
29102
29142
|
}, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
|
|
@@ -29104,7 +29144,7 @@ const Upload = ({
|
|
|
29104
29144
|
__self: this,
|
|
29105
29145
|
__source: {
|
|
29106
29146
|
fileName: _jsxFileName$9,
|
|
29107
|
-
lineNumber:
|
|
29147
|
+
lineNumber: 816,
|
|
29108
29148
|
columnNumber: 9
|
|
29109
29149
|
}
|
|
29110
29150
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -29112,7 +29152,7 @@ const Upload = ({
|
|
|
29112
29152
|
__self: this,
|
|
29113
29153
|
__source: {
|
|
29114
29154
|
fileName: _jsxFileName$9,
|
|
29115
|
-
lineNumber:
|
|
29155
|
+
lineNumber: 817,
|
|
29116
29156
|
columnNumber: 11
|
|
29117
29157
|
}
|
|
29118
29158
|
})), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
|
|
@@ -29125,7 +29165,7 @@ const Upload = ({
|
|
|
29125
29165
|
__self: this,
|
|
29126
29166
|
__source: {
|
|
29127
29167
|
fileName: _jsxFileName$9,
|
|
29128
|
-
lineNumber:
|
|
29168
|
+
lineNumber: 819,
|
|
29129
29169
|
columnNumber: 9
|
|
29130
29170
|
}
|
|
29131
29171
|
}, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
|
|
@@ -29138,7 +29178,7 @@ const Upload = ({
|
|
|
29138
29178
|
__self: this,
|
|
29139
29179
|
__source: {
|
|
29140
29180
|
fileName: _jsxFileName$9,
|
|
29141
|
-
lineNumber:
|
|
29181
|
+
lineNumber: 822,
|
|
29142
29182
|
columnNumber: 9
|
|
29143
29183
|
}
|
|
29144
29184
|
}, /*#__PURE__*/React__default.createElement(ReactCrop, {
|
|
@@ -29149,7 +29189,7 @@ const Upload = ({
|
|
|
29149
29189
|
__self: this,
|
|
29150
29190
|
__source: {
|
|
29151
29191
|
fileName: _jsxFileName$9,
|
|
29152
|
-
lineNumber:
|
|
29192
|
+
lineNumber: 830,
|
|
29153
29193
|
columnNumber: 11
|
|
29154
29194
|
}
|
|
29155
29195
|
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
@@ -29163,14 +29203,14 @@ const Upload = ({
|
|
|
29163
29203
|
__self: this,
|
|
29164
29204
|
__source: {
|
|
29165
29205
|
fileName: _jsxFileName$9,
|
|
29166
|
-
lineNumber:
|
|
29206
|
+
lineNumber: 831,
|
|
29167
29207
|
columnNumber: 13
|
|
29168
29208
|
}
|
|
29169
29209
|
}))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
|
|
29170
29210
|
__self: this,
|
|
29171
29211
|
__source: {
|
|
29172
29212
|
fileName: _jsxFileName$9,
|
|
29173
|
-
lineNumber:
|
|
29213
|
+
lineNumber: 842,
|
|
29174
29214
|
columnNumber: 9
|
|
29175
29215
|
}
|
|
29176
29216
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29182,14 +29222,14 @@ const Upload = ({
|
|
|
29182
29222
|
__self: this,
|
|
29183
29223
|
__source: {
|
|
29184
29224
|
fileName: _jsxFileName$9,
|
|
29185
|
-
lineNumber:
|
|
29225
|
+
lineNumber: 843,
|
|
29186
29226
|
columnNumber: 11
|
|
29187
29227
|
}
|
|
29188
29228
|
}, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
|
|
29189
29229
|
__self: this,
|
|
29190
29230
|
__source: {
|
|
29191
29231
|
fileName: _jsxFileName$9,
|
|
29192
|
-
lineNumber:
|
|
29232
|
+
lineNumber: 845,
|
|
29193
29233
|
columnNumber: 15
|
|
29194
29234
|
}
|
|
29195
29235
|
}) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
@@ -29197,7 +29237,7 @@ const Upload = ({
|
|
|
29197
29237
|
__self: this,
|
|
29198
29238
|
__source: {
|
|
29199
29239
|
fileName: _jsxFileName$9,
|
|
29200
|
-
lineNumber:
|
|
29240
|
+
lineNumber: 847,
|
|
29201
29241
|
columnNumber: 15
|
|
29202
29242
|
}
|
|
29203
29243
|
}, /*#__PURE__*/React__default.createElement(ImageOutline, {
|
|
@@ -29209,7 +29249,7 @@ const Upload = ({
|
|
|
29209
29249
|
__self: this,
|
|
29210
29250
|
__source: {
|
|
29211
29251
|
fileName: _jsxFileName$9,
|
|
29212
|
-
lineNumber:
|
|
29252
|
+
lineNumber: 848,
|
|
29213
29253
|
columnNumber: 17
|
|
29214
29254
|
}
|
|
29215
29255
|
})), /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -29217,7 +29257,7 @@ const Upload = ({
|
|
|
29217
29257
|
__self: this,
|
|
29218
29258
|
__source: {
|
|
29219
29259
|
fileName: _jsxFileName$9,
|
|
29220
|
-
lineNumber:
|
|
29260
|
+
lineNumber: 855,
|
|
29221
29261
|
columnNumber: 13
|
|
29222
29262
|
}
|
|
29223
29263
|
}, /*#__PURE__*/React__default.createElement(Button$4, {
|
|
@@ -29226,7 +29266,7 @@ const Upload = ({
|
|
|
29226
29266
|
__self: this,
|
|
29227
29267
|
__source: {
|
|
29228
29268
|
fileName: _jsxFileName$9,
|
|
29229
|
-
lineNumber:
|
|
29269
|
+
lineNumber: 856,
|
|
29230
29270
|
columnNumber: 15
|
|
29231
29271
|
}
|
|
29232
29272
|
}, t('label.cancel', 'Batal', {
|
|
@@ -29236,7 +29276,7 @@ const Upload = ({
|
|
|
29236
29276
|
__self: this,
|
|
29237
29277
|
__source: {
|
|
29238
29278
|
fileName: _jsxFileName$9,
|
|
29239
|
-
lineNumber:
|
|
29279
|
+
lineNumber: 859,
|
|
29240
29280
|
columnNumber: 15
|
|
29241
29281
|
}
|
|
29242
29282
|
}, t('save', 'Simpan', {
|
|
@@ -29253,7 +29293,7 @@ const Upload = ({
|
|
|
29253
29293
|
__self: undefined,
|
|
29254
29294
|
__source: {
|
|
29255
29295
|
fileName: _jsxFileName$9,
|
|
29256
|
-
lineNumber:
|
|
29296
|
+
lineNumber: 868,
|
|
29257
29297
|
columnNumber: 5
|
|
29258
29298
|
}
|
|
29259
29299
|
}, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
@@ -29262,7 +29302,7 @@ const Upload = ({
|
|
|
29262
29302
|
__self: undefined,
|
|
29263
29303
|
__source: {
|
|
29264
29304
|
fileName: _jsxFileName$9,
|
|
29265
|
-
lineNumber:
|
|
29305
|
+
lineNumber: 871,
|
|
29266
29306
|
columnNumber: 32
|
|
29267
29307
|
}
|
|
29268
29308
|
}) : renderUpload(), showCropper && renderCropper());
|