@majoo-ui/react 1.63.0-rc.1 → 1.63.0-rc.2
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 +35 -35
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -3711,7 +3711,7 @@ createTheme({
|
|
|
3711
3711
|
cardDescMd: '20px'
|
|
3712
3712
|
}
|
|
3713
3713
|
});
|
|
3714
|
-
const colors$7 =
|
|
3714
|
+
const colors$7 = theme.colors;
|
|
3715
3715
|
|
|
3716
3716
|
const normalize = {
|
|
3717
3717
|
'*,::before,::after': {
|
|
@@ -10451,7 +10451,7 @@ const Tag = /*#__PURE__*/React__default.forwardRef(({
|
|
|
10451
10451
|
readOnly: readOnly
|
|
10452
10452
|
}, /*#__PURE__*/React__default.createElement(CloseOutline, {
|
|
10453
10453
|
size: 16,
|
|
10454
|
-
color:
|
|
10454
|
+
color: colors$7.iconSecondary,
|
|
10455
10455
|
style: {
|
|
10456
10456
|
verticalAlign: 'middle'
|
|
10457
10457
|
}
|
|
@@ -13910,7 +13910,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef(({
|
|
|
13910
13910
|
}, !item?.hideCheck && (item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
13911
13911
|
color: colors$7.iconDisable
|
|
13912
13912
|
}) : selectedValueSet.has(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
13913
|
-
color:
|
|
13913
|
+
color: colors$7.iconBrand
|
|
13914
13914
|
})), isShowSelectAll && item?.id === '!all' && selectedValue?.length && selectedValue?.length < itemsLength && !selectedValueSet.has('!all') ? /*#__PURE__*/React__default.createElement(IndeterminateFilled$1, null, "-") : /*#__PURE__*/React__default.createElement("div", null)), /*#__PURE__*/React__default.createElement(Item$2, {
|
|
13915
13915
|
css: {
|
|
13916
13916
|
backgroundColor: 'unset',
|
|
@@ -13946,9 +13946,9 @@ const InputSelectCheck = /*#__PURE__*/forwardRef(({
|
|
|
13946
13946
|
...checkBoxCss
|
|
13947
13947
|
}
|
|
13948
13948
|
}, !item?.hideCheck && item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
13949
|
-
color:
|
|
13949
|
+
color: colors$7.iconDisable
|
|
13950
13950
|
}) : filterSelectedChild?.length === item?.children?.filter(e => !e.isDisabled)?.length ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
13951
|
-
color:
|
|
13951
|
+
color: colors$7.iconBrand
|
|
13952
13952
|
}) : filterSelectedChild?.length > 0 ? /*#__PURE__*/React__default.createElement(IndeterminateFilled$1, null, "-") : null), /*#__PURE__*/React__default.createElement(Item$2, {
|
|
13953
13953
|
css: {
|
|
13954
13954
|
backgroundColor: 'unset',
|
|
@@ -14186,7 +14186,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef(({
|
|
|
14186
14186
|
}, !item?.hideCheck && item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
14187
14187
|
color: colors$7.iconDisable
|
|
14188
14188
|
}) : item?.children?.filter(e => selectedValueSet.has(e.id) && !e.isDisabled)?.length === item?.children?.filter(e => !e.isDisabled)?.length ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
14189
|
-
color:
|
|
14189
|
+
color: colors$7.iconBrand
|
|
14190
14190
|
}) : item?.children?.filter(e => selectedValueSet.has(e.id) && !e.isDisabled)?.length > 0 ? /*#__PURE__*/React__default.createElement(IndeterminateFilled$1, null, "-") : null), /*#__PURE__*/React__default.createElement(Item$2, {
|
|
14191
14191
|
css: {
|
|
14192
14192
|
backgroundColor: 'unset',
|
|
@@ -14530,7 +14530,7 @@ function InputCreatable({
|
|
|
14530
14530
|
display: isOpen ? 'block' : 'none'
|
|
14531
14531
|
}
|
|
14532
14532
|
}, /*#__PURE__*/React__default.createElement(ItemWrapper, null, /*#__PURE__*/React__default.createElement(CirclePlusOutline, {
|
|
14533
|
-
color:
|
|
14533
|
+
color: colors$7.iconBrand
|
|
14534
14534
|
}), /*#__PURE__*/React__default.createElement(Item$1, {
|
|
14535
14535
|
onClick: () => {
|
|
14536
14536
|
if (onClickItem) onClickItem();
|
|
@@ -14966,7 +14966,7 @@ function InputResourceList({
|
|
|
14966
14966
|
onClick: handleCheckedAllExpandable,
|
|
14967
14967
|
border: !isAllSelected && !isIndeterminate,
|
|
14968
14968
|
children: isAllSelected ? jsx(CheckOutline, {
|
|
14969
|
-
color:
|
|
14969
|
+
color: colors$7.iconBrand
|
|
14970
14970
|
}) : isIndeterminate ? jsx(IndeterminateFilled, {
|
|
14971
14971
|
children: "-"
|
|
14972
14972
|
}) : ''
|
|
@@ -15383,7 +15383,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
15383
15383
|
onClick: handleDown,
|
|
15384
15384
|
children: jsx(MinusOutline, {
|
|
15385
15385
|
size: 24,
|
|
15386
|
-
color: disabled || disabledDecrement ?
|
|
15386
|
+
color: disabled || disabledDecrement ? colors$7.iconDisable : colors$7.primary500
|
|
15387
15387
|
})
|
|
15388
15388
|
}), jsx(Input$3, {
|
|
15389
15389
|
ref: ref,
|
|
@@ -15407,7 +15407,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
15407
15407
|
onClick: handleUp,
|
|
15408
15408
|
children: jsx(PlusOutline, {
|
|
15409
15409
|
size: 24,
|
|
15410
|
-
color: disabled || disabledIncrement ?
|
|
15410
|
+
color: disabled || disabledIncrement ? colors$7.iconDisable : colors$7.primary500
|
|
15411
15411
|
})
|
|
15412
15412
|
})]
|
|
15413
15413
|
});
|
|
@@ -19028,11 +19028,11 @@ const IconStateFull$1 = props => {
|
|
|
19028
19028
|
setIsHover(false);
|
|
19029
19029
|
}
|
|
19030
19030
|
return props.type === 'next' ? jsx(ChevronRightOutline, Object.assign({}, props, {
|
|
19031
|
-
color: isHover && !props.disabled ?
|
|
19031
|
+
color: isHover && !props.disabled ? colors$7.primary400 : colors$7.iconPrimary,
|
|
19032
19032
|
onMouseEnter: handleHover,
|
|
19033
19033
|
onMouseLeave: handleUnHover
|
|
19034
19034
|
})) : jsx(ChevronLeftOutline, Object.assign({}, props, {
|
|
19035
|
-
color: isHover && !props.disabled ?
|
|
19035
|
+
color: isHover && !props.disabled ? colors$7.primary400 : colors$7.iconPrimary,
|
|
19036
19036
|
onMouseEnter: handleHover,
|
|
19037
19037
|
onMouseLeave: handleUnHover
|
|
19038
19038
|
}));
|
|
@@ -20427,7 +20427,7 @@ const TabsList$1 = ({
|
|
|
20427
20427
|
icon: true,
|
|
20428
20428
|
onClick: () => listContainerRef.current.scrollLeft -= scrollAreaWidth / 2
|
|
20429
20429
|
}, /*#__PURE__*/React__default.createElement(ChevronLgLeftOutline, {
|
|
20430
|
-
color:
|
|
20430
|
+
color: colors$7.iconBrand
|
|
20431
20431
|
}))), listContainerScrollPosition < scrollAreaWidth - 10 && /*#__PURE__*/React__default.createElement(ScrollButtonContainer, {
|
|
20432
20432
|
position: "right"
|
|
20433
20433
|
}, /*#__PURE__*/React__default.createElement(ScrollButton, {
|
|
@@ -20438,7 +20438,7 @@ const TabsList$1 = ({
|
|
|
20438
20438
|
icon: true,
|
|
20439
20439
|
onClick: () => listContainerRef.current.scrollLeft += scrollAreaWidth / 2
|
|
20440
20440
|
}, /*#__PURE__*/React__default.createElement(ChevronLgRightOutline, {
|
|
20441
|
-
color:
|
|
20441
|
+
color: colors$7.iconBrand
|
|
20442
20442
|
}))));
|
|
20443
20443
|
};
|
|
20444
20444
|
const TabsTrigger$1 = ({
|
|
@@ -20466,7 +20466,7 @@ const TabsTrigger$1 = ({
|
|
|
20466
20466
|
whiteSpace: 'nowrap'
|
|
20467
20467
|
}
|
|
20468
20468
|
}, icon && /*#__PURE__*/React__default.cloneElement(icon, {
|
|
20469
|
-
color: activeTabs === value || isIconHovered ?
|
|
20469
|
+
color: activeTabs === value || isIconHovered ? colors$7.iconBrand : colors$7.iconDisable
|
|
20470
20470
|
}), (!icon || activeTabs === value) && children)));
|
|
20471
20471
|
};
|
|
20472
20472
|
TabsTrigger$1.propTypes = {
|
|
@@ -25322,13 +25322,13 @@ const IconStateFull = ({
|
|
|
25322
25322
|
setIsHover(false);
|
|
25323
25323
|
}
|
|
25324
25324
|
return props.type === 'close' ? /*#__PURE__*/React__default.createElement(CloseIcon, _extends({}, props, {
|
|
25325
|
-
color: isHover ?
|
|
25325
|
+
color: isHover ? colors$7.red400 : colors$7.red500,
|
|
25326
25326
|
onMouseEnter: handleEnter,
|
|
25327
25327
|
onMouseLeave: handleLeave
|
|
25328
25328
|
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, customPreviewIcon ? (/*#__PURE__*/React__default.cloneElement(customPreviewIcon, {
|
|
25329
25329
|
...customPreviewIcon.props,
|
|
25330
25330
|
...props,
|
|
25331
|
-
color: isHover ?
|
|
25331
|
+
color: isHover ? colors$7.iconBrand : customPreviewIcon.props.color,
|
|
25332
25332
|
onMouseEnter: handleEnter,
|
|
25333
25333
|
onMouseLeave: handleLeave,
|
|
25334
25334
|
style: {
|
|
@@ -25341,7 +25341,7 @@ const IconStateFull = ({
|
|
|
25341
25341
|
...customPreviewIcon.props.style
|
|
25342
25342
|
}
|
|
25343
25343
|
})) : /*#__PURE__*/React__default.createElement(EyeIcon, _extends({}, props, {
|
|
25344
|
-
color: isHover ?
|
|
25344
|
+
color: isHover ? colors$7.iconBrand : colors$7.gray400,
|
|
25345
25345
|
onMouseEnter: handleEnter,
|
|
25346
25346
|
onMouseLeave: handleLeave
|
|
25347
25347
|
})));
|
|
@@ -25386,7 +25386,7 @@ const Upload = ({
|
|
|
25386
25386
|
customPreviewIcon,
|
|
25387
25387
|
onPreviewIconClick,
|
|
25388
25388
|
maxWidthOrHeight,
|
|
25389
|
-
theme
|
|
25389
|
+
theme,
|
|
25390
25390
|
uploadingLabel,
|
|
25391
25391
|
placeholder,
|
|
25392
25392
|
cancelLabel,
|
|
@@ -25996,7 +25996,7 @@ const Upload = ({
|
|
|
25996
25996
|
justify: "center",
|
|
25997
25997
|
align: "center"
|
|
25998
25998
|
}, /*#__PURE__*/React__default.createElement(UploadOutline, {
|
|
25999
|
-
color: disabled ?
|
|
25999
|
+
color: disabled ? colors$7.gray300 : colors$7.gray800
|
|
26000
26000
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
26001
26001
|
css: {
|
|
26002
26002
|
margin: '$spacing-04 $spacing-05 0 $spacing-05'
|
|
@@ -26016,7 +26016,7 @@ const Upload = ({
|
|
|
26016
26016
|
}
|
|
26017
26017
|
},
|
|
26018
26018
|
isMobile: isMobile,
|
|
26019
|
-
theme: theme
|
|
26019
|
+
theme: theme
|
|
26020
26020
|
}, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
|
|
26021
26021
|
asChild: true
|
|
26022
26022
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -26060,7 +26060,7 @@ const Upload = ({
|
|
|
26060
26060
|
style: {
|
|
26061
26061
|
cursor: 'pointer'
|
|
26062
26062
|
},
|
|
26063
|
-
color: aspect ?
|
|
26063
|
+
color: aspect ? colors$7.iconBrand : colors$7.iconPrimary,
|
|
26064
26064
|
onClick: toggleAspect
|
|
26065
26065
|
})), /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
26066
26066
|
gap: 4
|
|
@@ -26830,7 +26830,7 @@ const Device = props => {
|
|
|
26830
26830
|
onClick: prevSlide,
|
|
26831
26831
|
buttonType: "secondary",
|
|
26832
26832
|
children: jsx(ChevronLeftOutline, {
|
|
26833
|
-
color:
|
|
26833
|
+
color: colors$7.btnPrimary
|
|
26834
26834
|
})
|
|
26835
26835
|
}), jsxs(Flex$1, {
|
|
26836
26836
|
align: "center",
|
|
@@ -26884,7 +26884,7 @@ const Device = props => {
|
|
|
26884
26884
|
onClick: nextSlide,
|
|
26885
26885
|
buttonType: "secondary",
|
|
26886
26886
|
children: jsx(ChevronRightOutline, {
|
|
26887
|
-
color:
|
|
26887
|
+
color: colors$7.btnPrimary
|
|
26888
26888
|
})
|
|
26889
26889
|
})]
|
|
26890
26890
|
});
|
|
@@ -28784,7 +28784,7 @@ const Navigation = props => {
|
|
|
28784
28784
|
marginRight: 9
|
|
28785
28785
|
},
|
|
28786
28786
|
size: "24",
|
|
28787
|
-
color:
|
|
28787
|
+
color: colors$7.bgBrand
|
|
28788
28788
|
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : data[i - 1].title?.(), data[i - 1]?.withTolltip && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
28789
28789
|
align: "center",
|
|
28790
28790
|
label: data[i - 1]?.tooltipsContents
|
|
@@ -28793,7 +28793,7 @@ const Navigation = props => {
|
|
|
28793
28793
|
margin: '0 9px'
|
|
28794
28794
|
},
|
|
28795
28795
|
size: "20",
|
|
28796
|
-
color:
|
|
28796
|
+
color: colors$7.iconSecondary
|
|
28797
28797
|
})), data[i - 1]?.comingSoon && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
28798
28798
|
css: {
|
|
28799
28799
|
marginLeft: data[i - 1]?.withTolltip ? 0 : '$spacing-03'
|
|
@@ -28823,7 +28823,7 @@ const Navigation = props => {
|
|
|
28823
28823
|
label: data[i - 1]?.tooltipsContents
|
|
28824
28824
|
}, /*#__PURE__*/React__default.createElement(StyledCircleInfoOutline, {
|
|
28825
28825
|
size: "20",
|
|
28826
|
-
color:
|
|
28826
|
+
color: colors$7.iconPrimary
|
|
28827
28827
|
})), data[i - 1]?.comingSoon && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
28828
28828
|
align: "center",
|
|
28829
28829
|
justify: "center",
|
|
@@ -29086,10 +29086,10 @@ Collapse.defaultProps = {
|
|
|
29086
29086
|
const DesktopContainer = styled(Flex$1, {
|
|
29087
29087
|
display: 'none',
|
|
29088
29088
|
'& .active-scroll-spy': {
|
|
29089
|
-
borderLeft: `4px solid ${
|
|
29089
|
+
borderLeft: `4px solid ${colors$7.primary500} !important`
|
|
29090
29090
|
},
|
|
29091
29091
|
'& .active-scroll-spy .link-title': {
|
|
29092
|
-
color: `${
|
|
29092
|
+
color: `${colors$7.primary500} !important`
|
|
29093
29093
|
},
|
|
29094
29094
|
'@md': {
|
|
29095
29095
|
display: 'unset'
|
|
@@ -29198,7 +29198,7 @@ function Content({
|
|
|
29198
29198
|
marginLeft: '-4px !important',
|
|
29199
29199
|
borderLeftWidth: '4px !important',
|
|
29200
29200
|
borderLeftStyle: 'solid !important',
|
|
29201
|
-
borderLeftColor: `${item?.id === activeId ?
|
|
29201
|
+
borderLeftColor: `${item?.id === activeId ? colors$7.primary500 : 'transparent'} !important`,
|
|
29202
29202
|
paddingLeft: '16px !important',
|
|
29203
29203
|
minHeight: 25
|
|
29204
29204
|
},
|
|
@@ -47230,7 +47230,7 @@ function Remove(props) {
|
|
|
47230
47230
|
css: props === null || props === void 0 ? void 0 : props.css,
|
|
47231
47231
|
position: props === null || props === void 0 ? void 0 : props.position,
|
|
47232
47232
|
onClick: props === null || props === void 0 ? void 0 : props.onRemove,
|
|
47233
|
-
color: isHover ?
|
|
47233
|
+
color: isHover ? colors$7.red400 : colors$7.gray400,
|
|
47234
47234
|
onMouseEnter: onEnter,
|
|
47235
47235
|
onMouseLeave: onLeave
|
|
47236
47236
|
});
|
|
@@ -48363,13 +48363,13 @@ function ZoomControls({
|
|
|
48363
48363
|
onClick: onZoomIn,
|
|
48364
48364
|
children: jsx(PlusOutline, {
|
|
48365
48365
|
size: 20,
|
|
48366
|
-
color:
|
|
48366
|
+
color: colors$7.iconBrand
|
|
48367
48367
|
})
|
|
48368
48368
|
}), jsx(ZoomControlButton, {
|
|
48369
48369
|
onClick: onZoomOut,
|
|
48370
48370
|
children: jsx(MinusOutline, {
|
|
48371
48371
|
size: 20,
|
|
48372
|
-
color:
|
|
48372
|
+
color: colors$7.iconBrand
|
|
48373
48373
|
})
|
|
48374
48374
|
})]
|
|
48375
48375
|
});
|
|
@@ -48475,8 +48475,8 @@ function MapPicker(props) {
|
|
|
48475
48475
|
center: [center === null || center === void 0 ? void 0 : center.lat, center === null || center === void 0 ? void 0 : center.lng],
|
|
48476
48476
|
radius: radius,
|
|
48477
48477
|
pathOptions: {
|
|
48478
|
-
color:
|
|
48479
|
-
fillColor:
|
|
48478
|
+
color: colors$7.bgBrand,
|
|
48479
|
+
fillColor: colors$7.bgBrand
|
|
48480
48480
|
}
|
|
48481
48481
|
}), jsx(TileLayer, {
|
|
48482
48482
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|