react-magma-dom 4.10.0-next.4 → 4.10.0-next.5
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/dist/esm/index.js +75 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/useDeviceDetect.d.ts +5 -0
- package/dist/properties.json +39 -39
- package/dist/react-magma-dom.cjs.development.js +75 -2
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/properties.json
CHANGED
|
@@ -396,22 +396,22 @@
|
|
|
396
396
|
"types": [
|
|
397
397
|
{
|
|
398
398
|
"type": "reference",
|
|
399
|
-
"id":
|
|
399
|
+
"id": 7162,
|
|
400
400
|
"name": "AccordionMultipleProps"
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
403
|
"type": "reference",
|
|
404
|
-
"id":
|
|
404
|
+
"id": 7437,
|
|
405
405
|
"name": "AccordionSingleProps"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
"type": "reference",
|
|
409
|
-
"id":
|
|
409
|
+
"id": 7711,
|
|
410
410
|
"name": "AccordionMultipleControlledProps"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"type": "reference",
|
|
414
|
-
"id":
|
|
414
|
+
"id": 7985,
|
|
415
415
|
"name": "AccordionSingleControlledProps"
|
|
416
416
|
}
|
|
417
417
|
]
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
"type": "query",
|
|
717
717
|
"queryType": {
|
|
718
718
|
"type": "reference",
|
|
719
|
-
"id":
|
|
719
|
+
"id": 6864,
|
|
720
720
|
"name": "useAccordion"
|
|
721
721
|
}
|
|
722
722
|
}
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
"type": "query",
|
|
764
764
|
"queryType": {
|
|
765
765
|
"type": "reference",
|
|
766
|
-
"id":
|
|
766
|
+
"id": 8873,
|
|
767
767
|
"name": "useAccordionButton"
|
|
768
768
|
}
|
|
769
769
|
}
|
|
@@ -866,7 +866,7 @@
|
|
|
866
866
|
"type": "query",
|
|
867
867
|
"queryType": {
|
|
868
868
|
"type": "reference",
|
|
869
|
-
"id":
|
|
869
|
+
"id": 8288,
|
|
870
870
|
"name": "useAccordionItem"
|
|
871
871
|
}
|
|
872
872
|
}
|
|
@@ -3934,7 +3934,7 @@
|
|
|
3934
3934
|
},
|
|
3935
3935
|
"indexSignature": [
|
|
3936
3936
|
{
|
|
3937
|
-
"id":
|
|
3937
|
+
"id": 25394,
|
|
3938
3938
|
"name": "__index",
|
|
3939
3939
|
"kind": 8192,
|
|
3940
3940
|
"kindString": "Index signature",
|
|
@@ -3946,7 +3946,7 @@
|
|
|
3946
3946
|
},
|
|
3947
3947
|
"parameters": [
|
|
3948
3948
|
{
|
|
3949
|
-
"id":
|
|
3949
|
+
"id": 25395,
|
|
3950
3950
|
"name": "key",
|
|
3951
3951
|
"kind": 32768,
|
|
3952
3952
|
"kindString": "Parameter",
|
|
@@ -4036,12 +4036,12 @@
|
|
|
4036
4036
|
"types": [
|
|
4037
4037
|
{
|
|
4038
4038
|
"type": "reference",
|
|
4039
|
-
"id":
|
|
4039
|
+
"id": 25400,
|
|
4040
4040
|
"name": "BaseDatagridProps"
|
|
4041
4041
|
},
|
|
4042
4042
|
{
|
|
4043
4043
|
"type": "reference",
|
|
4044
|
-
"id":
|
|
4044
|
+
"id": 25703,
|
|
4045
4045
|
"name": "DatagridSelectedRowsProps"
|
|
4046
4046
|
}
|
|
4047
4047
|
]
|
|
@@ -4260,12 +4260,12 @@
|
|
|
4260
4260
|
"typeArguments": [
|
|
4261
4261
|
{
|
|
4262
4262
|
"type": "reference",
|
|
4263
|
-
"id":
|
|
4263
|
+
"id": 25699,
|
|
4264
4264
|
"name": "ControlledSelectedRowsProps"
|
|
4265
4265
|
},
|
|
4266
4266
|
{
|
|
4267
4267
|
"type": "reference",
|
|
4268
|
-
"id":
|
|
4268
|
+
"id": 25701,
|
|
4269
4269
|
"name": "UncontrolledSelectedRowsProps"
|
|
4270
4270
|
}
|
|
4271
4271
|
],
|
|
@@ -5648,7 +5648,7 @@
|
|
|
5648
5648
|
},
|
|
5649
5649
|
"type": {
|
|
5650
5650
|
"type": "reference",
|
|
5651
|
-
"id":
|
|
5651
|
+
"id": 9312,
|
|
5652
5652
|
"name": "AccordionPanelProps"
|
|
5653
5653
|
},
|
|
5654
5654
|
"id": "DropdownExpandableMenuPanelProps",
|
|
@@ -9567,12 +9567,12 @@
|
|
|
9567
9567
|
"typeArguments": [
|
|
9568
9568
|
{
|
|
9569
9569
|
"type": "reference",
|
|
9570
|
-
"id":
|
|
9570
|
+
"id": 16799,
|
|
9571
9571
|
"name": "NavTabChildrenProps"
|
|
9572
9572
|
},
|
|
9573
9573
|
{
|
|
9574
9574
|
"type": "reference",
|
|
9575
|
-
"id":
|
|
9575
|
+
"id": 17073,
|
|
9576
9576
|
"name": "NavTabComponentProps"
|
|
9577
9577
|
}
|
|
9578
9578
|
],
|
|
@@ -9674,7 +9674,7 @@
|
|
|
9674
9674
|
"typeArguments": [
|
|
9675
9675
|
{
|
|
9676
9676
|
"type": "reference",
|
|
9677
|
-
"id":
|
|
9677
|
+
"id": 15004,
|
|
9678
9678
|
"name": "TabsProps"
|
|
9679
9679
|
},
|
|
9680
9680
|
{
|
|
@@ -10029,12 +10029,12 @@
|
|
|
10029
10029
|
"types": [
|
|
10030
10030
|
{
|
|
10031
10031
|
"type": "reference",
|
|
10032
|
-
"id":
|
|
10032
|
+
"id": 28549,
|
|
10033
10033
|
"name": "ControlledPaginationProps"
|
|
10034
10034
|
},
|
|
10035
10035
|
{
|
|
10036
10036
|
"type": "reference",
|
|
10037
|
-
"id":
|
|
10037
|
+
"id": 28832,
|
|
10038
10038
|
"name": "UncontrolledPaginationProps"
|
|
10039
10039
|
}
|
|
10040
10040
|
]
|
|
@@ -11008,12 +11008,12 @@
|
|
|
11008
11008
|
"typeArguments": [
|
|
11009
11009
|
{
|
|
11010
11010
|
"type": "reference",
|
|
11011
|
-
"id":
|
|
11011
|
+
"id": 32565,
|
|
11012
11012
|
"name": "IconOnlyPopoverTriggerProps"
|
|
11013
11013
|
},
|
|
11014
11014
|
{
|
|
11015
11015
|
"type": "reference",
|
|
11016
|
-
"id":
|
|
11016
|
+
"id": 32570,
|
|
11017
11017
|
"name": "IconTextPopoverTriggerProps"
|
|
11018
11018
|
}
|
|
11019
11019
|
],
|
|
@@ -14850,12 +14850,12 @@
|
|
|
14850
14850
|
"typeArguments": [
|
|
14851
14851
|
{
|
|
14852
14852
|
"type": "reference",
|
|
14853
|
-
"id":
|
|
14853
|
+
"id": 24708,
|
|
14854
14854
|
"name": "ControlledPageProps"
|
|
14855
14855
|
},
|
|
14856
14856
|
{
|
|
14857
14857
|
"type": "reference",
|
|
14858
|
-
"id":
|
|
14858
|
+
"id": 24710,
|
|
14859
14859
|
"name": "UncontrolledPageProps"
|
|
14860
14860
|
}
|
|
14861
14861
|
],
|
|
@@ -14877,12 +14877,12 @@
|
|
|
14877
14877
|
"typeArguments": [
|
|
14878
14878
|
{
|
|
14879
14879
|
"type": "reference",
|
|
14880
|
-
"id":
|
|
14880
|
+
"id": 24712,
|
|
14881
14881
|
"name": "ControlledRowsPerPageProps"
|
|
14882
14882
|
},
|
|
14883
14883
|
{
|
|
14884
14884
|
"type": "reference",
|
|
14885
|
-
"id":
|
|
14885
|
+
"id": 24714,
|
|
14886
14886
|
"name": "UncontrolledRowsPerPageProps"
|
|
14887
14887
|
}
|
|
14888
14888
|
],
|
|
@@ -14904,17 +14904,17 @@
|
|
|
14904
14904
|
"types": [
|
|
14905
14905
|
{
|
|
14906
14906
|
"type": "reference",
|
|
14907
|
-
"id":
|
|
14907
|
+
"id": 24429,
|
|
14908
14908
|
"name": "BaseTablePaginationProps"
|
|
14909
14909
|
},
|
|
14910
14910
|
{
|
|
14911
14911
|
"type": "reference",
|
|
14912
|
-
"id":
|
|
14912
|
+
"id": 24724,
|
|
14913
14913
|
"name": "PagePaginationProps"
|
|
14914
14914
|
},
|
|
14915
14915
|
{
|
|
14916
14916
|
"type": "reference",
|
|
14917
|
-
"id":
|
|
14917
|
+
"id": 24725,
|
|
14918
14918
|
"name": "RowsPaginationProps"
|
|
14919
14919
|
}
|
|
14920
14920
|
]
|
|
@@ -15530,12 +15530,12 @@
|
|
|
15530
15530
|
"types": [
|
|
15531
15531
|
{
|
|
15532
15532
|
"type": "reference",
|
|
15533
|
-
"id":
|
|
15533
|
+
"id": 15001,
|
|
15534
15534
|
"name": "HorizontalTabsProps"
|
|
15535
15535
|
},
|
|
15536
15536
|
{
|
|
15537
15537
|
"type": "reference",
|
|
15538
|
-
"id":
|
|
15538
|
+
"id": 14998,
|
|
15539
15539
|
"name": "VerticalTabsProps"
|
|
15540
15540
|
}
|
|
15541
15541
|
]
|
|
@@ -16013,12 +16013,12 @@
|
|
|
16013
16013
|
"typeArguments": [
|
|
16014
16014
|
{
|
|
16015
16015
|
"type": "reference",
|
|
16016
|
-
"id":
|
|
16016
|
+
"id": 30828,
|
|
16017
16017
|
"name": "DeletableTagProps"
|
|
16018
16018
|
},
|
|
16019
16019
|
{
|
|
16020
16020
|
"type": "reference",
|
|
16021
|
-
"id":
|
|
16021
|
+
"id": 30841,
|
|
16022
16022
|
"name": "ClickableTagProps"
|
|
16023
16023
|
}
|
|
16024
16024
|
],
|
|
@@ -16263,7 +16263,7 @@
|
|
|
16263
16263
|
"type": "query",
|
|
16264
16264
|
"queryType": {
|
|
16265
16265
|
"type": "reference",
|
|
16266
|
-
"id":
|
|
16266
|
+
"id": 32169,
|
|
16267
16267
|
"name": "useTimePicker"
|
|
16268
16268
|
}
|
|
16269
16269
|
}
|
|
@@ -16958,12 +16958,12 @@
|
|
|
16958
16958
|
"typeArguments": [
|
|
16959
16959
|
{
|
|
16960
16960
|
"type": "reference",
|
|
16961
|
-
"id":
|
|
16961
|
+
"id": 34903,
|
|
16962
16962
|
"name": "ToggleButtonTextProps"
|
|
16963
16963
|
},
|
|
16964
16964
|
{
|
|
16965
16965
|
"type": "reference",
|
|
16966
|
-
"id":
|
|
16966
|
+
"id": 35187,
|
|
16967
16967
|
"name": "ToggleButtonIconProps"
|
|
16968
16968
|
}
|
|
16969
16969
|
],
|
|
@@ -17565,7 +17565,7 @@
|
|
|
17565
17565
|
},
|
|
17566
17566
|
"type": {
|
|
17567
17567
|
"type": "reference",
|
|
17568
|
-
"id":
|
|
17568
|
+
"id": 34174,
|
|
17569
17569
|
"name": "UseTreeItemProps"
|
|
17570
17570
|
},
|
|
17571
17571
|
"id": "TreeItemProps",
|
|
@@ -18304,7 +18304,7 @@
|
|
|
18304
18304
|
"type": "query",
|
|
18305
18305
|
"queryType": {
|
|
18306
18306
|
"type": "reference",
|
|
18307
|
-
"id":
|
|
18307
|
+
"id": 33948,
|
|
18308
18308
|
"name": "useTreeView"
|
|
18309
18309
|
}
|
|
18310
18310
|
}
|
|
@@ -18501,7 +18501,7 @@
|
|
|
18501
18501
|
},
|
|
18502
18502
|
"typeParameter": [
|
|
18503
18503
|
{
|
|
18504
|
-
"id":
|
|
18504
|
+
"id": 22569,
|
|
18505
18505
|
"name": "PaginatedItem",
|
|
18506
18506
|
"kind": 131072,
|
|
18507
18507
|
"kindString": "Type parameter",
|
|
@@ -18561,7 +18561,7 @@
|
|
|
18561
18561
|
},
|
|
18562
18562
|
"typeParameter": [
|
|
18563
18563
|
{
|
|
18564
|
-
"id":
|
|
18564
|
+
"id": 22578,
|
|
18565
18565
|
"name": "PaginatedItem",
|
|
18566
18566
|
"kind": 131072,
|
|
18567
18567
|
"kindString": "Type parameter",
|
|
@@ -1458,6 +1458,20 @@ var _reactNodeToString = function reactNodeToString(node) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return '';
|
|
1460
1460
|
};
|
|
1461
|
+
function collectTextFromReactNode(node) {
|
|
1462
|
+
var result = [];
|
|
1463
|
+
React__default.Children.forEach(node, function (child) {
|
|
1464
|
+
if (child === null || typeof child === 'boolean') {
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
if (typeof child === 'string' || typeof child === 'number') {
|
|
1468
|
+
result.push(child);
|
|
1469
|
+
} else if (React__default.isValidElement(child)) {
|
|
1470
|
+
result.push(collectTextFromReactNode(child.props.children));
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
return result.join(' ');
|
|
1474
|
+
}
|
|
1461
1475
|
|
|
1462
1476
|
var _excluded = ["alignment", "children", "color", "isInverse", "orientation", "noSpace", "size", "testId", "textTransform", "variant"];
|
|
1463
1477
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -7925,11 +7939,59 @@ var DropdownMenuItem = /*#__PURE__*/React.forwardRef(function (props, forwardedR
|
|
|
7925
7939
|
});
|
|
7926
7940
|
DropdownMenuItem.displayName = 'DropdownMenuItem';
|
|
7927
7941
|
|
|
7942
|
+
var useDeviceDetect = function useDeviceDetect() {
|
|
7943
|
+
var userAgent = React.useMemo(function () {
|
|
7944
|
+
return navigator.userAgent.toLowerCase();
|
|
7945
|
+
}, []);
|
|
7946
|
+
var isSafari = React.useMemo(function () {
|
|
7947
|
+
return /^((?!chrome|android).)*safari/i.test(userAgent);
|
|
7948
|
+
}, [userAgent]);
|
|
7949
|
+
var isChrome = React.useMemo(function () {
|
|
7950
|
+
return /chrome|crios/i.test(userAgent) && !/edge|edg/i.test(userAgent);
|
|
7951
|
+
}, [userAgent]);
|
|
7952
|
+
var isFirefox = React.useMemo(function () {
|
|
7953
|
+
return /firefox|fxios/i.test(userAgent);
|
|
7954
|
+
}, [userAgent]);
|
|
7955
|
+
var isEdge = React.useMemo(function () {
|
|
7956
|
+
return /edge|edg/i.test(userAgent);
|
|
7957
|
+
}, [userAgent]);
|
|
7958
|
+
var isMobile = React.useMemo(function () {
|
|
7959
|
+
return /mobi|android|touch|mini/i.test(userAgent);
|
|
7960
|
+
}, [userAgent]);
|
|
7961
|
+
var isWindows = React.useMemo(function () {
|
|
7962
|
+
return /windows nt/.test(userAgent);
|
|
7963
|
+
}, [userAgent]);
|
|
7964
|
+
var isMacOS = React.useMemo(function () {
|
|
7965
|
+
return /macintosh/.test(userAgent);
|
|
7966
|
+
}, [userAgent]);
|
|
7967
|
+
var isAndroid = React.useMemo(function () {
|
|
7968
|
+
return /android/.test(userAgent);
|
|
7969
|
+
}, [userAgent]);
|
|
7970
|
+
var isIOS = React.useMemo(function () {
|
|
7971
|
+
return /iphone|ipad|ipod/.test(userAgent);
|
|
7972
|
+
}, [userAgent]);
|
|
7973
|
+
var isLinux = React.useMemo(function () {
|
|
7974
|
+
return /linux/.test(userAgent) && !isAndroid;
|
|
7975
|
+
}, [userAgent, isAndroid]);
|
|
7976
|
+
return {
|
|
7977
|
+
isSafari: isSafari,
|
|
7978
|
+
isChrome: isChrome,
|
|
7979
|
+
isFirefox: isFirefox,
|
|
7980
|
+
isEdge: isEdge,
|
|
7981
|
+
isMobile: isMobile,
|
|
7982
|
+
isWindows: isWindows,
|
|
7983
|
+
isMacOS: isMacOS,
|
|
7984
|
+
isLinux: isLinux,
|
|
7985
|
+
isAndroid: isAndroid,
|
|
7986
|
+
isIOS: isIOS
|
|
7987
|
+
};
|
|
7988
|
+
};
|
|
7989
|
+
|
|
7928
7990
|
var _excluded$O = ["children", "icon", "to"];
|
|
7929
7991
|
var StyledItem$3 = /*#__PURE__*/_styled("a", {
|
|
7930
7992
|
target: "e1b21r9q0",
|
|
7931
7993
|
label: "StyledItem"
|
|
7932
|
-
})(MenuItemStyles, " text-decoration:none;" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
7994
|
+
})(MenuItemStyles, " text-decoration:none;" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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MYWJlbCB9KSxcclxuICAgICAgICBpY29uICYmIFJlYWN0LmNyZWF0ZUVsZW1lbnQoSWNvbldyYXBwZXIsIHsgdGhlbWU6IHRoZW1lIH0sIGljb24pLFxyXG4gICAgICAgIGNoaWxkcmVuKSk7XHJcbn0pO1xyXG5Ecm9wZG93bk1lbnVOYXZJdGVtLmRpc3BsYXlOYW1lID0gJ0Ryb3Bkb3duTWVudU5hdkl0ZW0nO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1Ecm9wZG93bk1lbnVOYXZJdGVtLmpzLm1hcCJdfQ== */"));
|
|
7933
7995
|
var DropdownMenuNavItem = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
|
|
7934
7996
|
var children = props.children,
|
|
7935
7997
|
icon = props.icon,
|
|
@@ -7942,6 +8004,16 @@ var DropdownMenuNavItem = /*#__PURE__*/React.forwardRef(function (props, forward
|
|
|
7942
8004
|
React.useEffect(function () {
|
|
7943
8005
|
context.registerDropdownMenuItem(context.itemRefArray, ownRef);
|
|
7944
8006
|
}, []);
|
|
8007
|
+
var _useDeviceDetect = useDeviceDetect(),
|
|
8008
|
+
isFirefox = _useDeviceDetect.isFirefox,
|
|
8009
|
+
isWindows = _useDeviceDetect.isWindows;
|
|
8010
|
+
var ariaLabel = React.useMemo(function () {
|
|
8011
|
+
if (isWindows && isFirefox) {
|
|
8012
|
+
var collectedText = collectTextFromReactNode(children);
|
|
8013
|
+
return collectedText.length > 0 ? collectedText : undefined;
|
|
8014
|
+
}
|
|
8015
|
+
return undefined;
|
|
8016
|
+
}, []);
|
|
7945
8017
|
return React.createElement(StyledItem$3, Object.assign({}, other, {
|
|
7946
8018
|
href: to,
|
|
7947
8019
|
isFixedWidth: context.isFixedWidth,
|
|
@@ -7949,7 +8021,8 @@ var DropdownMenuNavItem = /*#__PURE__*/React.forwardRef(function (props, forward
|
|
|
7949
8021
|
ref: ref,
|
|
7950
8022
|
role: "menuitem",
|
|
7951
8023
|
tabIndex: -1,
|
|
7952
|
-
theme: theme
|
|
8024
|
+
theme: theme,
|
|
8025
|
+
"aria-label": ariaLabel
|
|
7953
8026
|
}), icon && React.createElement(IconWrapper$7, {
|
|
7954
8027
|
theme: theme
|
|
7955
8028
|
}, icon), children);
|