@instructure/ui-drilldown 8.33.2-snapshot-0 → 8.33.2

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 +1 -5
  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
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "DrilldownLocator", {
10
10
  }
11
11
  });
12
12
  exports.default = void 0;
13
-
14
13
  var _DrilldownLocator = require("./DrilldownLocator");
15
-
16
14
  /*
17
15
  * The MIT License (MIT)
18
16
  *
@@ -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 _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
15
-
16
11
  var _PositionPropTypes = require("@instructure/ui-position/lib/PositionPropTypes.js");
17
-
18
12
  var _DrilldownPage = require("./DrilldownPage");
19
-
20
13
  /*
21
14
  * The MIT License (MIT)
22
15
  *
@@ -40,6 +33,7 @@ var _DrilldownPage = require("./DrilldownPage");
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
  rootPageId: _propTypes.default.string.isRequired,
45
39
  children: _Children.Children.oneOf([_DrilldownPage.DrilldownPage]),
@@ -81,6 +75,7 @@ const propTypes = {
81
75
  offsetY: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
82
76
  };
83
77
  exports.propTypes = propTypes;
84
- const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', // Popover version props
78
+ const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth',
79
+ // Popover version props
85
80
  'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'positionContainerDisplay', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
86
81
  exports.allowedProps = allowedProps;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -46,6 +45,7 @@ const generateStyle = (componentTheme, _props, state) => {
46
45
  label: 'drilldown',
47
46
  overflow: 'visible',
48
47
  // needed for focus ring!
48
+
49
49
  ...(hasHighlightedOption && {
50
50
  '&:focus::before': {
51
51
  display: 'none'
@@ -85,6 +85,5 @@ const generateStyle = (componentTheme, _props, state) => {
85
85
  headerActionColor: componentTheme.headerActionColor
86
86
  };
87
87
  };
88
-
89
88
  var _default = generateStyle;
90
89
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -36,16 +35,16 @@ exports.default = void 0;
36
35
  */
37
36
  const generateComponentTheme = theme => {
38
37
  const colors = theme.colors,
39
- typography = theme.typography,
40
- spacing = theme.spacing;
38
+ typography = theme.typography,
39
+ spacing = theme.spacing;
41
40
  const componentVariables = {
42
41
  headerTitleFontWeight: typography.fontWeightBold,
43
42
  headerActionColor: colors.textLink,
44
43
  labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
45
44
  };
46
- return { ...componentVariables
45
+ return {
46
+ ...componentVariables
47
47
  };
48
48
  };
49
-
50
49
  var _default = generateComponentTheme;
51
50
  exports.default = _default;
package/lib/index.js CHANGED
@@ -9,5 +9,4 @@ Object.defineProperty(exports, "Drilldown", {
9
9
  return _Drilldown.Drilldown;
10
10
  }
11
11
  });
12
-
13
12
  var _Drilldown = require("./Drilldown");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "8.33.2-snapshot-0",
3
+ "version": "8.33.2",
4
4
  "description": "A drilldown menu component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,28 +24,28 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/console": "8.33.2-snapshot-0",
28
- "@instructure/emotion": "8.33.2-snapshot-0",
29
- "@instructure/shared-types": "8.33.2-snapshot-0",
30
- "@instructure/ui-dom-utils": "8.33.2-snapshot-0",
31
- "@instructure/ui-icons": "8.33.2-snapshot-0",
32
- "@instructure/ui-options": "8.33.2-snapshot-0",
33
- "@instructure/ui-popover": "8.33.2-snapshot-0",
34
- "@instructure/ui-position": "8.33.2-snapshot-0",
35
- "@instructure/ui-prop-types": "8.33.2-snapshot-0",
36
- "@instructure/ui-react-utils": "8.33.2-snapshot-0",
37
- "@instructure/ui-selectable": "8.33.2-snapshot-0",
38
- "@instructure/ui-testable": "8.33.2-snapshot-0",
39
- "@instructure/ui-utils": "8.33.2-snapshot-0",
40
- "@instructure/ui-view": "8.33.2-snapshot-0",
27
+ "@instructure/console": "8.33.2",
28
+ "@instructure/emotion": "8.33.2",
29
+ "@instructure/shared-types": "8.33.2",
30
+ "@instructure/ui-dom-utils": "8.33.2",
31
+ "@instructure/ui-icons": "8.33.2",
32
+ "@instructure/ui-options": "8.33.2",
33
+ "@instructure/ui-popover": "8.33.2",
34
+ "@instructure/ui-position": "8.33.2",
35
+ "@instructure/ui-prop-types": "8.33.2",
36
+ "@instructure/ui-react-utils": "8.33.2",
37
+ "@instructure/ui-selectable": "8.33.2",
38
+ "@instructure/ui-testable": "8.33.2",
39
+ "@instructure/ui-utils": "8.33.2",
40
+ "@instructure/ui-view": "8.33.2",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-babel-preset": "8.33.2-snapshot-0",
45
- "@instructure/ui-color-utils": "8.33.2-snapshot-0",
46
- "@instructure/ui-test-locator": "8.33.2-snapshot-0",
47
- "@instructure/ui-test-utils": "8.33.2-snapshot-0",
48
- "@instructure/ui-themes": "8.33.2-snapshot-0"
44
+ "@instructure/ui-babel-preset": "8.33.2",
45
+ "@instructure/ui-color-utils": "8.33.2",
46
+ "@instructure/ui-test-locator": "8.33.2",
47
+ "@instructure/ui-test-utils": "8.33.2",
48
+ "@instructure/ui-themes": "8.33.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8 <=18"