@instructure/ui-drilldown 11.7.2-snapshot-18 → 11.7.2-snapshot-20

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 (64) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/es/Drilldown/v2/DrilldownGroup/index.js +55 -0
  3. package/es/Drilldown/v2/DrilldownGroup/props.js +26 -0
  4. package/es/Drilldown/v2/DrilldownOption/index.js +54 -0
  5. package/es/Drilldown/v2/DrilldownOption/props.js +26 -0
  6. package/es/Drilldown/v2/DrilldownPage/index.js +50 -0
  7. package/es/Drilldown/v2/DrilldownPage/props.js +26 -0
  8. package/es/Drilldown/v2/DrilldownSeparator/index.js +47 -0
  9. package/es/Drilldown/v2/DrilldownSeparator/props.js +26 -0
  10. package/es/Drilldown/v2/index.js +1358 -0
  11. package/es/Drilldown/v2/props.js +28 -0
  12. package/es/Drilldown/v2/styles.js +84 -0
  13. package/es/exports/b.js +28 -0
  14. package/lib/Drilldown/v2/DrilldownGroup/index.js +58 -0
  15. package/lib/Drilldown/v2/DrilldownGroup/props.js +31 -0
  16. package/lib/Drilldown/v2/DrilldownOption/index.js +58 -0
  17. package/lib/Drilldown/v2/DrilldownOption/props.js +31 -0
  18. package/lib/Drilldown/v2/DrilldownPage/index.js +56 -0
  19. package/lib/Drilldown/v2/DrilldownPage/props.js +31 -0
  20. package/lib/Drilldown/v2/DrilldownSeparator/index.js +51 -0
  21. package/lib/Drilldown/v2/DrilldownSeparator/props.js +31 -0
  22. package/lib/Drilldown/v2/index.js +1369 -0
  23. package/lib/Drilldown/v2/props.js +33 -0
  24. package/lib/Drilldown/v2/styles.js +90 -0
  25. package/lib/exports/b.js +40 -0
  26. package/package.json +28 -28
  27. package/src/Drilldown/v2/DrilldownGroup/index.tsx +64 -0
  28. package/src/Drilldown/v2/DrilldownGroup/props.ts +134 -0
  29. package/src/Drilldown/v2/DrilldownOption/index.tsx +65 -0
  30. package/src/Drilldown/v2/DrilldownOption/props.ts +211 -0
  31. package/src/Drilldown/v2/DrilldownPage/index.tsx +55 -0
  32. package/src/Drilldown/v2/DrilldownPage/props.ts +102 -0
  33. package/src/Drilldown/v2/DrilldownSeparator/index.tsx +57 -0
  34. package/src/Drilldown/v2/DrilldownSeparator/props.ts +56 -0
  35. package/src/Drilldown/v2/README.md +1445 -0
  36. package/src/Drilldown/v2/index.tsx +1681 -0
  37. package/src/Drilldown/v2/props.ts +361 -0
  38. package/src/Drilldown/v2/styles.ts +97 -0
  39. package/src/exports/b.ts +44 -0
  40. package/tsconfig.build.tsbuildinfo +1 -1
  41. package/types/Drilldown/v2/DrilldownGroup/index.d.ts +41 -0
  42. package/types/Drilldown/v2/DrilldownGroup/index.d.ts.map +1 -0
  43. package/types/Drilldown/v2/DrilldownGroup/props.d.ts +69 -0
  44. package/types/Drilldown/v2/DrilldownGroup/props.d.ts.map +1 -0
  45. package/types/Drilldown/v2/DrilldownOption/index.d.ts +69 -0
  46. package/types/Drilldown/v2/DrilldownOption/index.d.ts.map +1 -0
  47. package/types/Drilldown/v2/DrilldownOption/props.d.ts +125 -0
  48. package/types/Drilldown/v2/DrilldownOption/props.d.ts.map +1 -0
  49. package/types/Drilldown/v2/DrilldownPage/index.d.ts +32 -0
  50. package/types/Drilldown/v2/DrilldownPage/index.d.ts.map +1 -0
  51. package/types/Drilldown/v2/DrilldownPage/props.d.ts +51 -0
  52. package/types/Drilldown/v2/DrilldownPage/props.d.ts.map +1 -0
  53. package/types/Drilldown/v2/DrilldownSeparator/index.d.ts +22 -0
  54. package/types/Drilldown/v2/DrilldownSeparator/index.d.ts.map +1 -0
  55. package/types/Drilldown/v2/DrilldownSeparator/props.d.ts +17 -0
  56. package/types/Drilldown/v2/DrilldownSeparator/props.d.ts.map +1 -0
  57. package/types/Drilldown/v2/index.d.ts +212 -0
  58. package/types/Drilldown/v2/index.d.ts.map +1 -0
  59. package/types/Drilldown/v2/props.d.ts +210 -0
  60. package/types/Drilldown/v2/props.d.ts.map +1 -0
  61. package/types/Drilldown/v2/styles.d.ts +15 -0
  62. package/types/Drilldown/v2/styles.d.ts.map +1 -0
  63. package/types/exports/b.d.ts +11 -0
  64. package/types/exports/b.d.ts.map +1 -0
