@majoo-ui/react 1.55.17 → 1.55.18
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 +42 -25
- package/index.umd.js +40 -25
- 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',
|
|
@@ -8463,7 +8463,7 @@ fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeC
|
|
|
8463
8463
|
const _excluded$d = ["children"];
|
|
8464
8464
|
var _jsxFileName$y = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
8465
8465
|
const {
|
|
8466
|
-
zIndices
|
|
8466
|
+
zIndices: zIndices$1
|
|
8467
8467
|
} = foundations;
|
|
8468
8468
|
const PopoverContext = /*#__PURE__*/createContext();
|
|
8469
8469
|
const Popover = ({
|
|
@@ -8557,7 +8557,7 @@ const PopoverContent = ({
|
|
|
8557
8557
|
position: strategy,
|
|
8558
8558
|
top: isMobile ? 0 : y != null ? y : '',
|
|
8559
8559
|
left: isMobile ? 0 : x != null ? x : '',
|
|
8560
|
-
zIndex: zIndices.popover
|
|
8560
|
+
zIndex: zIndices$1.popover
|
|
8561
8561
|
}, style)
|
|
8562
8562
|
}), {
|
|
8563
8563
|
__self: undefined,
|
|
@@ -8598,6 +8598,9 @@ Popover.propTypes = {
|
|
|
8598
8598
|
};
|
|
8599
8599
|
Popover.displayName = 'Popover';
|
|
8600
8600
|
|
|
8601
|
+
const {
|
|
8602
|
+
zIndices
|
|
8603
|
+
} = foundations;
|
|
8601
8604
|
const SelectContainer = styled('div', {
|
|
8602
8605
|
margin: 0,
|
|
8603
8606
|
flexDirection: 'column',
|
|
@@ -9106,7 +9109,8 @@ function InputSelect(_a) {
|
|
|
9106
9109
|
}), void 0), jsx(Portal, {
|
|
9107
9110
|
children: jsx(PopoverContent, Object.assign({
|
|
9108
9111
|
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
|
|
9112
|
+
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,
|
|
9113
|
+
zIndex: zIndices.tooltip
|
|
9110
9114
|
}
|
|
9111
9115
|
}, {
|
|
9112
9116
|
children: jsxs(Fragment, {
|
|
@@ -12028,8 +12032,8 @@ function addPropsToChildren(children, props) {
|
|
|
12028
12032
|
|
|
12029
12033
|
const _excluded$9 = ["children"],
|
|
12030
12034
|
_excluded2$3 = ["children", "activeTabs"],
|
|
12031
|
-
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
12032
|
-
_excluded4 = ["activeTabs"];
|
|
12035
|
+
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
12036
|
+
_excluded4$1 = ["activeTabs"];
|
|
12033
12037
|
var _jsxFileName$r = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tabs\\Tabs.js";
|
|
12034
12038
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
12035
12039
|
display: 'flex',
|
|
@@ -12293,7 +12297,7 @@ const TabsTrigger$1 = _ref3 => {
|
|
|
12293
12297
|
activeTabs,
|
|
12294
12298
|
value
|
|
12295
12299
|
} = _ref3,
|
|
12296
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
12300
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
12297
12301
|
const [isIconHovered, setIsIconHovered] = useState(false);
|
|
12298
12302
|
return /*#__PURE__*/React__default.createElement(StyledTrigger$1, _extends({
|
|
12299
12303
|
value: value
|
|
@@ -12341,7 +12345,7 @@ const TabsTrigger$1 = _ref3 => {
|
|
|
12341
12345
|
}), (!icon || activeTabs === value) && children)));
|
|
12342
12346
|
};
|
|
12343
12347
|
const TabsContent$1 = _ref4 => {
|
|
12344
|
-
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
12348
|
+
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
12345
12349
|
return /*#__PURE__*/React__default.createElement(StyledContent$5, _extends({}, props, {
|
|
12346
12350
|
__self: undefined,
|
|
12347
12351
|
__source: {
|
|
@@ -21021,7 +21025,9 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
21021
21025
|
const AlertDialogConfirm = ADialog.Action;
|
|
21022
21026
|
|
|
21023
21027
|
const _excluded = ["side", "align", "children"],
|
|
21024
|
-
_excluded2 = ["children"]
|
|
21028
|
+
_excluded2 = ["children"],
|
|
21029
|
+
_excluded3 = ["asChild"],
|
|
21030
|
+
_excluded4 = ["rightIcon"];
|
|
21025
21031
|
var _jsxFileName$a = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\dropdownMenu\\DropdownMenu.js";
|
|
21026
21032
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
21027
21033
|
const slideUpAndFade = keyframes({
|
|
@@ -21212,14 +21218,19 @@ const DropdownTrigger = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
21212
21218
|
children
|
|
21213
21219
|
} = _ref2,
|
|
21214
21220
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
21215
|
-
|
|
21221
|
+
const {
|
|
21222
|
+
asChild
|
|
21223
|
+
} = props,
|
|
21224
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
21225
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuPrimitive.Trigger, _extends({}, rest, {
|
|
21226
|
+
asChild: asChild,
|
|
21216
21227
|
ref: ref,
|
|
21217
|
-
children: children && /*#__PURE__*/React__default.cloneElement(children, Object.assign({},
|
|
21228
|
+
children: children && /*#__PURE__*/React__default.cloneElement(children, Object.assign({}, rest)),
|
|
21218
21229
|
__self: undefined,
|
|
21219
21230
|
__source: {
|
|
21220
21231
|
fileName: _jsxFileName$a,
|
|
21221
|
-
lineNumber:
|
|
21222
|
-
columnNumber:
|
|
21232
|
+
lineNumber: 148,
|
|
21233
|
+
columnNumber: 5
|
|
21223
21234
|
}
|
|
21224
21235
|
}));
|
|
21225
21236
|
});
|
|
@@ -21242,17 +21253,23 @@ const StyledDropdown = styled(ButtonPrimitive, {
|
|
|
21242
21253
|
}
|
|
21243
21254
|
}
|
|
21244
21255
|
});
|
|
21245
|
-
const ButtonDropdown = /*#__PURE__*/React__default.forwardRef((props, ref) =>
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
}
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
+
const ButtonDropdown = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
21257
|
+
const {
|
|
21258
|
+
rightIcon
|
|
21259
|
+
} = props,
|
|
21260
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded4);
|
|
21261
|
+
return /*#__PURE__*/React__default.createElement(StyledDropdown, _extends({
|
|
21262
|
+
ref: ref,
|
|
21263
|
+
css: rest.css
|
|
21264
|
+
}, rest, {
|
|
21265
|
+
__self: undefined,
|
|
21266
|
+
__source: {
|
|
21267
|
+
fileName: _jsxFileName$a,
|
|
21268
|
+
lineNumber: 177,
|
|
21269
|
+
columnNumber: 5
|
|
21270
|
+
}
|
|
21271
|
+
}), rest.children, rightIcon && rightIcon);
|
|
21272
|
+
});
|
|
21256
21273
|
ButtonDropdown.propTypes = {
|
|
21257
21274
|
children: PropTypes.node.isRequired,
|
|
21258
21275
|
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',
|
|
@@ -8539,7 +8539,7 @@
|
|
|
8539
8539
|
const _excluded$d = ["children"];
|
|
8540
8540
|
var _jsxFileName$y = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\popover\\Popover.js";
|
|
8541
8541
|
const {
|
|
8542
|
-
zIndices
|
|
8542
|
+
zIndices: zIndices$1
|
|
8543
8543
|
} = core.foundations;
|
|
8544
8544
|
const PopoverContext = /*#__PURE__*/React.createContext();
|
|
8545
8545
|
const Popover = ({
|
|
@@ -8633,7 +8633,7 @@
|
|
|
8633
8633
|
position: strategy,
|
|
8634
8634
|
top: isMobile ? 0 : y != null ? y : '',
|
|
8635
8635
|
left: isMobile ? 0 : x != null ? x : '',
|
|
8636
|
-
zIndex: zIndices.popover
|
|
8636
|
+
zIndex: zIndices$1.popover
|
|
8637
8637
|
}, style)
|
|
8638
8638
|
}), {
|
|
8639
8639
|
__self: undefined,
|
|
@@ -8674,6 +8674,7 @@
|
|
|
8674
8674
|
};
|
|
8675
8675
|
Popover.displayName = 'Popover';
|
|
8676
8676
|
|
|
8677
|
+
var zIndices = core.foundations.zIndices;
|
|
8677
8678
|
var SelectContainer = styled('div', {
|
|
8678
8679
|
margin: 0,
|
|
8679
8680
|
flexDirection: 'column',
|
|
@@ -9224,7 +9225,8 @@
|
|
|
9224
9225
|
}), void 0), jsxRuntime.jsx(helpers.Portal, {
|
|
9225
9226
|
children: jsxRuntime.jsx(PopoverContent, __assign({
|
|
9226
9227
|
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
|
|
9228
|
+
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,
|
|
9229
|
+
zIndex: zIndices.tooltip
|
|
9228
9230
|
}
|
|
9229
9231
|
}, {
|
|
9230
9232
|
children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -12179,8 +12181,8 @@
|
|
|
12179
12181
|
|
|
12180
12182
|
const _excluded$9 = ["children"],
|
|
12181
12183
|
_excluded2$3 = ["children", "activeTabs"],
|
|
12182
|
-
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
12183
|
-
_excluded4 = ["activeTabs"];
|
|
12184
|
+
_excluded3$1 = ["children", "icon", "activeTabs", "value"],
|
|
12185
|
+
_excluded4$1 = ["activeTabs"];
|
|
12184
12186
|
var _jsxFileName$r = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\tabs\\Tabs.js";
|
|
12185
12187
|
const StyledTabs = styled(TabsPrimitive__namespace.Root, {
|
|
12186
12188
|
display: 'flex',
|
|
@@ -12444,7 +12446,7 @@
|
|
|
12444
12446
|
activeTabs,
|
|
12445
12447
|
value
|
|
12446
12448
|
} = _ref3,
|
|
12447
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
12449
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
12448
12450
|
const [isIconHovered, setIsIconHovered] = React.useState(false);
|
|
12449
12451
|
return /*#__PURE__*/React__default["default"].createElement(StyledTrigger$1, _extends({
|
|
12450
12452
|
value: value
|
|
@@ -12492,7 +12494,7 @@
|
|
|
12492
12494
|
}), (!icon || activeTabs === value) && children)));
|
|
12493
12495
|
};
|
|
12494
12496
|
const TabsContent$1 = _ref4 => {
|
|
12495
|
-
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
12497
|
+
let props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
12496
12498
|
return /*#__PURE__*/React__default["default"].createElement(StyledContent$5, _extends({}, props, {
|
|
12497
12499
|
__self: undefined,
|
|
12498
12500
|
__source: {
|
|
@@ -21351,7 +21353,9 @@
|
|
|
21351
21353
|
const AlertDialogConfirm = ADialog__namespace.Action;
|
|
21352
21354
|
|
|
21353
21355
|
const _excluded = ["side", "align", "children"],
|
|
21354
|
-
_excluded2 = ["children"]
|
|
21356
|
+
_excluded2 = ["children"],
|
|
21357
|
+
_excluded3 = ["asChild"],
|
|
21358
|
+
_excluded4 = ["rightIcon"];
|
|
21355
21359
|
var _jsxFileName$a = "C:\\Users\\Acer\\Documents\\project\\majoo\\majoo-ui\\packages\\react\\src\\components\\dropdownMenu\\DropdownMenu.js";
|
|
21356
21360
|
const Context = /*#__PURE__*/React__default["default"].createContext();
|
|
21357
21361
|
const slideUpAndFade = keyframes({
|
|
@@ -21542,14 +21546,19 @@
|
|
|
21542
21546
|
children
|
|
21543
21547
|
} = _ref2,
|
|
21544
21548
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
21545
|
-
|
|
21549
|
+
const {
|
|
21550
|
+
asChild
|
|
21551
|
+
} = props,
|
|
21552
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
21553
|
+
return /*#__PURE__*/React__default["default"].createElement(DropdownMenuPrimitive__namespace.Trigger, _extends({}, rest, {
|
|
21554
|
+
asChild: asChild,
|
|
21546
21555
|
ref: ref,
|
|
21547
|
-
children: children && /*#__PURE__*/React__default["default"].cloneElement(children, Object.assign({},
|
|
21556
|
+
children: children && /*#__PURE__*/React__default["default"].cloneElement(children, Object.assign({}, rest)),
|
|
21548
21557
|
__self: undefined,
|
|
21549
21558
|
__source: {
|
|
21550
21559
|
fileName: _jsxFileName$a,
|
|
21551
|
-
lineNumber:
|
|
21552
|
-
columnNumber:
|
|
21560
|
+
lineNumber: 148,
|
|
21561
|
+
columnNumber: 5
|
|
21553
21562
|
}
|
|
21554
21563
|
}));
|
|
21555
21564
|
});
|
|
@@ -21572,17 +21581,23 @@
|
|
|
21572
21581
|
}
|
|
21573
21582
|
}
|
|
21574
21583
|
});
|
|
21575
|
-
const ButtonDropdown = /*#__PURE__*/React__default["default"].forwardRef((props, ref) =>
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21584
|
+
const ButtonDropdown = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
21585
|
+
const {
|
|
21586
|
+
rightIcon
|
|
21587
|
+
} = props,
|
|
21588
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded4);
|
|
21589
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDropdown, _extends({
|
|
21590
|
+
ref: ref,
|
|
21591
|
+
css: rest.css
|
|
21592
|
+
}, rest, {
|
|
21593
|
+
__self: undefined,
|
|
21594
|
+
__source: {
|
|
21595
|
+
fileName: _jsxFileName$a,
|
|
21596
|
+
lineNumber: 177,
|
|
21597
|
+
columnNumber: 5
|
|
21598
|
+
}
|
|
21599
|
+
}), rest.children, rightIcon && rightIcon);
|
|
21600
|
+
});
|
|
21586
21601
|
ButtonDropdown.propTypes = {
|
|
21587
21602
|
children: PropTypes__default["default"].node.isRequired,
|
|
21588
21603
|
css: PropTypes__default["default"].object,
|