@instructure/ui-drilldown 11.7.4-snapshot-11 → 11.7.4-snapshot-49
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 +1 -1
- package/LICENSE.md +1 -0
- package/es/Drilldown/v1/DrilldownGroup/index.js +2 -2
- package/es/Drilldown/v1/DrilldownOption/index.js +2 -2
- package/es/Drilldown/v1/DrilldownPage/index.js +2 -2
- package/es/Drilldown/v1/DrilldownSeparator/index.js +2 -2
- package/es/Drilldown/v1/index.js +13 -8
- package/es/Drilldown/v2/DrilldownGroup/index.js +2 -2
- package/es/Drilldown/v2/DrilldownOption/index.js +2 -2
- package/es/Drilldown/v2/DrilldownPage/index.js +2 -2
- package/es/Drilldown/v2/DrilldownSeparator/index.js +2 -2
- package/es/Drilldown/v2/index.js +12 -7
- package/es/exports/a.js +6 -5
- package/es/exports/b.js +6 -5
- package/lib/Drilldown/v1/DrilldownGroup/index.js +2 -2
- package/lib/Drilldown/v1/DrilldownOption/index.js +2 -2
- package/lib/Drilldown/v1/DrilldownPage/index.js +2 -2
- package/lib/Drilldown/v1/DrilldownSeparator/index.js +2 -2
- package/lib/Drilldown/v1/index.js +28 -28
- package/lib/Drilldown/v2/DrilldownGroup/index.js +2 -2
- package/lib/Drilldown/v2/DrilldownOption/index.js +2 -2
- package/lib/Drilldown/v2/DrilldownPage/index.js +2 -2
- package/lib/Drilldown/v2/DrilldownSeparator/index.js +2 -2
- package/lib/Drilldown/v2/index.js +27 -27
- package/lib/exports/a.js +10 -10
- package/lib/exports/b.js +10 -10
- package/package.json +18 -18
- package/src/Drilldown/v1/DrilldownGroup/index.tsx +2 -1
- package/src/Drilldown/v1/DrilldownGroup/props.ts +1 -1
- package/src/Drilldown/v1/DrilldownOption/index.tsx +2 -1
- package/src/Drilldown/v1/DrilldownOption/props.ts +1 -1
- package/src/Drilldown/v1/DrilldownPage/index.tsx +2 -1
- package/src/Drilldown/v1/DrilldownSeparator/index.tsx +2 -1
- package/src/Drilldown/v1/index.tsx +8 -7
- package/src/Drilldown/v1/props.ts +5 -5
- package/src/Drilldown/v2/DrilldownGroup/index.tsx +2 -1
- package/src/Drilldown/v2/DrilldownGroup/props.ts +1 -1
- package/src/Drilldown/v2/DrilldownOption/index.tsx +2 -1
- package/src/Drilldown/v2/DrilldownOption/props.ts +1 -1
- package/src/Drilldown/v2/DrilldownPage/index.tsx +2 -1
- package/src/Drilldown/v2/DrilldownSeparator/index.tsx +2 -1
- package/src/Drilldown/v2/index.tsx +7 -6
- package/src/Drilldown/v2/props.ts +5 -5
- package/src/exports/a.ts +5 -5
- package/src/exports/b.ts +5 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/v1/DrilldownGroup/index.d.ts +7 -6
- package/types/Drilldown/v1/DrilldownGroup/index.d.ts.map +1 -1
- package/types/Drilldown/v1/DrilldownGroup/props.d.ts +1 -1
- package/types/Drilldown/v1/DrilldownGroup/props.d.ts.map +1 -1
- package/types/Drilldown/v1/DrilldownOption/index.d.ts +3 -2
- package/types/Drilldown/v1/DrilldownOption/index.d.ts.map +1 -1
- package/types/Drilldown/v1/DrilldownOption/props.d.ts +1 -1
- package/types/Drilldown/v1/DrilldownOption/props.d.ts.map +1 -1
- package/types/Drilldown/v1/DrilldownPage/index.d.ts +2 -1
- package/types/Drilldown/v1/DrilldownPage/index.d.ts.map +1 -1
- package/types/Drilldown/v1/DrilldownSeparator/index.d.ts +1 -0
- package/types/Drilldown/v1/DrilldownSeparator/index.d.ts.map +1 -1
- package/types/Drilldown/v1/index.d.ts +6 -5
- package/types/Drilldown/v1/index.d.ts.map +1 -1
- package/types/Drilldown/v1/props.d.ts +5 -5
- package/types/Drilldown/v1/props.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownGroup/index.d.ts +7 -6
- package/types/Drilldown/v2/DrilldownGroup/index.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts +1 -1
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownOption/index.d.ts +3 -2
- package/types/Drilldown/v2/DrilldownOption/index.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownOption/props.d.ts +1 -1
- package/types/Drilldown/v2/DrilldownOption/props.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownPage/index.d.ts +2 -1
- package/types/Drilldown/v2/DrilldownPage/index.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownSeparator/index.d.ts +1 -0
- package/types/Drilldown/v2/DrilldownSeparator/index.d.ts.map +1 -1
- package/types/Drilldown/v2/index.d.ts +6 -5
- package/types/Drilldown/v2/index.d.ts.map +1 -1
- package/types/Drilldown/v2/props.d.ts +5 -5
- package/types/Drilldown/v2/props.d.ts.map +1 -1
- package/types/exports/a.d.ts +5 -5
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +5 -5
- package/types/exports/b.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-drilldown
|
|
9
9
|
|
package/LICENSE.md
CHANGED
|
@@ -26,7 +26,7 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { optionsThemeGenerator } from '@instructure/ui-options';
|
|
29
|
-
import { allowedProps } from
|
|
29
|
+
import { allowedProps } from './props.js';
|
|
30
30
|
import { isMac, isFirefox } from '@instructure/ui-utils';
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -39,7 +39,7 @@ id: Drilldown.Group
|
|
|
39
39
|
// needed for listing the available theme variables on docs page,
|
|
40
40
|
// we pass the themeOverrides to Options
|
|
41
41
|
let DrilldownGroup = (_dec = withStyle(null, optionsThemeGenerator), _dec(_class = class DrilldownGroup extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'DrilldownGroup';
|
|
43
43
|
static componentId = 'Drilldown.Group';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
|
@@ -26,7 +26,7 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { optionsItemThemeGenerator } from '@instructure/ui-options';
|
|
29
|
-
import { allowedProps } from
|
|
29
|
+
import { allowedProps } from './props.js';
|
|
30
30
|
/**
|
|
31
31
|
---
|
|
32
32
|
parent: Drilldown
|
|
@@ -37,7 +37,7 @@ id: Drilldown.Option
|
|
|
37
37
|
// needed for listing the available theme variables on docs page,
|
|
38
38
|
// we pass the themeOverrides to Options.Item
|
|
39
39
|
let DrilldownOption = (_dec = withStyle(null, optionsItemThemeGenerator), _dec(_class = class DrilldownOption extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'DrilldownOption';
|
|
41
41
|
static componentId = 'Drilldown.Option';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { allowedProps } from
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
27
|
/**
|
|
28
28
|
---
|
|
29
29
|
parent: Drilldown
|
|
@@ -32,7 +32,7 @@ id: Drilldown.Page
|
|
|
32
32
|
@module DrilldownPage
|
|
33
33
|
**/
|
|
34
34
|
class DrilldownPage extends Component {
|
|
35
|
-
static displayName =
|
|
35
|
+
static displayName = 'DrilldownPage';
|
|
36
36
|
static componentId = 'Drilldown.Page';
|
|
37
37
|
static allowedProps = allowedProps;
|
|
38
38
|
static defaultProps = {
|
|
@@ -26,7 +26,7 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { optionsSeparatorThemeGenerator } from '@instructure/ui-options';
|
|
29
|
-
import { allowedProps } from
|
|
29
|
+
import { allowedProps } from './props.js';
|
|
30
30
|
/**
|
|
31
31
|
---
|
|
32
32
|
parent: Drilldown
|
|
@@ -37,7 +37,7 @@ id: Drilldown.Separator
|
|
|
37
37
|
// needed for listing the available theme variables on docs page,
|
|
38
38
|
// we pass the themeOverrides to Options.Separator
|
|
39
39
|
let DrilldownSeparator = (_dec = withStyle(null, optionsSeparatorThemeGenerator), _dec(_class = class DrilldownSeparator extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'DrilldownSeparator';
|
|
41
41
|
static componentId = 'Drilldown.Separator';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {};
|
package/es/Drilldown/v1/index.js
CHANGED
|
@@ -34,18 +34,23 @@ import { Popover } from '@instructure/ui-popover/v11_6';
|
|
|
34
34
|
import { Selectable } from '@instructure/ui-selectable';
|
|
35
35
|
import { IconArrowOpenStartSolid, IconArrowOpenEndSolid, IconCheckSolid } from '@instructure/ui-icons';
|
|
36
36
|
import { withStyle } from '@instructure/emotion';
|
|
37
|
-
import { DrilldownSeparator } from
|
|
38
|
-
import { DrilldownOption } from
|
|
39
|
-
import { DrilldownGroup } from
|
|
40
|
-
import { DrilldownPage } from
|
|
41
|
-
import generateStyle from
|
|
42
|
-
import generateComponentTheme from
|
|
43
|
-
import { allowedProps } from
|
|
37
|
+
import { DrilldownSeparator } from './DrilldownSeparator/index.js';
|
|
38
|
+
import { DrilldownOption } from './DrilldownOption/index.js';
|
|
39
|
+
import { DrilldownGroup } from './DrilldownGroup/index.js';
|
|
40
|
+
import { DrilldownPage } from './DrilldownPage/index.js';
|
|
41
|
+
import generateStyle from './styles.js';
|
|
42
|
+
import generateComponentTheme from './theme.js';
|
|
43
|
+
import { allowedProps } from './props.js';
|
|
44
|
+
|
|
45
|
+
// Additional data we need to track on the Options,
|
|
44
46
|
// but shouldn't be settable via props
|
|
47
|
+
|
|
45
48
|
// Contains the Option ComponentElement and the extra data we need track on it,
|
|
46
49
|
// but don't want to expose as props
|
|
50
|
+
|
|
47
51
|
// Contains the props object of the Page
|
|
48
52
|
// with the `children` transformed into an array
|
|
53
|
+
|
|
49
54
|
// An object with the mapped Pages with their id as keys
|
|
50
55
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
51
56
|
import { createElement as _createElement } from "@emotion/react";
|
|
@@ -55,7 +60,7 @@ category: components
|
|
|
55
60
|
---
|
|
56
61
|
**/
|
|
57
62
|
let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class Drilldown extends Component {
|
|
58
|
-
static displayName =
|
|
63
|
+
static displayName = 'Drilldown';
|
|
59
64
|
static componentId = 'Drilldown';
|
|
60
65
|
static allowedProps = allowedProps;
|
|
61
66
|
static defaultProps = {
|
|
@@ -25,7 +25,7 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyleNew } from '@instructure/emotion';
|
|
28
|
-
import { allowedProps } from
|
|
28
|
+
import { allowedProps } from './props.js';
|
|
29
29
|
import { isMac, isFirefox } from '@instructure/ui-utils';
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -39,7 +39,7 @@ themeId: Options
|
|
|
39
39
|
// needed for listing the available theme variables on docs page,
|
|
40
40
|
// we pass the themeOverrides to Options
|
|
41
41
|
let DrilldownGroup = (_dec = withStyleNew(null), _dec(_class = class DrilldownGroup extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'DrilldownGroup';
|
|
43
43
|
static componentId = 'Drilldown.Group';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
|
@@ -25,7 +25,7 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyleNew } from '@instructure/emotion';
|
|
28
|
-
import { allowedProps } from
|
|
28
|
+
import { allowedProps } from './props.js';
|
|
29
29
|
/**
|
|
30
30
|
---
|
|
31
31
|
parent: Drilldown
|
|
@@ -37,7 +37,7 @@ themeId: OptionsItem
|
|
|
37
37
|
// needed for listing the available theme variables on docs page,
|
|
38
38
|
// we pass the themeOverrides to Options.Item
|
|
39
39
|
let DrilldownOption = (_dec = withStyleNew(null), _dec(_class = class DrilldownOption extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'DrilldownOption';
|
|
41
41
|
static componentId = 'Drilldown.Option';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { allowedProps } from
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
27
|
/**
|
|
28
28
|
---
|
|
29
29
|
parent: Drilldown
|
|
@@ -32,7 +32,7 @@ id: Drilldown.Page
|
|
|
32
32
|
@module DrilldownPage
|
|
33
33
|
**/
|
|
34
34
|
class DrilldownPage extends Component {
|
|
35
|
-
static displayName =
|
|
35
|
+
static displayName = 'DrilldownPage';
|
|
36
36
|
static componentId = 'Drilldown.Page';
|
|
37
37
|
static allowedProps = allowedProps;
|
|
38
38
|
static defaultProps = {
|
|
@@ -25,7 +25,7 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyleNew } from '@instructure/emotion';
|
|
28
|
-
import { allowedProps } from
|
|
28
|
+
import { allowedProps } from './props.js';
|
|
29
29
|
/**
|
|
30
30
|
---
|
|
31
31
|
parent: Drilldown
|
|
@@ -37,7 +37,7 @@ themeId: OptionsSeparator
|
|
|
37
37
|
// needed for listing the available theme variables on docs page,
|
|
38
38
|
// we pass the themeOverrides to Options.Separator
|
|
39
39
|
let DrilldownSeparator = (_dec = withStyleNew(null), _dec(_class = class DrilldownSeparator extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'DrilldownSeparator';
|
|
41
41
|
static componentId = 'Drilldown.Separator';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {};
|
package/es/Drilldown/v2/index.js
CHANGED
|
@@ -34,17 +34,22 @@ import { Popover } from '@instructure/ui-popover/latest';
|
|
|
34
34
|
import { Selectable } from '@instructure/ui-selectable';
|
|
35
35
|
import { ChevronLeftInstUIIcon, ChevronRightInstUIIcon, CheckInstUIIcon } from '@instructure/ui-icons';
|
|
36
36
|
import { withStyleNew } from '@instructure/emotion';
|
|
37
|
-
import { DrilldownSeparator } from
|
|
38
|
-
import { DrilldownOption } from
|
|
39
|
-
import { DrilldownGroup } from
|
|
40
|
-
import { DrilldownPage } from
|
|
41
|
-
import generateStyle from
|
|
42
|
-
import { allowedProps } from
|
|
37
|
+
import { DrilldownSeparator } from './DrilldownSeparator/index.js';
|
|
38
|
+
import { DrilldownOption } from './DrilldownOption/index.js';
|
|
39
|
+
import { DrilldownGroup } from './DrilldownGroup/index.js';
|
|
40
|
+
import { DrilldownPage } from './DrilldownPage/index.js';
|
|
41
|
+
import generateStyle from './styles.js';
|
|
42
|
+
import { allowedProps } from './props.js';
|
|
43
|
+
|
|
44
|
+
// Additional data we need to track on the Options,
|
|
43
45
|
// but shouldn't be settable via props
|
|
46
|
+
|
|
44
47
|
// Contains the Option ComponentElement and the extra data we need track on it,
|
|
45
48
|
// but don't want to expose as props
|
|
49
|
+
|
|
46
50
|
// Contains the props object of the Page
|
|
47
51
|
// with the `children` transformed into an array
|
|
52
|
+
|
|
48
53
|
// An object with the mapped Pages with their id as keys
|
|
49
54
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
50
55
|
import { createElement as _createElement } from "@emotion/react";
|
|
@@ -54,7 +59,7 @@ category: components
|
|
|
54
59
|
---
|
|
55
60
|
**/
|
|
56
61
|
let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Drilldown extends Component {
|
|
57
|
-
static displayName =
|
|
62
|
+
static displayName = 'Drilldown';
|
|
58
63
|
static componentId = 'Drilldown';
|
|
59
64
|
static allowedProps = allowedProps;
|
|
60
65
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Drilldown } from '../Drilldown/v1/index.js';
|
|
26
|
+
export { DrilldownGroup } from '../Drilldown/v1/DrilldownGroup/index.js';
|
|
27
|
+
export { DrilldownOption } from '../Drilldown/v1/DrilldownOption/index.js';
|
|
28
|
+
export { DrilldownPage } from '../Drilldown/v1/DrilldownPage/index.js';
|
|
29
|
+
export { DrilldownSeparator } from '../Drilldown/v1/DrilldownSeparator/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Drilldown } from '../Drilldown/v2/index.js';
|
|
26
|
+
export { DrilldownGroup } from '../Drilldown/v2/DrilldownGroup/index.js';
|
|
27
|
+
export { DrilldownOption } from '../Drilldown/v2/DrilldownOption/index.js';
|
|
28
|
+
export { DrilldownPage } from '../Drilldown/v2/DrilldownPage/index.js';
|
|
29
|
+
export { DrilldownSeparator } from '../Drilldown/v2/DrilldownSeparator/index.js';
|
|
@@ -7,7 +7,7 @@ exports.default = exports.DrilldownGroup = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
9
|
var _uiOptions = require("@instructure/ui-options");
|
|
10
|
-
var _props = require("./props");
|
|
10
|
+
var _props = require("./props.js");
|
|
11
11
|
var _uiUtils = require("@instructure/ui-utils");
|
|
12
12
|
var _dec, _class;
|
|
13
13
|
/*
|
|
@@ -43,7 +43,7 @@ id: Drilldown.Group
|
|
|
43
43
|
// needed for listing the available theme variables on docs page,
|
|
44
44
|
// we pass the themeOverrides to Options
|
|
45
45
|
let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsThemeGenerator), _dec(_class = class DrilldownGroup extends _react.Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'DrilldownGroup';
|
|
47
47
|
static componentId = 'Drilldown.Group';
|
|
48
48
|
static allowedProps = _props.allowedProps;
|
|
49
49
|
static defaultProps = {
|
|
@@ -7,7 +7,7 @@ exports.default = exports.DrilldownOption = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
9
|
var _uiOptions = require("@instructure/ui-options");
|
|
10
|
-
var _props = require("./props");
|
|
10
|
+
var _props = require("./props.js");
|
|
11
11
|
var _dec, _class;
|
|
12
12
|
/*
|
|
13
13
|
* The MIT License (MIT)
|
|
@@ -42,7 +42,7 @@ id: Drilldown.Option
|
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Item
|
|
44
44
|
let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsItemThemeGenerator), _dec(_class = class DrilldownOption extends _react.Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrilldownOption';
|
|
46
46
|
static componentId = 'Drilldown.Option';
|
|
47
47
|
static allowedProps = _props.allowedProps;
|
|
48
48
|
static defaultProps = {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.DrilldownPage = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _props = require("./props");
|
|
8
|
+
var _props = require("./props.js");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
11
11
|
*
|
|
@@ -38,7 +38,7 @@ id: Drilldown.Page
|
|
|
38
38
|
@module DrilldownPage
|
|
39
39
|
**/
|
|
40
40
|
class DrilldownPage extends _react.Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'DrilldownPage';
|
|
42
42
|
static componentId = 'Drilldown.Page';
|
|
43
43
|
static allowedProps = _props.allowedProps;
|
|
44
44
|
static defaultProps = {
|
|
@@ -7,7 +7,7 @@ exports.default = exports.DrilldownSeparator = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
9
|
var _uiOptions = require("@instructure/ui-options");
|
|
10
|
-
var _props = require("./props");
|
|
10
|
+
var _props = require("./props.js");
|
|
11
11
|
var _dec, _class;
|
|
12
12
|
/*
|
|
13
13
|
* The MIT License (MIT)
|
|
@@ -42,7 +42,7 @@ id: Drilldown.Separator
|
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Separator
|
|
44
44
|
let DrilldownSeparator = exports.DrilldownSeparator = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsSeparatorThemeGenerator), _dec(_class = class DrilldownSeparator extends _react.Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrilldownSeparator';
|
|
46
46
|
static componentId = 'Drilldown.Separator';
|
|
47
47
|
static allowedProps = _props.allowedProps;
|
|
48
48
|
static defaultProps = {};
|
|
@@ -23,13 +23,13 @@ var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/generated/Icon
|
|
|
23
23
|
var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenEndSolid.js");
|
|
24
24
|
var _IconCheckSolid = require("@instructure/ui-icons/lib/generated/IconCheckSolid.js");
|
|
25
25
|
var _emotion = require("@instructure/emotion");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
31
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
32
|
-
var _props = require("./props");
|
|
26
|
+
var _index = require("./DrilldownSeparator/index.js");
|
|
27
|
+
var _index2 = require("./DrilldownOption/index.js");
|
|
28
|
+
var _index3 = require("./DrilldownGroup/index.js");
|
|
29
|
+
var _index4 = require("./DrilldownPage/index.js");
|
|
30
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
31
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
32
|
+
var _props = require("./props.js");
|
|
33
33
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
34
34
|
var _react2 = require("@emotion/react");
|
|
35
35
|
var _dec, _dec2, _class;
|
|
@@ -69,7 +69,7 @@ category: components
|
|
|
69
69
|
---
|
|
70
70
|
**/
|
|
71
71
|
let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class Drilldown extends _react.Component {
|
|
72
|
-
static displayName =
|
|
72
|
+
static displayName = 'Drilldown';
|
|
73
73
|
static componentId = 'Drilldown';
|
|
74
74
|
static allowedProps = _props.allowedProps;
|
|
75
75
|
static defaultProps = {
|
|
@@ -89,10 +89,10 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
89
89
|
offsetY: 0,
|
|
90
90
|
shouldSetAriaExpanded: true
|
|
91
91
|
};
|
|
92
|
-
static Group =
|
|
93
|
-
static Option =
|
|
94
|
-
static Page =
|
|
95
|
-
static Separator =
|
|
92
|
+
static Group = _index3.DrilldownGroup;
|
|
93
|
+
static Option = _index2.DrilldownOption;
|
|
94
|
+
static Page = _index4.DrilldownPage;
|
|
95
|
+
static Separator = _index.DrilldownSeparator;
|
|
96
96
|
_drilldownRef = null;
|
|
97
97
|
_popover = null;
|
|
98
98
|
_trigger = null;
|
|
@@ -190,7 +190,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
190
190
|
};
|
|
191
191
|
this.pages.forEach(page => {
|
|
192
192
|
this.getChildrenArray(page.props.children).forEach(child => {
|
|
193
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
193
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrilldownGroup])) {
|
|
194
194
|
const {
|
|
195
195
|
id: groupId,
|
|
196
196
|
selectableType,
|
|
@@ -200,7 +200,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
200
200
|
if (!selectableType || !Array.isArray(selectedOptions)) return;
|
|
201
201
|
const newGroupMap = new Map();
|
|
202
202
|
this.getChildrenArray(groupChildren)?.forEach(groupChild => {
|
|
203
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(groupChild, [
|
|
203
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(groupChild, [_index2.DrilldownOption])) {
|
|
204
204
|
const {
|
|
205
205
|
id: optionId,
|
|
206
206
|
value: optionValue
|
|
@@ -352,7 +352,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
352
352
|
children
|
|
353
353
|
} = page.props;
|
|
354
354
|
this.getChildrenArray(children).forEach(child => {
|
|
355
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
355
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrilldownGroup])) {
|
|
356
356
|
const {
|
|
357
357
|
id: groupId,
|
|
358
358
|
selectableType,
|
|
@@ -373,7 +373,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
this.getChildrenArray(groupChildren)?.forEach(groupChild => {
|
|
376
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(groupChild, [
|
|
376
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(groupChild, [_index2.DrilldownOption])) {
|
|
377
377
|
const {
|
|
378
378
|
id: optionId,
|
|
379
379
|
value: optionValue,
|
|
@@ -431,7 +431,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
431
431
|
if (this.previousPage) {
|
|
432
432
|
const prevPageTitle = (0, _callRenderProp.callRenderProp)(this.previousPage.renderTitle);
|
|
433
433
|
const backButtonLabel = (0, _callRenderProp.callRenderProp)(renderBackButtonLabel, prevPageTitle);
|
|
434
|
-
headerChildren.push((0, _jsxRuntime.jsx)(
|
|
434
|
+
headerChildren.push((0, _jsxRuntime.jsx)(_index2.DrilldownOption, {
|
|
435
435
|
id: this._headerBackId,
|
|
436
436
|
onOptionClick: this.handleBackButtonClick,
|
|
437
437
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
@@ -446,7 +446,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
446
446
|
if (renderTitle) {
|
|
447
447
|
const title = (0, _callRenderProp.callRenderProp)(renderTitle);
|
|
448
448
|
if (title) {
|
|
449
|
-
headerChildren.push((0, _jsxRuntime.jsx)(
|
|
449
|
+
headerChildren.push((0, _jsxRuntime.jsx)(_index2.DrilldownOption, {
|
|
450
450
|
id: this._headerTitleId,
|
|
451
451
|
role: "presentation",
|
|
452
452
|
"aria-hidden": "true",
|
|
@@ -463,7 +463,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
463
463
|
if (renderActionLabel) {
|
|
464
464
|
const actionLabel = (0, _callRenderProp.callRenderProp)(renderActionLabel);
|
|
465
465
|
if (actionLabel) {
|
|
466
|
-
headerChildren.push((0, _jsxRuntime.jsx)(
|
|
466
|
+
headerChildren.push((0, _jsxRuntime.jsx)(_index2.DrilldownOption, {
|
|
467
467
|
id: this._headerActionId,
|
|
468
468
|
themeOverride: {
|
|
469
469
|
color: styles?.headerActionColor
|
|
@@ -480,7 +480,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
480
480
|
|
|
481
481
|
// header separator
|
|
482
482
|
if (headerChildren.length > 0 && children.length > 0 && !withoutHeaderSeparator) {
|
|
483
|
-
headerChildren.push((0, _jsxRuntime.jsx)(
|
|
483
|
+
headerChildren.push((0, _jsxRuntime.jsx)(_index.DrilldownSeparator, {
|
|
484
484
|
id: deterministicId('DrilldownHeader-Separator')
|
|
485
485
|
}));
|
|
486
486
|
}
|
|
@@ -876,7 +876,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
876
876
|
if (!child) return undefined;
|
|
877
877
|
|
|
878
878
|
// If it's a regular option, return it
|
|
879
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
879
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.DrilldownOption])) {
|
|
880
880
|
return child;
|
|
881
881
|
}
|
|
882
882
|
// If it's a group, get its options
|
|
@@ -902,7 +902,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
902
902
|
/**
|
|
903
903
|
* --- RENDER GROUP ---
|
|
904
904
|
*/
|
|
905
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
905
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrilldownGroup])) {
|
|
906
906
|
const isFirstChild = index === 0;
|
|
907
907
|
const isLastChild = index === pageChildren.length - 1;
|
|
908
908
|
const afterSeparator = lastItemWasSeparator;
|
|
@@ -916,7 +916,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
916
916
|
/**
|
|
917
917
|
* --- RENDER SEPARATOR ---
|
|
918
918
|
*/
|
|
919
|
-
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
919
|
+
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.DrilldownSeparator])) {
|
|
920
920
|
// if the last item was separator, we don't want to duplicate it
|
|
921
921
|
if (lastItemWasSeparator) {
|
|
922
922
|
return null;
|
|
@@ -927,7 +927,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
927
927
|
/**
|
|
928
928
|
* --- RENDER OPTION ---
|
|
929
929
|
*/
|
|
930
|
-
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
930
|
+
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.DrilldownOption])) {
|
|
931
931
|
lastItemWasSeparator = false;
|
|
932
932
|
return this.renderOption(child, getOptionProps, getDisabledOptionProps);
|
|
933
933
|
} else {
|
|
@@ -987,7 +987,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
987
987
|
// Props passed to the Option.Item
|
|
988
988
|
let optionProps = {
|
|
989
989
|
// passthrough props
|
|
990
|
-
...(0, _omitProps.omitProps)(option.props, [...
|
|
990
|
+
...(0, _omitProps.omitProps)(option.props, [..._index2.DrilldownOption.allowedProps, ..._v11_2.Options.Item.allowedProps]),
|
|
991
991
|
// props from selectable
|
|
992
992
|
...getOptionProps({
|
|
993
993
|
id,
|
|
@@ -1039,7 +1039,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1039
1039
|
index: Object.keys(this._activeOptionsMap).length + 1
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
|
-
const customRole = role !==
|
|
1042
|
+
const customRole = role !== _index2.DrilldownOption.defaultProps.role ? role : undefined;
|
|
1043
1043
|
|
|
1044
1044
|
// BEFORE/AFTER elements:
|
|
1045
1045
|
// we set a few manually on Options.Item,
|
|
@@ -1185,9 +1185,9 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1185
1185
|
,
|
|
1186
1186
|
themeOverride: themeOverride,
|
|
1187
1187
|
children: this.getChildrenArray(children).map(child => {
|
|
1188
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
1188
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.DrilldownSeparator])) {
|
|
1189
1189
|
return this.renderSeparator(child);
|
|
1190
|
-
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
1190
|
+
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.DrilldownOption])) {
|
|
1191
1191
|
return this.renderOption(child, getOptionProps, getDisabledOptionProps, group.props);
|
|
1192
1192
|
} else {
|
|
1193
1193
|
return null;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.DrilldownGroup = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
|
-
var _props = require("./props");
|
|
9
|
+
var _props = require("./props.js");
|
|
10
10
|
var _uiUtils = require("@instructure/ui-utils");
|
|
11
11
|
var _dec, _class;
|
|
12
12
|
/*
|
|
@@ -43,7 +43,7 @@ themeId: Options
|
|
|
43
43
|
// needed for listing the available theme variables on docs page,
|
|
44
44
|
// we pass the themeOverrides to Options
|
|
45
45
|
let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.withStyleNew)(null), _dec(_class = class DrilldownGroup extends _react.Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'DrilldownGroup';
|
|
47
47
|
static componentId = 'Drilldown.Group';
|
|
48
48
|
static allowedProps = _props.allowedProps;
|
|
49
49
|
static defaultProps = {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.DrilldownOption = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
|
-
var _props = require("./props");
|
|
9
|
+
var _props = require("./props.js");
|
|
10
10
|
var _dec, _class;
|
|
11
11
|
/*
|
|
12
12
|
* The MIT License (MIT)
|
|
@@ -42,7 +42,7 @@ themeId: OptionsItem
|
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Item
|
|
44
44
|
let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.withStyleNew)(null), _dec(_class = class DrilldownOption extends _react.Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrilldownOption';
|
|
46
46
|
static componentId = 'Drilldown.Option';
|
|
47
47
|
static allowedProps = _props.allowedProps;
|
|
48
48
|
static defaultProps = {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.DrilldownPage = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _props = require("./props");
|
|
8
|
+
var _props = require("./props.js");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
11
11
|
*
|
|
@@ -38,7 +38,7 @@ id: Drilldown.Page
|
|
|
38
38
|
@module DrilldownPage
|
|
39
39
|
**/
|
|
40
40
|
class DrilldownPage extends _react.Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'DrilldownPage';
|
|
42
42
|
static componentId = 'Drilldown.Page';
|
|
43
43
|
static allowedProps = _props.allowedProps;
|
|
44
44
|
static defaultProps = {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.DrilldownSeparator = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _emotion = require("@instructure/emotion");
|
|
9
|
-
var _props = require("./props");
|
|
9
|
+
var _props = require("./props.js");
|
|
10
10
|
var _dec, _class;
|
|
11
11
|
/*
|
|
12
12
|
* The MIT License (MIT)
|
|
@@ -42,7 +42,7 @@ themeId: OptionsSeparator
|
|
|
42
42
|
// needed for listing the available theme variables on docs page,
|
|
43
43
|
// we pass the themeOverrides to Options.Separator
|
|
44
44
|
let DrilldownSeparator = exports.DrilldownSeparator = (_dec = (0, _emotion.withStyleNew)(null), _dec(_class = class DrilldownSeparator extends _react.Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrilldownSeparator';
|
|
46
46
|
static componentId = 'Drilldown.Separator';
|
|
47
47
|
static allowedProps = _props.allowedProps;
|
|
48
48
|
static defaultProps = {};
|