@instructure/ui-drilldown 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/es/Drilldown/v1/DrilldownGroup/index.js +26 -53
  3. package/es/Drilldown/v1/DrilldownGroup/props.js +15 -26
  4. package/es/Drilldown/v1/DrilldownOption/index.js +29 -53
  5. package/es/Drilldown/v1/DrilldownOption/props.js +23 -26
  6. package/es/Drilldown/v1/DrilldownPage/index.js +20 -45
  7. package/es/Drilldown/v1/DrilldownPage/props.js +12 -26
  8. package/es/Drilldown/v1/DrilldownSeparator/index.js +22 -46
  9. package/es/Drilldown/v1/DrilldownSeparator/props.js +5 -26
  10. package/es/Drilldown/v1/index.js +986 -1329
  11. package/es/Drilldown/v1/props.js +41 -28
  12. package/es/Drilldown/v1/styles.js +46 -84
  13. package/es/Drilldown/v1/theme.js +13 -46
  14. package/es/Drilldown/v2/DrilldownGroup/index.js +26 -54
  15. package/es/Drilldown/v2/DrilldownGroup/props.js +15 -26
  16. package/es/Drilldown/v2/DrilldownOption/index.js +29 -54
  17. package/es/Drilldown/v2/DrilldownOption/props.js +23 -26
  18. package/es/Drilldown/v2/DrilldownPage/index.js +20 -45
  19. package/es/Drilldown/v2/DrilldownPage/props.js +12 -26
  20. package/es/Drilldown/v2/DrilldownSeparator/index.js +22 -47
  21. package/es/Drilldown/v2/DrilldownSeparator/props.js +5 -26
  22. package/es/Drilldown/v2/index.js +996 -1339
  23. package/es/Drilldown/v2/props.js +41 -28
  24. package/es/Drilldown/v2/styles.js +47 -85
  25. package/es/exports/a.js +1 -25
  26. package/es/exports/b.js +1 -25
  27. package/package.json +20 -26
  28. package/tsconfig.build.json +0 -1
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/lib/Drilldown/v1/DrilldownGroup/index.js +0 -62
  31. package/lib/Drilldown/v1/DrilldownGroup/props.js +0 -31
  32. package/lib/Drilldown/v1/DrilldownOption/index.js +0 -62
  33. package/lib/Drilldown/v1/DrilldownOption/props.js +0 -31
  34. package/lib/Drilldown/v1/DrilldownPage/index.js +0 -56
  35. package/lib/Drilldown/v1/DrilldownPage/props.js +0 -31
  36. package/lib/Drilldown/v1/DrilldownSeparator/index.js +0 -55
  37. package/lib/Drilldown/v1/DrilldownSeparator/props.js +0 -31
  38. package/lib/Drilldown/v1/index.js +0 -1411
  39. package/lib/Drilldown/v1/props.js +0 -33
  40. package/lib/Drilldown/v1/styles.js +0 -91
  41. package/lib/Drilldown/v1/theme.js +0 -53
  42. package/lib/Drilldown/v2/DrilldownGroup/index.js +0 -62
  43. package/lib/Drilldown/v2/DrilldownGroup/props.js +0 -31
  44. package/lib/Drilldown/v2/DrilldownOption/index.js +0 -62
  45. package/lib/Drilldown/v2/DrilldownOption/props.js +0 -31
  46. package/lib/Drilldown/v2/DrilldownPage/index.js +0 -56
  47. package/lib/Drilldown/v2/DrilldownPage/props.js +0 -31
  48. package/lib/Drilldown/v2/DrilldownSeparator/index.js +0 -55
  49. package/lib/Drilldown/v2/DrilldownSeparator/props.js +0 -31
  50. package/lib/Drilldown/v2/index.js +0 -1417
  51. package/lib/Drilldown/v2/props.js +0 -33
  52. package/lib/Drilldown/v2/styles.js +0 -92
  53. package/lib/exports/a.js +0 -40
  54. package/lib/exports/b.js +0 -40
  55. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +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.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-drilldown
@@ -1,59 +1,32 @@
1
- var _dec, _class;
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
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
26
2
  import { Component } from 'react';
27
3
  import { withStyle } from '@instructure/emotion';
28
4
  import { optionsThemeGenerator } from '@instructure/ui-options';
29
5
  import { allowedProps } from './props.js';
30
6
  import { isMac, isFirefox } from '@instructure/ui-utils';
