@instructure/ui-drilldown 11.7.2-snapshot-17 → 11.7.2-snapshot-19
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 +12 -2
- package/es/Drilldown/v2/DrilldownGroup/index.js +55 -0
- package/es/Drilldown/v2/DrilldownGroup/props.js +26 -0
- package/es/Drilldown/v2/DrilldownOption/index.js +54 -0
- package/es/Drilldown/v2/DrilldownOption/props.js +26 -0
- package/es/Drilldown/v2/DrilldownPage/index.js +50 -0
- package/es/Drilldown/v2/DrilldownPage/props.js +26 -0
- package/es/Drilldown/v2/DrilldownSeparator/index.js +47 -0
- package/es/Drilldown/v2/DrilldownSeparator/props.js +26 -0
- package/es/Drilldown/v2/index.js +1358 -0
- package/es/Drilldown/v2/props.js +28 -0
- package/es/Drilldown/v2/styles.js +84 -0
- package/es/exports/b.js +28 -0
- package/lib/Drilldown/v2/DrilldownGroup/index.js +58 -0
- package/lib/Drilldown/v2/DrilldownGroup/props.js +31 -0
- package/lib/Drilldown/v2/DrilldownOption/index.js +58 -0
- package/lib/Drilldown/v2/DrilldownOption/props.js +31 -0
- package/lib/Drilldown/v2/DrilldownPage/index.js +56 -0
- package/lib/Drilldown/v2/DrilldownPage/props.js +31 -0
- package/lib/Drilldown/v2/DrilldownSeparator/index.js +51 -0
- package/lib/Drilldown/v2/DrilldownSeparator/props.js +31 -0
- package/lib/Drilldown/v2/index.js +1369 -0
- package/lib/Drilldown/v2/props.js +33 -0
- package/lib/Drilldown/v2/styles.js +90 -0
- package/lib/exports/b.js +40 -0
- package/package.json +28 -28
- package/src/Drilldown/v2/DrilldownGroup/index.tsx +64 -0
- package/src/Drilldown/v2/DrilldownGroup/props.ts +134 -0
- package/src/Drilldown/v2/DrilldownOption/index.tsx +65 -0
- package/src/Drilldown/v2/DrilldownOption/props.ts +211 -0
- package/src/Drilldown/v2/DrilldownPage/index.tsx +55 -0
- package/src/Drilldown/v2/DrilldownPage/props.ts +102 -0
- package/src/Drilldown/v2/DrilldownSeparator/index.tsx +57 -0
- package/src/Drilldown/v2/DrilldownSeparator/props.ts +56 -0
- package/src/Drilldown/v2/README.md +1445 -0
- package/src/Drilldown/v2/index.tsx +1681 -0
- package/src/Drilldown/v2/props.ts +361 -0
- package/src/Drilldown/v2/styles.ts +97 -0
- package/src/exports/b.ts +44 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/v2/DrilldownGroup/index.d.ts +41 -0
- package/types/Drilldown/v2/DrilldownGroup/index.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts +69 -0
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownOption/index.d.ts +69 -0
- package/types/Drilldown/v2/DrilldownOption/index.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownOption/props.d.ts +125 -0
- package/types/Drilldown/v2/DrilldownOption/props.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownPage/index.d.ts +32 -0
- package/types/Drilldown/v2/DrilldownPage/index.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownPage/props.d.ts +51 -0
- package/types/Drilldown/v2/DrilldownPage/props.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownSeparator/index.d.ts +22 -0
- package/types/Drilldown/v2/DrilldownSeparator/index.d.ts.map +1 -0
- package/types/Drilldown/v2/DrilldownSeparator/props.d.ts +17 -0
- package/types/Drilldown/v2/DrilldownSeparator/props.d.ts.map +1 -0
- package/types/Drilldown/v2/index.d.ts +212 -0
- package/types/Drilldown/v2/index.d.ts.map +1 -0
- package/types/Drilldown/v2/props.d.ts +210 -0
- package/types/Drilldown/v2/props.d.ts.map +1 -0
- package/types/Drilldown/v2/styles.d.ts +15 -0
- package/types/Drilldown/v2/styles.d.ts.map +1 -0
- package/types/exports/b.d.ts +11 -0
- package/types/exports/b.d.ts.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,19 @@
|
|
|
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.2-snapshot-
|
|
6
|
+
## [11.7.2-snapshot-19](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-19) (2026-04-01)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui,ui-options,ui-drilldown:** rework Drilldown ([0562fe2](https://github.com/instructure/instructure-ui/commit/0562fe2b43e3235fc78c4981ada504c1a2f10d1a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **ui,ui-options,ui-drilldown:** contains breaking changes due to component using the new theming system
|
|
17
|
+
|
|
18
|
+
INSTUI-4792
|
|
9
19
|
|
|
10
20
|
|
|
11
21
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var _dec, _class, _DrilldownGroup;
|
|
2
|
+
/*
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { Component } from 'react';
|
|
27
|
+
import { withStyle } from '@instructure/emotion';
|
|
28
|
+
import { allowedProps } from "./props.js";
|
|
29
|
+
import { isMac, isFirefox } from '@instructure/ui-utils';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
---
|
|
33
|
+
parent: Drilldown
|
|
34
|
+
id: Drilldown.Group
|
|
35
|
+
themeId: Options
|
|
36
|
+
---
|
|
37
|
+
@module DrilldownGroup
|
|
38
|
+
**/
|
|
39
|
+
// needed for listing the available theme variables on docs page,
|
|
40
|
+
// we pass the themeOverrides to Options
|
|
41
|
+
let DrilldownGroup = (_dec = withStyle(null), _dec(_class = (_DrilldownGroup = class DrilldownGroup extends Component {
|
|
42
|
+
render() {
|
|
43
|
+
// this component is only used for prop validation.
|
|
44
|
+
// Drilldown.Group is parsed in Drilldown as an Options component.
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}, _DrilldownGroup.displayName = "DrilldownGroup", _DrilldownGroup.componentId = 'Drilldown.Group', _DrilldownGroup.allowedProps = allowedProps, _DrilldownGroup.defaultProps = {
|
|
48
|
+
disabled: false,
|
|
49
|
+
withoutSeparators: false,
|
|
50
|
+
// Firefox with NVDA does not read Drilldown.Group with role="group" correctly
|
|
51
|
+
// but setting role="menu" on all other platforms results in Drilldown.Group label not being read
|
|
52
|
+
role: !isMac() && isFirefox() ? 'menu' : 'group'
|
|
53
|
+
}, _DrilldownGroup)) || _class);
|
|
54
|
+
export default DrilldownGroup;
|
|
55
|
+
export { DrilldownGroup };
|
|
@@ -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
|
+
|
|
25
|
+
const allowedProps = ['id', 'children', 'renderGroupTitle', 'withoutSeparators', 'disabled', 'role', 'as', 'elementRef', 'selectableType', 'defaultSelected', 'selectedOptions', 'onSelect'];
|
|
26
|
+
export { allowedProps };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var _dec, _class, _DrilldownOption;
|
|
2
|
+
/*
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { Component } from 'react';
|
|
27
|
+
import { withStyle } from '@instructure/emotion';
|
|
28
|
+
import { allowedProps } from "./props.js";
|
|
29
|
+
/**
|
|
30
|
+
---
|
|
31
|
+
parent: Drilldown
|
|
32
|
+
id: Drilldown.Option
|
|
33
|
+
themeId: OptionsItem
|
|
34
|
+
---
|
|
35
|
+
@module DrilldownOption
|
|
36
|
+
**/
|
|
37
|
+
// needed for listing the available theme variables on docs page,
|
|
38
|
+
// we pass the themeOverrides to Options.Item
|
|
39
|
+
let DrilldownOption = (_dec = withStyle(null), _dec(_class = (_DrilldownOption = class DrilldownOption extends Component {
|
|
40
|
+
render() {
|
|
41
|
+
// this component is only used for prop validation. Drilldown.Option children
|
|
42
|
+
// are parsed in Drilldown and rendered as Options.Item components
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}, _DrilldownOption.displayName = "DrilldownOption", _DrilldownOption.componentId = 'Drilldown.Option', _DrilldownOption.allowedProps = allowedProps, _DrilldownOption.defaultProps = {
|
|
46
|
+
disabled: false,
|
|
47
|
+
beforeLabelContentVAlign: 'start',
|
|
48
|
+
afterLabelContentVAlign: 'start',
|
|
49
|
+
as: 'li',
|
|
50
|
+
role: 'menuitem',
|
|
51
|
+
shouldCloseOnClick: 'auto'
|
|
52
|
+
}, _DrilldownOption)) || _class);
|
|
53
|
+
export default DrilldownOption;
|
|
54
|
+
export { DrilldownOption };
|
|
@@ -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
|
+
|
|
25
|
+
const allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef', 'shouldCloseOnClick'];
|
|
26
|
+
export { allowedProps };
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { Component } from 'react';
|
|
26
|
+
import { allowedProps } from "./props.js";
|
|
27
|
+
/**
|
|
28
|
+
---
|
|
29
|
+
parent: Drilldown
|
|
30
|
+
id: Drilldown.Page
|
|
31
|
+
---
|
|
32
|
+
@module DrilldownPage
|
|
33
|
+
**/
|
|
34
|
+
class DrilldownPage extends Component {
|
|
35
|
+
render() {
|
|
36
|
+
// this component is only used for prop validation.
|
|
37
|
+
// Drilldown.Page children are parsed in Drilldown.
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
DrilldownPage.displayName = "DrilldownPage";
|
|
42
|
+
DrilldownPage.componentId = 'Drilldown.Page';
|
|
43
|
+
DrilldownPage.allowedProps = allowedProps;
|
|
44
|
+
DrilldownPage.defaultProps = {
|
|
45
|
+
renderBackButtonLabel: 'Back',
|
|
46
|
+
disabled: false,
|
|
47
|
+
withoutHeaderSeparator: false
|
|
48
|
+
};
|
|
49
|
+
export default DrilldownPage;
|
|
50
|
+
export { DrilldownPage };
|
|
@@ -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
|
+
|
|
25
|
+
const allowedProps = ['id', 'children', 'renderTitle', 'renderActionLabel', 'renderBackButtonLabel', 'onHeaderActionClicked', 'onBackButtonClicked', 'withoutHeaderSeparator', 'disabled'];
|
|
26
|
+
export { allowedProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var _dec, _class, _DrilldownSeparator;
|
|
2
|
+
/*
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2015 - present Instructure, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { Component } from 'react';
|
|
27
|
+
import { withStyle } from '@instructure/emotion';
|
|
28
|
+
import { allowedProps } from "./props.js";
|
|
29
|
+
/**
|
|
30
|
+
---
|
|
31
|
+
parent: Drilldown
|
|
32
|
+
id: Drilldown.Separator
|
|
33
|
+
themeId: OptionsSeparator
|
|
34
|
+
---
|
|
35
|
+
@module DrilldownSeparator
|
|
36
|
+
**/
|
|
37
|
+
// needed for listing the available theme variables on docs page,
|
|
38
|
+
// we pass the themeOverrides to Options.Separator
|
|
39
|
+
let DrilldownSeparator = (_dec = withStyle(null), _dec(_class = (_DrilldownSeparator = class DrilldownSeparator extends Component {
|
|
40
|
+
render() {
|
|
41
|
+
// this component is only used for prop validation. Drilldown.Separator children
|
|
42
|
+
// are parsed in Drilldown and rendered as Options.Separator components
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}, _DrilldownSeparator.displayName = "DrilldownSeparator", _DrilldownSeparator.componentId = 'Drilldown.Separator', _DrilldownSeparator.allowedProps = allowedProps, _DrilldownSeparator.defaultProps = {}, _DrilldownSeparator)) || _class);
|
|
46
|
+
export default DrilldownSeparator;
|
|
47
|
+
export { DrilldownSeparator };
|
|
@@ -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
|
+
|
|
25
|
+
const allowedProps = ['id', 'as'];
|
|
26
|
+
export { allowedProps };
|