@instructure/ui-drilldown 8.33.1 → 8.33.2-snapshot-5

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 (36) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/es/Drilldown/DrilldownGroup/index.js +0 -3
  3. package/es/Drilldown/DrilldownGroup/props.js +1 -0
  4. package/es/Drilldown/DrilldownLocator.js +13 -22
  5. package/es/Drilldown/DrilldownOption/index.js +0 -3
  6. package/es/Drilldown/DrilldownOption/props.js +1 -0
  7. package/es/Drilldown/DrilldownPage/index.js +0 -3
  8. package/es/Drilldown/DrilldownPage/props.js +1 -0
  9. package/es/Drilldown/DrilldownSeparator/index.js +0 -3
  10. package/es/Drilldown/DrilldownSeparator/props.js +1 -0
  11. package/es/Drilldown/__examples__/Drilldown.examples.js +9 -9
  12. package/es/Drilldown/index.js +199 -304
  13. package/es/Drilldown/locator.js +1 -0
  14. package/es/Drilldown/props.js +3 -1
  15. package/es/Drilldown/styles.js +1 -1
  16. package/es/Drilldown/theme.js +4 -4
  17. package/es/index.js +1 -0
  18. package/lib/Drilldown/DrilldownGroup/index.js +0 -7
  19. package/lib/Drilldown/DrilldownGroup/props.js +1 -6
  20. package/lib/Drilldown/DrilldownLocator.js +11 -25
  21. package/lib/Drilldown/DrilldownOption/index.js +0 -7
  22. package/lib/Drilldown/DrilldownOption/props.js +1 -3
  23. package/lib/Drilldown/DrilldownPage/index.js +0 -5
  24. package/lib/Drilldown/DrilldownPage/props.js +1 -7
  25. package/lib/Drilldown/DrilldownSeparator/index.js +0 -7
  26. package/lib/Drilldown/DrilldownSeparator/props.js +1 -3
  27. package/lib/Drilldown/__examples__/Drilldown.examples.js +8 -14
  28. package/lib/Drilldown/index.js +199 -326
  29. package/lib/Drilldown/locator.js +0 -2
  30. package/lib/Drilldown/props.js +3 -8
  31. package/lib/Drilldown/styles.js +1 -2
  32. package/lib/Drilldown/theme.js +4 -5
  33. package/lib/index.js +0 -1
  34. package/package.json +20 -20
  35. package/tsconfig.build.tsbuildinfo +1 -1
  36. package/types/Drilldown/DrilldownOption/index.d.ts +6 -6
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import { DrilldownLocator } from './DrilldownLocator';
25
26
  export { DrilldownLocator };
26
27
  export default DrilldownLocator;
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import PropTypes from 'prop-types';
25
26
  import { Children, controllable } from '@instructure/ui-prop-types';
26
27
  import { PositionPropTypes } from '@instructure/ui-position';
@@ -65,6 +66,7 @@ const propTypes = {
65
66
  offsetX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
66
67
  offsetY: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
67
68
  };
68
- const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', // Popover version props
69
+ const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth',
70
+ // Popover version props
69
71
  'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'positionContainerDisplay', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
70
72
  export { propTypes, allowedProps };
