@majoo-ui/react 1.55.17 → 1.55.19
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 +73 -39
- package/index.umd.js +71 -39
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4869,7 +4869,7 @@ Image.defaultProps = {
|
|
|
4869
4869
|
const _excluded$s = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4870
4870
|
var _jsxFileName$T = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tooltip\\Tooltip.js";
|
|
4871
4871
|
const {
|
|
4872
|
-
zIndices: zIndices$
|
|
4872
|
+
zIndices: zIndices$2
|
|
4873
4873
|
} = foundations;
|
|
4874
4874
|
const slideUpAndFade$2 = keyframes({
|
|
4875
4875
|
'0%': {
|
|
@@ -4912,7 +4912,7 @@ const slideLeftAndFade$2 = keyframes({
|
|
|
4912
4912
|
}
|
|
4913
4913
|
});
|
|
4914
4914
|
const StyledContent$6 = styled(TooltipPrimitive.Content, {
|
|
4915
|
-
zIndex: zIndices$
|
|
4915
|
+
zIndex: zIndices$2.tooltip,
|
|
4916
4916
|
borderRadius: 8,
|
|
4917
4917
|
padding: '8px',
|
|
4918
4918
|
fontSize: '$helper',
|
|
@@ -6488,7 +6488,8 @@ InputRadioGroup.propTypes = {
|
|
|
6488
6488
|
defaultValue: PropTypes.string,
|
|
6489
6489
|
value: PropTypes.string,
|
|
6490
6490
|
onValueChange: PropTypes.func,
|
|
6491
|
-
outlined: PropTypes.bool
|
|
6491
|
+
outlined: PropTypes.bool,
|
|
6492
|
+
block: PropTypes.bool
|
|
6492
6493
|
};
|
|
6493
6494
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6494
6495
|
|
|
@@ -6622,6 +6623,11 @@ const Container$a = styled(Flex$1, {
|
|
|
6622
6623
|
true: {
|
|
6623
6624
|
padding: '0 $spacing-03'
|
|
6624
6625
|
}
|
|
6626
|
+
},
|
|
6627
|
+
block: {
|
|
6628
|
+
true: {
|
|
6629
|
+
flex: 1
|
|
6630
|
+
}
|
|
6625
6631
|
}
|
|
6626
6632
|
},
|
|
6627
6633
|
compoundVariants: [{
|
|
@@ -6634,7 +6640,14 @@ const Container$a = styled(Flex$1, {
|
|
|
6634
6640
|
});
|
|
6635
6641
|
const ContainerLabel = styled('label', {
|
|
6636
6642
|
width: 'fit-content',
|
|
6637
|
-
cursor: 'pointer'
|
|
6643
|
+
cursor: 'pointer',
|
|
6644
|
+
variants: {
|
|
6645
|
+
outlined: {
|
|
6646
|
+
true: {
|
|
6647
|
+
display: 'contents'
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6650
|
+
}
|
|
6638
6651
|
});
|
|
6639
6652
|
const InputRadio = _ref => {
|
|
6640
6653
|
let {
|
|
@@ -6661,7 +6674,7 @@ const InputRadio = _ref => {
|
|
|
6661
6674
|
__self: this,
|
|
6662
6675
|
__source: {
|
|
6663
6676
|
fileName: _jsxFileName$G,
|
|
6664
|
-
lineNumber:
|
|
6677
|
+
lineNumber: 171,
|
|
6665
6678
|
columnNumber: 11
|
|
6666
6679
|
}
|
|
6667
6680
|
}));
|
|
@@ -6678,7 +6691,7 @@ const InputRadio = _ref => {
|
|
|
6678
6691
|
__self: this,
|
|
6679
6692
|
__source: {
|
|
6680
6693
|
fileName: _jsxFileName$G,
|
|
6681
|
-
lineNumber:
|
|
6694
|
+
lineNumber: 184,
|
|
6682
6695
|
columnNumber: 11
|
|
6683
6696
|
}
|
|
6684
6697
|
}));
|
|
@@ -6697,7 +6710,7 @@ const InputRadio = _ref => {
|
|
|
6697
6710
|
__self: this,
|
|
6698
6711
|
__source: {
|
|
6699
6712
|
fileName: _jsxFileName$G,
|
|
6700
|
-
lineNumber:
|
|
6713
|
+
lineNumber: 198,
|
|
6701
6714
|
columnNumber: 11
|
|
6702
6715
|
}
|
|
6703
6716
|
}, props.label);
|
|
@@ -6707,22 +6720,24 @@ const InputRadio = _ref => {
|
|
|
6707
6720
|
__self: undefined,
|
|
6708
6721
|
__source: {
|
|
6709
6722
|
fileName: _jsxFileName$G,
|
|
6710
|
-
lineNumber:
|
|
6723
|
+
lineNumber: 217,
|
|
6711
6724
|
columnNumber: 5
|
|
6712
6725
|
}
|
|
6713
6726
|
}, ({
|
|
6714
6727
|
defaultValue,
|
|
6715
6728
|
value,
|
|
6716
6729
|
outlined,
|
|
6717
|
-
onValueChange
|
|
6730
|
+
onValueChange,
|
|
6731
|
+
block
|
|
6718
6732
|
}) => {
|
|
6719
6733
|
const checkedValue = value != null ? value : defaultValue;
|
|
6720
6734
|
return /*#__PURE__*/React__default.createElement(ContainerLabel, {
|
|
6721
6735
|
htmlFor: id,
|
|
6736
|
+
outlined: outlined,
|
|
6722
6737
|
__self: undefined,
|
|
6723
6738
|
__source: {
|
|
6724
6739
|
fileName: _jsxFileName$G,
|
|
6725
|
-
lineNumber:
|
|
6740
|
+
lineNumber: 222,
|
|
6726
6741
|
columnNumber: 11
|
|
6727
6742
|
}
|
|
6728
6743
|
}, /*#__PURE__*/React__default.createElement(Container$a, {
|
|
@@ -6732,11 +6747,12 @@ const InputRadio = _ref => {
|
|
|
6732
6747
|
disabled: disabled,
|
|
6733
6748
|
active: outlined && checkedValue === props.value && !disabled && !readOnly,
|
|
6734
6749
|
withInputProps: !!inputProps,
|
|
6750
|
+
block: block,
|
|
6735
6751
|
css: css,
|
|
6736
6752
|
__self: undefined,
|
|
6737
6753
|
__source: {
|
|
6738
6754
|
fileName: _jsxFileName$G,
|
|
6739
|
-
lineNumber:
|
|
6755
|
+
lineNumber: 223,
|
|
6740
6756
|
columnNumber: 13
|
|
6741
6757
|
}
|
|
6742
6758
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -6745,7 +6761,7 @@ const InputRadio = _ref => {
|
|
|
6745
6761
|
__self: undefined,
|
|
6746
6762
|
__source: {
|
|
6747
6763
|
fileName: _jsxFileName$G,
|
|
6748
|
-
lineNumber:
|
|
6764
|
+
lineNumber: 233,
|
|
6749
6765
|
columnNumber: 15
|
|
6750
6766
|
}
|
|
6751
6767
|
}, /*#__PURE__*/React__default.createElement(StyledRadio, _extends({
|
|
@@ -6756,14 +6772,14 @@ const InputRadio = _ref => {
|
|
|
6756
6772
|
__self: undefined,
|
|
6757
6773
|
__source: {
|
|
6758
6774
|
fileName: _jsxFileName$G,
|
|
6759
|
-
lineNumber:
|
|
6775
|
+
lineNumber: 234,
|
|
6760
6776
|
columnNumber: 17
|
|
6761
6777
|
}
|
|
6762
6778
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
6763
6779
|
__self: undefined,
|
|
6764
6780
|
__source: {
|
|
6765
6781
|
fileName: _jsxFileName$G,
|
|
6766
|
-
lineNumber:
|
|
6782
|
+
lineNumber: 235,
|
|
6767
6783
|
columnNumber: 19
|
|
6768
6784
|
}
|
|
6769
6785
|
})), renderInputType(inputType, checkedValue, onValueChange)), description && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -6775,7 +6791,7 @@ const InputRadio = _ref => {
|
|
|
6775
6791
|
__self: undefined,
|
|
6776
6792
|
__source: {
|
|
6777
6793
|
fileName: _jsxFileName$G,
|
|
6778
|
-
lineNumber:
|
|
6794
|
+
lineNumber: 240,
|
|
6779
6795
|
columnNumber: 17
|
|
6780
6796
|
}
|
|
6781
6797
|
}, description)));
|
|
@@ -8463,7 +8479,7 @@ fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeC
|
|
|
8463
8479
|
const _excluded$d = ["children"];
|
|
8464
8480
|
var _jsxFileName$y = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
8465
8481
|
const {
|
|
8466
|
-
zIndices
|
|
8482
|
+
zIndices: zIndices$1
|
|
8467
8483
|
} = foundations;
|
|
8468
8484
|
const PopoverContext = /*#__PURE__*/createContext();
|
|
8469
8485
|
const Popover = ({
|
|
@@ -8557,7 +8573,7 @@ const PopoverContent = ({
|
|
|
8557
8573
|
position: strategy,
|
|
8558
8574
|
top: isMobile ? 0 : y != null ? y : '',
|
|
8559
8575
|
left: isMobile ? 0 : x != null ? x : '',
|
|
8560
|
-
zIndex: zIndices.popover
|
|
8576
|
+
zIndex: zIndices$1.popover
|
|
8561
8577
|
}, style)
|
|
8562
8578
|
}), {
|
|
8563
8579
|
__self: undefined,
|
|
@@ -8598,6 +8614,9 @@ Popover.propTypes = {
|
|
|
8598
8614
|
};
|
|
8599
8615
|
Popover.displayName = 'Popover';
|
|
8600
8616
|
|
|
8617
|
+
const {
|
|
8618
|
+
zIndices
|
|
8619
|
+
} = foundations;
|
|
8601
8620
|
const SelectContainer = styled('div', {
|
|
8602
8621
|
margin: 0,
|
|
8603
8622
|
flexDirection: 'column',
|
|
@@ -8820,7 +8839,8 @@ const StyledFooter = styled('div', {
|
|
|
8820
8839
|
right: 0,
|
|
8821
8840
|
backgroundColor: '$bgWhite',
|
|
8822
8841
|
boxShadow: '0px 4px 6px #00000014',
|
|
8823
|
-
borderTop: '1px solid $bgBorder'
|
|
8842
|
+
borderTop: '1px solid $bgBorder',
|
|
8843
|
+
pointerEvents: 'auto'
|
|
8824
8844
|
});
|
|
8825
8845
|
const StyledDiv$2 = styled('div', {
|
|
8826
8846
|
color: '$textDisable',
|
|
@@ -9106,7 +9126,8 @@ function InputSelect(_a) {
|
|
|
9106
9126
|
}), void 0), jsx(Portal, {
|
|
9107
9127
|
children: jsx(PopoverContent, Object.assign({
|
|
9108
9128
|
style: {
|
|
9109
|
-
width: (_b = (_a = selectBoxRef === null || selectBoxRef === void 0 ? void 0 : selectBoxRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0
|
|
9129
|
+
width: (_b = (_a = selectBoxRef === null || selectBoxRef === void 0 ? void 0 : selectBoxRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0,
|
|
9130
|
+
zIndex: zIndices.tooltip
|
|
9110
9131
|
}
|
|
9111
9132
|
}, {
|
|
9112
9133
|
children: jsxs(Fragment, {
|
|
@@ -12028,8 +12049,8 @@ function addPropsToChildren(children, props) {
|
|
|
12028
12049
|
|
|
12029
12050
|
const _excluded$9 = ["children"],
|
|
12030
12051
|
_excluded2$3 = ["children", "activeTabs"],
|
|
12031
|
-
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
12032
|
-
_excluded4 = ["activeTabs"];
|
|
12052
|
+
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
12053
|
+
_excluded4$1 = ["activeTabs"];
|
|
12033
12054
|
var _jsxFileName$r = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tabs\\Tabs.js";
|
|
12034
12055
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
12035
12056
|
display: 'flex',
|
|
@@ -12293,7 +12314,7 @@ const TabsTrigger$1 = _ref3 => {
|
|
|
12293
12314
|
activeTabs,
|
|
12294
12315
|
value
|
|
12295
12316
|
} = _ref3,
|
|
12296
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
12317
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
12297
12318
|
const [isIconHovered, setIsIconHovered] = useState(false);
|
|
12298
12319
|
return /*#__PURE__*/React__default.createElement(StyledTrigger$1, _extends({
|
|
12299
12320
|
value: value
|
|
@@ -12341,7 +12362,7 @@ const TabsTrigger$1 = _ref3 => {
|
|
|
12341
12362
|
}), (!icon || activeTabs === value) && children)));
|
|
12342
12363
|
};
|
|
12343
12364
|
const TabsContent$1 = _ref4 => {
|
|
12344
|
-
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
12365
|
+
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
12345
12366
|
return /*#__PURE__*/React__default.createElement(StyledContent$5, _extends({}, props, {
|
|
12346
12367
|
__self: undefined,
|
|
12347
12368
|
__source: {
|
|
@@ -21021,7 +21042,9 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
21021
21042
|
const AlertDialogConfirm = ADialog.Action;
|
|
21022
21043
|
|
|
21023
21044
|
const _excluded = ["side", "align", "children"],
|
|
21024
|
-
_excluded2 = ["children"]
|
|
21045
|
+
_excluded2 = ["children"],
|
|
21046
|
+
_excluded3 = ["asChild"],
|
|
21047
|
+
_excluded4 = ["rightIcon"];
|
|
21025
21048
|
var _jsxFileName$a = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\dropdownMenu\\DropdownMenu.js";
|
|
21026
21049
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
21027
21050
|
const slideUpAndFade = keyframes({
|
|
@@ -21212,14 +21235,19 @@ const DropdownTrigger = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
21212
21235
|
children
|
|
21213
21236
|
} = _ref2,
|
|
21214
21237
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
21215
|
-
|
|
21238
|
+
const {
|
|
21239
|
+
asChild
|
|
21240
|
+
} = props,
|
|
21241
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
21242
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuPrimitive.Trigger, _extends({}, rest, {
|
|
21243
|
+
asChild: asChild,
|
|
21216
21244
|
ref: ref,
|
|
21217
|
-
children: children && /*#__PURE__*/React__default.cloneElement(children, Object.assign({},
|
|
21245
|
+
children: children && /*#__PURE__*/React__default.cloneElement(children, Object.assign({}, rest)),
|
|
21218
21246
|
__self: undefined,
|
|
21219
21247
|
__source: {
|
|
21220
21248
|
fileName: _jsxFileName$a,
|
|
21221
|
-
lineNumber:
|
|
21222
|
-
columnNumber:
|
|
21249
|
+
lineNumber: 148,
|
|
21250
|
+
columnNumber: 5
|
|
21223
21251
|
}
|
|
21224
21252
|
}));
|
|
21225
21253
|
});
|
|
@@ -21242,17 +21270,23 @@ const StyledDropdown = styled(ButtonPrimitive, {
|
|
|
21242
21270
|
}
|
|
21243
21271
|
}
|
|
21244
21272
|
});
|
|
21245
|
-
const ButtonDropdown = /*#__PURE__*/React__default.forwardRef((props, ref) =>
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
}
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21273
|
+
const ButtonDropdown = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
21274
|
+
const {
|
|
21275
|
+
rightIcon
|
|
21276
|
+
} = props,
|
|
21277
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded4);
|
|
21278
|
+
return /*#__PURE__*/React__default.createElement(StyledDropdown, _extends({
|
|
21279
|
+
ref: ref,
|
|
21280
|
+
css: rest.css
|
|
21281
|
+
}, rest, {
|
|
21282
|
+
__self: undefined,
|
|
21283
|
+
__source: {
|
|
21284
|
+
fileName: _jsxFileName$a,
|
|
21285
|
+
lineNumber: 177,
|
|
21286
|
+
columnNumber: 5
|
|
21287
|
+
}
|
|
21288
|
+
}), rest.children, rightIcon && rightIcon);
|
|
21289
|
+
});
|
|
21256
21290
|
ButtonDropdown.propTypes = {
|
|
21257
21291
|
children: PropTypes.node.isRequired,
|
|
21258
21292
|
css: PropTypes.object,
|
package/index.umd.js
CHANGED
|
@@ -4945,7 +4945,7 @@
|
|
|
4945
4945
|
const _excluded$s = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4946
4946
|
var _jsxFileName$T = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tooltip\\Tooltip.js";
|
|
4947
4947
|
const {
|
|
4948
|
-
zIndices: zIndices$
|
|
4948
|
+
zIndices: zIndices$2
|
|
4949
4949
|
} = core.foundations;
|
|
4950
4950
|
const slideUpAndFade$2 = keyframes({
|
|
4951
4951
|
'0%': {
|
|
@@ -4988,7 +4988,7 @@
|
|
|
4988
4988
|
}
|
|
4989
4989
|
});
|
|
4990
4990
|
const StyledContent$6 = styled(TooltipPrimitive__namespace.Content, {
|
|
4991
|
-
zIndex: zIndices$
|
|
4991
|
+
zIndex: zIndices$2.tooltip,
|
|
4992
4992
|
borderRadius: 8,
|
|
4993
4993
|
padding: '8px',
|
|
4994
4994
|
fontSize: '$helper',
|
|
@@ -6564,7 +6564,8 @@
|
|
|
6564
6564
|
defaultValue: PropTypes__default["default"].string,
|
|
6565
6565
|
value: PropTypes__default["default"].string,
|
|
6566
6566
|
onValueChange: PropTypes__default["default"].func,
|
|
6567
|
-
outlined: PropTypes__default["default"].bool
|
|
6567
|
+
outlined: PropTypes__default["default"].bool,
|
|
6568
|
+
block: PropTypes__default["default"].bool
|
|
6568
6569
|
};
|
|
6569
6570
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6570
6571
|
|
|
@@ -6698,6 +6699,11 @@
|
|
|
6698
6699
|
true: {
|
|
6699
6700
|
padding: '0 $spacing-03'
|
|
6700
6701
|
}
|
|
6702
|
+
},
|
|
6703
|
+
block: {
|
|
6704
|
+
true: {
|
|
6705
|
+
flex: 1
|
|
6706
|
+
}
|
|
6701
6707
|
}
|
|
6702
6708
|
},
|
|
6703
6709
|
compoundVariants: [{
|
|
@@ -6710,7 +6716,14 @@
|
|
|
6710
6716
|
});
|
|
6711
6717
|
const ContainerLabel = styled('label', {
|
|
6712
6718
|
width: 'fit-content',
|
|
6713
|
-
cursor: 'pointer'
|
|
6719
|
+
cursor: 'pointer',
|
|
6720
|
+
variants: {
|
|
6721
|
+
outlined: {
|
|
6722
|
+
true: {
|
|
6723
|
+
display: 'contents'
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6714
6727
|
});
|
|
6715
6728
|
const InputRadio = _ref => {
|
|
6716
6729
|
let {
|
|
@@ -6737,7 +6750,7 @@
|
|
|
6737
6750
|
__self: this,
|
|
6738
6751
|
__source: {
|
|
6739
6752
|
fileName: _jsxFileName$G,
|
|
6740
|
-
lineNumber:
|
|
6753
|
+
lineNumber: 171,
|
|
6741
6754
|
columnNumber: 11
|
|
6742
6755
|
}
|
|
6743
6756
|
}));
|
|
@@ -6754,7 +6767,7 @@
|
|
|
6754
6767
|
__self: this,
|
|
6755
6768
|
__source: {
|
|
6756
6769
|
fileName: _jsxFileName$G,
|
|
6757
|
-
lineNumber:
|
|
6770
|
+
lineNumber: 184,
|
|
6758
6771
|
columnNumber: 11
|
|
6759
6772
|
}
|
|
6760
6773
|
}));
|
|
@@ -6773,7 +6786,7 @@
|
|
|
6773
6786
|
__self: this,
|
|
6774
6787
|
__source: {
|
|
6775
6788
|
fileName: _jsxFileName$G,
|
|
6776
|
-
lineNumber:
|
|
6789
|
+
lineNumber: 198,
|
|
6777
6790
|
columnNumber: 11
|
|
6778
6791
|
}
|
|
6779
6792
|
}, props.label);
|
|
@@ -6783,22 +6796,24 @@
|
|
|
6783
6796
|
__self: undefined,
|
|
6784
6797
|
__source: {
|
|
6785
6798
|
fileName: _jsxFileName$G,
|
|
6786
|
-
lineNumber:
|
|
6799
|
+
lineNumber: 217,
|
|
6787
6800
|
columnNumber: 5
|
|
6788
6801
|
}
|
|
6789
6802
|
}, ({
|
|
6790
6803
|
defaultValue,
|
|
6791
6804
|
value,
|
|
6792
6805
|
outlined,
|
|
6793
|
-
onValueChange
|
|
6806
|
+
onValueChange,
|
|
6807
|
+
block
|
|
6794
6808
|
}) => {
|
|
6795
6809
|
const checkedValue = value != null ? value : defaultValue;
|
|
6796
6810
|
return /*#__PURE__*/React__default["default"].createElement(ContainerLabel, {
|
|
6797
6811
|
htmlFor: id,
|
|
6812
|
+
outlined: outlined,
|
|
6798
6813
|
__self: undefined,
|
|
6799
6814
|
__source: {
|
|
6800
6815
|
fileName: _jsxFileName$G,
|
|
6801
|
-
lineNumber:
|
|
6816
|
+
lineNumber: 222,
|
|
6802
6817
|
columnNumber: 11
|
|
6803
6818
|
}
|
|
6804
6819
|
}, /*#__PURE__*/React__default["default"].createElement(Container$a, {
|
|
@@ -6808,11 +6823,12 @@
|
|
|
6808
6823
|
disabled: disabled,
|
|
6809
6824
|
active: outlined && checkedValue === props.value && !disabled && !readOnly,
|
|
6810
6825
|
withInputProps: !!inputProps,
|
|
6826
|
+
block: block,
|
|
6811
6827
|
css: css,
|
|
6812
6828
|
__self: undefined,
|
|
6813
6829
|
__source: {
|
|
6814
6830
|
fileName: _jsxFileName$G,
|
|
6815
|
-
lineNumber:
|
|
6831
|
+
lineNumber: 223,
|
|
6816
6832
|
columnNumber: 13
|
|
6817
6833
|
}
|
|
6818
6834
|
}, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
@@ -6821,7 +6837,7 @@
|
|
|
6821
6837
|
__self: undefined,
|
|
6822
6838
|
__source: {
|
|
6823
6839
|
fileName: _jsxFileName$G,
|
|
6824
|
-
lineNumber:
|
|
6840
|
+
lineNumber: 233,
|
|
6825
6841
|
columnNumber: 15
|
|
6826
6842
|
}
|
|
6827
6843
|
}, /*#__PURE__*/React__default["default"].createElement(StyledRadio, _extends({
|
|
@@ -6832,14 +6848,14 @@
|
|
|
6832
6848
|
__self: undefined,
|
|
6833
6849
|
__source: {
|
|
6834
6850
|
fileName: _jsxFileName$G,
|
|
6835
|
-
lineNumber:
|
|
6851
|
+
lineNumber: 234,
|
|
6836
6852
|
columnNumber: 17
|
|
6837
6853
|
}
|
|
6838
6854
|
}), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$1, {
|
|
6839
6855
|
__self: undefined,
|
|
6840
6856
|
__source: {
|
|
6841
6857
|
fileName: _jsxFileName$G,
|
|
6842
|
-
lineNumber:
|
|
6858
|
+
lineNumber: 235,
|
|
6843
6859
|
columnNumber: 19
|
|
6844
6860
|
}
|
|
6845
6861
|
})), renderInputType(inputType, checkedValue, onValueChange)), description && /*#__PURE__*/React__default["default"].createElement(Text$1, {
|
|
@@ -6851,7 +6867,7 @@
|
|
|
6851
6867
|
__self: undefined,
|
|
6852
6868
|
__source: {
|
|
6853
6869
|
fileName: _jsxFileName$G,
|
|
6854
|
-
lineNumber:
|
|
6870
|
+
lineNumber: 240,
|
|
6855
6871
|
columnNumber: 17
|
|
6856
6872
|
}
|
|
6857
6873
|
}, description)));
|
|
@@ -8539,7 +8555,7 @@
|
|
|
8539
8555
|
const _excluded$d = ["children"];
|
|
8540
8556
|
var _jsxFileName$y = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
8541
8557
|
const {
|
|
8542
|
-
zIndices
|
|
8558
|
+
zIndices: zIndices$1
|
|
8543
8559
|
} = core.foundations;
|
|
8544
8560
|
const PopoverContext = /*#__PURE__*/React.createContext();
|
|
8545
8561
|
const Popover = ({
|
|
@@ -8633,7 +8649,7 @@
|
|
|
8633
8649
|
position: strategy,
|
|
8634
8650
|
top: isMobile ? 0 : y != null ? y : '',
|
|
8635
8651
|
left: isMobile ? 0 : x != null ? x : '',
|
|
8636
|
-
zIndex: zIndices.popover
|
|
8652
|
+
zIndex: zIndices$1.popover
|
|
8637
8653
|
}, style)
|
|
8638
8654
|
}), {
|
|
8639
8655
|
__self: undefined,
|
|
@@ -8674,6 +8690,7 @@
|
|
|
8674
8690
|
};
|
|
8675
8691
|
Popover.displayName = 'Popover';
|
|
8676
8692
|
|
|
8693
|
+
var zIndices = core.foundations.zIndices;
|
|
8677
8694
|
var SelectContainer = styled('div', {
|
|
8678
8695
|
margin: 0,
|
|
8679
8696
|
flexDirection: 'column',
|
|
@@ -8896,7 +8913,8 @@
|
|
|
8896
8913
|
right: 0,
|
|
8897
8914
|
backgroundColor: '$bgWhite',
|
|
8898
8915
|
boxShadow: '0px 4px 6px #00000014',
|
|
8899
|
-
borderTop: '1px solid $bgBorder'
|
|
8916
|
+
borderTop: '1px solid $bgBorder',
|
|
8917
|
+
pointerEvents: 'auto'
|
|
8900
8918
|
});
|
|
8901
8919
|
var StyledDiv$2 = styled('div', {
|
|
8902
8920
|
color: '$textDisable',
|
|
@@ -9224,7 +9242,8 @@
|
|
|
9224
9242
|
}), void 0), jsxRuntime.jsx(helpers.Portal, {
|
|
9225
9243
|
children: jsxRuntime.jsx(PopoverContent, __assign({
|
|
9226
9244
|
style: {
|
|
9227
|
-
width: (_c = (_b = selectBoxRef === null || selectBoxRef === void 0 ? void 0 : selectBoxRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) !== null && _c !== void 0 ? _c : 0
|
|
9245
|
+
width: (_c = (_b = selectBoxRef === null || selectBoxRef === void 0 ? void 0 : selectBoxRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) !== null && _c !== void 0 ? _c : 0,
|
|
9246
|
+
zIndex: zIndices.tooltip
|
|
9228
9247
|
}
|
|
9229
9248
|
}, {
|
|
9230
9249
|
children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -12179,8 +12198,8 @@
|
|
|
12179
12198
|
|
|
12180
12199
|
const _excluded$9 = ["children"],
|
|
12181
12200
|
_excluded2$3 = ["children", "activeTabs"],
|
|
12182
|
-
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
12183
|
-
_excluded4 = ["activeTabs"];
|
|
12201
|
+
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
12202
|
+
_excluded4$1 = ["activeTabs"];
|
|
12184
12203
|
var _jsxFileName$r = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tabs\\Tabs.js";
|
|
12185
12204
|
const StyledTabs = styled(TabsPrimitive__namespace.Root, {
|
|
12186
12205
|
display: 'flex',
|
|
@@ -12444,7 +12463,7 @@
|
|
|
12444
12463
|
activeTabs,
|
|
12445
12464
|
value
|
|
12446
12465
|
} = _ref3,
|
|
12447
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
12466
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
12448
12467
|
const [isIconHovered, setIsIconHovered] = React.useState(false);
|
|
12449
12468
|
return /*#__PURE__*/React__default["default"].createElement(StyledTrigger$1, _extends({
|
|
12450
12469
|
value: value
|
|
@@ -12492,7 +12511,7 @@
|
|
|
12492
12511
|
}), (!icon || activeTabs === value) && children)));
|
|
12493
12512
|
};
|
|
12494
12513
|
const TabsContent$1 = _ref4 => {
|
|
12495
|
-
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
12514
|
+
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
12496
12515
|
return /*#__PURE__*/React__default["default"].createElement(StyledContent$5, _extends({}, props, {
|
|
12497
12516
|
__self: undefined,
|
|
12498
12517
|
__source: {
|
|
@@ -21351,7 +21370,9 @@
|
|
|
21351
21370
|
const AlertDialogConfirm = ADialog__namespace.Action;
|
|
21352
21371
|
|
|
21353
21372
|
const _excluded = ["side", "align", "children"],
|
|
21354
|
-
_excluded2 = ["children"]
|
|
21373
|
+
_excluded2 = ["children"],
|
|
21374
|
+
_excluded3 = ["asChild"],
|
|
21375
|
+
_excluded4 = ["rightIcon"];
|
|
21355
21376
|
var _jsxFileName$a = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\dropdownMenu\\DropdownMenu.js";
|
|
21356
21377
|
const Context = /*#__PURE__*/React__default["default"].createContext();
|
|
21357
21378
|
const slideUpAndFade = keyframes({
|
|
@@ -21542,14 +21563,19 @@
|
|
|
21542
21563
|
children
|
|
21543
21564
|
} = _ref2,
|
|
21544
21565
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
21545
|
-
|
|
21566
|
+
const {
|
|
21567
|
+
asChild
|
|
21568
|
+
} = props,
|
|
21569
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
21570
|
+
return /*#__PURE__*/React__default["default"].createElement(DropdownMenuPrimitive__namespace.Trigger, _extends({}, rest, {
|
|
21571
|
+
asChild: asChild,
|
|
21546
21572
|
ref: ref,
|
|
21547
|
-
children: children && /*#__PURE__*/React__default["default"].cloneElement(children, Object.assign({},
|
|
21573
|
+
children: children && /*#__PURE__*/React__default["default"].cloneElement(children, Object.assign({}, rest)),
|
|
21548
21574
|
__self: undefined,
|
|
21549
21575
|
__source: {
|
|
21550
21576
|
fileName: _jsxFileName$a,
|
|
21551
|
-
lineNumber:
|
|
21552
|
-
columnNumber:
|
|
21577
|
+
lineNumber: 148,
|
|
21578
|
+
columnNumber: 5
|
|
21553
21579
|
}
|
|
21554
21580
|
}));
|
|
21555
21581
|
});
|
|
@@ -21572,17 +21598,23 @@
|
|
|
21572
21598
|
}
|
|
21573
21599
|
}
|
|
21574
21600
|
});
|
|
21575
|
-
const ButtonDropdown = /*#__PURE__*/React__default["default"].forwardRef((props, ref) =>
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21601
|
+
const ButtonDropdown = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
21602
|
+
const {
|
|
21603
|
+
rightIcon
|
|
21604
|
+
} = props,
|
|
21605
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded4);
|
|
21606
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDropdown, _extends({
|
|
21607
|
+
ref: ref,
|
|
21608
|
+
css: rest.css
|
|
21609
|
+
}, rest, {
|
|
21610
|
+
__self: undefined,
|
|
21611
|
+
__source: {
|
|
21612
|
+
fileName: _jsxFileName$a,
|
|
21613
|
+
lineNumber: 177,
|
|
21614
|
+
columnNumber: 5
|
|
21615
|
+
}
|
|
21616
|
+
}), rest.children, rightIcon && rightIcon);
|
|
21617
|
+
});
|
|
21586
21618
|
ButtonDropdown.propTypes = {
|
|
21587
21619
|
children: PropTypes__default["default"].node.isRequired,
|
|
21588
21620
|
css: PropTypes__default["default"].object,
|