31
-
32
- /**
33
- ---
34
- parent: Drilldown
35
- id: Drilldown.Group
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, optionsThemeGenerator), _dec(_class = class DrilldownGroup extends Component {
42
- static displayName = 'DrilldownGroup';
43
- static componentId = 'Drilldown.Group';
44
- static allowedProps = allowedProps;
45
- static defaultProps = {
46
- disabled: false,
47
- withoutSeparators: false,
48
- // Firefox with NVDA does not read Drilldown.Group with role="group" correctly
49
- // but setting role="menu" on all other platforms results in Drilldown.Group label not being read
50
- role: !isMac() && isFirefox() ? 'menu' : 'group'
51
- };
52
- render() {
53
- // this component is only used for prop validation.
54
- // Drilldown.Group is parsed in Drilldown as an Options component.
55
- return null;
56
- }
57
- }) || _class);
7
+ class DrilldownGroup extends Component {
8
+ static{
9
+ this.displayName = 'DrilldownGroup';
10
+ }
11
+ static{
12
+ this.componentId = 'Drilldown.Group';
13
+ }
14
+ static{
15
+ this.allowedProps = allowedProps;
16
+ }
17
+ static{
18
+ this.defaultProps = {
19
+ disabled: false,
20
+ withoutSeparators: false,
21
+ role: !isMac() && isFirefox() ? 'menu' : 'group'
22
+ };
23
+ }
24
+ render() {
25
+ return null;
26
+ }
27
+ }
28
+ DrilldownGroup = _ts_decorate([
29
+ withStyle(null, optionsThemeGenerator)
30
+ ], DrilldownGroup);
58
31
  export default DrilldownGroup;
59
- export { DrilldownGroup };
32
+ export { DrilldownGroup };
@@ -1,26 +1,15 @@
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 };
1
+ const allowedProps = [
2
+ 'id',
3
+ 'children',
4
+ 'renderGroupTitle',
5
+ 'withoutSeparators',
6
+ 'disabled',
7
+ 'role',
8
+ 'as',
9
+ 'elementRef',
10
+ 'selectableType',
11
+ 'defaultSelected',
12
+ 'selectedOptions',
13
+ 'onSelect'
14
+ ];
15
+ export { allowedProps };
@@ -1,58 +1,34 @@
1
- var _dec, _class;
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
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
26
2
  import { Component } from 'react';
27
3
  import { withStyle } from '@instructure/emotion';
28
4
  import { optionsItemThemeGenerator } from '@instructure/ui-options';
29
5
  import { allowedProps } from './props.js';
30
- /**
31
- ---
32
- parent: Drilldown
33
- id: Drilldown.Option
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, optionsItemThemeGenerator), _dec(_class = class DrilldownOption extends Component {
40
- static displayName = 'DrilldownOption';
41
- static componentId = 'Drilldown.Option';
42
- static allowedProps = allowedProps;
43
- static defaultProps = {
44
- disabled: false,
45
- beforeLabelContentVAlign: 'start',
46
- afterLabelContentVAlign: 'start',
47
- as: 'li',
48
- role: 'menuitem',
49
- shouldCloseOnClick: 'auto'
50
- };
51
- render() {
52
- // this component is only used for prop validation. Drilldown.Option children
53
- // are parsed in Drilldown and rendered as Options.Item components
54
- return null;
55
- }
56
- }) || _class);
6
+ class DrilldownOption extends Component {
7
+ static{
8
+ this.displayName = 'DrilldownOption';
9
+ }
10
+ static{
11
+ this.componentId = 'Drilldown.Option';
12
+ }
13
+ static{
14
+ this.allowedProps = allowedProps;
15
+ }
16
+ static{
17
+ this.defaultProps = {
18
+ disabled: false,
19
+ beforeLabelContentVAlign: 'start',
20
+ afterLabelContentVAlign: 'start',
21
+ as: 'li',
22
+ role: 'menuitem',
23
+ shouldCloseOnClick: 'auto'
24
+ };
25
+ }
26
+ render() {
27
+ return null;
28
+ }
29
+ }
30
+ DrilldownOption = _ts_decorate([
31
+ withStyle(null, optionsItemThemeGenerator)
32
+ ], DrilldownOption);
57
33
  export default DrilldownOption;
58
- export { DrilldownOption };
34
+ export { DrilldownOption };
@@ -1,26 +1,23 @@
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 };
1
+ const allowedProps = [
2
+ 'id',
3
+ 'children',
4
+ 'subPageId',
5
+ 'disabled',
6
+ 'selected',
7
+ 'value',
8
+ 'href',
9
+ 'as',
10
+ 'role',
11
+ 'renderLabelInfo',
12
+ 'renderBeforeLabel',
13
+ 'renderAfterLabel',
14
+ 'beforeLabelContentVAlign',
15
+ 'afterLabelContentVAlign',
16
+ 'description',
17
+ 'descriptionRole',
18
+ 'onOptionClick',
19
+ 'defaultSelected',
20
+ 'elementRef',
21
+ 'shouldCloseOnClick'
22
+ ];
23
+ export { allowedProps };
@@ -1,50 +1,25 @@
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
1
  import { Component } from 'react';
26
2
  import { allowedProps } from './props.js';
27
- /**
28
- ---
29
- parent: Drilldown
30
- id: Drilldown.Page
31
- ---
32
- @module DrilldownPage
33
- **/
34
3
  class DrilldownPage extends Component {
35
- static displayName = 'DrilldownPage';
36
- static componentId = 'Drilldown.Page';
37
- static allowedProps = allowedProps;
38
- static defaultProps = {
39
- renderBackButtonLabel: 'Back',
40
- disabled: false,
41
- withoutHeaderSeparator: false
42
- };
43
- render() {
44
- // this component is only used for prop validation.
45
- // Drilldown.Page children are parsed in Drilldown.
46
- return null;
47
- }
4
+ static{
5
+ this.displayName = 'DrilldownPage';
6
+ }
7
+ static{
8
+ this.componentId = 'Drilldown.Page';
9
+ }
10
+ static{
11
+ this.allowedProps = allowedProps;
12
+ }
13
+ static{
14
+ this.defaultProps = {
15
+ renderBackButtonLabel: 'Back',
16
+ disabled: false,
17
+ withoutHeaderSeparator: false
18
+ };
19
+ }
20
+ render() {
21
+ return null;
22
+ }
48
23
  }