@@ -39,6 +39,7 @@ const generateStyle = (componentTheme, _props, state) => {
39
39
  label: 'drilldown',
40
40
  overflow: 'visible',
41
41
  // needed for focus ring!
42
+
42
43
  ...(hasHighlightedOption && {
43
44
  '&:focus::before': {
44
45
  display: 'none'
@@ -78,5 +79,4 @@ const generateStyle = (componentTheme, _props, state) => {
78
79
  headerActionColor: componentTheme.headerActionColor
79
80
  };
80
81
  };
81
-
82
82
  export default generateStyle;
@@ -29,15 +29,15 @@
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
31
  const colors = theme.colors,
32
- typography = theme.typography,
33
- spacing = theme.spacing;
32
+ typography = theme.typography,
33
+ spacing = theme.spacing;
34
34
  const componentVariables = {
35
35
  headerTitleFontWeight: typography.fontWeightBold,
36
36
  headerActionColor: colors.textLink,
37
37
  labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
38
38
  };
39
- return { ...componentVariables
39
+ return {
40
+ ...componentVariables
40
41
  };
41
42
  };
42
-
43
43
  export default generateComponentTheme;
package/es/index.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  export { Drilldown } from './Drilldown';
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.DrilldownGroup = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _emotion = require("@instructure/emotion");
11
-
12
9
  var _uiOptions = require("@instructure/ui-options");
13
-
14
10
  var _props = require("./props");
15
-
16
11
  var _dec, _class, _class2;
17
-
18
12
  /**
19
13
  ---
20
14
  parent: Drilldown
@@ -31,7 +25,6 @@ let DrilldownGroup = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsThe
31
25
  // Drilldown.Group is parsed in Drilldown as an Options component.
32
26
  return null;
33
27
  }
34
-
35
28
  }, _class2.displayName = "DrilldownGroup", _class2.componentId = 'Drilldown.Group', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
36
29
  disabled: false,
37
30
  withoutSeparators: false,
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _Children = require("@instructure/ui-prop-types/lib/Children.js");
13
-
14
10
  var _DrilldownOption = _interopRequireDefault(require("../DrilldownOption"));
15
-
16
11
  var _DrilldownSeparator = _interopRequireDefault(require("../DrilldownSeparator"));
17
-
18
12
  /*
19
13
  * The MIT License (MIT)
20
14
  *
@@ -38,6 +32,7 @@ var _DrilldownSeparator = _interopRequireDefault(require("../DrilldownSeparator"
38
32
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
33
  * SOFTWARE.
40
34
  */
35
+
41
36
  const propTypes = {
42
37
  id: _propTypes.default.string.isRequired,
43
38
  children: _Children.Children.oneOf([_DrilldownOption.default, _DrilldownSeparator.default]),
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DrilldownLocator = void 0;
7
-
8
7
  var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
9
-
10
8
  var _uiTestUtils = require("@instructure/ui-test-utils");
11
-
12
9
  var _OptionsItemLocator = require("@instructure/ui-options/lib/Options/Item/OptionsItemLocator");
13
-
14
10
  var _PopoverLocator = require("@instructure/ui-popover/lib/Popover/PopoverLocator");
15
-
16
11
  var _index = require("./index");
17
-
18
12
  /*
19
13
  * The MIT License (MIT)
20
14
  *
@@ -41,16 +35,17 @@ var _index = require("./index");
41
35
 
42
36
  /* eslint-disable no-restricted-imports */
43
37
  // @ts-expect-error bypass no type definition found error
38
+
44
39
  // @ts-expect-error bypass no type definition found error
45
40
 
46
41
  /* eslint-enable no-restricted-imports */
42
+
47
43
  const customMethods = {
48
44
  // return the wrapper Option.Items
49
45
  findAllOptions: async function () {
50
46
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
51
47
  args[_key] = arguments[_key];
52
48
  }
53
-
54
49
  return await (0, _uiTestUtils.findAll)('[class$=-optionItem__container]:not([role="presentation"])', ...args);
55
50
  },
56
51
  findAllOptionWrappers: async function () {
@@ -60,77 +55,66 @@ const customMethods = {
60
55
  for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
61
56
  args[_key2 - 2] = arguments[_key2];
62
57
  }
63
-
64
58
  return _OptionsItemLocator.OptionsItemLocator.find(`:has(#${optionId})`, ...args);
65
59
  },
66
60
  findSizableContainer: async function () {
67
61
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
68
62
  args[_key3] = arguments[_key3];
69
63
  }
70
-
71
64
  return await (0, _uiTestUtils.find)('[class$=-drilldown__container]', ...args);
72
65
  },
73
66
  findSelectableContainer: async function () {
74
67
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
75
68
  args[_key4] = arguments[_key4];
76
69
  }
77
-
78
70
  return await (0, _uiTestUtils.find)('[id^=Selectable_][id$=-list]', ...args);
79
71
  },
80
72
  findHeaderTitle: async function () {
81
73
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
82
74
  args[_key5] = arguments[_key5];
83
75
  }
84
-
85
76
  return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Title]', ...args);
86
77
  },
87
78
  findHeaderActionOption: async function () {
88
79
  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
89
80
  args[_key6] = arguments[_key6];
90
81
  }
91
-
92
82
  return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Action]', ...args);
93
83
  },
94
84
  findHeaderBackOption: async function () {
95
85
  for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
96
86
  args[_key7] = arguments[_key7];
97
87
  }
98
-
99
88
  return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Back]', ...args);
100
89
  },
101
90
  findHeaderSeparator: async function () {
102
91
  for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
103
92
  args[_key8] = arguments[_key8];
104
93
  }
105
-
106
94
  return await (0, _uiTestUtils.find)('[id^=DrilldownHeader-Separator]', ...args);