@@ -0,0 +1,28 @@
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 = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth',
26
+ // Popover version props
27
+ 'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'positionContainerDisplay', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
28
+ export { allowedProps };
@@ -0,0 +1,84 @@
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
+ /**
26
+ * ---
27
+ * private: true
28
+ * ---
29
+ * Generates the style object from the theme and provided additional information
30
+ * @param {Object} componentTheme The theme variable object.
31
+ * @param {Object} props the props of the component, the style is applied to
32
+ * @param {Object} state the state of the component, the style is applied to
33
+ * @return {Object} The final style object, which will be used in the component
34
+ */
35
+ const generateStyle = (componentTheme, _props, state) => {
36
+ const hasHighlightedOption = state.hasHighlightedOption;
37
+ return {
38
+ drilldown: {
39
+ label: 'drilldown',
40
+ overflow: 'hidden',
41
+ // needed for focus ring!
42
+ borderColor: componentTheme.borderColor,
43
+ borderRadius: componentTheme.borderRadius,
44
+ ...(hasHighlightedOption && {
45
+ '&:focus::before': {
46
+ display: 'none'
47
+ }
48
+ })
49
+ },
50
+ container: {
51
+ label: 'drilldown__container'
52
+ },
53
+ headerBack: {
54
+ label: 'drilldown__headerBack',
55
+ minHeight: '1.25em'
56
+ },
57
+ headerTitle: {
58
+ label: 'drilldown__headerTitle',
59
+ fontWeight: componentTheme.headerTitleFontWeight
60
+ },
61
+ optionContainer: {
62
+ label: 'drilldown__optionContainer',
63
+ alignItems: 'center',
64
+ display: 'flex',
65
+ height: '100%'
66
+ },
67
+ optionLabelInfo: {
68
+ label: 'drilldown__optionLabelInfo',
69
+ display: 'flex',
70
+ flexShrink: 0,
71
+ height: '100%',
72
+ alignItems: 'center',
73
+ paddingInlineStart: componentTheme.labelInfoPadding,
74
+ color: componentTheme.labelInfoColor
75
+ },
76
+ optionContent: {
77
+ label: 'drilldown__optionContent',
78
+ flexGrow: 1
79
+ },
80
+ // we use it in the index file
81
+ headerActionColor: componentTheme.headerActionColor
82
+ };
83
+ };
84
+ export default generateStyle;
@@ -0,0 +1,28 @@
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
+ export { Drilldown } from "../Drilldown/v2/index.js";
25
+ export { DrilldownGroup } from "../Drilldown/v2/DrilldownGroup/index.js";
26
+ export { DrilldownOption } from "../Drilldown/v2/DrilldownOption/index.js";
27
+ export { DrilldownPage } from "../Drilldown/v2/DrilldownPage/index.js";
28
+ export { DrilldownSeparator } from "../Drilldown/v2/DrilldownSeparator/index.js";
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.DrilldownGroup = void 0;
7
+ var _react = require("react");
8
+ var _emotion = require("@instructure/emotion");
9
+ var _props = require("./props");
10
+ var _uiUtils = require("@instructure/ui-utils");
11
+ var _dec, _class, _DrilldownGroup;
12
+ /*
13
+ * The MIT License (MIT)
14
+ *
15
+ * Copyright (c) 2015 - present Instructure, Inc.
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ * of this software and associated documentation files (the "Software"), to deal
19
+ * in the Software without restriction, including without limitation the rights
20
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ * copies of the Software, and to permit persons to whom the Software is
22
+ * furnished to do so, subject to the following conditions:
23
+ *
24
+ * The above copyright notice and this permission notice shall be included in all
25
+ * copies or substantial portions of the Software.
26
+ *
27
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ * SOFTWARE.
34
+ */
35
+ /**
36
+ ---
37
+ parent: Drilldown
38
+ id: Drilldown.Group
39
+ themeId: Options
40
+ ---
41
+ @module DrilldownGroup
42
+ **/
43
+ // needed for listing the available theme variables on docs page,
44
+ // we pass the themeOverrides to Options
45
+ let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.withStyle)(null), _dec(_class = (_DrilldownGroup = class DrilldownGroup extends _react.Component {
46
+ render() {
47
+ // this component is only used for prop validation.
48
+ // Drilldown.Group is parsed in Drilldown as an Options component.
49
+ return null;
50
+ }
51
+ }, _DrilldownGroup.displayName = "DrilldownGroup", _DrilldownGroup.componentId = 'Drilldown.Group', _DrilldownGroup.allowedProps = _props.allowedProps, _DrilldownGroup.defaultProps = {
52
+ disabled: false,
53
+ withoutSeparators: false,
54
+ // Firefox with NVDA does not read Drilldown.Group with role="group" correctly
55
+ // but setting role="menu" on all other platforms results in Drilldown.Group label not being read
56
+ role: !(0, _uiUtils.isMac)() && (0, _uiUtils.isFirefox)() ? 'menu' : 'group'
57
+ }, _DrilldownGroup)) || _class);
58
+ var _default = exports.default = DrilldownGroup;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedProps = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ const allowedProps = exports.allowedProps = ['id', 'children', 'renderGroupTitle', 'withoutSeparators', 'disabled', 'role', 'as', 'elementRef', 'selectableType', 'defaultSelected', 'selectedOptions', 'onSelect'];
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.DrilldownOption = void 0;
7
+ var _react = require("react");
8
+ var _emotion = require("@instructure/emotion");
9
+ var _props = require("./props");
10
+ var _dec, _class, _DrilldownOption;
11
+ /*
12
+ * The MIT License (MIT)
13
+ *
14
+ * Copyright (c) 2015 - present Instructure, Inc.
15
+ *
16
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ * of this software and associated documentation files (the "Software"), to deal
18
+ * in the Software without restriction, including without limitation the rights
19
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ * copies of the Software, and to permit persons to whom the Software is
21
+ * furnished to do so, subject to the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be included in all
24
+ * copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ * SOFTWARE.
33
+ */
34
+ /**
35
+ ---
36
+ parent: Drilldown
37
+ id: Drilldown.Option
38
+ themeId: OptionsItem
39
+ ---
40
+ @module DrilldownOption
41
+ **/
42
+ // needed for listing the available theme variables on docs page,
43
+ // we pass the themeOverrides to Options.Item
44
+ let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.withStyle)(null), _dec(_class = (_DrilldownOption = class DrilldownOption extends _react.Component {
45
+ render() {
46
+ // this component is only used for prop validation. Drilldown.Option children
47
+ // are parsed in Drilldown and rendered as Options.Item components
48
+ return null;
49
+ }
50
+ }, _DrilldownOption.displayName = "DrilldownOption", _DrilldownOption.componentId = 'Drilldown.Option', _DrilldownOption.allowedProps = _props.allowedProps, _DrilldownOption.defaultProps = {
51
+ disabled: false,
52
+ beforeLabelContentVAlign: 'start',
53
+ afterLabelContentVAlign: 'start',
54
+ as: 'li',
55
+ role: 'menuitem',
56
+ shouldCloseOnClick: 'auto'
57
+ }, _DrilldownOption)) || _class);
58
+ var _default = exports.default = DrilldownOption;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedProps = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ const allowedProps = exports.allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef', 'shouldCloseOnClick'];
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.DrilldownPage = void 0;
7
+ var _react = require("react");
8
+ var _props = require("./props");
9
+ /*
10
+ * The MIT License (MIT)
11
+ *
12
+ * Copyright (c) 2015 - present Instructure, Inc.
13
+ *
14
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ * of this software and associated documentation files (the "Software"), to deal
16
+ * in the Software without restriction, including without limitation the rights
17
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ * copies of the Software, and to permit persons to whom the Software is
19
+ * furnished to do so, subject to the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be included in all
22
+ * copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ * SOFTWARE.
31
+ */
32
+
33
+ /**
34
+ ---
35
+ parent: Drilldown
36
+ id: Drilldown.Page
37
+ ---
38
+ @module DrilldownPage
39
+ **/
40
+ class DrilldownPage extends _react.Component {
41
+ render() {
42
+ // this component is only used for prop validation.
43
+ // Drilldown.Page children are parsed in Drilldown.
44
+ return null;
45
+ }
46
+ }
47
+ exports.DrilldownPage = DrilldownPage;
48
+ DrilldownPage.displayName = "DrilldownPage";
49
+ DrilldownPage.componentId = 'Drilldown.Page';
50
+ DrilldownPage.allowedProps = _props.allowedProps;
51
+ DrilldownPage.defaultProps = {
52
+ renderBackButtonLabel: 'Back',
53
+ disabled: false,
54
+ withoutHeaderSeparator: false
55
+ };
56
+ var _default = exports.default = DrilldownPage;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedProps = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ const allowedProps = exports.allowedProps = ['id', 'children', 'renderTitle', 'renderActionLabel', 'renderBackButtonLabel', 'onHeaderActionClicked', 'onBackButtonClicked', 'withoutHeaderSeparator', 'disabled'];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.DrilldownSeparator = void 0;
7
+ var _react = require("react");
8
+ var _emotion = require("@instructure/emotion");
9
+ var _props = require("./props");
10
+ var _dec, _class, _DrilldownSeparator;
11
+ /*
12
+ * The MIT License (MIT)
13
+ *
14
+ * Copyright (c) 2015 - present Instructure, Inc.
15
+ *
16
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ * of this software and associated documentation files (the "Software"), to deal
18
+ * in the Software without restriction, including without limitation the rights
19
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ * copies of the Software, and to permit persons to whom the Software is
21
+ * furnished to do so, subject to the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be included in all
24
+ * copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ * SOFTWARE.
33
+ */
34
+ /**
35
+ ---
36
+ parent: Drilldown
37
+ id: Drilldown.Separator
38
+ themeId: OptionsSeparator
39
+ ---
40
+ @module DrilldownSeparator
41
+ **/
42
+ // needed for listing the available theme variables on docs page,
43
+ // we pass the themeOverrides to Options.Separator
44
+ let DrilldownSeparator = exports.DrilldownSeparator = (_dec = (0, _emotion.withStyle)(null), _dec(_class = (_DrilldownSeparator = class DrilldownSeparator extends _react.Component {
45
+ render() {
46
+ // this component is only used for prop validation. Drilldown.Separator children
47
+ // are parsed in Drilldown and rendered as Options.Separator components
48
+ return null;
49
+ }
50
+ }, _DrilldownSeparator.displayName = "DrilldownSeparator", _DrilldownSeparator.componentId = 'Drilldown.Separator', _DrilldownSeparator.allowedProps = _props.allowedProps, _DrilldownSeparator.defaultProps = {}, _DrilldownSeparator)) || _class);
51
+ var _default = exports.default = DrilldownSeparator;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedProps = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ const allowedProps = exports.allowedProps = ['id', 'as'];