49
24
  export default DrilldownPage;
50
- export { DrilldownPage };
25
+ export { DrilldownPage };
@@ -1,26 +1,12 @@
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 };
1
+ const allowedProps = [
2
+ 'id',
3
+ 'children',
4
+ 'renderTitle',
5
+ 'renderActionLabel',
6
+ 'renderBackButtonLabel',
7
+ 'onHeaderActionClicked',
8
+ 'onBackButtonClicked',
9
+ 'withoutHeaderSeparator',
10
+ 'disabled'
11
+ ];
12
+ export { allowedProps };
@@ -1,51 +1,27 @@
1
- var _dec, _class;
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
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
26
2
  import { Component } from 'react';
27
3
  import { withStyle } from '@instructure/emotion';
28
4
  import { optionsSeparatorThemeGenerator } from '@instructure/ui-options';
29
5
  import { allowedProps } from './props.js';
30
- /**
31
- ---
32
- parent: Drilldown
33
- id: Drilldown.Separator
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, optionsSeparatorThemeGenerator), _dec(_class = class DrilldownSeparator extends Component {
40
- static displayName = 'DrilldownSeparator';
41
- static componentId = 'Drilldown.Separator';
42
- static allowedProps = allowedProps;
43
- static defaultProps = {};
44
- render() {
45
- // this component is only used for prop validation. Drilldown.Separator children
46
- // are parsed in Drilldown and rendered as Options.Separator components
47
- return null;
48
- }
49
- }) || _class);
6
+ class DrilldownSeparator extends Component {
7
+ static{
8
+ this.displayName = 'DrilldownSeparator';
9
+ }
10
+ static{
11
+ this.componentId = 'Drilldown.Separator';
12
+ }
13
+ static{
14
+ this.allowedProps = allowedProps;
15
+ }
16
+ static{
17
+ this.defaultProps = {};
18
+ }
19
+ render() {
20
+ return null;
21
+ }
22
+ }
23
+ DrilldownSeparator = _ts_decorate([
24
+ withStyle(null, optionsSeparatorThemeGenerator)
25
+ ], DrilldownSeparator);
50
26
  export default DrilldownSeparator;
51
- export { DrilldownSeparator };
27
+ export { DrilldownSeparator };
@@ -1,26 +1,5 @@
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 };
1
+ const allowedProps = [
2
+ 'id',
3
+ 'as'
4
+ ];
5
+ export { allowedProps };