@instructure/ui-drilldown 8.21.1-snapshot.10
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/CHANGELOG.md +36 -0
- package/LICENSE.md +27 -0
- package/README.md +30 -0
- package/es/Drilldown/DrilldownGroup/index.js +56 -0
- package/es/Drilldown/DrilldownGroup/props.js +42 -0
- package/es/Drilldown/DrilldownLocator.js +144 -0
- package/es/Drilldown/DrilldownOption/index.js +59 -0
- package/es/Drilldown/DrilldownOption/props.js +46 -0
- package/es/Drilldown/DrilldownPage/index.js +56 -0
- package/es/Drilldown/DrilldownPage/props.js +41 -0
- package/es/Drilldown/DrilldownSeparator/index.js +52 -0
- package/es/Drilldown/DrilldownSeparator/props.js +30 -0
- package/es/Drilldown/__examples__/Drilldown.examples.js +299 -0
- package/es/Drilldown/index.js +1241 -0
- package/es/Drilldown/locator.js +26 -0
- package/es/Drilldown/props.js +67 -0
- package/es/Drilldown/styles.js +82 -0
- package/es/Drilldown/theme.js +43 -0
- package/es/index.js +24 -0
- package/lib/Drilldown/DrilldownGroup/index.js +42 -0
- package/lib/Drilldown/DrilldownGroup/props.js +56 -0
- package/lib/Drilldown/DrilldownLocator.js +157 -0
- package/lib/Drilldown/DrilldownOption/index.js +45 -0
- package/lib/Drilldown/DrilldownOption/props.js +57 -0
- package/lib/Drilldown/DrilldownPage/index.js +66 -0
- package/lib/Drilldown/DrilldownPage/props.js +56 -0
- package/lib/Drilldown/DrilldownSeparator/index.js +38 -0
- package/lib/Drilldown/DrilldownSeparator/props.js +41 -0
- package/lib/Drilldown/__examples__/Drilldown.examples.js +289 -0
- package/lib/Drilldown/index.js +1253 -0
- package/lib/Drilldown/locator.js +40 -0
- package/lib/Drilldown/props.js +83 -0
- package/lib/Drilldown/styles.js +90 -0
- package/lib/Drilldown/theme.js +51 -0
- package/lib/index.js +13 -0
- package/lib/package.json +1 -0
- package/package.json +58 -0
- package/src/Drilldown/DrilldownGroup/index.tsx +64 -0
- package/src/Drilldown/DrilldownGroup/props.ts +149 -0
- package/src/Drilldown/DrilldownLocator.ts +101 -0
- package/src/Drilldown/DrilldownOption/index.tsx +68 -0
- package/src/Drilldown/DrilldownOption/props.ts +224 -0
- package/src/Drilldown/DrilldownPage/index.tsx +58 -0
- package/src/Drilldown/DrilldownPage/props.ts +129 -0
- package/src/Drilldown/DrilldownSeparator/index.tsx +60 -0
- package/src/Drilldown/DrilldownSeparator/props.ts +65 -0
- package/src/Drilldown/README.md +1515 -0
- package/src/Drilldown/__examples__/Drilldown.examples.tsx +318 -0
- package/src/Drilldown/index.tsx +1492 -0
- package/src/Drilldown/locator.ts +28 -0
- package/src/Drilldown/props.ts +378 -0
- package/src/Drilldown/styles.ts +95 -0
- package/src/Drilldown/theme.ts +47 -0
- package/src/index.ts +26 -0
- package/tsconfig.build.json +30 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +4 -0
- package/types/Drilldown/DrilldownGroup/index.d.ts +59 -0
- package/types/Drilldown/DrilldownGroup/index.d.ts.map +1 -0
- package/types/Drilldown/DrilldownGroup/props.d.ts +65 -0
- package/types/Drilldown/DrilldownGroup/props.d.ts.map +1 -0
- package/types/Drilldown/DrilldownLocator.d.ts +652 -0
- package/types/Drilldown/DrilldownLocator.d.ts.map +1 -0
- package/types/Drilldown/DrilldownOption/index.d.ts +134 -0
- package/types/Drilldown/DrilldownOption/index.d.ts.map +1 -0
- package/types/Drilldown/DrilldownOption/props.d.ts +116 -0
- package/types/Drilldown/DrilldownOption/props.d.ts.map +1 -0
- package/types/Drilldown/DrilldownPage/index.d.ts +45 -0
- package/types/Drilldown/DrilldownPage/index.d.ts.map +1 -0
- package/types/Drilldown/DrilldownPage/props.d.ts +51 -0
- package/types/Drilldown/DrilldownPage/props.d.ts.map +1 -0
- package/types/Drilldown/DrilldownSeparator/index.d.ts +27 -0
- package/types/Drilldown/DrilldownSeparator/index.d.ts.map +1 -0
- package/types/Drilldown/DrilldownSeparator/props.d.ts +18 -0
- package/types/Drilldown/DrilldownSeparator/props.d.ts.map +1 -0
- package/types/Drilldown/__examples__/Drilldown.examples.d.ts +5 -0
- package/types/Drilldown/__examples__/Drilldown.examples.d.ts.map +1 -0
- package/types/Drilldown/index.d.ts +246 -0
- package/types/Drilldown/index.d.ts.map +1 -0
- package/types/Drilldown/locator.d.ts +4 -0
- package/types/Drilldown/locator.d.ts.map +1 -0
- package/types/Drilldown/props.d.ts +189 -0
- package/types/Drilldown/props.d.ts.map +1 -0
- package/types/Drilldown/styles.d.ts +15 -0
- package/types/Drilldown/styles.d.ts.map +1 -0
- package/types/Drilldown/theme.d.ts +10 -0
- package/types/Drilldown/theme.d.ts.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
import { DrilldownLocator } from './DrilldownLocator';
|
|
25
|
+
export { DrilldownLocator };
|
|
26
|
+
export default DrilldownLocator;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
import PropTypes from 'prop-types';
|
|
25
|
+
import { Children, controllable } from '@instructure/ui-prop-types';
|
|
26
|
+
import { PositionPropTypes } from '@instructure/ui-position';
|
|
27
|
+
import { DrilldownPage } from './DrilldownPage';
|
|
28
|
+
const propTypes = {
|
|
29
|
+
rootPageId: PropTypes.string.isRequired,
|
|
30
|
+
children: Children.oneOf([DrilldownPage]),
|
|
31
|
+
id: PropTypes.string,
|
|
32
|
+
label: PropTypes.string,
|
|
33
|
+
disabled: PropTypes.bool,
|
|
34
|
+
rotateFocus: PropTypes.bool,
|
|
35
|
+
as: PropTypes.elementType,
|
|
36
|
+
role: PropTypes.string,
|
|
37
|
+
elementRef: PropTypes.func,
|
|
38
|
+
drilldownRef: PropTypes.func,
|
|
39
|
+
overflowX: PropTypes.oneOf(['auto', 'hidden', 'visible']),
|
|
40
|
+
overflowY: PropTypes.oneOf(['auto', 'hidden', 'visible']),
|
|
41
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
42
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
43
|
+
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
44
|
+
maxWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
45
|
+
trigger: PropTypes.node,
|
|
46
|
+
placement: PositionPropTypes.placement,
|
|
47
|
+
defaultShow: PropTypes.bool,
|
|
48
|
+
show: controllable(PropTypes.bool, 'onToggle', 'defaultShow'),
|
|
49
|
+
onToggle: PropTypes.func,
|
|
50
|
+
onSelect: PropTypes.func,
|
|
51
|
+
onDismiss: PropTypes.func,
|
|
52
|
+
onFocus: PropTypes.func,
|
|
53
|
+
onMouseOver: PropTypes.func,
|
|
54
|
+
popoverRef: PropTypes.func,
|
|
55
|
+
mountNode: PositionPropTypes.mountNode,
|
|
56
|
+
positionTarget: PositionPropTypes.mountNode,
|
|
57
|
+
constrain: PositionPropTypes.constrain,
|
|
58
|
+
shouldHideOnSelect: PropTypes.bool,
|
|
59
|
+
shouldContainFocus: PropTypes.bool,
|
|
60
|
+
shouldReturnFocus: PropTypes.bool,
|
|
61
|
+
withArrow: PropTypes.bool,
|
|
62
|
+
offsetX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
63
|
+
offsetY: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
64
|
+
};
|
|
65
|
+
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'maxHeight', 'maxWidth', // Popover version props
|
|
66
|
+
'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
|
|
67
|
+
export { propTypes, allowedProps };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ---
|
|
27
|
+
* private: true
|
|
28
|
+
* ---
|
|
29
|
+
* Generates the style object from the theme and provided additional information
|
|
30
|
+
* @param {Object} componentTheme The theme variable object.
|
|
31
|
+
* @param {Object} props the props of the component, the style is applied to
|
|
32
|
+
* @param {Object} state the state of the component, the style is applied to
|
|
33
|
+
* @return {Object} The final style object, which will be used in the component
|
|
34
|
+
*/
|
|
35
|
+
const generateStyle = (componentTheme, _props, state) => {
|
|
36
|
+
const hasHighlightedOption = state.hasHighlightedOption;
|
|
37
|
+
return {
|
|
38
|
+
drilldown: {
|
|
39
|
+
label: 'drilldown',
|
|
40
|
+
overflow: 'visible',
|
|
41
|
+
// needed for focus ring!
|
|
42
|
+
...(hasHighlightedOption && {
|
|
43
|
+
'&:focus::before': {
|
|
44
|
+
display: 'none'
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
},
|
|
48
|
+
container: {
|
|
49
|
+
label: 'drilldown__container'
|
|
50
|
+
},
|
|
51
|
+
headerBack: {
|
|
52
|
+
label: 'drilldown__headerBack',
|
|
53
|
+
minHeight: '1.25em'
|
|
54
|
+
},
|
|
55
|
+
headerTitle: {
|
|
56
|
+
label: 'drilldown__headerTitle',
|
|
57
|
+
fontWeight: componentTheme.headerTitleFontWeight
|
|
58
|
+
},
|
|
59
|
+
optionContainer: {
|
|
60
|
+
label: 'drilldown__optionContainer',
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
display: 'flex',
|
|
63
|
+
height: '100%'
|
|
64
|
+
},
|
|
65
|
+
optionLabelInfo: {
|
|
66
|
+
label: 'drilldown__optionLabelInfo',
|
|
67
|
+
display: 'flex',
|
|
68
|
+
flexShrink: 0,
|
|
69
|
+
height: '100%',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
paddingInlineStart: componentTheme.labelInfoPadding
|
|
72
|
+
},
|
|
73
|
+
optionContent: {
|
|
74
|
+
label: 'drilldown__optionContent',
|
|
75
|
+
flexGrow: 1
|
|
76
|
+
},
|
|
77
|
+
// we use it in the index file
|
|
78
|
+
headerActionColor: componentTheme.headerActionColor
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export default generateStyle;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generates the theme object for the component from the theme and provided additional information
|
|
27
|
+
* @param {Object} theme The actual theme object.
|
|
28
|
+
* @return {Object} The final theme object with the overrides and component variables
|
|
29
|
+
*/
|
|
30
|
+
const generateComponentTheme = theme => {
|
|
31
|
+
const colors = theme.colors,
|
|
32
|
+
typography = theme.typography,
|
|
33
|
+
spacing = theme.spacing;
|
|
34
|
+
const componentVariables = {
|
|
35
|
+
headerTitleFontWeight: typography.fontWeightBold,
|
|
36
|
+
headerActionColor: colors.textLink,
|
|
37
|
+
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
|
|
38
|
+
};
|
|
39
|
+
return { ...componentVariables
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default generateComponentTheme;
|
package/es/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
export { Drilldown } from './Drilldown';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DrilldownGroup = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _emotion = require("@instructure/emotion");
|
|
11
|
+
|
|
12
|
+
var _uiOptions = require("@instructure/ui-options");
|
|
13
|
+
|
|
14
|
+
var _props = require("./props");
|
|
15
|
+
|
|
16
|
+
var _dec, _class, _class2, _temp;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
---
|
|
20
|
+
parent: Drilldown
|
|
21
|
+
id: Drilldown.Group
|
|
22
|
+
---
|
|
23
|
+
@module DrilldownGroup
|
|
24
|
+
@tsProps
|
|
25
|
+
**/
|
|
26
|
+
// needed for listing the available theme variables on docs page,
|
|
27
|
+
// we pass the themeOverrides to Options
|
|
28
|
+
let DrilldownGroup = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsThemeGenerator), _dec(_class = (_temp = _class2 = class DrilldownGroup extends _react.Component {
|
|
29
|
+
render() {
|
|
30
|
+
// this component is only used for prop validation.
|
|
31
|
+
// Drilldown.Group is parsed in Drilldown as an Options component.
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}, _class2.displayName = "DrilldownGroup", _class2.componentId = 'Drilldown.Group', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
36
|
+
disabled: false,
|
|
37
|
+
withoutSeparators: false,
|
|
38
|
+
role: 'group'
|
|
39
|
+
}, _temp)) || _class);
|
|
40
|
+
exports.DrilldownGroup = DrilldownGroup;
|
|
41
|
+
var _default = DrilldownGroup;
|
|
42
|
+
exports.default = _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
13
|
+
|
|
14
|
+
var _DrilldownOption = _interopRequireDefault(require("../DrilldownOption"));
|
|
15
|
+
|
|
16
|
+
var _DrilldownSeparator = _interopRequireDefault(require("../DrilldownSeparator"));
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* The MIT License (MIT)
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
22
|
+
*
|
|
23
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
24
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
25
|
+
* in the Software without restriction, including without limitation the rights
|
|
26
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
28
|
+
* furnished to do so, subject to the following conditions:
|
|
29
|
+
*
|
|
30
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
31
|
+
* copies or substantial portions of the Software.
|
|
32
|
+
*
|
|
33
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
36
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
37
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
|
+
* SOFTWARE.
|
|
40
|
+
*/
|
|
41
|
+
const propTypes = {
|
|
42
|
+
id: _propTypes.default.string.isRequired,
|
|
43
|
+
children: _Children.Children.oneOf([_DrilldownOption.default, _DrilldownSeparator.default]),
|
|
44
|
+
renderGroupTitle: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
45
|
+
withoutSeparators: _propTypes.default.bool,
|
|
46
|
+
disabled: _propTypes.default.bool,
|
|
47
|
+
role: _propTypes.default.string,
|
|
48
|
+
as: _propTypes.default.elementType,
|
|
49
|
+
elementRef: _propTypes.default.func,
|
|
50
|
+
selectableType: _propTypes.default.oneOf(['single', 'multiple']),
|
|
51
|
+
defaultSelected: _propTypes.default.array,
|
|
52
|
+
onSelect: _propTypes.default.func
|
|
53
|
+
};
|
|
54
|
+
exports.propTypes = propTypes;
|
|
55
|
+
const allowedProps = ['id', 'children', 'renderGroupTitle', 'withoutSeparators', 'disabled', 'role', 'as', 'elementRef', 'selectableType', 'defaultSelected', 'onSelect'];
|
|
56
|
+
exports.allowedProps = allowedProps;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DrilldownLocator = void 0;
|
|
7
|
+
|
|
8
|
+
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
9
|
+
|
|
10
|
+
var _uiTestUtils = require("@instructure/ui-test-utils");
|
|
11
|
+
|
|
12
|
+
var _OptionsItemLocator = require("@instructure/ui-options/lib/Options/Item/OptionsItemLocator");
|
|
13
|
+
|
|
14
|
+
var _PopoverLocator = require("@instructure/ui-popover/lib/Popover/PopoverLocator");
|
|
15
|
+
|
|
16
|
+
var _index = require("./index");
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* The MIT License (MIT)
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
22
|
+
*
|
|
23
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
24
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
25
|
+
* in the Software without restriction, including without limitation the rights
|
|
26
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
28
|
+
* furnished to do so, subject to the following conditions:
|
|
29
|
+
*
|
|
30
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
31
|
+
* copies or substantial portions of the Software.
|
|
32
|
+
*
|
|
33
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
36
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
37
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
|
+
* SOFTWARE.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/* eslint-disable no-restricted-imports */
|
|
43
|
+
// @ts-expect-error bypass no type definition found error
|
|
44
|
+
// @ts-expect-error bypass no type definition found error
|
|
45
|
+
|
|
46
|
+
/* eslint-enable no-restricted-imports */
|
|
47
|
+
const customMethods = {
|
|
48
|
+
// return the wrapper Option.Items
|
|
49
|
+
findAllOptions: async function () {
|
|
50
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
51
|
+
args[_key] = arguments[_key];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return await (0, _uiTestUtils.findAll)('[role^=menuitem]', ...args);
|
|
55
|
+
},
|
|
56
|
+
findAllOptionWrappers: async function () {
|
|
57
|
+
return await _OptionsItemLocator.OptionsItemLocator.findAll(...arguments);
|
|
58
|
+
},
|
|
59
|
+
findOptionWrapperByOptionId: async function (_element, optionId) {
|
|
60
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
61
|
+
args[_key2 - 2] = arguments[_key2];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return _OptionsItemLocator.OptionsItemLocator.find(`:has(#${optionId})`, ...args);
|
|
65
|
+
},
|
|
66
|
+
findSizableContainer: async function () {
|
|
67
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
68
|
+
args[_key3] = arguments[_key3];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return await (0, _uiTestUtils.find)('[class$=-drilldown__container]', ...args);
|
|
72
|
+
},
|
|
73
|
+
findSelectableContainer: async function () {
|
|
74
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
75
|
+
args[_key4] = arguments[_key4];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return await (0, _uiTestUtils.find)('[id^=Selectable_][id$=-list]', ...args);
|
|
79
|
+
},
|
|
80
|
+
findHeaderTitle: async function () {
|
|
81
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
82
|
+
args[_key5] = arguments[_key5];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Title]', ...args);
|
|
86
|
+
},
|
|
87
|
+
findHeaderActionOption: async function () {
|
|
88
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
89
|
+
args[_key6] = arguments[_key6];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Action]', ...args);
|
|
93
|
+
},
|
|
94
|
+
findHeaderBackOption: async function () {
|
|
95
|
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
96
|
+
args[_key7] = arguments[_key7];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Back]', ...args);
|
|
100
|
+
},
|
|
101
|
+
findHeaderSeparator: async function () {
|
|
102
|
+
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
103
|
+
args[_key8] = arguments[_key8];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Separator]', ...args);
|
|
107
|
+
},
|
|
108
|
+
findAllSeparators: async function () {
|
|
109
|
+
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
110
|
+
args[_key9] = arguments[_key9];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return await (0, _uiTestUtils.findAll)('[class$=-separator]', ...args);
|
|
114
|
+
},
|
|
115
|
+
findAllGroupLabels: async function () {
|
|
116
|
+
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
|
117
|
+
args[_key10] = arguments[_key10];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return await (0, _uiTestUtils.findAll)('[class$=-options__label]', ...args);
|
|
121
|
+
},
|
|
122
|
+
findLabelInfo: async function () {
|
|
123
|
+
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
|
124
|
+
args[_key11] = arguments[_key11];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return await (0, _uiTestUtils.find)('[class$=-drilldown__optionLabelInfo]', ...args);
|
|
128
|
+
},
|
|
129
|
+
findDescription: async function () {
|
|
130
|
+
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
|
131
|
+
args[_key12] = arguments[_key12];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return await (0, _uiTestUtils.find)('[class$=__description]', ...args);
|
|
135
|
+
},
|
|
136
|
+
findPopoverRoot: function () {
|
|
137
|
+
return _PopoverLocator.PopoverLocator.find(...arguments);
|
|
138
|
+
},
|
|
139
|
+
findPopoverTrigger: function () {
|
|
140
|
+
return _PopoverLocator.PopoverLocator.findTrigger(...arguments);
|
|
141
|
+
},
|
|
142
|
+
findPopoverContent: function () {
|
|
143
|
+
const _parseQueryArguments = (0, _uiTestUtils.parseQueryArguments)(...arguments),
|
|
144
|
+
element = _parseQueryArguments.element,
|
|
145
|
+
selector = _parseQueryArguments.selector,
|
|
146
|
+
options = _parseQueryArguments.options;
|
|
147
|
+
|
|
148
|
+
return _PopoverLocator.PopoverLocator.findContent(element, selector, { ...options,
|
|
149
|
+
customMethods: { ...options.customMethods,
|
|
150
|
+
...customMethods
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
155
|
+
|
|
156
|
+
const DrilldownLocator = (0, _locator.locator)(_index.Drilldown.selector, customMethods);
|
|
157
|
+
exports.DrilldownLocator = DrilldownLocator;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DrilldownOption = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _emotion = require("@instructure/emotion");
|
|
11
|
+
|
|
12
|
+
var _uiOptions = require("@instructure/ui-options");
|
|
13
|
+
|
|
14
|
+
var _props = require("./props");
|
|
15
|
+
|
|
16
|
+
var _dec, _class, _class2, _temp;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
---
|
|
20
|
+
parent: Drilldown
|
|
21
|
+
id: Drilldown.Option
|
|
22
|
+
---
|
|
23
|
+
@module DrilldownOption
|
|
24
|
+
@tsProps
|
|
25
|
+
**/
|
|
26
|
+
// needed for listing the available theme variables on docs page,
|
|
27
|
+
// we pass the themeOverrides to Options.Item
|
|
28
|
+
let DrilldownOption = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsItemThemeGenerator), _dec(_class = (_temp = _class2 = class DrilldownOption extends _react.Component {
|
|
29
|
+
render() {
|
|
30
|
+
// this component is only used for prop validation. Drilldown.Option children
|
|
31
|
+
// are parsed in Drilldown and rendered as Options.Item components
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}, _class2.displayName = "DrilldownOption", _class2.componentId = 'Drilldown.Option', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
36
|
+
disabled: false,
|
|
37
|
+
beforeLabelContentVAlign: 'start',
|
|
38
|
+
afterLabelContentVAlign: 'start',
|
|
39
|
+
descriptionRole: 'note',
|
|
40
|
+
as: 'li',
|
|
41
|
+
role: 'menuitem'
|
|
42
|
+
}, _temp)) || _class);
|
|
43
|
+
exports.DrilldownOption = DrilldownOption;
|
|
44
|
+
var _default = DrilldownOption;
|
|
45
|
+
exports.default = _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* The MIT License (MIT)
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
16
|
+
*
|
|
17
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
* in the Software without restriction, including without limitation the rights
|
|
20
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
* furnished to do so, subject to the following conditions:
|
|
23
|
+
*
|
|
24
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
25
|
+
* copies or substantial portions of the Software.
|
|
26
|
+
*
|
|
27
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
* SOFTWARE.
|
|
34
|
+
*/
|
|
35
|
+
const propTypes = {
|
|
36
|
+
id: _propTypes.default.string.isRequired,
|
|
37
|
+
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
38
|
+
subPageId: _propTypes.default.string,
|
|
39
|
+
disabled: _propTypes.default.bool,
|
|
40
|
+
value: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
41
|
+
href: _propTypes.default.string,
|
|
42
|
+
as: _propTypes.default.elementType,
|
|
43
|
+
role: _propTypes.default.string,
|
|
44
|
+
renderLabelInfo: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
45
|
+
renderBeforeLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
46
|
+
renderAfterLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
47
|
+
beforeLabelContentVAlign: _propTypes.default.oneOf(['start', 'center', 'end']),
|
|
48
|
+
afterLabelContentVAlign: _propTypes.default.oneOf(['start', 'center', 'end']),
|
|
49
|
+
description: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
50
|
+
descriptionRole: _propTypes.default.string,
|
|
51
|
+
onOptionClick: _propTypes.default.func,
|
|
52
|
+
defaultSelected: _propTypes.default.bool,
|
|
53
|
+
elementRef: _propTypes.default.func
|
|
54
|
+
};
|
|
55
|
+
exports.propTypes = propTypes;
|
|
56
|
+
const allowedProps = ['id', 'children', 'subPageId', 'disabled', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef'];
|
|
57
|
+
exports.allowedProps = allowedProps;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DrilldownPage = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _props = require("./props");
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* The MIT License (MIT)
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
16
|
+
*
|
|
17
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
* in the Software without restriction, including without limitation the rights
|
|
20
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
* furnished to do so, subject to the following conditions:
|
|
23
|
+
*
|
|
24
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
25
|
+
* copies or substantial portions of the Software.
|
|
26
|
+
*
|
|
27
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
* SOFTWARE.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/** @jsx jsx */
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
---
|
|
40
|
+
parent: Drilldown
|
|
41
|
+
id: Drilldown.Page
|
|
42
|
+
---
|
|
43
|
+
@module DrilldownPage
|
|
44
|
+
@tsProps
|
|
45
|
+
**/
|
|
46
|
+
class DrilldownPage extends _react.Component {
|
|
47
|
+
render() {
|
|
48
|
+
// this component is only used for prop validation.
|
|
49
|
+
// Drilldown.Page children are parsed in Drilldown.
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports.DrilldownPage = DrilldownPage;
|
|
56
|
+
DrilldownPage.displayName = "DrilldownPage";
|
|
57
|
+
DrilldownPage.componentId = 'Drilldown.Page';
|
|
58
|
+
DrilldownPage.propTypes = _props.propTypes;
|
|
59
|
+
DrilldownPage.allowedProps = _props.allowedProps;
|
|
60
|
+
DrilldownPage.defaultProps = {
|
|
61
|
+
renderBackButtonLabel: 'Back',
|
|
62
|
+
disabled: false,
|
|
63
|
+
withoutHeaderSeparator: false
|
|
64
|
+
};
|
|
65
|
+
var _default = DrilldownPage;
|
|
66
|
+
exports.default = _default;
|