@majoo-ui/react 1.61.14-rc.7 → 1.61.15-rc.1
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
|
@@ -57,7 +57,7 @@ import imageCompressionComponent from 'browser-image-compression';
|
|
|
57
57
|
import { useSticky } from 'react-table-sticky';
|
|
58
58
|
import SignaturePad from 'react-signature-pad-wrapper';
|
|
59
59
|
|
|
60
|
-
var _jsxFileName$13 = "/
|
|
60
|
+
var _jsxFileName$13 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
|
|
61
61
|
function ThemeProvider({
|
|
62
62
|
name,
|
|
63
63
|
theme,
|
|
@@ -1244,7 +1244,7 @@ createTheme({
|
|
|
1244
1244
|
bgBorder: '#004a49'
|
|
1245
1245
|
}
|
|
1246
1246
|
});
|
|
1247
|
-
const colors$
|
|
1247
|
+
const colors$8 = foundations.colors;
|
|
1248
1248
|
|
|
1249
1249
|
const normalize = {
|
|
1250
1250
|
'*,::before,::after': {
|
|
@@ -1414,7 +1414,7 @@ const applyGlobalStyles = additionaStyles => {
|
|
|
1414
1414
|
globalStyles();
|
|
1415
1415
|
};
|
|
1416
1416
|
|
|
1417
|
-
var _jsxFileName$12 = "/
|
|
1417
|
+
var _jsxFileName$12 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
1418
1418
|
function MajooProvider({
|
|
1419
1419
|
children,
|
|
1420
1420
|
name,
|
|
@@ -1637,7 +1637,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
1637
1637
|
|
|
1638
1638
|
const _excluded$C = ["children"],
|
|
1639
1639
|
_excluded2$4 = ["children"];
|
|
1640
|
-
var _jsxFileName$11 = "/
|
|
1640
|
+
var _jsxFileName$11 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
1641
1641
|
const GridComponent = styled('div', {
|
|
1642
1642
|
display: 'grid',
|
|
1643
1643
|
variants: {
|
|
@@ -1907,7 +1907,7 @@ GridItem.propTypes = {
|
|
|
1907
1907
|
GridItem.displayName = 'Grid Item';
|
|
1908
1908
|
|
|
1909
1909
|
const _excluded$B = ["children", "isCollapse", "css", "contentHeader"];
|
|
1910
|
-
var _jsxFileName$10 = "/
|
|
1910
|
+
var _jsxFileName$10 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
1911
1911
|
const StyledDiv$2 = styled(Flex$1, {
|
|
1912
1912
|
justifyContent: 'center',
|
|
1913
1913
|
marginLeft: 'auto',
|
|
@@ -2415,7 +2415,7 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2415
2415
|
});
|
|
2416
2416
|
|
|
2417
2417
|
const _excluded$A = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
|
|
2418
|
-
var _jsxFileName$$ = "/
|
|
2418
|
+
var _jsxFileName$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
2419
2419
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
2420
2420
|
const StyledBanner = styled(Flex$1, {
|
|
2421
2421
|
maxWidth: '100%',
|
|
@@ -2629,7 +2629,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
2629
2629
|
columnNumber: 7
|
|
2630
2630
|
}
|
|
2631
2631
|
}, /*#__PURE__*/React.createElement(CloseOutline, {
|
|
2632
|
-
color: colors$
|
|
2632
|
+
color: colors$8.iconSecondary,
|
|
2633
2633
|
size: "16px",
|
|
2634
2634
|
__self: undefined,
|
|
2635
2635
|
__source: {
|
|
@@ -2715,7 +2715,7 @@ const SingleTagBanner = props => {
|
|
|
2715
2715
|
columnNumber: 11
|
|
2716
2716
|
}
|
|
2717
2717
|
}, /*#__PURE__*/React.createElement(CloseOutline, {
|
|
2718
|
-
color: colors$
|
|
2718
|
+
color: colors$8.iconSecondary,
|
|
2719
2719
|
size: "16px",
|
|
2720
2720
|
__self: undefined,
|
|
2721
2721
|
__source: {
|
|
@@ -3412,7 +3412,7 @@ Card.Label = StyledLabel$2;
|
|
|
3412
3412
|
Card.Description = StyledDescription$3;
|
|
3413
3413
|
|
|
3414
3414
|
const _excluded$z = ["children"];
|
|
3415
|
-
var _jsxFileName$_ = "/
|
|
3415
|
+
var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
3416
3416
|
const BreadcrumbStyle = styled('nav', {
|
|
3417
3417
|
wordWrap: 'break-word',
|
|
3418
3418
|
'& li+li:before': {
|
|
@@ -3732,7 +3732,7 @@ Badge.defaultProps = {
|
|
|
3732
3732
|
Badge.displayName = 'Badge';
|
|
3733
3733
|
|
|
3734
3734
|
const _excluded$y = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
3735
|
-
var _jsxFileName$Z = "/
|
|
3735
|
+
var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
3736
3736
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
3737
3737
|
width: '32px',
|
|
3738
3738
|
height: '32px',
|
|
@@ -3834,7 +3834,7 @@ Avatar.defaultProps = {
|
|
|
3834
3834
|
};
|
|
3835
3835
|
|
|
3836
3836
|
const _excluded$x = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
3837
|
-
var _jsxFileName$Y = "/
|
|
3837
|
+
var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
|
|
3838
3838
|
const ContainerFallback = styled(Flex$1, {
|
|
3839
3839
|
boxSizing: 'border-box',
|
|
3840
3840
|
border: '2px dashed #C0C4C4',
|
|
@@ -4528,7 +4528,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
4528
4528
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
4529
4529
|
|
|
4530
4530
|
const _excluded$w = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
|
|
4531
|
-
var _jsxFileName$X = "/
|
|
4531
|
+
var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4532
4532
|
const {
|
|
4533
4533
|
zIndices: zIndices$2
|
|
4534
4534
|
} = foundations;
|
|
@@ -4734,7 +4734,7 @@ Tooltip$1.defaultProps = {
|
|
|
4734
4734
|
};
|
|
4735
4735
|
|
|
4736
4736
|
const _excluded$v = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4737
|
-
var _jsxFileName$W = "/
|
|
4737
|
+
var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4738
4738
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4739
4739
|
position: 'relative',
|
|
4740
4740
|
overflow: 'hidden',
|
|
@@ -5608,7 +5608,7 @@ function useMediaQuery(query) {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
|
|
5610
5610
|
const _excluded$u = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
5611
|
-
var _jsxFileName$V = "/
|
|
5611
|
+
var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
5612
5612
|
const TOAST_WIDTH = 576;
|
|
5613
5613
|
const ANIMATION_DURATION = 400;
|
|
5614
5614
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -5919,7 +5919,7 @@ const Toast = _ref => {
|
|
|
5919
5919
|
columnNumber: 17
|
|
5920
5920
|
}
|
|
5921
5921
|
}, /*#__PURE__*/React.createElement(CloseOutline, {
|
|
5922
|
-
color: colors$
|
|
5922
|
+
color: colors$8.iconSecondary,
|
|
5923
5923
|
size: "16px",
|
|
5924
5924
|
__self: undefined,
|
|
5925
5925
|
__source: {
|
|
@@ -5961,7 +5961,7 @@ Toast.defaultProps = {
|
|
|
5961
5961
|
};
|
|
5962
5962
|
|
|
5963
5963
|
const _excluded$t = ["preventDuplicate"];
|
|
5964
|
-
var _jsxFileName$U = "/
|
|
5964
|
+
var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
5965
5965
|
const ToastBox = styled(Flex$1, {
|
|
5966
5966
|
position: 'fixed',
|
|
5967
5967
|
variants: {
|
|
@@ -7311,7 +7311,7 @@ const catchError = e => {
|
|
|
7311
7311
|
};
|
|
7312
7312
|
|
|
7313
7313
|
const _excluded$s = ["id", "disabledOfflineIntercept"];
|
|
7314
|
-
var _jsxFileName$T = "/
|
|
7314
|
+
var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
7315
7315
|
let toastCount = 0;
|
|
7316
7316
|
const ToastProvider = ({
|
|
7317
7317
|
children,
|
|
@@ -7432,7 +7432,7 @@ const ConditionalWrapper = ({
|
|
|
7432
7432
|
}) => condition ? wrapper(children) : children;
|
|
7433
7433
|
|
|
7434
7434
|
const _excluded$r = ["count", "maxCount", "css"];
|
|
7435
|
-
var _jsxFileName$S = "/
|
|
7435
|
+
var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
7436
7436
|
const formLabelClassStyle = {
|
|
7437
7437
|
alignItems: 'start !important',
|
|
7438
7438
|
'& > div': {
|
|
@@ -7583,7 +7583,7 @@ const FormGroup = _ref => {
|
|
|
7583
7583
|
FormGroup.displayName = 'FormGroup';
|
|
7584
7584
|
|
|
7585
7585
|
const _excluded$q = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
7586
|
-
var _jsxFileName$R = "/
|
|
7586
|
+
var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
7587
7587
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
7588
7588
|
display: 'inline-block',
|
|
7589
7589
|
fontSize: '$label',
|
|
@@ -7700,7 +7700,7 @@ FormLabel.defaultProps = {
|
|
|
7700
7700
|
FormLabel.displayName = 'FormLabel';
|
|
7701
7701
|
|
|
7702
7702
|
const _excluded$p = ["children", "error", "errorMessage"];
|
|
7703
|
-
var _jsxFileName$Q = "/
|
|
7703
|
+
var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
7704
7704
|
const StyledHelper = styled(Text$1, {
|
|
7705
7705
|
display: 'inline-block',
|
|
7706
7706
|
color: '$textSecondary',
|
|
@@ -7755,7 +7755,7 @@ FormHelper.propTypes = {
|
|
|
7755
7755
|
};
|
|
7756
7756
|
FormHelper.displayName = 'FormHelper';
|
|
7757
7757
|
|
|
7758
|
-
var _jsxFileName$P = "/
|
|
7758
|
+
var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
7759
7759
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
7760
7760
|
const CheckboxGroup = ({
|
|
7761
7761
|
children,
|
|
@@ -7813,7 +7813,7 @@ CheckboxGroup.defaultProps = {
|
|
|
7813
7813
|
};
|
|
7814
7814
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
7815
7815
|
|
|
7816
|
-
var _jsxFileName$O = "/
|
|
7816
|
+
var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
7817
7817
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7818
7818
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7819
7819
|
xmlSpace: "preserve",
|
|
@@ -7860,7 +7860,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
7860
7860
|
}
|
|
7861
7861
|
}));
|
|
7862
7862
|
|
|
7863
|
-
var _jsxFileName$N = "/
|
|
7863
|
+
var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
7864
7864
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7865
7865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7866
7866
|
xmlSpace: "preserve",
|
|
@@ -7908,7 +7908,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
7908
7908
|
}));
|
|
7909
7909
|
|
|
7910
7910
|
const _excluded$o = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
7911
|
-
var _jsxFileName$M = "/
|
|
7911
|
+
var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
7912
7912
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
7913
7913
|
alignItems: 'center',
|
|
7914
7914
|
display: 'flex',
|
|
@@ -8069,7 +8069,7 @@ InputCheckbox.propTypes = {
|
|
|
8069
8069
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
8070
8070
|
|
|
8071
8071
|
const _excluded$n = ["children", "size"];
|
|
8072
|
-
var _jsxFileName$L = "/
|
|
8072
|
+
var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
8073
8073
|
const InputGroupStyle = styled('div', {
|
|
8074
8074
|
display: 'flex',
|
|
8075
8075
|
width: '100%',
|
|
@@ -8409,7 +8409,7 @@ InputSuffix.propTypes = {
|
|
|
8409
8409
|
};
|
|
8410
8410
|
|
|
8411
8411
|
const _excluded$m = ["disabled", "readOnly"];
|
|
8412
|
-
var _jsxFileName$K = "/
|
|
8412
|
+
var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
8413
8413
|
const disabledStyle = {
|
|
8414
8414
|
backgroundColor: '$formDisable',
|
|
8415
8415
|
color: '$textDisable',
|
|
@@ -8611,7 +8611,7 @@ InputText.propTypes = {
|
|
|
8611
8611
|
InputText.displayName = 'InputText';
|
|
8612
8612
|
|
|
8613
8613
|
const _excluded$l = ["disabled", "readOnly"];
|
|
8614
|
-
var _jsxFileName$J = "/
|
|
8614
|
+
var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
8615
8615
|
const StyledTextArea = styled(StyledInput$1, {
|
|
8616
8616
|
variants: {
|
|
8617
8617
|
size: {
|
|
@@ -8689,7 +8689,7 @@ InputTextArea.defaultProps = {
|
|
|
8689
8689
|
|
|
8690
8690
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
8691
8691
|
|
|
8692
|
-
var _jsxFileName$I = "/
|
|
8692
|
+
var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
8693
8693
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
8694
8694
|
function InputRadioGroup(props) {
|
|
8695
8695
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
@@ -8723,7 +8723,7 @@ InputRadioGroup.propTypes = {
|
|
|
8723
8723
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
8724
8724
|
|
|
8725
8725
|
const _excluded$k = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
8726
|
-
var _jsxFileName$H = "/
|
|
8726
|
+
var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
8727
8727
|
const INDICATOR_BASE_STYLES = {
|
|
8728
8728
|
alignItems: 'center',
|
|
8729
8729
|
display: 'flex',
|
|
@@ -11090,7 +11090,7 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
|
|
|
11090
11090
|
NumberFormat.defaultProps = defaultProps;
|
|
11091
11091
|
|
|
11092
11092
|
const _excluded$j = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
|
|
11093
|
-
var _jsxFileName$G = "/
|
|
11093
|
+
var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
11094
11094
|
const StyledInput = styled(NumberFormat, {
|
|
11095
11095
|
// Reset
|
|
11096
11096
|
appearance: 'none',
|
|
@@ -11351,7 +11351,7 @@ InputNumber.name = 'InputText';
|
|
|
11351
11351
|
InputNumber.displayName = 'InputNumber';
|
|
11352
11352
|
|
|
11353
11353
|
const _excluded$i = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
11354
|
-
var _jsxFileName$F = "/
|
|
11354
|
+
var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
11355
11355
|
const TagWrapper$4 = styled('div', {
|
|
11356
11356
|
boxSizing: 'border-box',
|
|
11357
11357
|
listStyle: 'none',
|
|
@@ -11497,7 +11497,7 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
11497
11497
|
}
|
|
11498
11498
|
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
11499
11499
|
size: 16,
|
|
11500
|
-
color: colors$
|
|
11500
|
+
color: colors$8.iconSecondary,
|
|
11501
11501
|
style: {
|
|
11502
11502
|
verticalAlign: 'middle'
|
|
11503
11503
|
},
|
|
@@ -11527,7 +11527,7 @@ Tag.defaultProps = {
|
|
|
11527
11527
|
};
|
|
11528
11528
|
|
|
11529
11529
|
const _excluded$h = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
11530
|
-
var _jsxFileName$E = "/
|
|
11530
|
+
var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
|
|
11531
11531
|
const Wrapper$2 = styled('div', {
|
|
11532
11532
|
margin: 0,
|
|
11533
11533
|
flexDirection: 'column',
|
|
@@ -11824,7 +11824,7 @@ TagsInput.defaultProps = {
|
|
|
11824
11824
|
};
|
|
11825
11825
|
|
|
11826
11826
|
const _excluded$g = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
|
|
11827
|
-
var _jsxFileName$D = "/
|
|
11827
|
+
var _jsxFileName$D = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
|
|
11828
11828
|
const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
|
|
11829
11829
|
display: 'block',
|
|
11830
11830
|
width: '16px',
|
|
@@ -11929,7 +11929,7 @@ InputSwitch.propTypes = {
|
|
|
11929
11929
|
};
|
|
11930
11930
|
InputSwitch.displayName = 'InputSwitch';
|
|
11931
11931
|
|
|
11932
|
-
var _jsxFileName$C = "/
|
|
11932
|
+
var _jsxFileName$C = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSearchbox/CloseFilled.js";
|
|
11933
11933
|
const SvgCloseFilled = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
11934
11934
|
width: props.size,
|
|
11935
11935
|
height: props.size,
|
|
@@ -11988,7 +11988,7 @@ SvgCloseFilled.defaultProps = {
|
|
|
11988
11988
|
size: 24
|
|
11989
11989
|
};
|
|
11990
11990
|
|
|
11991
|
-
var _jsxFileName$B = "/
|
|
11991
|
+
var _jsxFileName$B = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSearchbox/SearchOutline.js";
|
|
11992
11992
|
const SvgSearchOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
11993
11993
|
width: props.size,
|
|
11994
11994
|
height: props.size,
|
|
@@ -12029,9 +12029,9 @@ SvgSearchOutline.defaultProps = {
|
|
|
12029
12029
|
};
|
|
12030
12030
|
|
|
12031
12031
|
const _excluded$f = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue", "mobileOnly", "desktopOnly"];
|
|
12032
|
-
var _jsxFileName$A = "/
|
|
12032
|
+
var _jsxFileName$A = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
|
|
12033
12033
|
const {
|
|
12034
|
-
colors: colors$
|
|
12034
|
+
colors: colors$7
|
|
12035
12035
|
} = foundations;
|
|
12036
12036
|
const InputSearchbox = _ref => {
|
|
12037
12037
|
var _props$value;
|
|
@@ -12111,7 +12111,7 @@ const InputSearchbox = _ref => {
|
|
|
12111
12111
|
}
|
|
12112
12112
|
})), /*#__PURE__*/React__default.createElement(InputRightElement, {
|
|
12113
12113
|
children: (inputValue == null ? void 0 : inputValue.length) > 0 ? /*#__PURE__*/React__default.createElement(SvgCloseFilled, {
|
|
12114
|
-
color: colors$
|
|
12114
|
+
color: colors$7.iconSecondary,
|
|
12115
12115
|
__self: undefined,
|
|
12116
12116
|
__source: {
|
|
12117
12117
|
fileName: _jsxFileName$A,
|
|
@@ -12519,7 +12519,7 @@ function isFunction$1(value) {
|
|
|
12519
12519
|
var isFunction_1 = isFunction$1;
|
|
12520
12520
|
|
|
12521
12521
|
const _excluded$e = ["children"];
|
|
12522
|
-
var _jsxFileName$z = "/
|
|
12522
|
+
var _jsxFileName$z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/popover/Popover.js";
|
|
12523
12523
|
const {
|
|
12524
12524
|
zIndices: zIndices$1
|
|
12525
12525
|
} = foundations;
|
|
@@ -13683,7 +13683,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
13683
13683
|
readOnly: readOnly
|
|
13684
13684
|
}, {
|
|
13685
13685
|
children: jsx(CaretDownOutline, {
|
|
13686
|
-
color: readOnly ? colors$
|
|
13686
|
+
color: readOnly ? colors$8.gray300 : iconColor
|
|
13687
13687
|
}, void 0)
|
|
13688
13688
|
}), void 0);
|
|
13689
13689
|
};
|
|
@@ -13904,7 +13904,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
13904
13904
|
}, {
|
|
13905
13905
|
children: jsx(CircleInfoOutline, {
|
|
13906
13906
|
size: "16px",
|
|
13907
|
-
color: colors$
|
|
13907
|
+
color: colors$8.iconDisable,
|
|
13908
13908
|
style: {
|
|
13909
13909
|
verticalAlign: 'text-bottom'
|
|
13910
13910
|
}
|
|
@@ -14073,7 +14073,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
14073
14073
|
}, {
|
|
14074
14074
|
children: jsx(CircleInfoOutline, {
|
|
14075
14075
|
size: "16px",
|
|
14076
|
-
color: colors$
|
|
14076
|
+
color: colors$8.iconDisable,
|
|
14077
14077
|
style: {
|
|
14078
14078
|
verticalAlign: 'text-bottom'
|
|
14079
14079
|
}
|
|
@@ -14093,7 +14093,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
14093
14093
|
}), void 0);
|
|
14094
14094
|
});
|
|
14095
14095
|
|
|
14096
|
-
var _jsxFileName$y = "/
|
|
14096
|
+
var _jsxFileName$y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/icon/CheckOutline.js";
|
|
14097
14097
|
const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
14098
14098
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14099
14099
|
xmlSpace: "preserve",
|
|
@@ -14174,7 +14174,7 @@ function OptionGroupItem({
|
|
|
14174
14174
|
}
|
|
14175
14175
|
|
|
14176
14176
|
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", "clearSearchOnSelect", "onItemClick"];
|
|
14177
|
-
var _jsxFileName$x = "/
|
|
14177
|
+
var _jsxFileName$x = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
|
|
14178
14178
|
const Wrapper$1 = styled('div', {
|
|
14179
14179
|
margin: 0,
|
|
14180
14180
|
flexDirection: 'column',
|
|
@@ -14919,7 +14919,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
14919
14919
|
columnNumber: 11
|
|
14920
14920
|
}
|
|
14921
14921
|
}, !(item != null && item.hideCheck) && (item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
14922
|
-
color: colors$
|
|
14922
|
+
color: colors$8.iconDisable,
|
|
14923
14923
|
__self: undefined,
|
|
14924
14924
|
__source: {
|
|
14925
14925
|
fileName: _jsxFileName$x,
|
|
@@ -14927,7 +14927,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
14927
14927
|
columnNumber: 17
|
|
14928
14928
|
}
|
|
14929
14929
|
}) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
14930
|
-
color: colors$
|
|
14930
|
+
color: colors$8.iconGreen,
|
|
14931
14931
|
__self: undefined,
|
|
14932
14932
|
__source: {
|
|
14933
14933
|
fileName: _jsxFileName$x,
|
|
@@ -15001,7 +15001,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15001
15001
|
columnNumber: 15
|
|
15002
15002
|
}
|
|
15003
15003
|
}, !(item != null && item.hideCheck) && item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
15004
|
-
color: colors$
|
|
15004
|
+
color: colors$8.iconDisable,
|
|
15005
15005
|
__self: undefined,
|
|
15006
15006
|
__source: {
|
|
15007
15007
|
fileName: _jsxFileName$x,
|
|
@@ -15009,7 +15009,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15009
15009
|
columnNumber: 19
|
|
15010
15010
|
}
|
|
15011
15011
|
}) : (filterSelectedChild == null ? void 0 : filterSelectedChild.length) === (item == null || (_item$children7 = item.children) == null || (_item$children7 = _item$children7.filter(e => !e.isDisabled)) == null ? void 0 : _item$children7.length) ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
15012
|
-
color: colors$
|
|
15012
|
+
color: colors$8.iconGreen,
|
|
15013
15013
|
__self: undefined,
|
|
15014
15014
|
__source: {
|
|
15015
15015
|
fileName: _jsxFileName$x,
|
|
@@ -15123,7 +15123,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15123
15123
|
columnNumber: 11
|
|
15124
15124
|
}
|
|
15125
15125
|
}), /*#__PURE__*/React__default.createElement(IconCaretDown, {
|
|
15126
|
-
color: disabled || readOnly ? colors$
|
|
15126
|
+
color: disabled || readOnly ? colors$8.iconDisable : colors$8.iconPrimary,
|
|
15127
15127
|
__self: undefined,
|
|
15128
15128
|
__source: {
|
|
15129
15129
|
fileName: _jsxFileName$x,
|
|
@@ -15244,7 +15244,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15244
15244
|
columnNumber: 19
|
|
15245
15245
|
}
|
|
15246
15246
|
}, showAllTags ? /*#__PURE__*/React__default.createElement(ChevronUpOutline, {
|
|
15247
|
-
color: colors$
|
|
15247
|
+
color: colors$8.iconSecondary,
|
|
15248
15248
|
__self: undefined,
|
|
15249
15249
|
__source: {
|
|
15250
15250
|
fileName: _jsxFileName$x,
|
|
@@ -15252,7 +15252,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15252
15252
|
columnNumber: 23
|
|
15253
15253
|
}
|
|
15254
15254
|
}) : /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
|
|
15255
|
-
color: colors$
|
|
15255
|
+
color: colors$8.iconSecondary,
|
|
15256
15256
|
__self: undefined,
|
|
15257
15257
|
__source: {
|
|
15258
15258
|
fileName: _jsxFileName$x,
|
|
@@ -15418,7 +15418,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15418
15418
|
}
|
|
15419
15419
|
}, /*#__PURE__*/React__default.createElement(CircleInfoOutline, {
|
|
15420
15420
|
size: "16px",
|
|
15421
|
-
color: colors$
|
|
15421
|
+
color: colors$8.iconDisable,
|
|
15422
15422
|
style: {
|
|
15423
15423
|
verticalAlign: 'text-bottom'
|
|
15424
15424
|
},
|
|
@@ -15498,7 +15498,7 @@ InputSelectCheck.defaultProps = {
|
|
|
15498
15498
|
onItemClick: changes => {}
|
|
15499
15499
|
};
|
|
15500
15500
|
|
|
15501
|
-
var _jsxFileName$w = "/
|
|
15501
|
+
var _jsxFileName$w = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputSelectTag/InputSelectTag.js";
|
|
15502
15502
|
const InputSelectTag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
15503
15503
|
return /*#__PURE__*/React.createElement(InputSelectCheck, _extends({
|
|
15504
15504
|
ref: ref,
|
|
@@ -15559,7 +15559,7 @@ InputSelectTag.defaultProps = {
|
|
|
15559
15559
|
defaultValue: []
|
|
15560
15560
|
};
|
|
15561
15561
|
|
|
15562
|
-
var _jsxFileName$v = "/
|
|
15562
|
+
var _jsxFileName$v = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCreatable/InputCreatable.js";
|
|
15563
15563
|
const Wrapper = styled('div', {
|
|
15564
15564
|
margin: 0,
|
|
15565
15565
|
flexDirection: 'column',
|
|
@@ -15778,7 +15778,7 @@ function InputCreatable({
|
|
|
15778
15778
|
columnNumber: 9
|
|
15779
15779
|
}
|
|
15780
15780
|
}, /*#__PURE__*/React__default.createElement(CirclePlusOutline, {
|
|
15781
|
-
color: colors$
|
|
15781
|
+
color: colors$8.iconGreen,
|
|
15782
15782
|
__self: this,
|
|
15783
15783
|
__source: {
|
|
15784
15784
|
fileName: _jsxFileName$v,
|
|
@@ -15823,39 +15823,16 @@ const SortingIcon = styled(Flex$1, {
|
|
|
15823
15823
|
alignItems: 'center',
|
|
15824
15824
|
justifyContent: 'center'
|
|
15825
15825
|
});
|
|
15826
|
-
const IconBox = styled('div', {
|
|
15827
|
-
height: 16,
|
|
15828
|
-
width: 16,
|
|
15829
|
-
cursor: 'pointer',
|
|
15830
|
-
variants: {
|
|
15831
|
-
border: {
|
|
15832
|
-
true: {
|
|
15833
|
-
borderRadius: 3,
|
|
15834
|
-
border: '1.5px solid $gray300'
|
|
15835
|
-
}
|
|
15836
|
-
}
|
|
15837
|
-
}
|
|
15838
|
-
});
|
|
15839
|
-
const IndeterminateFilled = styled('div', {
|
|
15840
|
-
width: 16,
|
|
15841
|
-
height: 16,
|
|
15842
|
-
background: '$primary500',
|
|
15843
|
-
color: '$textWhite',
|
|
15844
|
-
borderRadius: 3,
|
|
15845
|
-
fontSize: 14,
|
|
15846
|
-
display: 'flex',
|
|
15847
|
-
justifyContent: 'center',
|
|
15848
|
-
alignItems: 'center'
|
|
15849
|
-
});
|
|
15850
15826
|
function InputResourceList({
|
|
15851
15827
|
data: dataProp,
|
|
15852
15828
|
disabled = false,
|
|
15853
|
-
|
|
15829
|
+
onItemCheck,
|
|
15830
|
+
onItemUncheck,
|
|
15854
15831
|
searchPlaceholder,
|
|
15855
15832
|
counterFooter = true,
|
|
15856
15833
|
counterFooterText,
|
|
15857
15834
|
isLoading = false,
|
|
15858
|
-
|
|
15835
|
+
enabledItems,
|
|
15859
15836
|
emptyDataMessage,
|
|
15860
15837
|
value,
|
|
15861
15838
|
fetchData,
|
|
@@ -15866,29 +15843,25 @@ function InputResourceList({
|
|
|
15866
15843
|
title,
|
|
15867
15844
|
hideSelectAll,
|
|
15868
15845
|
customHeader,
|
|
15869
|
-
|
|
15870
|
-
renderSelectAll
|
|
15846
|
+
checkDisableItems
|
|
15871
15847
|
}) {
|
|
15872
15848
|
const {
|
|
15873
15849
|
t
|
|
15874
15850
|
} = useTranslation(['MajooUI/inputResourceList', 'translation']);
|
|
15875
|
-
const [
|
|
15851
|
+
const [checkedResources, setCheckedResources] = useState([]);
|
|
15852
|
+
const [query, setQuery] = useState();
|
|
15876
15853
|
const [sortType, setSortType] = useState('asc');
|
|
15877
15854
|
const [data, setData] = useState([]);
|
|
15878
|
-
const
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
}
|
|
15885
|
-
return value;
|
|
15886
|
-
}, [value, data, isValueString]);
|
|
15855
|
+
const filteredValue = useMemo(() => {
|
|
15856
|
+
const dataValues = data.map(({
|
|
15857
|
+
value
|
|
15858
|
+
}) => value);
|
|
15859
|
+
return (value || []).filter(x => dataValues.includes(x.value));
|
|
15860
|
+
}, [JSON.stringify(value), JSON.stringify(data)]);
|
|
15887
15861
|
const scrollerRef = useRef(null);
|
|
15888
15862
|
useEffect(() => {
|
|
15889
15863
|
function filterUnique(params) {
|
|
15890
|
-
|
|
15891
|
-
const unique = params.filter((obj, index) => params.findIndex(item => (item === null || item === void 0 ? void 0 : item.value) === (obj === null || obj === void 0 ? void 0 : obj.value)) === index);
|
|
15864
|
+
const unique = params === null || params === void 0 ? void 0 : params.filter((obj, index) => (params === null || params === void 0 ? void 0 : params.findIndex(item => (item === null || item === void 0 ? void 0 : item.value) === (obj === null || obj === void 0 ? void 0 : obj.value))) === index);
|
|
15892
15865
|
setData(unique);
|
|
15893
15866
|
}
|
|
15894
15867
|
filterUnique(dataProp);
|
|
@@ -15904,25 +15877,9 @@ function InputResourceList({
|
|
|
15904
15877
|
setSortType(defaultSort);
|
|
15905
15878
|
}
|
|
15906
15879
|
}, [defaultSort]);
|
|
15907
|
-
const availableData = useMemo(() => {
|
|
15908
|
-
if (!data) return [];
|
|
15909
|
-
const filteredData = data.filter(item => item.label.toLowerCase().match((query === null || query === void 0 ? void 0 : query.toLowerCase()) || ''));
|
|
15910
|
-
const checkedValues = new Set(checkedItems.map(item => item.value));
|
|
15911
|
-
return filteredData.sort((a, b) => {
|
|
15912
|
-
const aIsChecked = checkedValues.has(a.value);
|
|
15913
|
-
const bIsChecked = checkedValues.has(b.value);
|
|
15914
|
-
if (aIsChecked && !bIsChecked) {
|
|
15915
|
-
return -1;
|
|
15916
|
-
}
|
|
15917
|
-
if (!aIsChecked && bIsChecked) {
|
|
15918
|
-
return 1;
|
|
15919
|
-
}
|
|
15920
|
-
return a.label.localeCompare(b.label);
|
|
15921
|
-
});
|
|
15922
|
-
}, [data, query, checkedItems]);
|
|
15923
15880
|
const renderCheckbox = (resource, index) => {
|
|
15924
15881
|
var _a, _b;
|
|
15925
|
-
const isDisabled = resource.disabled ||
|
|
15882
|
+
const isDisabled = resource.disabled || enabledItems && (!enabledItems.find(id => id === resource.value) || enabledItems.length === 0);
|
|
15926
15883
|
return jsxs(Flex$1, Object.assign({
|
|
15927
15884
|
align: "center",
|
|
15928
15885
|
justify: "between"
|
|
@@ -15934,7 +15891,7 @@ function InputResourceList({
|
|
|
15934
15891
|
children: [jsxs(Flex$1, Object.assign({
|
|
15935
15892
|
align: "center"
|
|
15936
15893
|
}, {
|
|
15937
|
-
children: [jsx(InputCheckbox, {
|
|
15894
|
+
children: [jsx(InputCheckbox, Object.assign({
|
|
15938
15895
|
label: jsxs(Flex$1, Object.assign({
|
|
15939
15896
|
gap: 3,
|
|
15940
15897
|
align: "center"
|
|
@@ -15959,14 +15916,16 @@ function InputResourceList({
|
|
|
15959
15916
|
css: {
|
|
15960
15917
|
color: disabled || isDisabled ? '$textDisable' : '$textGreen'
|
|
15961
15918
|
}
|
|
15962
|
-
}, {
|
|
15919
|
+
}, {
|
|
15963
15920
|
children: variant
|
|
15964
15921
|
}), index))]
|
|
15965
15922
|
}), void 0),
|
|
15966
15923
|
index: index,
|
|
15967
15924
|
value: resource.value,
|
|
15968
15925
|
disabled: isDisabled
|
|
15969
|
-
},
|
|
15926
|
+
}, Object.assign({}, checkDisableItems && isDisabled && {
|
|
15927
|
+
checked: isDisabled
|
|
15928
|
+
})), void 0), (resource === null || resource === void 0 ? void 0 : resource.icon) && jsx(Box, Object.assign({
|
|
15970
15929
|
css: {
|
|
15971
15930
|
marginLeft: '$spacing-03'
|
|
15972
15931
|
}
|
|
@@ -16031,44 +15990,84 @@ function InputResourceList({
|
|
|
16031
15990
|
function toggleSort() {
|
|
16032
15991
|
setSortType(sortType === 'asc' ? 'desc' : 'asc');
|
|
16033
15992
|
}
|
|
15993
|
+
function renderWithoutSorting() {
|
|
15994
|
+
return jsxs(Flex$1, Object.assign({
|
|
15995
|
+
direction: "column",
|
|
15996
|
+
gap: 3
|
|
15997
|
+
}, {
|
|
15998
|
+
children: [jsx(CheckboxGroup, Object.assign({
|
|
15999
|
+
onChange: (_, index) => {
|
|
16000
|
+
onItemUncheck === null || onItemUncheck === void 0 ? void 0 : onItemUncheck((value || checkedResources)[index]);
|
|
16001
|
+
if (!value) setCheckedResources(current => current.filter(currItem => currItem.value !== checkedResources[index].value));
|
|
16002
|
+
},
|
|
16003
|
+
value: (value || checkedResources).map(item => item.value),
|
|
16004
|
+
disabled: disabled
|
|
16005
|
+
}, {
|
|
16006
|
+
children: (value || checkedResources).map(renderCheckbox)
|
|
16007
|
+
}), void 0), jsx(CheckboxGroup, Object.assign({
|
|
16008
|
+
onChange: (_, index) => {
|
|
16009
|
+
onItemCheck === null || onItemCheck === void 0 ? void 0 : onItemCheck(data[index]);
|
|
16010
|
+
if (!value) setCheckedResources(current => [...current, data[index]]);
|
|
16011
|
+
},
|
|
16012
|
+
value: (value || checkedResources).map(item => item.value),
|
|
16013
|
+
disabled: disabled
|
|
16014
|
+
}, {
|
|
16015
|
+
children: data.map(renderCheckbox)
|
|
16016
|
+
}), void 0)]
|
|
16017
|
+
}), void 0);
|
|
16018
|
+
}
|
|
16019
|
+
function renderWithSorting() {
|
|
16020
|
+
const datasets = sorting(data, sortType);
|
|
16021
|
+
return jsx(Flex$1, Object.assign({
|
|
16022
|
+
direction: "column",
|
|
16023
|
+
gap: 3
|
|
16024
|
+
}, {
|
|
16025
|
+
children: jsx(CheckboxGroup, Object.assign({
|
|
16026
|
+
onChange: (_, index) => {
|
|
16027
|
+
if (value === null || value === void 0 ? void 0 : value.some(val => {
|
|
16028
|
+
var _a;
|
|
16029
|
+
return (val === null || val === void 0 ? void 0 : val.value) === ((_a = datasets[index]) === null || _a === void 0 ? void 0 : _a.value);
|
|
16030
|
+
})) {
|
|
16031
|
+
onItemUncheck === null || onItemUncheck === void 0 ? void 0 : onItemUncheck(datasets[index]);
|
|
16032
|
+
} else {
|
|
16033
|
+
onItemCheck === null || onItemCheck === void 0 ? void 0 : onItemCheck(datasets[index]);
|
|
16034
|
+
}
|
|
16035
|
+
},
|
|
16036
|
+
value: value === null || value === void 0 ? void 0 : value.map(item => item === null || item === void 0 ? void 0 : item.value),
|
|
16037
|
+
disabled: disabled
|
|
16038
|
+
}, {
|
|
16039
|
+
children: datasets.map(renderCheckbox)
|
|
16040
|
+
}), void 0)
|
|
16041
|
+
}), void 0);
|
|
16042
|
+
}
|
|
16034
16043
|
function toggleCheckAll() {
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
} else {
|
|
16040
|
-
const newCheckedItems = [...checkedItems, ...availableData.filter(item => !checkedItems.some(checkedItem => checkedItem.value === item.value))];
|
|
16041
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(isValueString ? newCheckedItems.map(item => item.value) : newCheckedItems);
|
|
16042
|
-
}
|
|
16043
|
-
}
|
|
16044
|
-
function handleCheckedAllExpandable() {
|
|
16045
|
-
const allItems = data || [];
|
|
16046
|
-
const allItemValues = allItems.map(i => i.value);
|
|
16047
|
-
const currentValues = checkedItems.map(i => i.value);
|
|
16048
|
-
const areAllSelected = allItems.length > 0 && allItems.every(item => currentValues.includes(item.value));
|
|
16049
|
-
let newCheckedItems;
|
|
16050
|
-
if (areAllSelected) {
|
|
16051
|
-
newCheckedItems = checkedItems.filter(item => !allItemValues.includes(item.value));
|
|
16044
|
+
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)) {
|
|
16045
|
+
for (let i = 0; i < filteredValue.length; i++) {
|
|
16046
|
+
onItemUncheck === null || onItemUncheck === void 0 ? void 0 : onItemUncheck(filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue[i]);
|
|
16047
|
+
}
|
|
16052
16048
|
} else {
|
|
16053
|
-
|
|
16054
|
-
|
|
16049
|
+
for (let i = 0; i < (data === null || data === void 0 ? void 0 : data.length); i++) {
|
|
16050
|
+
const isEnabled = enabledItems ? enabledItems.find(id => id === (data === null || data === void 0 ? void 0 : data[i].value)) || enabledItems.length === 0 : true;
|
|
16051
|
+
if (isEnabled) onItemCheck === null || onItemCheck === void 0 ? void 0 : onItemCheck(data === null || data === void 0 ? void 0 : data[i]);
|
|
16052
|
+
}
|
|
16055
16053
|
}
|
|
16056
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(isValueString ? newCheckedItems.map(item => item.value) : newCheckedItems);
|
|
16057
16054
|
}
|
|
16058
|
-
|
|
16055
|
+
return jsxs(Box, Object.assign({
|
|
16059
16056
|
css: Object.assign({
|
|
16060
16057
|
position: 'relative'
|
|
16061
16058
|
}, css)
|
|
16062
16059
|
}, {
|
|
16063
|
-
children: [customHeader, onQueryChange && jsx(InputSearchbox,
|
|
16060
|
+
children: [customHeader, onQueryChange && jsx(InputSearchbox, {
|
|
16064
16061
|
size: "lg",
|
|
16065
|
-
placeholder: searchPlaceholder || t('placeholder.search', 'Cari ...'
|
|
16062
|
+
placeholder: searchPlaceholder || t('placeholder.search', 'Cari ...', {
|
|
16063
|
+
ns: 'translation'
|
|
16064
|
+
}),
|
|
16066
16065
|
onChange: debounce(query => {
|
|
16067
16066
|
setQuery(query);
|
|
16068
|
-
|
|
16067
|
+
onQueryChange(query);
|
|
16069
16068
|
}, 1000),
|
|
16070
16069
|
disabled: disabled
|
|
16071
|
-
},
|
|
16070
|
+
}, void 0), defaultSort && jsxs(Flex$1, Object.assign({
|
|
16072
16071
|
align: "center",
|
|
16073
16072
|
gap: 3,
|
|
16074
16073
|
css: {
|
|
@@ -16077,8 +16076,8 @@ function InputResourceList({
|
|
|
16077
16076
|
}
|
|
16078
16077
|
}, {
|
|
16079
16078
|
children: [!hideSelectAll && jsx(InputCheckbox, {
|
|
16080
|
-
checked:
|
|
16081
|
-
indeterminate:
|
|
16079
|
+
checked: (filteredValue === null || filteredValue === void 0 ? void 0 : filteredValue.length) === (data === null || data === void 0 ? void 0 : data.length) && data.length > 0,
|
|
16080
|
+
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)),
|
|
16082
16081
|
onCheckedChange: toggleCheckAll,
|
|
16083
16082
|
css: {
|
|
16084
16083
|
marginRight: '$spacing-02'
|
|
@@ -16092,7 +16091,7 @@ function InputResourceList({
|
|
|
16092
16091
|
}, {
|
|
16093
16092
|
children: jsx(SortingOutline, {
|
|
16094
16093
|
size: 16,
|
|
16095
|
-
color: colors$
|
|
16094
|
+
color: colors$8.iconSecondary
|
|
16096
16095
|
}, void 0)
|
|
16097
16096
|
}), void 0)]
|
|
16098
16097
|
}), void 0), isLoading && jsx(Flex$1, Object.assign({
|
|
@@ -16127,7 +16126,7 @@ function InputResourceList({
|
|
|
16127
16126
|
}, wrapperCss && wrapperCss),
|
|
16128
16127
|
ref: scrollerRef
|
|
16129
16128
|
}, {
|
|
16130
|
-
children: [data.length <= 0 &&
|
|
16129
|
+
children: [data.length <= 0 && (value || checkedResources).length <= 0 && !isLoading || defaultSort && data.length < 1 ? jsx(Flex$1, Object.assign({
|
|
16131
16130
|
justify: "center",
|
|
16132
16131
|
align: "center",
|
|
16133
16132
|
css: {
|
|
@@ -16160,27 +16159,9 @@ function InputResourceList({
|
|
|
16160
16159
|
children: children
|
|
16161
16160
|
}), void 0)
|
|
16162
16161
|
}, {
|
|
16163
|
-
children:
|
|
16164
|
-
direction: "column",
|
|
16165
|
-
gap: 3
|
|
16166
|
-
}, {
|
|
16167
|
-
children: jsx(CheckboxGroup, Object.assign({
|
|
16168
|
-
onChange: (_, index) => {
|
|
16169
|
-
const datasets = defaultSort ? sorting(availableData, sortType) : availableData;
|
|
16170
|
-
const newCheckedItems = (checkedItems === null || checkedItems === void 0 ? void 0 : checkedItems.some(val => {
|
|
16171
|
-
var _a;
|
|
16172
|
-
return (val === null || val === void 0 ? void 0 : val.value) === ((_a = datasets[index]) === null || _a === void 0 ? void 0 : _a.value);
|
|
16173
|
-
})) ? checkedItems.filter(val => val.value !== datasets[index].value) : [...(checkedItems || []), datasets[index]];
|
|
16174
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(isValueString ? newCheckedItems.map(item => item.value) : newCheckedItems);
|
|
16175
|
-
},
|
|
16176
|
-
value: checkedItems === null || checkedItems === void 0 ? void 0 : checkedItems.map(item => item === null || item === void 0 ? void 0 : item.value),
|
|
16177
|
-
disabled: disabled
|
|
16178
|
-
}, {
|
|
16179
|
-
children: (defaultSort ? sorting(availableData, sortType) : availableData).map(renderCheckbox)
|
|
16180
|
-
}), void 0)
|
|
16181
|
-
}), void 0)
|
|
16162
|
+
children: defaultSort ? renderWithSorting() : renderWithoutSorting()
|
|
16182
16163
|
}), void 0)]
|
|
16183
|
-
}), void 0), counterFooter &&
|
|
16164
|
+
}), void 0), counterFooter && (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0 || checkedResources.length > 0) && jsx(Box, Object.assign({
|
|
16184
16165
|
css: {
|
|
16185
16166
|
marginTop: '$spacing-04'
|
|
16186
16167
|
}
|
|
@@ -16189,48 +16170,119 @@ function InputResourceList({
|
|
|
16189
16170
|
variant: "helper",
|
|
16190
16171
|
color: disabled ? 'disable' : 'green'
|
|
16191
16172
|
}, {
|
|
16192
|
-
children: `${
|
|
16173
|
+
children: `${(value === null || value === void 0 ? void 0 : value.length) || checkedResources.length} ${counterFooterText || t('counterFooterText', 'kategori dipilih')}`
|
|
16193
16174
|
}), void 0)
|
|
16194
16175
|
}), void 0)]
|
|
16195
16176
|
}), void 0);
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16177
|
+
}
|
|
16178
|
+
|
|
16179
|
+
const {
|
|
16180
|
+
colors: colors$6
|
|
16181
|
+
} = foundations;
|
|
16182
|
+
const IconBox = styled('div', {
|
|
16183
|
+
height: 16,
|
|
16184
|
+
width: 16,
|
|
16185
|
+
cursor: 'pointer',
|
|
16186
|
+
variants: {
|
|
16187
|
+
border: {
|
|
16188
|
+
true: {
|
|
16189
|
+
borderRadius: 3,
|
|
16190
|
+
border: '1.5px solid $gray300'
|
|
16191
|
+
}
|
|
16192
|
+
}
|
|
16193
|
+
}
|
|
16194
|
+
});
|
|
16195
|
+
const IndeterminateFilled = styled('div', {
|
|
16196
|
+
width: 16,
|
|
16197
|
+
height: 16,
|
|
16198
|
+
background: '$primary500',
|
|
16199
|
+
color: '$textWhite',
|
|
16200
|
+
borderRadius: 3,
|
|
16201
|
+
fontSize: 14,
|
|
16202
|
+
display: 'flex',
|
|
16203
|
+
justifyContent: 'center',
|
|
16204
|
+
alignItems: 'center'
|
|
16205
|
+
});
|
|
16206
|
+
const InputResourceListExpandable = _a => {
|
|
16207
|
+
var _b;
|
|
16208
|
+
var {
|
|
16209
|
+
renderSelectAll,
|
|
16210
|
+
onItemCheck,
|
|
16211
|
+
onItemUncheck,
|
|
16212
|
+
value
|
|
16213
|
+
} = _a,
|
|
16214
|
+
props = __rest(_a, ["renderSelectAll", "onItemCheck", "onItemUncheck", "value"]);
|
|
16215
|
+
const [expand, setExpand] = useState(false);
|
|
16216
|
+
const [checkedItem, setCheckedItem] = useState([]);
|
|
16217
|
+
useEffect(() => {
|
|
16218
|
+
if (value) {
|
|
16219
|
+
setCheckedItem(value);
|
|
16220
|
+
}
|
|
16221
|
+
}, [value]);
|
|
16222
|
+
const handleChecked = item => {
|
|
16223
|
+
onItemCheck(item);
|
|
16224
|
+
setCheckedItem(current => [...current, item]);
|
|
16225
|
+
};
|
|
16226
|
+
const handleUnChecked = item => {
|
|
16227
|
+
onItemUncheck(item);
|
|
16228
|
+
setCheckedItem(current => current.filter(currItem => currItem.value !== item.value));
|
|
16229
|
+
};
|
|
16230
|
+
const handleCheckedAll = () => {
|
|
16231
|
+
var _a, _b, _c;
|
|
16232
|
+
if ((checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) && !((_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
16233
|
+
for (let i = 0; i < (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length); i++) {
|
|
16234
|
+
const item = checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem[i];
|
|
16235
|
+
handleUnChecked(item);
|
|
16236
|
+
}
|
|
16237
|
+
} else {
|
|
16238
|
+
for (let i = 0; i < ((_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.length); i++) {
|
|
16239
|
+
const item = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c[i];
|
|
16240
|
+
handleChecked(item);
|
|
16241
|
+
}
|
|
16242
|
+
}
|
|
16243
|
+
};
|
|
16244
|
+
return jsxs(Box, {
|
|
16245
|
+
children: [jsxs(Flex$1, Object.assign({
|
|
16246
|
+
justify: "between",
|
|
16247
|
+
align: "start"
|
|
16248
|
+
}, {
|
|
16202
16249
|
children: [jsxs(Flex$1, Object.assign({
|
|
16203
|
-
|
|
16204
|
-
align: "start"
|
|
16250
|
+
gap: 5
|
|
16205
16251
|
}, {
|
|
16206
|
-
children: [
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
children: [jsx(IconBox, Object.assign({
|
|
16210
|
-
onClick: handleCheckedAllExpandable,
|
|
16211
|
-
border: !isAllSelected && !isIndeterminate
|
|
16212
|
-
}, {
|
|
16213
|
-
children: isAllSelected ? jsx(CheckOutline, {
|
|
16214
|
-
color: colors$7.iconGreen
|
|
16215
|
-
}, void 0) : isIndeterminate ? jsx(IndeterminateFilled, {
|
|
16216
|
-
children: "-"
|
|
16217
|
-
}, void 0) : ''
|
|
16218
|
-
}), void 0), renderSelectAll]
|
|
16219
|
-
}), void 0), jsx(Box, Object.assign({
|
|
16220
|
-
css: {
|
|
16221
|
-
cursor: 'pointer'
|
|
16222
|
-
},
|
|
16223
|
-
onClick: () => setExpand(!expand)
|
|
16252
|
+
children: [jsx(IconBox, Object.assign({
|
|
16253
|
+
onClick: handleCheckedAll,
|
|
16254
|
+
border: Boolean(!(checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length))
|
|
16224
16255
|
}, {
|
|
16225
|
-
children:
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16256
|
+
children: (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) && !((_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.length) ? jsx(CheckOutline, {
|
|
16257
|
+
color: colors$6.iconGreen
|
|
16258
|
+
}, void 0) : (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) ? jsx(IndeterminateFilled, {
|
|
16259
|
+
children: "-"
|
|
16260
|
+
}, void 0) : ''
|
|
16261
|
+
}), void 0), renderSelectAll]
|
|
16262
|
+
}), void 0), jsx(Box, Object.assign({
|
|
16263
|
+
css: {
|
|
16264
|
+
cursor: 'pointer'
|
|
16265
|
+
},
|
|
16266
|
+
onClick: () => setExpand(!expand)
|
|
16267
|
+
}, {
|
|
16268
|
+
children: expand ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
16269
|
+
}), void 0)]
|
|
16270
|
+
}), void 0), jsx(Box, {
|
|
16271
|
+
children: expand && jsx(InputResourceList, Object.assign({}, props, {
|
|
16272
|
+
value: checkedItem,
|
|
16273
|
+
onItemCheck: handleChecked,
|
|
16274
|
+
onItemUncheck: handleUnChecked
|
|
16275
|
+
}), void 0)
|
|
16276
|
+
}, void 0)]
|
|
16277
|
+
}, void 0);
|
|
16278
|
+
};
|
|
16279
|
+
const ResourceList = _a => {
|
|
16280
|
+
var {
|
|
16281
|
+
expandable
|
|
16282
|
+
} = _a,
|
|
16283
|
+
props = __rest(_a, ["expandable"]);
|
|
16284
|
+
return expandable ? jsx(InputResourceListExpandable, Object.assign({}, props), void 0) : jsx(InputResourceList, Object.assign({}, props), void 0);
|
|
16285
|
+
};
|
|
16234
16286
|
|
|
16235
16287
|
const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
16236
16288
|
var {
|
|
@@ -16642,7 +16694,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16642
16694
|
}, {
|
|
16643
16695
|
children: jsx(MinusOutline, {
|
|
16644
16696
|
size: 24,
|
|
16645
|
-
color: disabled || disabledDecrement ? colors$
|
|
16697
|
+
color: disabled || disabledDecrement ? colors$8.iconDisable : colors$8.primary500
|
|
16646
16698
|
}, void 0)
|
|
16647
16699
|
}), void 0), jsx(Input$4, {
|
|
16648
16700
|
ref: ref,
|
|
@@ -16665,7 +16717,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16665
16717
|
}, {
|
|
16666
16718
|
children: jsx(PlusOutline, {
|
|
16667
16719
|
size: 24,
|
|
16668
|
-
color: disabled || disabledIncrement ? colors$
|
|
16720
|
+
color: disabled || disabledIncrement ? colors$8.iconDisable : colors$8.primary500
|
|
16669
16721
|
}, void 0)
|
|
16670
16722
|
}), void 0)]
|
|
16671
16723
|
}), void 0);
|
|
@@ -16678,7 +16730,7 @@ InputCounter.defaultProps = {
|
|
|
16678
16730
|
|
|
16679
16731
|
const _excluded$c = ["children"],
|
|
16680
16732
|
_excluded2$3 = ["children", "showOverlay"];
|
|
16681
|
-
var _jsxFileName$u = "/
|
|
16733
|
+
var _jsxFileName$u = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
16682
16734
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
16683
16735
|
const {
|
|
16684
16736
|
sizes
|
|
@@ -17028,7 +17080,7 @@ DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
|
17028
17080
|
|
|
17029
17081
|
const _excluded$b = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size", "withMaxWidth", "mobileOnly", "desktopOnly"],
|
|
17030
17082
|
_excluded2$2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
17031
|
-
var _jsxFileName$t = "/
|
|
17083
|
+
var _jsxFileName$t = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
17032
17084
|
const ScrollButton$1 = styled(Button$4, {
|
|
17033
17085
|
width: '28px',
|
|
17034
17086
|
outline: '$btnPrimary solid 1px',
|
|
@@ -17277,7 +17329,7 @@ function ButtonGroup$1(_ref) {
|
|
|
17277
17329
|
columnNumber: 15
|
|
17278
17330
|
}
|
|
17279
17331
|
}, /*#__PURE__*/React__default.createElement(ChevronLeftOutline, {
|
|
17280
|
-
color: colors$
|
|
17332
|
+
color: colors$8.iconGreen,
|
|
17281
17333
|
__self: this,
|
|
17282
17334
|
__source: {
|
|
17283
17335
|
fileName: _jsxFileName$t,
|
|
@@ -17307,7 +17359,7 @@ function ButtonGroup$1(_ref) {
|
|
|
17307
17359
|
columnNumber: 15
|
|
17308
17360
|
}
|
|
17309
17361
|
}, /*#__PURE__*/React__default.createElement(ChevronRightOutline, {
|
|
17310
|
-
color: colors$
|
|
17362
|
+
color: colors$8.iconGreen,
|
|
17311
17363
|
__self: this,
|
|
17312
17364
|
__source: {
|
|
17313
17365
|
fileName: _jsxFileName$t,
|
|
@@ -17557,7 +17609,7 @@ const DateNumber = styled('div', {
|
|
|
17557
17609
|
});
|
|
17558
17610
|
DateNumber.displayName = 'DateNumber';
|
|
17559
17611
|
|
|
17560
|
-
var _jsxFileName$s = "/
|
|
17612
|
+
var _jsxFileName$s = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/datePicker/timePicker/TimePicker.js";
|
|
17561
17613
|
const Input$3 = styled('input', {
|
|
17562
17614
|
display: 'none'
|
|
17563
17615
|
});
|
|
@@ -18113,7 +18165,7 @@ TimePicker.propTypes = {
|
|
|
18113
18165
|
};
|
|
18114
18166
|
NativeTimePicker.displayName = 'NativeTimePicker';
|
|
18115
18167
|
|
|
18116
|
-
var _jsxFileName$r = "/
|
|
18168
|
+
var _jsxFileName$r = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/datePicker/timePicker/InputTimePicker.js";
|
|
18117
18169
|
const getInputPickerValue$1 = date => {
|
|
18118
18170
|
if (!date) return;
|
|
18119
18171
|
return moment(date).format('HH:mm');
|
|
@@ -18161,7 +18213,7 @@ function InputTimePicker({
|
|
|
18161
18213
|
}
|
|
18162
18214
|
}, /*#__PURE__*/React__default.createElement(InputLeftElement, {
|
|
18163
18215
|
children: /*#__PURE__*/React__default.createElement(TimeOutline, {
|
|
18164
|
-
color: disabled ? colors$
|
|
18216
|
+
color: disabled ? colors$8.iconDisable : colors$8.iconPrimary,
|
|
18165
18217
|
__self: this,
|
|
18166
18218
|
__source: {
|
|
18167
18219
|
fileName: _jsxFileName$r,
|
|
@@ -20968,7 +21020,7 @@ function InputSignature({
|
|
|
20968
21020
|
}
|
|
20969
21021
|
|
|
20970
21022
|
const _excluded$a = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
20971
|
-
var _jsxFileName$q = "/
|
|
21023
|
+
var _jsxFileName$q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
20972
21024
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
20973
21025
|
position: 'relative',
|
|
20974
21026
|
display: 'flex',
|
|
@@ -21312,7 +21364,7 @@ Slider.defaultProps = {
|
|
|
21312
21364
|
};
|
|
21313
21365
|
|
|
21314
21366
|
const _excluded$9 = ["className", "children", "onClick", "type", "size"];
|
|
21315
|
-
var _jsxFileName$p = "/
|
|
21367
|
+
var _jsxFileName$p = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
21316
21368
|
const TagWrapper$1 = styled('div', {
|
|
21317
21369
|
boxSizing: 'border-box',
|
|
21318
21370
|
fontSize: '12px',
|
|
@@ -21475,7 +21527,7 @@ const _excluded$8 = ["children"],
|
|
|
21475
21527
|
_excluded2$1 = ["children", "activeTabs"],
|
|
21476
21528
|
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
21477
21529
|
_excluded4 = ["activeTabs"];
|
|
21478
|
-
var _jsxFileName$o = "/
|
|
21530
|
+
var _jsxFileName$o = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tabs/Tabs.js";
|
|
21479
21531
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
21480
21532
|
display: 'flex',
|
|
21481
21533
|
flexDirection: 'column',
|
|
@@ -21701,7 +21753,7 @@ const TabsList$1 = _ref2 => {
|
|
|
21701
21753
|
columnNumber: 11
|
|
21702
21754
|
}
|
|
21703
21755
|
}, /*#__PURE__*/React__default.createElement(ChevronLgLeftOutline, {
|
|
21704
|
-
color: colors$
|
|
21756
|
+
color: colors$8.iconGreen,
|
|
21705
21757
|
__self: undefined,
|
|
21706
21758
|
__source: {
|
|
21707
21759
|
fileName: _jsxFileName$o,
|
|
@@ -21730,7 +21782,7 @@ const TabsList$1 = _ref2 => {
|
|
|
21730
21782
|
columnNumber: 11
|
|
21731
21783
|
}
|
|
21732
21784
|
}, /*#__PURE__*/React__default.createElement(ChevronLgRightOutline, {
|
|
21733
|
-
color: colors$
|
|
21785
|
+
color: colors$8.iconGreen,
|
|
21734
21786
|
__self: undefined,
|
|
21735
21787
|
__source: {
|
|
21736
21788
|
fileName: _jsxFileName$o,
|
|
@@ -21790,7 +21842,7 @@ const TabsTrigger$1 = _ref3 => {
|
|
|
21790
21842
|
columnNumber: 9
|
|
21791
21843
|
}
|
|
21792
21844
|
}, icon && /*#__PURE__*/React__default.cloneElement(icon, {
|
|
21793
|
-
color: activeTabs === value || isIconHovered ? colors$
|
|
21845
|
+
color: activeTabs === value || isIconHovered ? colors$8.iconGreen : colors$8.iconDisable
|
|
21794
21846
|
}), (!icon || activeTabs === value) && children)));
|
|
21795
21847
|
};
|
|
21796
21848
|
TabsTrigger$1.propTypes = {
|
|
@@ -21814,7 +21866,7 @@ TabsContent$1.propTypes = {
|
|
|
21814
21866
|
};
|
|
21815
21867
|
|
|
21816
21868
|
const _excluded$7 = ["children", "variantIcon"];
|
|
21817
|
-
var _jsxFileName$n = "/
|
|
21869
|
+
var _jsxFileName$n = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
21818
21870
|
const NotificationBadgeRootStyle = styled('span', {
|
|
21819
21871
|
position: 'relative',
|
|
21820
21872
|
display: 'inline-flex',
|
|
@@ -21969,7 +22021,7 @@ NotificationBadge.propTypes = {
|
|
|
21969
22021
|
};
|
|
21970
22022
|
|
|
21971
22023
|
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
21972
|
-
var _jsxFileName$m = "/
|
|
22024
|
+
var _jsxFileName$m = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
21973
22025
|
const PaperComponent = styled('div', {
|
|
21974
22026
|
padding: '20px',
|
|
21975
22027
|
height: 'auto',
|
|
@@ -22222,7 +22274,7 @@ const removeUndefinedFields = obj => {
|
|
|
22222
22274
|
};
|
|
22223
22275
|
|
|
22224
22276
|
const _excluded$5 = ["isActive", "onClick"];
|
|
22225
|
-
var _jsxFileName$l = "/
|
|
22277
|
+
var _jsxFileName$l = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
22226
22278
|
const PrevNextButton = styled(Text$1, {
|
|
22227
22279
|
padding: '$spacing-01',
|
|
22228
22280
|
cursor: 'pointer',
|
|
@@ -22286,7 +22338,7 @@ const PrevNextButtonIcon = ({
|
|
|
22286
22338
|
columnNumber: 5
|
|
22287
22339
|
}
|
|
22288
22340
|
}, iconType === 'prev' ? /*#__PURE__*/React__default.createElement(ArrowLeftOutline, {
|
|
22289
|
-
color: isHover ? colors$
|
|
22341
|
+
color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
|
|
22290
22342
|
__self: undefined,
|
|
22291
22343
|
__source: {
|
|
22292
22344
|
fileName: _jsxFileName$l,
|
|
@@ -22294,7 +22346,7 @@ const PrevNextButtonIcon = ({
|
|
|
22294
22346
|
columnNumber: 9
|
|
22295
22347
|
}
|
|
22296
22348
|
}) : /*#__PURE__*/React__default.createElement(ArrowRightOutline, {
|
|
22297
|
-
color: isHover ? colors$
|
|
22349
|
+
color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
|
|
22298
22350
|
__self: undefined,
|
|
22299
22351
|
__source: {
|
|
22300
22352
|
fileName: _jsxFileName$l,
|
|
@@ -22716,7 +22768,7 @@ const PaginationButton = ({
|
|
|
22716
22768
|
};
|
|
22717
22769
|
|
|
22718
22770
|
const _excluded$4 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
22719
|
-
var _jsxFileName$k = "/
|
|
22771
|
+
var _jsxFileName$k = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
22720
22772
|
const LimitContainer = styled(Flex$1, {
|
|
22721
22773
|
cursor: 'pointer'
|
|
22722
22774
|
});
|
|
@@ -22812,7 +22864,7 @@ function PaginationInfo(_ref) {
|
|
|
22812
22864
|
columnNumber: 15
|
|
22813
22865
|
}
|
|
22814
22866
|
}, selectedLimit.toString()), /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
|
|
22815
|
-
color: colors$
|
|
22867
|
+
color: colors$8.gray400,
|
|
22816
22868
|
__self: this,
|
|
22817
22869
|
__source: {
|
|
22818
22870
|
fileName: _jsxFileName$k,
|
|
@@ -22951,7 +23003,7 @@ function PaginationInfo(_ref) {
|
|
|
22951
23003
|
}
|
|
22952
23004
|
|
|
22953
23005
|
const _excluded$3 = ["limit", "currentPage", "totalData", "totalPage", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions", "hidePagination", "hideInputPageSection"];
|
|
22954
|
-
var _jsxFileName$j = "/
|
|
23006
|
+
var _jsxFileName$j = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
22955
23007
|
function Pagination(_ref) {
|
|
22956
23008
|
let {
|
|
22957
23009
|
limit,
|
|
@@ -23126,23 +23178,23 @@ const ContextMenuItem = styled(Item, {
|
|
|
23126
23178
|
userSelect: 'none',
|
|
23127
23179
|
color: '$textPrimary',
|
|
23128
23180
|
'&[data-disabled]': {
|
|
23129
|
-
color: colors$
|
|
23181
|
+
color: colors$8.gray400,
|
|
23130
23182
|
pointerEvents: 'none'
|
|
23131
23183
|
},
|
|
23132
23184
|
'&:hover': {
|
|
23133
23185
|
cursor: 'pointer',
|
|
23134
|
-
backgroundColor: colors$
|
|
23186
|
+
backgroundColor: colors$8.gray100
|
|
23135
23187
|
},
|
|
23136
23188
|
'&:active': {
|
|
23137
|
-
backgroundColor: colors$
|
|
23189
|
+
backgroundColor: colors$8.gray150
|
|
23138
23190
|
},
|
|
23139
23191
|
'&:focus': {
|
|
23140
|
-
backgroundColor: colors$
|
|
23192
|
+
backgroundColor: colors$8.gray100
|
|
23141
23193
|
}
|
|
23142
23194
|
});
|
|
23143
23195
|
const ContextMenuSeparator = styled('div', {
|
|
23144
23196
|
height: 1,
|
|
23145
|
-
backgroundColor: colors$
|
|
23197
|
+
backgroundColor: colors$8.gray150,
|
|
23146
23198
|
margin: 5
|
|
23147
23199
|
});
|
|
23148
23200
|
|
|
@@ -23825,7 +23877,7 @@ const ScrollSyncNode = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
23825
23877
|
});
|
|
23826
23878
|
ScrollSyncNode.displayName = 'ScrollSyncNode';
|
|
23827
23879
|
|
|
23828
|
-
var _jsxFileName$i = "/
|
|
23880
|
+
var _jsxFileName$i = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowDraggableColumn.js";
|
|
23829
23881
|
const DragHandle = SortableHandle(() => /*#__PURE__*/React__default.createElement(IconButton, {
|
|
23830
23882
|
icon: true,
|
|
23831
23883
|
size: "xs",
|
|
@@ -24558,8 +24610,9 @@ function Table({
|
|
|
24558
24610
|
totalPage: totalPage,
|
|
24559
24611
|
onLimitChange: selectedItem => {
|
|
24560
24612
|
if (selectedItem) {
|
|
24561
|
-
|
|
24562
|
-
|
|
24613
|
+
// always reset page when limit changed
|
|
24614
|
+
gotoPage(0);
|
|
24615
|
+
doFetchData(0, selectedItem);
|
|
24563
24616
|
setPageSize(selectedItem);
|
|
24564
24617
|
setLimit(selectedItem);
|
|
24565
24618
|
}
|
|
@@ -25320,7 +25373,7 @@ const TableColumn = _a => {
|
|
|
25320
25373
|
return jsx("div", {}, void 0);
|
|
25321
25374
|
};
|
|
25322
25375
|
|
|
25323
|
-
var _jsxFileName$h = "/
|
|
25376
|
+
var _jsxFileName$h = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/DateColumn.js";
|
|
25324
25377
|
const DateColumn = ({
|
|
25325
25378
|
value,
|
|
25326
25379
|
customFormat
|
|
@@ -25432,7 +25485,7 @@ const PriceColumn = props => {
|
|
|
25432
25485
|
return addThousandSeparator(param);
|
|
25433
25486
|
};
|
|
25434
25487
|
|
|
25435
|
-
var _jsxFileName$g = "/
|
|
25488
|
+
var _jsxFileName$g = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowExpanderColumn.js";
|
|
25436
25489
|
const rowExpanderColumn = {
|
|
25437
25490
|
id: 'expander',
|
|
25438
25491
|
Header: () => null,
|
|
@@ -25475,7 +25528,7 @@ const rowExpanderColumn = {
|
|
|
25475
25528
|
unsortable: true
|
|
25476
25529
|
};
|
|
25477
25530
|
|
|
25478
|
-
var _jsxFileName$f = "/
|
|
25531
|
+
var _jsxFileName$f = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowExpanderMultipleColumn.js";
|
|
25479
25532
|
const rowExpanderMultipleColumn = {
|
|
25480
25533
|
id: 'multiple-expander',
|
|
25481
25534
|
Header: () => null,
|
|
@@ -25511,7 +25564,7 @@ const rowExpanderMultipleColumn = {
|
|
|
25511
25564
|
unsortable: true
|
|
25512
25565
|
};
|
|
25513
25566
|
|
|
25514
|
-
var _jsxFileName$e = "/
|
|
25567
|
+
var _jsxFileName$e = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowMenuColumn.js";
|
|
25515
25568
|
const rowMenuColumn = (options, icon, config) => ({
|
|
25516
25569
|
id: 'menu',
|
|
25517
25570
|
options,
|
|
@@ -25648,7 +25701,7 @@ const rowMenuColumn = (options, icon, config) => ({
|
|
|
25648
25701
|
unsortable: true
|
|
25649
25702
|
});
|
|
25650
25703
|
|
|
25651
|
-
var _jsxFileName$d = "/
|
|
25704
|
+
var _jsxFileName$d = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowSelectionColumn.js";
|
|
25652
25705
|
const rowSelectionColumn = {
|
|
25653
25706
|
id: 'selection',
|
|
25654
25707
|
Header: ({
|
|
@@ -25697,7 +25750,7 @@ const rowSelectionColumn = {
|
|
|
25697
25750
|
unsortable: true
|
|
25698
25751
|
};
|
|
25699
25752
|
|
|
25700
|
-
var _jsxFileName$c = "/
|
|
25753
|
+
var _jsxFileName$c = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/table/components/columns/RowSelectionCallbackColumn.js";
|
|
25701
25754
|
const rowSelectionWithCallbackColumn = (onCheckedChange, onAllCheckedChange) => ({
|
|
25702
25755
|
id: 'selection',
|
|
25703
25756
|
Header: ({
|
|
@@ -26035,7 +26088,7 @@ PageDialog.defaultProps = {
|
|
|
26035
26088
|
};
|
|
26036
26089
|
|
|
26037
26090
|
const _excluded$2 = ["children"];
|
|
26038
|
-
var _jsxFileName$b = "/
|
|
26091
|
+
var _jsxFileName$b = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
26039
26092
|
const overlayShow = keyframes({
|
|
26040
26093
|
'0%': {
|
|
26041
26094
|
opacity: 0
|
|
@@ -26056,7 +26109,7 @@ const contentShow = keyframes({
|
|
|
26056
26109
|
});
|
|
26057
26110
|
const StyledOverlay = styled(ADialog.Overlay, {
|
|
26058
26111
|
zIndex: 1,
|
|
26059
|
-
backgroundColor: colors$
|
|
26112
|
+
backgroundColor: colors$8.bgDimmer,
|
|
26060
26113
|
position: 'fixed',
|
|
26061
26114
|
inset: 0,
|
|
26062
26115
|
'@media (prefers-reduced-motion: no-preference)': {
|
|
@@ -26089,14 +26142,14 @@ const StyledTitle = styled(ADialog.Title, {
|
|
|
26089
26142
|
display: 'flex',
|
|
26090
26143
|
flexDirection: 'row',
|
|
26091
26144
|
justifyContent: 'space-between',
|
|
26092
|
-
color: colors$
|
|
26145
|
+
color: colors$8.gray900,
|
|
26093
26146
|
fontSize: 17,
|
|
26094
26147
|
fontWeight: 500
|
|
26095
26148
|
});
|
|
26096
26149
|
const StyledDescription$1 = styled(ADialog.Description, {
|
|
26097
26150
|
mx: 24,
|
|
26098
26151
|
my: 20,
|
|
26099
|
-
color: colors$
|
|
26152
|
+
color: colors$8.gray900,
|
|
26100
26153
|
fontSize: 15,
|
|
26101
26154
|
lineHeight: 1.5
|
|
26102
26155
|
});
|
|
@@ -26670,7 +26723,7 @@ const AlertDialogConfirm = ADialog.Action;
|
|
|
26670
26723
|
const _excluded$1 = ["side", "align", "children"],
|
|
26671
26724
|
_excluded2 = ["children"],
|
|
26672
26725
|
_excluded3 = ["asChild"];
|
|
26673
|
-
var _jsxFileName$a = "/
|
|
26726
|
+
var _jsxFileName$a = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
26674
26727
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
26675
26728
|
const slideUpAndFade = keyframes({
|
|
26676
26729
|
'0%': {
|
|
@@ -26754,17 +26807,17 @@ const itemStyles = {
|
|
|
26754
26807
|
position: 'relative',
|
|
26755
26808
|
userSelect: 'none',
|
|
26756
26809
|
'&[data-disabled]': {
|
|
26757
|
-
color: colors$
|
|
26810
|
+
color: colors$8.gray400,
|
|
26758
26811
|
pointerEvents: 'none'
|
|
26759
26812
|
},
|
|
26760
26813
|
'&:hover': {
|
|
26761
26814
|
cursor: 'pointer'
|
|
26762
26815
|
},
|
|
26763
26816
|
'&:active': {
|
|
26764
|
-
backgroundColor: colors$
|
|
26817
|
+
backgroundColor: colors$8.gray150
|
|
26765
26818
|
},
|
|
26766
26819
|
'&:focus': {
|
|
26767
|
-
backgroundColor: colors$
|
|
26820
|
+
backgroundColor: colors$8.gray100
|
|
26768
26821
|
}
|
|
26769
26822
|
};
|
|
26770
26823
|
const StyledItem = styled(DropdownMenuPrimitive.Item, Object.assign({}, itemStyles));
|
|
@@ -26786,11 +26839,11 @@ const StyledLabel = styled(DropdownMenuPrimitive.Label, {
|
|
|
26786
26839
|
padding: '8px 0',
|
|
26787
26840
|
fontSize: 12,
|
|
26788
26841
|
lineHeight: '25px',
|
|
26789
|
-
color: colors$
|
|
26842
|
+
color: colors$8.gray700
|
|
26790
26843
|
});
|
|
26791
26844
|
const StyledSeparator = styled(DropdownMenuPrimitive.Separator, {
|
|
26792
26845
|
height: 1,
|
|
26793
|
-
backgroundColor: colors$
|
|
26846
|
+
backgroundColor: colors$8.gray150,
|
|
26794
26847
|
margin: 5
|
|
26795
26848
|
});
|
|
26796
26849
|
const StyledItemIndicator = styled(DropdownMenuPrimitive.ItemIndicator, {
|
|
@@ -26899,7 +26952,7 @@ const RightSlot = styled('div', {
|
|
|
26899
26952
|
color: 'white'
|
|
26900
26953
|
},
|
|
26901
26954
|
'[data-disabled] &': {
|
|
26902
|
-
color: colors$
|
|
26955
|
+
color: colors$8.gray400
|
|
26903
26956
|
}
|
|
26904
26957
|
});
|
|
26905
26958
|
const StyledDropdown = styled(Button$4, {
|
|
@@ -28950,7 +29003,7 @@ function imgPreview(image, crop, scale = 1, rotate = 0, ratio, type) {
|
|
|
28950
29003
|
}
|
|
28951
29004
|
|
|
28952
29005
|
const _excluded = ["customPreviewIcon"];
|
|
28953
|
-
var _jsxFileName$9 = "/
|
|
29006
|
+
var _jsxFileName$9 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
28954
29007
|
const Input$2 = styled('input', {
|
|
28955
29008
|
display: 'none !important'
|
|
28956
29009
|
});
|
|
@@ -30917,7 +30970,7 @@ const Device = props => {
|
|
|
30917
30970
|
buttonType: "secondary"
|
|
30918
30971
|
}, {
|
|
30919
30972
|
children: jsx(ChevronLeftOutline, {
|
|
30920
|
-
color: colors$
|
|
30973
|
+
color: colors$8.btnPrimary
|
|
30921
30974
|
}, void 0)
|
|
30922
30975
|
}), void 0), jsxs(Flex$1, Object.assign({
|
|
30923
30976
|
align: "center",
|
|
@@ -30977,14 +31030,14 @@ const Device = props => {
|
|
|
30977
31030
|
buttonType: "secondary"
|
|
30978
31031
|
}, {
|
|
30979
31032
|
children: jsx(ChevronRightOutline, {
|
|
30980
|
-
color: colors$
|
|
31033
|
+
color: colors$8.btnPrimary
|
|
30981
31034
|
}, void 0)
|
|
30982
31035
|
}), void 0)]
|
|
30983
31036
|
}), void 0);
|
|
30984
31037
|
};
|
|
30985
31038
|
Device.displayName = 'DevicePreview';
|
|
30986
31039
|
|
|
30987
|
-
var _jsxFileName$8 = "/
|
|
31040
|
+
var _jsxFileName$8 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/colorPicker/InputColorPicker.js";
|
|
30988
31041
|
const Separator$1 = styled('div', {
|
|
30989
31042
|
height: 20,
|
|
30990
31043
|
width: 1,
|
|
@@ -31145,7 +31198,7 @@ InputColorPicker.defaultProps = {
|
|
|
31145
31198
|
|
|
31146
31199
|
var img$d = "data:image/gif;base64,R0lGODlh6gDHAOZ/AJkAAADM/zMzAAAzAP9QUAAzZoAAAGYzAGYAM/9mZmYAzGZmMzMzmQBmZv9mAJkAmTNmmZn/Zv/M/2YAZv/MzADMmZkz/5kA//8zmcwzmcwAmf8zAMwzAMwAAJkzM5kAM5n/MwBmmZlmADMzzAAzzAAA/wAAzDNm/wBm/wBmzP+Zmcxm/5lm/2aZmf+Z/wCZ//+ZAMyZAP///8xmmf//ZgDMZv8zzGb/zP/MZjOZM//MmQCZmZkzZjPM/8z//2b/mZmZ/wBmAP//zGYA/2b/ZswAZplmMwAAmQD/mZkAzACZAMz/zGZmmczM//+ZZv//ADPMzDOZZjNmzGZm/5nM//9m/zPMMwDMAGb//2bM////mcz/mZn/mf/MAMz/M2b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THuAs5s7k+zzyUGr/0x0y0fDrPTMTdv8dM5RFzy1yVWnfDXLWb+8tcxd1/y1kmGLPTbCZTd8dsRpV7x2xm13/DaOcRM8N911u3s3xHlTvDfGfXP8t4mBmzu4uoUbfni8idu7uL6N+/t4iZGXO3m6lbd7OeaZZ7t5vp33+/mCoTc7OrSlT3u6tamrvvrSrTv9+nux8zx77ULfnjvSu/fu++/LBT/7z7XfXnTuu/PeOvPuOT989MZTn3zv2AMf+CaTb1L5Jpdvkvkmm2/Sefiw7/zJ1J9U/cnVn2T9ydafdA0/4AUbhclGkbJRsGwULxuFzEbhtv+B7QDSSJc02iWNeEmjXtLIlzRc97RAAAA7";
|
|
31147
31200
|
|
|
31148
|
-
var _jsxFileName$7 = "/
|
|
31201
|
+
var _jsxFileName$7 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/colorPicker/components/ColorMap.js";
|
|
31149
31202
|
const Container$7 = styled('div', {
|
|
31150
31203
|
userSelect: 'none',
|
|
31151
31204
|
margin: 'auto',
|
|
@@ -33106,7 +33159,7 @@ function ColorMap({
|
|
|
33106
33159
|
})));
|
|
33107
33160
|
}
|
|
33108
33161
|
|
|
33109
|
-
var _jsxFileName$6 = "/
|
|
33162
|
+
var _jsxFileName$6 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/colorPicker/components/ColorFields.js";
|
|
33110
33163
|
const CheckBoard = styled(Flex$1, {
|
|
33111
33164
|
background: '$bgwhite',
|
|
33112
33165
|
border: '1px solid #E5E7EB',
|
|
@@ -33307,7 +33360,7 @@ function ColorFields({
|
|
|
33307
33360
|
}, "%")));
|
|
33308
33361
|
}
|
|
33309
33362
|
|
|
33310
|
-
var _jsxFileName$5 = "/
|
|
33363
|
+
var _jsxFileName$5 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/colorPicker/ColorPicker.js";
|
|
33311
33364
|
const Container$6 = styled(Flex$1, {
|
|
33312
33365
|
background: '$white',
|
|
33313
33366
|
padding: 16,
|
|
@@ -33824,7 +33877,7 @@ ColorPicker.defaultProps = {
|
|
|
33824
33877
|
};
|
|
33825
33878
|
var ColorPicker$1 = ColorWrap(ColorPicker);
|
|
33826
33879
|
|
|
33827
|
-
var _jsxFileName$4 = "/
|
|
33880
|
+
var _jsxFileName$4 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/stepWizard/StepWizard.js";
|
|
33828
33881
|
const StepWizardContext = /*#__PURE__*/React__default.createContext({});
|
|
33829
33882
|
const Stepper = StepWizard$1;
|
|
33830
33883
|
Stepper.displayName = 'Stepper';
|
|
@@ -34078,7 +34131,7 @@ const Navigation = props => {
|
|
|
34078
34131
|
marginRight: 9
|
|
34079
34132
|
},
|
|
34080
34133
|
size: "24",
|
|
34081
|
-
color: colors$
|
|
34134
|
+
color: colors$8.bgGreen,
|
|
34082
34135
|
__self: undefined,
|
|
34083
34136
|
__source: {
|
|
34084
34137
|
fileName: _jsxFileName$4,
|
|
@@ -34099,7 +34152,7 @@ const Navigation = props => {
|
|
|
34099
34152
|
margin: '0 9px'
|
|
34100
34153
|
},
|
|
34101
34154
|
size: "20",
|
|
34102
|
-
color: colors$
|
|
34155
|
+
color: colors$8.iconSecondary,
|
|
34103
34156
|
__self: undefined,
|
|
34104
34157
|
__source: {
|
|
34105
34158
|
fileName: _jsxFileName$4,
|
|
@@ -34171,7 +34224,7 @@ const Navigation = props => {
|
|
|
34171
34224
|
}
|
|
34172
34225
|
}, /*#__PURE__*/React__default.createElement(StyledCircleInfoOutline, {
|
|
34173
34226
|
size: "20",
|
|
34174
|
-
color: colors$
|
|
34227
|
+
color: colors$8.iconPrimary,
|
|
34175
34228
|
__self: undefined,
|
|
34176
34229
|
__source: {
|
|
34177
34230
|
fileName: _jsxFileName$4,
|
|
@@ -34547,7 +34600,7 @@ StepWizard.defaultProps = {
|
|
|
34547
34600
|
isLazyMount: true
|
|
34548
34601
|
};
|
|
34549
34602
|
|
|
34550
|
-
var _jsxFileName$3 = "/
|
|
34603
|
+
var _jsxFileName$3 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tableOfContent/transition.js";
|
|
34551
34604
|
function Collapse({
|
|
34552
34605
|
children,
|
|
34553
34606
|
isOpen
|
|
@@ -34590,14 +34643,14 @@ Collapse.defaultProps = {
|
|
|
34590
34643
|
isOpen: false
|
|
34591
34644
|
};
|
|
34592
34645
|
|
|
34593
|
-
var _jsxFileName$2 = "/
|
|
34646
|
+
var _jsxFileName$2 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tableOfContent/TableOfContent.js";
|
|
34594
34647
|
const DesktopContainer = styled(Flex$1, {
|
|
34595
34648
|
display: 'none',
|
|
34596
34649
|
'& .active-scroll-spy': {
|
|
34597
|
-
borderLeft: `4px solid ${colors$
|
|
34650
|
+
borderLeft: `4px solid ${colors$8.primary500} !important`
|
|
34598
34651
|
},
|
|
34599
34652
|
'& .active-scroll-spy .link-title': {
|
|
34600
|
-
color: `${colors$
|
|
34653
|
+
color: `${colors$8.primary500} !important`
|
|
34601
34654
|
},
|
|
34602
34655
|
'@md': {
|
|
34603
34656
|
display: 'unset'
|
|
@@ -34605,7 +34658,7 @@ const DesktopContainer = styled(Flex$1, {
|
|
|
34605
34658
|
});
|
|
34606
34659
|
const MobileContainer = styled(Flex$1, {
|
|
34607
34660
|
backgroundColor: '$white',
|
|
34608
|
-
border: `1px solid ${colors$
|
|
34661
|
+
border: `1px solid ${colors$8.gray150}`,
|
|
34609
34662
|
borderRadius: 8,
|
|
34610
34663
|
padding: '8px 8px',
|
|
34611
34664
|
width: '100%',
|
|
@@ -34732,7 +34785,7 @@ function Content({
|
|
|
34732
34785
|
marginLeft: '-4px !important',
|
|
34733
34786
|
borderLeftWidth: '4px !important',
|
|
34734
34787
|
borderLeftStyle: 'solid !important',
|
|
34735
|
-
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$
|
|
34788
|
+
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$8.primary500 : 'transparent'} !important`,
|
|
34736
34789
|
paddingLeft: '16px !important',
|
|
34737
34790
|
minHeight: 25
|
|
34738
34791
|
},
|
|
@@ -34951,7 +35004,7 @@ TableOfContentPage.defaultProps = {
|
|
|
34951
35004
|
useBoxMethod: true
|
|
34952
35005
|
};
|
|
34953
35006
|
|
|
34954
|
-
var _jsxFileName$1 = "/
|
|
35007
|
+
var _jsxFileName$1 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/editableTable/transition.js";
|
|
34955
35008
|
function Collapalse({
|
|
34956
35009
|
children,
|
|
34957
35010
|
isOpen
|
|
@@ -53404,11 +53457,11 @@ function ProgressIndicator(props) {
|
|
|
53404
53457
|
const getColor = state => {
|
|
53405
53458
|
switch (state) {
|
|
53406
53459
|
case 'error':
|
|
53407
|
-
return colors$
|
|
53460
|
+
return colors$8.red400;
|
|
53408
53461
|
case 'active':
|
|
53409
|
-
return colors$
|
|
53462
|
+
return colors$8.primary500;
|
|
53410
53463
|
default:
|
|
53411
|
-
return colors$
|
|
53464
|
+
return colors$8.gray150;
|
|
53412
53465
|
}
|
|
53413
53466
|
};
|
|
53414
53467
|
const iconProps = {
|
|
@@ -53967,8 +54020,8 @@ function MapPicker(props) {
|
|
|
53967
54020
|
center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng],
|
|
53968
54021
|
radius: radius,
|
|
53969
54022
|
pathOptions: {
|
|
53970
|
-
color: colors$
|
|
53971
|
-
fillColor: colors$
|
|
54023
|
+
color: colors$8.bgGreen,
|
|
54024
|
+
fillColor: colors$8.bgGreen
|
|
53972
54025
|
}
|
|
53973
54026
|
}, void 0), jsx(TileLayer, {
|
|
53974
54027
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
@@ -55474,7 +55527,7 @@ function CheckboxTable(props) {
|
|
|
55474
55527
|
}
|
|
55475
55528
|
}, void 0) : jsx(MinusOutline, {
|
|
55476
55529
|
size: 16,
|
|
55477
|
-
color: colors$
|
|
55530
|
+
color: colors$8.iconDisable
|
|
55478
55531
|
}, void 0)
|
|
55479
55532
|
}, void 0)
|
|
55480
55533
|
}), index + indexSubRow + 'tb-cell-collapse');
|
|
@@ -55779,9 +55832,9 @@ const StyledSkeleton = props => {
|
|
|
55779
55832
|
function getBaseColor(color) {
|
|
55780
55833
|
switch (color) {
|
|
55781
55834
|
case 'primary':
|
|
55782
|
-
return colors$
|
|
55835
|
+
return colors$8.gray300;
|
|
55783
55836
|
default:
|
|
55784
|
-
return colors$
|
|
55837
|
+
return colors$8.gray150;
|
|
55785
55838
|
}
|
|
55786
55839
|
}
|
|
55787
55840
|
function getSize(size) {
|
|
@@ -55935,9 +55988,9 @@ function TagList({
|
|
|
55935
55988
|
}
|
|
55936
55989
|
}, {
|
|
55937
55990
|
children: [showAllTags ? jsx(ChevronUpOutline, {
|
|
55938
|
-
color: colors$
|
|
55991
|
+
color: colors$8.iconSecondary
|
|
55939
55992
|
}, void 0) : jsx(ChevronDownOutline, {
|
|
55940
|
-
color: colors$
|
|
55993
|
+
color: colors$8.iconSecondary
|
|
55941
55994
|
}, void 0), jsx(Paragraph, Object.assign({
|
|
55942
55995
|
css: {
|
|
55943
55996
|
fontWeight: 600,
|
|
@@ -56465,7 +56518,7 @@ PieChartComponent.defaultProps = {
|
|
|
56465
56518
|
innerRadius: 70
|
|
56466
56519
|
};
|
|
56467
56520
|
|
|
56468
|
-
var _jsxFileName = "/
|
|
56521
|
+
var _jsxFileName = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/colors/Colors.js";
|
|
56469
56522
|
const StyledPaper = styled(Paper, {
|
|
56470
56523
|
borderRadius: '10px 10px 0 0',
|
|
56471
56524
|
padding: 15,
|
|
@@ -57767,4 +57820,4 @@ const useToggle = initialValue => {
|
|
|
57767
57820
|
return useReducer(toggleReducer, initialValue);
|
|
57768
57821
|
};
|
|
57769
57822
|
|
|
57770
|
-
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, Cell, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSignature, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_30_DAYS, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|
|
57823
|
+
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, Cell, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSignature, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_30_DAYS, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|