@instructure/ui-drilldown 8.33.1 → 8.33.2-snapshot-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/CHANGELOG.md +8 -0
- package/es/Drilldown/DrilldownGroup/index.js +0 -3
- package/es/Drilldown/DrilldownGroup/props.js +1 -0
- package/es/Drilldown/DrilldownLocator.js +13 -22
- package/es/Drilldown/DrilldownOption/index.js +0 -3
- package/es/Drilldown/DrilldownOption/props.js +1 -0
- package/es/Drilldown/DrilldownPage/index.js +0 -3
- package/es/Drilldown/DrilldownPage/props.js +1 -0
- package/es/Drilldown/DrilldownSeparator/index.js +0 -3
- package/es/Drilldown/DrilldownSeparator/props.js +1 -0
- package/es/Drilldown/__examples__/Drilldown.examples.js +9 -9
- package/es/Drilldown/index.js +199 -304
- package/es/Drilldown/locator.js +1 -0
- package/es/Drilldown/props.js +3 -1
- package/es/Drilldown/styles.js +1 -1
- package/es/Drilldown/theme.js +4 -4
- package/es/index.js +1 -0
- package/lib/Drilldown/DrilldownGroup/index.js +0 -7
- package/lib/Drilldown/DrilldownGroup/props.js +1 -6
- package/lib/Drilldown/DrilldownLocator.js +11 -25
- package/lib/Drilldown/DrilldownOption/index.js +0 -7
- package/lib/Drilldown/DrilldownOption/props.js +1 -3
- package/lib/Drilldown/DrilldownPage/index.js +0 -5
- package/lib/Drilldown/DrilldownPage/props.js +1 -7
- package/lib/Drilldown/DrilldownSeparator/index.js +0 -7
- package/lib/Drilldown/DrilldownSeparator/props.js +1 -3
- package/lib/Drilldown/__examples__/Drilldown.examples.js +8 -14
- package/lib/Drilldown/index.js +199 -326
- package/lib/Drilldown/locator.js +0 -2
- package/lib/Drilldown/props.js +3 -8
- package/lib/Drilldown/styles.js +1 -2
- package/lib/Drilldown/theme.js +4 -5
- package/lib/index.js +0 -1
- package/package.json +20 -20
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/DrilldownOption/index.d.ts +6 -6
package/lib/Drilldown/locator.js
CHANGED
package/lib/Drilldown/props.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
13
|
-
|
|
14
10
|
var _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
|
|
15
|
-
|
|
16
11
|
var _PositionPropTypes = require("@instructure/ui-position/lib/PositionPropTypes.js");
|
|
17
|
-
|
|
18
12
|
var _DrilldownPage = require("./DrilldownPage");
|
|
19
|
-
|
|
20
13
|
/*
|
|
21
14
|
* The MIT License (MIT)
|
|
22
15
|
*
|
|
@@ -40,6 +33,7 @@ var _DrilldownPage = require("./DrilldownPage");
|
|
|
40
33
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
41
34
|
* SOFTWARE.
|
|
42
35
|
*/
|
|
36
|
+
|
|
43
37
|
const propTypes = {
|
|
44
38
|
rootPageId: _propTypes.default.string.isRequired,
|
|
45
39
|
children: _Children.Children.oneOf([_DrilldownPage.DrilldownPage]),
|
|
@@ -81,6 +75,7 @@ const propTypes = {
|
|
|
81
75
|
offsetY: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
|
|
82
76
|
};
|
|
83
77
|
exports.propTypes = propTypes;
|
|
84
|
-
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth',
|
|
78
|
+
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth',
|
|
79
|
+
// Popover version props
|
|
85
80
|
'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'positionContainerDisplay', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
|
|
86
81
|
exports.allowedProps = allowedProps;
|
package/lib/Drilldown/styles.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
/*
|
|
9
8
|
* The MIT License (MIT)
|
|
10
9
|
*
|
|
@@ -46,6 +45,7 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
46
45
|
label: 'drilldown',
|
|
47
46
|
overflow: 'visible',
|
|
48
47
|
// needed for focus ring!
|
|
48
|
+
|
|
49
49
|
...(hasHighlightedOption && {
|
|
50
50
|
'&:focus::before': {
|
|
51
51
|
display: 'none'
|
|
@@ -85,6 +85,5 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
85
85
|
headerActionColor: componentTheme.headerActionColor
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
|
|
89
88
|
var _default = generateStyle;
|
|
90
89
|
exports.default = _default;
|
package/lib/Drilldown/theme.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
/*
|
|
9
8
|
* The MIT License (MIT)
|
|
10
9
|
*
|
|
@@ -36,16 +35,16 @@ exports.default = void 0;
|
|
|
36
35
|
*/
|
|
37
36
|
const generateComponentTheme = theme => {
|
|
38
37
|
const colors = theme.colors,
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
typography = theme.typography,
|
|
39
|
+
spacing = theme.spacing;
|
|
41
40
|
const componentVariables = {
|
|
42
41
|
headerTitleFontWeight: typography.fontWeightBold,
|
|
43
42
|
headerActionColor: colors.textLink,
|
|
44
43
|
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
|
|
45
44
|
};
|
|
46
|
-
return {
|
|
45
|
+
return {
|
|
46
|
+
...componentVariables
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
|
|
50
49
|
var _default = generateComponentTheme;
|
|
51
50
|
exports.default = _default;
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "8.33.
|
|
3
|
+
"version": "8.33.2-snapshot-5",
|
|
4
4
|
"description": "A drilldown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/console": "8.33.
|
|
28
|
-
"@instructure/emotion": "8.33.
|
|
29
|
-
"@instructure/shared-types": "8.33.
|
|
30
|
-
"@instructure/ui-dom-utils": "8.33.
|
|
31
|
-
"@instructure/ui-icons": "8.33.
|
|
32
|
-
"@instructure/ui-options": "8.33.
|
|
33
|
-
"@instructure/ui-popover": "8.33.
|
|
34
|
-
"@instructure/ui-position": "8.33.
|
|
35
|
-
"@instructure/ui-prop-types": "8.33.
|
|
36
|
-
"@instructure/ui-react-utils": "8.33.
|
|
37
|
-
"@instructure/ui-selectable": "8.33.
|
|
38
|
-
"@instructure/ui-testable": "8.33.
|
|
39
|
-
"@instructure/ui-utils": "8.33.
|
|
40
|
-
"@instructure/ui-view": "8.33.
|
|
27
|
+
"@instructure/console": "8.33.2-snapshot-5",
|
|
28
|
+
"@instructure/emotion": "8.33.2-snapshot-5",
|
|
29
|
+
"@instructure/shared-types": "8.33.2-snapshot-5",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.33.2-snapshot-5",
|
|
31
|
+
"@instructure/ui-icons": "8.33.2-snapshot-5",
|
|
32
|
+
"@instructure/ui-options": "8.33.2-snapshot-5",
|
|
33
|
+
"@instructure/ui-popover": "8.33.2-snapshot-5",
|
|
34
|
+
"@instructure/ui-position": "8.33.2-snapshot-5",
|
|
35
|
+
"@instructure/ui-prop-types": "8.33.2-snapshot-5",
|
|
36
|
+
"@instructure/ui-react-utils": "8.33.2-snapshot-5",
|
|
37
|
+
"@instructure/ui-selectable": "8.33.2-snapshot-5",
|
|
38
|
+
"@instructure/ui-testable": "8.33.2-snapshot-5",
|
|
39
|
+
"@instructure/ui-utils": "8.33.2-snapshot-5",
|
|
40
|
+
"@instructure/ui-view": "8.33.2-snapshot-5",
|
|
41
41
|
"prop-types": "^15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.33.
|
|
45
|
-
"@instructure/ui-color-utils": "8.33.
|
|
46
|
-
"@instructure/ui-test-locator": "8.33.
|
|
47
|
-
"@instructure/ui-test-utils": "8.33.
|
|
48
|
-
"@instructure/ui-themes": "8.33.
|
|
44
|
+
"@instructure/ui-babel-preset": "8.33.2-snapshot-5",
|
|
45
|
+
"@instructure/ui-color-utils": "8.33.2-snapshot-5",
|
|
46
|
+
"@instructure/ui-test-locator": "8.33.2-snapshot-5",
|
|
47
|
+
"@instructure/ui-test-utils": "8.33.2-snapshot-5",
|
|
48
|
+
"@instructure/ui-themes": "8.33.2-snapshot-5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=18"
|