107
95
  },
108
96
  findAllSeparators: async function () {
109
97
  for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
110
98
  args[_key9] = arguments[_key9];
111
99
  }
112
-
113
100
  return await (0, _uiTestUtils.findAll)('[class$=-separator]', ...args);
114
101
  },
115
102
  findAllGroupLabels: async function () {
116
103
  for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
117
104
  args[_key10] = arguments[_key10];
118
105
  }
119
-
120
106
  return await (0, _uiTestUtils.findAll)('[class$=-options__label]', ...args);
121
107
  },
122
108
  findLabelInfo: async function () {
123
109
  for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
124
110
  args[_key11] = arguments[_key11];
125
111
  }
126
-
127
112
  return await (0, _uiTestUtils.find)('[class$=-drilldown__optionLabelInfo]', ...args);
128
113
  },
129
114
  findDescription: async function () {
130
115
  for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
131
116
  args[_key12] = arguments[_key12];
132
117
  }
133
-
134
118
  return await (0, _uiTestUtils.find)('[class$=__description]', ...args);
135
119
  },
136
120
  findPopoverRoot: function () {
@@ -141,17 +125,19 @@ const customMethods = {
141
125
  },
142
126
  findPopoverContent: function () {
143
127
  const _parseQueryArguments = (0, _uiTestUtils.parseQueryArguments)(...arguments),
144
- element = _parseQueryArguments.element,
145
- selector = _parseQueryArguments.selector,
146
- options = _parseQueryArguments.options;
147
-
148
- return _PopoverLocator.PopoverLocator.findContent(element, selector, { ...options,
149
- customMethods: { ...options.customMethods,
128
+ element = _parseQueryArguments.element,
129
+ selector = _parseQueryArguments.selector,
130
+ options = _parseQueryArguments.options;
131
+ return _PopoverLocator.PopoverLocator.findContent(element, selector, {
132
+ ...options,
133
+ customMethods: {
134
+ ...options.customMethods,
150
135
  ...customMethods
151
136
  }
152
137
  });
153
138
  }
154
- }; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
139
+ };
155
140
 
141
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
156
142
  const DrilldownLocator = (0, _locator.locator)(_index.Drilldown.selector, customMethods);
157
143
  exports.DrilldownLocator = DrilldownLocator;
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.DrilldownOption = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _emotion = require("@instructure/emotion");
11
-
12
9
  var _uiOptions = require("@instructure/ui-options");
13
-
14
10
  var _props = require("./props");
15
-
16
11
  var _dec, _class, _class2;
17
-
18
12
  /**
19
13
  ---
20
14
  parent: Drilldown
@@ -31,7 +25,6 @@ let DrilldownOption = (_dec = (0, _emotion.withStyle)(null, _uiOptions.optionsIt
31
25
  // are parsed in Drilldown and rendered as Options.Item components
32
26
  return null;
33
27
  }
34
-
35
28
  }, _class2.displayName = "DrilldownOption", _class2.componentId = 'Drilldown.Option', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
36
29
  disabled: false,
37
30
  beforeLabelContentVAlign: 'start',
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
32
+
35
33
  const propTypes = {
36
34
  id: _propTypes.default.string.isRequired,
37
35
  children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.DrilldownPage = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _props = require("./props");
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -49,9 +46,7 @@ class DrilldownPage extends _react.Component {
49
46
  // Drilldown.Page children are parsed in Drilldown.
50
47
  return null;
51
48
  }
52
-
53
49
  }
54
-
55
50
  exports.DrilldownPage = DrilldownPage;
56
51
  DrilldownPage.displayName = "DrilldownPage";
57
52
  DrilldownPage.componentId = 'Drilldown.Page';
@@ -1,22 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _Children = require("@instructure/ui-prop-types/lib/Children.js");
13
-
14
10
  var _DrilldownGroup = _interopRequireDefault(require("../DrilldownGroup"));
15
-
16
11
  var _DrilldownOption = _interopRequireDefault(require("../DrilldownOption"));
17
-
18
12
  var _DrilldownSeparator = _interopRequireDefault(require("../DrilldownSeparator"));
19
-
20
13
  /*
21
14
  * The MIT License (MIT)
22
15
  *
@@ -40,6 +33,7 @@ var _DrilldownSeparator = _interopRequireDefault(require("../DrilldownSeparator"
40
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
34
  * SOFTWARE.
42
35
  */
36
+
43
37
  const propTypes = {
44
38
  id: _propTypes.default.string.isRequired,
45
39
  children: _Children.Children.oneOf([_DrilldownOption.default, _DrilldownSeparator.default, _DrilldownGroup.default]),
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.DrilldownSeparator = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _emotion = require("@instructure/emotion");
11
-
12
9
  var _uiOptions = require("@instructure/ui-options");
13
-
14
10
  var _props = require("./props");
15
-
16
11
  var _dec, _class, _class2;
17
-
18
12
  /**
19
13
  ---
20
14
  parent: Drilldown
@@ -31,7 +25,6 @@ let DrilldownSeparator = (_dec = (0, _emotion.withStyle)(null, _uiOptions.option
31
25
  // are parsed in Drilldown and rendered as Options.Separator components
32
26
  return null;
33
27
  }
34
-
35
28
  }, _class2.displayName = "DrilldownSeparator", _class2.componentId = 'Drilldown.Separator', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {}, _class2)) || _class);
36
29
  exports.DrilldownSeparator = DrilldownSeparator;
37
30
  var _default = DrilldownSeparator;
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
32
+
35
33
  const propTypes = {
36
34
  id: _propTypes.default.string.isRequired,
37
35
  as: _propTypes.default.elementType
@@ -1,18 +1,13 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _index = require("../index");
13
-
14
10
  var _Drilldown$Page, _Drilldown$Page2, _Drilldown$Page3, _Drilldown$Page4, _Drilldown$Option, _Drilldown$Option2, _Drilldown$Option3, _Drilldown$Option4, _br, _br2, _br3, _Drilldown$Option5;
15
-
16
11
  const triggerButton = /*#__PURE__*/_react.default.createElement("button", {
17
12
  key: 1,
18
13
  style: {
@@ -21,7 +16,6 @@ const triggerButton = /*#__PURE__*/_react.default.createElement("button", {
21
16
  top: '45%'
22
17
  }
23
18
  }, "a drilldown trigger");
24
-
25
19
  var _default = {
26
20
  maxExamplesPerPage: 10,
27
21
  propValues: {
@@ -40,7 +34,8 @@ var _default = {
40
34
  groupDisabled: true,
41
35
  renderGroupTitle: 'groupTitle',
42
36
  contentVAlign: 'start'
43
- }, // overflowX tests
37
+ },
38
+ // overflowX tests
44
39
  {
45
40
  text: 'overflowX auto',
46
41
  defaultShow: true,
@@ -71,7 +66,8 @@ var _default = {
71
66
  groupDisabled: false,
72
67
  renderGroupTitle: void 0,
73
68
  contentVAlign: 'end'
74
- }, // overflowY tests
69
+ },
70
+ // overflowY tests
75
71
  {
76
72
  text: 'overflowY auto',
77
73
  defaultShow: true,
@@ -102,12 +98,14 @@ var _default = {
102
98
  groupDisabled: false,
103
99
  renderGroupTitle: void 0,
104
100
  contentVAlign: 'end'
105
- }, // tests for Drilldown.Page
101
+ },
102
+ // tests for Drilldown.Page
106
103
  {
107
104
  page: 'pageWithSubpages'
108
105
  }, {
109
106
  page: 'pageWithSubpages2'
110
- }, // Popover version
107
+ },
108
+ // Popover version
111
109
  {
112
110
  text: 'with trigger',
113
111
  trigger: triggerButton,
@@ -167,7 +165,6 @@ var _default = {
167
165
  positionContainerDisplay: 'block'
168
166
  }]
169
167
  },
170
-
171
168
  getExampleProps(props) {
172
169
  return {
173
170
  height: props.customProps.defaultShow || !props.customProps.trigger ? '57rem' : '5rem',
@@ -177,7 +174,6 @@ var _default = {
177
174
  position: 'relative'
178
175
  };
179
176
  },
180
-
181
177
  getComponentProps: props => {
182
178
  return {
183
179
  rootPageId: 'page0',
@@ -211,7 +207,6 @@ var _default = {
211
207
  }
212
208
  };
213
209
  exports.default = _default;
214
-
215
210
  function generateDrilldownChildren(props, variant) {
216
211
  if (variant == 'pageWithSubpages') {
217
212
  return [_Drilldown$Page || (_Drilldown$Page = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
@@ -258,7 +253,6 @@ function generateDrilldownChildren(props, variant) {
258
253
  id: "tmp"
259
254
  }, "subpage option")))];
260
255
  }
261
-
262
256
  return [/*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
263
257
  id: "page0",
264
258
  key: "page0"