@instructure/ui-drilldown 11.6.0 → 11.6.1-snapshot-129
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 +44 -301
- package/es/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/index.js +1 -1
- package/es/Drilldown/{DrilldownOption → v1/DrilldownOption}/index.js +1 -1
- package/es/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/index.js +1 -1
- package/es/Drilldown/{index.js → v1/index.js} +4 -4
- package/es/{index.js → exports/a.js} +5 -5
- package/lib/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/index.js +1 -1
- package/lib/Drilldown/{DrilldownOption → v1/DrilldownOption}/index.js +1 -1
- package/lib/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/index.js +1 -1
- package/lib/Drilldown/{index.js → v1/index.js} +17 -17
- package/lib/{index.js → exports/a.js} +6 -6
- package/package.json +47 -25
- package/src/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/index.tsx +1 -1
- package/src/Drilldown/{DrilldownOption → v1/DrilldownOption}/index.tsx +1 -1
- package/src/Drilldown/{DrilldownOption → v1/DrilldownOption}/props.ts +1 -1
- package/src/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/index.tsx +1 -1
- package/src/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/props.ts +1 -1
- package/src/Drilldown/{index.tsx → v1/index.tsx} +10 -11
- package/src/Drilldown/{props.ts → v1/props.ts} +1 -1
- package/src/{index.ts → exports/a.ts} +10 -10
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/v1/DrilldownGroup/index.d.ts.map +1 -0
- package/types/Drilldown/v1/DrilldownGroup/props.d.ts.map +1 -0
- package/types/Drilldown/v1/DrilldownOption/index.d.ts.map +1 -0
- package/types/Drilldown/{DrilldownOption → v1/DrilldownOption}/props.d.ts +1 -1
- package/types/Drilldown/v1/DrilldownOption/props.d.ts.map +1 -0
- package/types/Drilldown/v1/DrilldownPage/index.d.ts.map +1 -0
- package/types/Drilldown/v1/DrilldownPage/props.d.ts.map +1 -0
- package/types/Drilldown/v1/DrilldownSeparator/index.d.ts.map +1 -0
- package/types/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/props.d.ts +1 -1
- package/types/Drilldown/v1/DrilldownSeparator/props.d.ts.map +1 -0
- package/types/Drilldown/{index.d.ts → v1/index.d.ts} +2 -2
- package/types/Drilldown/v1/index.d.ts.map +1 -0
- package/types/Drilldown/{props.d.ts → v1/props.d.ts} +1 -1
- package/types/Drilldown/v1/props.d.ts.map +1 -0
- package/types/Drilldown/v1/styles.d.ts.map +1 -0
- package/types/Drilldown/v1/theme.d.ts.map +1 -0
- package/types/exports/a.d.ts +11 -0
- package/types/exports/a.d.ts.map +1 -0
- package/types/Drilldown/DrilldownGroup/index.d.ts.map +0 -1
- package/types/Drilldown/DrilldownGroup/props.d.ts.map +0 -1
- package/types/Drilldown/DrilldownOption/index.d.ts.map +0 -1
- package/types/Drilldown/DrilldownOption/props.d.ts.map +0 -1
- package/types/Drilldown/DrilldownPage/index.d.ts.map +0 -1
- package/types/Drilldown/DrilldownPage/props.d.ts.map +0 -1
- package/types/Drilldown/DrilldownSeparator/index.d.ts.map +0 -1
- package/types/Drilldown/DrilldownSeparator/props.d.ts.map +0 -1
- package/types/Drilldown/index.d.ts.map +0 -1
- package/types/Drilldown/props.d.ts.map +0 -1
- package/types/Drilldown/styles.d.ts.map +0 -1
- package/types/Drilldown/theme.d.ts.map +0 -1
- package/types/index.d.ts +0 -11
- package/types/index.d.ts.map +0 -1
- /package/es/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/props.js +0 -0
- /package/es/Drilldown/{DrilldownOption → v1/DrilldownOption}/props.js +0 -0
- /package/es/Drilldown/{DrilldownPage → v1/DrilldownPage}/index.js +0 -0
- /package/es/Drilldown/{DrilldownPage → v1/DrilldownPage}/props.js +0 -0
- /package/es/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/props.js +0 -0
- /package/es/Drilldown/{props.js → v1/props.js} +0 -0
- /package/es/Drilldown/{styles.js → v1/styles.js} +0 -0
- /package/es/Drilldown/{theme.js → v1/theme.js} +0 -0
- /package/lib/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/props.js +0 -0
- /package/lib/Drilldown/{DrilldownOption → v1/DrilldownOption}/props.js +0 -0
- /package/lib/Drilldown/{DrilldownPage → v1/DrilldownPage}/index.js +0 -0
- /package/lib/Drilldown/{DrilldownPage → v1/DrilldownPage}/props.js +0 -0
- /package/lib/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/props.js +0 -0
- /package/lib/Drilldown/{props.js → v1/props.js} +0 -0
- /package/lib/Drilldown/{styles.js → v1/styles.js} +0 -0
- /package/lib/Drilldown/{theme.js → v1/theme.js} +0 -0
- /package/src/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/props.ts +0 -0
- /package/src/Drilldown/{DrilldownPage → v1/DrilldownPage}/index.tsx +0 -0
- /package/src/Drilldown/{DrilldownPage → v1/DrilldownPage}/props.ts +0 -0
- /package/src/Drilldown/{README.md → v1/README.md} +0 -0
- /package/src/Drilldown/{styles.ts → v1/styles.ts} +0 -0
- /package/src/Drilldown/{theme.ts → v1/theme.ts} +0 -0
- /package/types/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/index.d.ts +0 -0
- /package/types/Drilldown/{DrilldownGroup → v1/DrilldownGroup}/props.d.ts +0 -0
- /package/types/Drilldown/{DrilldownOption → v1/DrilldownOption}/index.d.ts +0 -0
- /package/types/Drilldown/{DrilldownPage → v1/DrilldownPage}/index.d.ts +0 -0
- /package/types/Drilldown/{DrilldownPage → v1/DrilldownPage}/props.d.ts +0 -0
- /package/types/Drilldown/{DrilldownSeparator → v1/DrilldownSeparator}/index.d.ts +0 -0
- /package/types/Drilldown/{styles.d.ts → v1/styles.d.ts} +0 -0
- /package/types/Drilldown/{theme.d.ts → v1/theme.d.ts} +0 -0
|
@@ -32,12 +32,12 @@ import { warn, error } from '@instructure/console';
|
|
|
32
32
|
import { contains, containsActiveElement } from '@instructure/ui-dom-utils';
|
|
33
33
|
import { deepEqual } from '@instructure/ui-utils';
|
|
34
34
|
import { callRenderProp, matchComponentTypes, omitProps, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
35
|
-
import { View } from '@instructure/ui-view';
|
|
36
|
-
import { Options } from '@instructure/ui-options';
|
|
37
|
-
import { Popover } from '@instructure/ui-popover';
|
|
35
|
+
import { View } from '@instructure/ui-view/v11_6';
|
|
36
|
+
import { Options } from '@instructure/ui-options/v11_6';
|
|
37
|
+
import { Popover } from '@instructure/ui-popover/v11_6';
|
|
38
38
|
import { Selectable } from '@instructure/ui-selectable';
|
|
39
39
|
import { IconArrowOpenStartSolid, IconArrowOpenEndSolid, IconCheckSolid } from '@instructure/ui-icons';
|
|
40
|
-
import { withStyle } from '@instructure/emotion';
|
|
40
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
41
41
|
import { DrilldownSeparator } from "./DrilldownSeparator/index.js";
|
|
42
42
|
import { DrilldownOption } from "./DrilldownOption/index.js";
|
|
43
43
|
import { DrilldownGroup } from "./DrilldownGroup/index.js";
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
export { Drilldown } from "
|
|
25
|
-
export { DrilldownGroup } from "
|
|
26
|
-
export { DrilldownOption } from "
|
|
27
|
-
export { DrilldownPage } from "
|
|
28
|
-
export { DrilldownSeparator } from "
|
|
24
|
+
export { Drilldown } from "../Drilldown/v1/index.js";
|
|
25
|
+
export { DrilldownGroup } from "../Drilldown/v1/DrilldownGroup/index.js";
|
|
26
|
+
export { DrilldownOption } from "../Drilldown/v1/DrilldownOption/index.js";
|
|
27
|
+
export { DrilldownPage } from "../Drilldown/v1/DrilldownPage/index.js";
|
|
28
|
+
export { DrilldownSeparator } from "../Drilldown/v1/DrilldownSeparator/index.js";
|
|
@@ -42,7 +42,7 @@ id: Drilldown.Group
|
|
|
42
42
|
**/
|
|
43
43
|
// needed for listing the available theme variables on docs page,
|
|
44
44
|
// we pass the themeOverrides to Options
|
|
45
|
-
let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.
|
|
45
|
+
let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.withStyleLegacy)(null, _uiOptions.optionsThemeGenerator), _dec(_class = (_DrilldownGroup = class DrilldownGroup extends _react.Component {
|
|
46
46
|
render() {
|
|
47
47
|
// this component is only used for prop validation.
|
|
48
48
|
// Drilldown.Group is parsed in Drilldown as an Options component.
|
|
@@ -41,7 +41,7 @@ id: Drilldown.Option
|
|
|
41
41
|
**/
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Item
|
|
44
|
-
let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.
|
|
44
|
+
let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.withStyleLegacy)(null, _uiOptions.optionsItemThemeGenerator), _dec(_class = (_DrilldownOption = class DrilldownOption extends _react.Component {
|
|
45
45
|
render() {
|
|
46
46
|
// this component is only used for prop validation. Drilldown.Option children
|
|
47
47
|
// are parsed in Drilldown and rendered as Options.Item components
|
|
@@ -41,7 +41,7 @@ id: Drilldown.Separator
|
|
|
41
41
|
**/
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Separator
|
|
44
|
-
let DrilldownSeparator = exports.DrilldownSeparator = (_dec = (0, _emotion.
|
|
44
|
+
let DrilldownSeparator = exports.DrilldownSeparator = (_dec = (0, _emotion.withStyleLegacy)(null, _uiOptions.optionsSeparatorThemeGenerator), _dec(_class = (_DrilldownSeparator = class DrilldownSeparator extends _react.Component {
|
|
45
45
|
render() {
|
|
46
46
|
// this component is only used for prop validation. Drilldown.Separator children
|
|
47
47
|
// are parsed in Drilldown and rendered as Options.Separator components
|
|
@@ -16,13 +16,13 @@ var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchCompone
|
|
|
16
16
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
17
17
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
18
18
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
19
|
+
var _v11_ = require("@instructure/ui-view/v11_6");
|
|
20
|
+
var _v11_2 = require("@instructure/ui-options/v11_6");
|
|
21
|
+
var _v11_3 = require("@instructure/ui-popover/v11_6");
|
|
22
22
|
var _Selectable = require("@instructure/ui-selectable/lib/Selectable");
|
|
23
|
-
var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/IconArrowOpenStartSolid.js");
|
|
24
|
-
var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/IconArrowOpenEndSolid.js");
|
|
25
|
-
var _IconCheckSolid = require("@instructure/ui-icons/lib/IconCheckSolid.js");
|
|
23
|
+
var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenStartSolid.js");
|
|
24
|
+
var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenEndSolid.js");
|
|
25
|
+
var _IconCheckSolid = require("@instructure/ui-icons/lib/generated/IconCheckSolid.js");
|
|
26
26
|
var _emotion = require("@instructure/emotion");
|
|
27
27
|
var _DrilldownSeparator = require("./DrilldownSeparator");
|
|
28
28
|
var _DrilldownOption = require("./DrilldownOption");
|
|
@@ -72,7 +72,7 @@ var _dec, _dec2, _class, _Drilldown, _IconArrowOpenEndSoli, _IconArrowOpenStartS
|
|
|
72
72
|
category: components
|
|
73
73
|
---
|
|
74
74
|
**/
|
|
75
|
-
let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
75
|
+
let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_Drilldown = class Drilldown extends _react.Component {
|
|
76
76
|
constructor(props) {
|
|
77
77
|
super(props);
|
|
78
78
|
this._drilldownRef = null;
|
|
@@ -884,7 +884,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
884
884
|
id = _separator$props.id,
|
|
885
885
|
themeOverride = _separator$props.themeOverride,
|
|
886
886
|
props = (0, _objectWithoutProperties2.default)(_separator$props, _excluded3);
|
|
887
|
-
return (0, _react2.createElement)(
|
|
887
|
+
return (0, _react2.createElement)(_v11_2.Options.Separator, {
|
|
888
888
|
...props,
|
|
889
889
|
id: id,
|
|
890
890
|
key: id,
|
|
@@ -928,7 +928,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
928
928
|
// Props passed to the Option.Item
|
|
929
929
|
let optionProps = {
|
|
930
930
|
// passthrough props
|
|
931
|
-
...(0, _omitProps.omitProps)(option.props, [..._DrilldownOption.DrilldownOption.allowedProps, ...
|
|
931
|
+
...(0, _omitProps.omitProps)(option.props, [..._DrilldownOption.DrilldownOption.allowedProps, ..._v11_2.Options.Item.allowedProps]),
|
|
932
932
|
// props from selectable
|
|
933
933
|
...getOptionProps({
|
|
934
934
|
id,
|
|
@@ -1068,7 +1068,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1068
1068
|
const infoAriaId = `${id}__info`;
|
|
1069
1069
|
const labelledby = option.props['aria-labelledby'] || labelAriaId;
|
|
1070
1070
|
const describedby = option.props['aria-describedby'] || (labelInfo ? infoAriaId : void 0);
|
|
1071
|
-
return (0, _react2.createElement)(
|
|
1071
|
+
return (0, _react2.createElement)(_v11_2.Options.Item, {
|
|
1072
1072
|
...optionProps,
|
|
1073
1073
|
key: id,
|
|
1074
1074
|
"aria-labelledby": labelledby,
|
|
@@ -1111,12 +1111,12 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1111
1111
|
|
|
1112
1112
|
// add a separator above
|
|
1113
1113
|
if (needsFirstSeparator) {
|
|
1114
|
-
groupChildren.push(_Options$Separator || (_Options$Separator = (0, _jsxRuntime.jsx)(
|
|
1114
|
+
groupChildren.push(_Options$Separator || (_Options$Separator = (0, _jsxRuntime.jsx)(_v11_2.Options.Separator, {}, "drilldown-options-separator")));
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
// create a sublist as a group
|
|
1118
1118
|
// (a wrapping list item will be created by Options)
|
|
1119
|
-
groupChildren.push((0, _jsxRuntime.jsx)(
|
|
1119
|
+
groupChildren.push((0, _jsxRuntime.jsx)(_v11_2.Options, {
|
|
1120
1120
|
id: id,
|
|
1121
1121
|
role: role,
|
|
1122
1122
|
as: as || this.props.as,
|
|
@@ -1138,7 +1138,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1138
1138
|
|
|
1139
1139
|
// add a separator below
|
|
1140
1140
|
if (needsLastSeparator) {
|
|
1141
|
-
groupChildren.push(_Options$Separator2 || (_Options$Separator2 = (0, _jsxRuntime.jsx)(
|
|
1141
|
+
groupChildren.push(_Options$Separator2 || (_Options$Separator2 = (0, _jsxRuntime.jsx)(_v11_2.Options.Separator, {}, "drilldown-options-separator-2")));
|
|
1142
1142
|
}
|
|
1143
1143
|
return groupChildren;
|
|
1144
1144
|
}
|
|
@@ -1190,7 +1190,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1190
1190
|
getListProps,
|
|
1191
1191
|
getOptionProps,
|
|
1192
1192
|
getDisabledOptionProps
|
|
1193
|
-
}) => (0, _jsxRuntime.jsx)(
|
|
1193
|
+
}) => (0, _jsxRuntime.jsx)(_v11_.View
|
|
1194
1194
|
// if there is a trigger the border needs to be rendered by the <Popover>
|
|
1195
1195
|
// (because it has an arrow)
|
|
1196
1196
|
, {
|
|
@@ -1233,7 +1233,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
1235
|
}),
|
|
1236
|
-
children: (0, _jsxRuntime.jsx)(
|
|
1236
|
+
children: (0, _jsxRuntime.jsx)(_v11_.View, {
|
|
1237
1237
|
as: "div",
|
|
1238
1238
|
overflowY: overflowY,
|
|
1239
1239
|
overflowX: overflowX,
|
|
@@ -1249,7 +1249,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1249
1249
|
elementRef: element => {
|
|
1250
1250
|
this._containerElement = element;
|
|
1251
1251
|
},
|
|
1252
|
-
children: (0, _jsxRuntime.jsx)(
|
|
1252
|
+
children: (0, _jsxRuntime.jsx)(_v11_2.Options, {
|
|
1253
1253
|
...getListProps(),
|
|
1254
1254
|
role: "presentation",
|
|
1255
1255
|
as: as,
|
|
@@ -1285,7 +1285,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1285
1285
|
shouldSetAriaExpanded = _this$props7.shouldSetAriaExpanded,
|
|
1286
1286
|
styles = _this$props7.styles;
|
|
1287
1287
|
const borderColor = styles === null || styles === void 0 ? void 0 : (_styles$drilldown = styles.drilldown) === null || _styles$drilldown === void 0 ? void 0 : _styles$drilldown.borderColor;
|
|
1288
|
-
return trigger ? (0, _jsxRuntime.jsx)(
|
|
1288
|
+
return trigger ? (0, _jsxRuntime.jsx)(_v11_3.Popover, {
|
|
1289
1289
|
"data-cid": "Drilldown",
|
|
1290
1290
|
themeOverride: {
|
|
1291
1291
|
// use here own theme's color
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Drilldown", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _v.Drilldown;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DrilldownGroup", {
|
|
@@ -33,8 +33,8 @@ Object.defineProperty(exports, "DrilldownSeparator", {
|
|
|
33
33
|
return _DrilldownSeparator.DrilldownSeparator;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
var
|
|
37
|
-
var _DrilldownGroup = require("
|
|
38
|
-
var _DrilldownOption = require("
|
|
39
|
-
var _DrilldownPage = require("
|
|
40
|
-
var _DrilldownSeparator = require("
|
|
36
|
+
var _v = require("../Drilldown/v1");
|
|
37
|
+
var _DrilldownGroup = require("../Drilldown/v1/DrilldownGroup");
|
|
38
|
+
var _DrilldownOption = require("../Drilldown/v1/DrilldownOption");
|
|
39
|
+
var _DrilldownPage = require("../Drilldown/v1/DrilldownPage");
|
|
40
|
+
var _DrilldownSeparator = require("../Drilldown/v1/DrilldownSeparator");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "11.6.
|
|
3
|
+
"version": "11.6.1-snapshot-129",
|
|
4
4
|
"description": "A drilldown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
|
-
"@instructure/console": "11.6.
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/ui-dom-utils": "11.6.
|
|
21
|
-
"@instructure/ui-icons": "11.6.
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-options": "11.6.
|
|
24
|
-
"@instructure/ui-popover": "11.6.
|
|
25
|
-
"@instructure/ui-position": "11.6.
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/console": "11.6.1-snapshot-129",
|
|
19
|
+
"@instructure/emotion": "11.6.1-snapshot-129",
|
|
20
|
+
"@instructure/ui-dom-utils": "11.6.1-snapshot-129",
|
|
21
|
+
"@instructure/ui-icons": "11.6.1-snapshot-129",
|
|
22
|
+
"@instructure/shared-types": "11.6.1-snapshot-129",
|
|
23
|
+
"@instructure/ui-options": "11.6.1-snapshot-129",
|
|
24
|
+
"@instructure/ui-popover": "11.6.1-snapshot-129",
|
|
25
|
+
"@instructure/ui-position": "11.6.1-snapshot-129",
|
|
26
|
+
"@instructure/ui-react-utils": "11.6.1-snapshot-129",
|
|
27
|
+
"@instructure/ui-selectable": "11.6.1-snapshot-129",
|
|
28
|
+
"@instructure/ui-view": "11.6.1-snapshot-129",
|
|
29
|
+
"@instructure/ui-utils": "11.6.1-snapshot-129"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
33
|
"@testing-library/react": "15.0.7",
|
|
34
34
|
"@testing-library/user-event": "^14.6.1",
|
|
35
35
|
"vitest": "^3.2.2",
|
|
36
|
-
"@instructure/ui-axe-check": "11.6.
|
|
37
|
-
"@instructure/ui-babel-preset": "11.6.
|
|
38
|
-
"@instructure/ui-
|
|
39
|
-
"@instructure/ui-
|
|
40
|
-
"@instructure/ui-
|
|
36
|
+
"@instructure/ui-axe-check": "11.6.1-snapshot-129",
|
|
37
|
+
"@instructure/ui-babel-preset": "11.6.1-snapshot-129",
|
|
38
|
+
"@instructure/ui-color-utils": "11.6.1-snapshot-129",
|
|
39
|
+
"@instructure/ui-scripts": "11.6.1-snapshot-129",
|
|
40
|
+
"@instructure/ui-themes": "11.6.1-snapshot-129"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=18 <=19"
|
|
@@ -47,17 +47,39 @@
|
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": false,
|
|
49
49
|
"exports": {
|
|
50
|
-
".": {
|
|
51
|
-
"types": "./types/index.d.ts",
|
|
52
|
-
"import": "./es/index.js",
|
|
53
|
-
"require": "./lib/index.js",
|
|
54
|
-
"default": "./es/index.js"
|
|
55
|
-
},
|
|
56
50
|
"./lib/*": "./lib/*",
|
|
57
51
|
"./es/*": "./es/*",
|
|
58
52
|
"./types/*": "./types/*",
|
|
59
53
|
"./package.json": "./package.json",
|
|
60
|
-
"./src/*": "./src/*"
|
|
54
|
+
"./src/*": "./src/*",
|
|
55
|
+
".": {
|
|
56
|
+
"src": "./src/exports/a.ts",
|
|
57
|
+
"types": "./types/exports/a.d.ts",
|
|
58
|
+
"import": "./es/exports/a.js",
|
|
59
|
+
"require": "./lib/exports/a.js",
|
|
60
|
+
"default": "./es/exports/a.js"
|
|
61
|
+
},
|
|
62
|
+
"./v11_6": {
|
|
63
|
+
"src": "./src/exports/a.ts",
|
|
64
|
+
"types": "./types/exports/a.d.ts",
|
|
65
|
+
"import": "./es/exports/a.js",
|
|
66
|
+
"require": "./lib/exports/a.js",
|
|
67
|
+
"default": "./es/exports/a.js"
|
|
68
|
+
},
|
|
69
|
+
"./v11_7": {
|
|
70
|
+
"src": "./src/exports/a.ts",
|
|
71
|
+
"types": "./types/exports/a.d.ts",
|
|
72
|
+
"import": "./es/exports/a.js",
|
|
73
|
+
"require": "./lib/exports/a.js",
|
|
74
|
+
"default": "./es/exports/a.js"
|
|
75
|
+
},
|
|
76
|
+
"./latest": {
|
|
77
|
+
"src": "./src/exports/a.ts",
|
|
78
|
+
"types": "./types/exports/a.d.ts",
|
|
79
|
+
"import": "./es/exports/a.js",
|
|
80
|
+
"require": "./lib/exports/a.js",
|
|
81
|
+
"default": "./es/exports/a.js"
|
|
82
|
+
}
|
|
61
83
|
},
|
|
62
84
|
"scripts": {
|
|
63
85
|
"lint": "ui-scripts lint",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
|
-
import { withStyle } from '@instructure/emotion'
|
|
27
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion'
|
|
28
28
|
import { optionsThemeGenerator } from '@instructure/ui-options'
|
|
29
29
|
|
|
30
30
|
import { allowedProps } from './props'
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
|
-
import { withStyle } from '@instructure/emotion'
|
|
27
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion'
|
|
28
28
|
import { optionsItemThemeGenerator } from '@instructure/ui-options'
|
|
29
29
|
|
|
30
30
|
import { allowedProps } from './props'
|
|
@@ -32,7 +32,7 @@ import type { WithStyleProps } from '@instructure/emotion'
|
|
|
32
32
|
import type {
|
|
33
33
|
OptionsItemRenderProps,
|
|
34
34
|
OptionsItemProps
|
|
35
|
-
} from '@instructure/ui-options'
|
|
35
|
+
} from '@instructure/ui-options/v11_6'
|
|
36
36
|
|
|
37
37
|
import Drilldown from '../index'
|
|
38
38
|
import { Renderable } from '@instructure/shared-types'
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
|
-
import { withStyle } from '@instructure/emotion'
|
|
27
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion'
|
|
28
28
|
import { optionsSeparatorThemeGenerator } from '@instructure/ui-options'
|
|
29
29
|
|
|
30
30
|
import { allowedProps } from './props'
|
|
@@ -29,7 +29,7 @@ import type {
|
|
|
29
29
|
OptionsSeparatorTheme
|
|
30
30
|
} from '@instructure/shared-types'
|
|
31
31
|
import type { WithStyleProps } from '@instructure/emotion'
|
|
32
|
-
import type { OptionsSeparatorProps } from '@instructure/ui-options'
|
|
32
|
+
import type { OptionsSeparatorProps } from '@instructure/ui-options/v11_6'
|
|
33
33
|
|
|
34
34
|
type DrilldownSeparatorOwnProps = {
|
|
35
35
|
id: string
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
withDeterministicId
|
|
36
36
|
} from '@instructure/ui-react-utils'
|
|
37
37
|
|
|
38
|
-
import { View } from '@instructure/ui-view'
|
|
39
|
-
import { Options } from '@instructure/ui-options'
|
|
38
|
+
import { View } from '@instructure/ui-view/v11_6'
|
|
39
|
+
import { Options } from '@instructure/ui-options/v11_6'
|
|
40
40
|
import type {
|
|
41
41
|
OptionsProps,
|
|
42
42
|
OptionsItemProps,
|
|
43
43
|
OptionsSeparatorProps
|
|
44
|
-
} from '@instructure/ui-options'
|
|
45
|
-
import { Popover } from '@instructure/ui-popover'
|
|
44
|
+
} from '@instructure/ui-options/v11_6'
|
|
45
|
+
import { Popover } from '@instructure/ui-popover/v11_6'
|
|
46
46
|
import { Selectable } from '@instructure/ui-selectable'
|
|
47
47
|
import type { SelectableRender } from '@instructure/ui-selectable'
|
|
48
48
|
import {
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
IconCheckSolid
|
|
52
52
|
} from '@instructure/ui-icons'
|
|
53
53
|
|
|
54
|
-
import { withStyle } from '@instructure/emotion'
|
|
54
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion'
|
|
55
55
|
|
|
56
56
|
import { DrilldownSeparator } from './DrilldownSeparator'
|
|
57
57
|
import { DrilldownOption } from './DrilldownOption'
|
|
@@ -870,12 +870,11 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
const isOptionDisabled =
|
|
873
|
-
|
|
874
|
-
this.props.disabled ||
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
)
|
|
873
|
+
id !== this._headerBackId &&
|
|
874
|
+
(this.props.disabled ||
|
|
875
|
+
this.currentPage?.disabled ||
|
|
876
|
+
selectedOption.groupProps?.disabled ||
|
|
877
|
+
selectedOption.props.disabled)
|
|
879
878
|
|
|
880
879
|
if (isOptionDisabled) {
|
|
881
880
|
event.preventDefault()
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
|
|
27
|
-
import { Popover } from '@instructure/ui-popover'
|
|
27
|
+
import { Popover } from '@instructure/ui-popover/v11_6'
|
|
28
28
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
29
29
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
30
30
|
import type {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Drilldown } from '
|
|
26
|
-
export { DrilldownGroup } from '
|
|
27
|
-
export { DrilldownOption } from '
|
|
28
|
-
export { DrilldownPage } from '
|
|
29
|
-
export { DrilldownSeparator } from '
|
|
25
|
+
export { Drilldown } from '../Drilldown/v1'
|
|
26
|
+
export { DrilldownGroup } from '../Drilldown/v1/DrilldownGroup'
|
|
27
|
+
export { DrilldownOption } from '../Drilldown/v1/DrilldownOption'
|
|
28
|
+
export { DrilldownPage } from '../Drilldown/v1/DrilldownPage'
|
|
29
|
+
export { DrilldownSeparator } from '../Drilldown/v1/DrilldownSeparator'
|
|
30
30
|
|
|
31
31
|
export type {
|
|
32
32
|
DrilldownProps,
|
|
@@ -34,11 +34,11 @@ export type {
|
|
|
34
34
|
GroupChild as DrilldownGroupChild,
|
|
35
35
|
OptionChild as DrilldownOptionChild,
|
|
36
36
|
SeparatorChild as DrilldownSeparatorChild
|
|
37
|
-
} from '
|
|
38
|
-
export type { DrilldownGroupProps } from '
|
|
39
|
-
export type { DrilldownOptionProps } from '
|
|
37
|
+
} from '../Drilldown/v1/props'
|
|
38
|
+
export type { DrilldownGroupProps } from '../Drilldown/v1/DrilldownGroup/props'
|
|
39
|
+
export type { DrilldownOptionProps } from '../Drilldown/v1/DrilldownOption/props'
|
|
40
40
|
export type {
|
|
41
41
|
DrilldownPageProps,
|
|
42
42
|
PageChildren as DrilldownPageChildren
|
|
43
|
-
} from '
|
|
44
|
-
export type { DrilldownSeparatorProps } from '
|
|
43
|
+
} from '../Drilldown/v1/DrilldownPage/props'
|
|
44
|
+
export type { DrilldownSeparatorProps } from '../Drilldown/v1/DrilldownSeparator/props'
|