@instructure/ui-navigation 8.46.2-snapshot-5 → 8.46.2-snapshot-7

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 CHANGED
@@ -3,7 +3,7 @@
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
- ## [8.46.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-5) (2023-10-19)
6
+ ## [8.46.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-7) (2023-10-20)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-navigation
9
9
 
@@ -32,12 +32,11 @@ var _AppNavItemLocator = require("./Item/AppNavItemLocator");
32
32
  */
33
33
 
34
34
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
35
- const AppNavLocator = (0, _locator.locator)(_index.AppNav.selector, {
35
+ const AppNavLocator = exports.AppNavLocator = (0, _locator.locator)(_index.AppNav.selector, {
36
36
  findAllItems: (...args) => {
37
37
  return _AppNavItemLocator.AppNavItemLocator.findAll(...args);
38
38
  },
39
39
  findItem: (...args) => {
40
40
  return _AppNavItemLocator.AppNavItemLocator.find(...args);
41
41
  }
42
- });
43
- exports.AppNavLocator = AppNavLocator;
42
+ });
@@ -31,5 +31,4 @@ var _index = require("./index");
31
31
  */
32
32
 
33
33
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
34
- const AppNavItemLocator = (0, _locator.locator)(_index.Item.selector);
35
- exports.AppNavItemLocator = AppNavItemLocator;
34
+ const AppNavItemLocator = exports.AppNavItemLocator = (0, _locator.locator)(_index.Item.selector);
@@ -52,7 +52,7 @@ id: AppNav.Item
52
52
  @tsProps
53
53
  @module Item
54
54
  **/
55
- let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Item extends _react.Component {
55
+ let Item = exports.Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Item extends _react.Component {
56
56
  constructor(...args) {
57
57
  super(...args);
58
58
  this.ref = null;
@@ -120,6 +120,4 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
120
120
  cursor: 'pointer',
121
121
  isDisabled: false
122
122
  }, _class2)) || _class) || _class);
123
- exports.Item = Item;
124
- var _default = Item;
125
- exports.default = _default;
123
+ var _default = exports.default = Item;
@@ -34,5 +34,4 @@ var _AppNavItemLocator = require("./AppNavItemLocator");
34
34
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
35
  * SOFTWARE.
36
36
  */
37
- var _default = _AppNavItemLocator.AppNavItemLocator;
38
- exports.default = _default;
37
+ var _default = exports.default = _AppNavItemLocator.AppNavItemLocator;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string, _propTypes.default.func]).isRequired,
35
35
  renderAfter: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
36
36
  renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
@@ -42,6 +42,4 @@ const propTypes = {
42
42
  cursor: _propTypes.default.string,
43
43
  isDisabled: _propTypes.default.bool
44
44
  };
45
- exports.propTypes = propTypes;
46
- const allowedProps = ['renderLabel', 'renderAfter', 'renderIcon', 'href', 'onClick', 'isSelected', 'elementRef', 'as', 'cursor', 'isDisabled'];
47
- exports.allowedProps = allowedProps;
45
+ const allowedProps = exports.allowedProps = ['renderLabel', 'renderAfter', 'renderIcon', 'href', 'onClick', 'isSelected', 'elementRef', 'as', 'cursor', 'isDisabled'];
@@ -88,5 +88,4 @@ const generateStyle = (componentTheme, props) => {
88
88
  }
89
89
  };
90
90
  };
91
- var _default = generateStyle;
92
- exports.default = _default;
91
+ var _default = exports.default = generateStyle;
@@ -51,5 +51,4 @@ const generateComponentTheme = theme => {
51
51
  ...componentVariables
52
52
  };
53
53
  };
54
- var _default = generateComponentTheme;
55
- exports.default = _default;
54
+ var _default = exports.default = generateComponentTheme;
@@ -49,7 +49,7 @@ category: components
49
49
  ---
50
50
  @tsProps
51
51
  **/
52
- let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class AppNav extends _react.Component {
52
+ let AppNav = exports.AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class AppNav extends _react.Component {
53
53
  constructor(...args) {
54
54
  super(...args);
55
55
  this.state = {
@@ -120,6 +120,4 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
120
120
  renderTruncateLabel: () => 'More',
121
121
  visibleItemsCount: 0
122
122
  }, _class2.Item = _Item.Item, _class2)) || _class) || _class);
123
- exports.AppNav = AppNav;
124
- var _default = AppNav;
125
- exports.default = _default;
123
+ var _default = exports.default = AppNav;
@@ -34,5 +34,4 @@ var _AppNavLocator = require("./AppNavLocator");
34
34
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
35
  * SOFTWARE.
36
36
  */
37
- var _default = _AppNavLocator.AppNavLocator;
38
- exports.default = _default;
37
+ var _default = exports.default = _AppNavLocator.AppNavLocator;
@@ -33,7 +33,7 @@ var _Item = require("./Item");
33
33
  * SOFTWARE.
34
34
  */
35
35
 
36
- const propTypes = {
36
+ const propTypes = exports.propTypes = {
37
37
  screenReaderLabel: _propTypes.default.string.isRequired,
38
38
  children: _Children.Children.oneOf([_Item.Item]),
39
39
  debounce: _propTypes.default.number,
@@ -45,6 +45,4 @@ const propTypes = {
45
45
  onUpdate: _propTypes.default.func,
46
46
  visibleItemsCount: _propTypes.default.number
47
47
  };
48
- exports.propTypes = propTypes;
49
- const allowedProps = ['screenReaderLabel', 'children', 'debounce', 'renderBeforeItems', 'renderAfterItems', 'margin', 'elementRef', 'renderTruncateLabel', 'onUpdate', 'visibleItemsCount'];
50
- exports.allowedProps = allowedProps;
48
+ const allowedProps = exports.allowedProps = ['screenReaderLabel', 'children', 'debounce', 'renderBeforeItems', 'renderAfterItems', 'margin', 'elementRef', 'renderTruncateLabel', 'onUpdate', 'visibleItemsCount'];
@@ -61,5 +61,4 @@ const generateStyle = componentTheme => {
61
61
  menuTriggerWidth: componentTheme.menuTriggerWidth.toString()
62
62
  };
63
63
  };
64
- var _default = generateStyle;
65
- exports.default = _default;
64
+ var _default = exports.default = generateStyle;
@@ -52,5 +52,4 @@ const generateComponentTheme = theme => {
52
52
  ...componentVariables
53
53
  };
54
54
  };
55
- var _default = generateComponentTheme;
56
- exports.default = _default;
55
+ var _default = exports.default = generateComponentTheme;
@@ -35,7 +35,6 @@ var _index = require("./index");
35
35
  // eslint-disable-next-line no-restricted-imports
36
36
 
37
37
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
38
- const NavigationItemLocator = (0, _locator.locator)(_index.NavigationItem.selector, {
38
+ const NavigationItemLocator = exports.NavigationItemLocator = (0, _locator.locator)(_index.NavigationItem.selector, {
39
39
  findTooltipContent: (...args) => _TooltipLocator.TooltipLocator.findContent(...args)
40
- });
41
- exports.NavigationItemLocator = NavigationItemLocator;
40
+ });
@@ -47,7 +47,7 @@ id: Navigation.Item
47
47
  ---
48
48
  @tsProps
49
49
  **/
50
- let NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class NavigationItem extends _react.Component {
50
+ let NavigationItem = exports.NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class NavigationItem extends _react.Component {
51
51
  constructor(...args) {
52
52
  super(...args);
53
53
  this.ref = null;
@@ -110,6 +110,4 @@ let NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
110
110
  selected: false,
111
111
  minimized: false
112
112
  }, _class2)) || _class) || _class);
113
- exports.NavigationItem = NavigationItem;
114
- var _default = NavigationItem;
115
- exports.default = _default;
113
+ var _default = exports.default = NavigationItem;
@@ -34,5 +34,4 @@ var _NavigationItemLocator = require("./NavigationItemLocator");
34
34
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
35
  * SOFTWARE.
36
36
  */
37
- var _default = _NavigationItemLocator.NavigationItemLocator;
38
- exports.default = _default;
37
+ var _default = exports.default = _NavigationItemLocator.NavigationItemLocator;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  elementRef: _propTypes.default.func,
35
35
  icon: _propTypes.default.node.isRequired,
36
36
  label: _propTypes.default.node.isRequired,
@@ -40,6 +40,4 @@ const propTypes = {
40
40
  selected: _propTypes.default.bool,
41
41
  minimized: _propTypes.default.bool
42
42
  };
43
- exports.propTypes = propTypes;
44
- const allowedProps = ['elementRef', 'icon', 'label', 'as', 'href', 'onClick', 'selected', 'minimized'];
45
- exports.allowedProps = allowedProps;
43
+ const allowedProps = exports.allowedProps = ['elementRef', 'icon', 'label', 'as', 'href', 'onClick', 'selected', 'minimized'];
@@ -96,5 +96,4 @@ const generateStyle = (componentTheme, props) => {
96
96
  }
97
97
  };
98
98
  };
99
- var _default = generateStyle;
100
- exports.default = _default;
99
+ var _default = exports.default = generateStyle;
@@ -76,5 +76,4 @@ const generateComponentTheme = theme => {
76
76
  ...themeSpecificStyle[themeName]
77
77
  };
78
78
  };
79
- var _default = generateComponentTheme;
80
- exports.default = _default;
79
+ var _default = exports.default = generateComponentTheme;
@@ -38,12 +38,11 @@ var _NavigationItemLocator = require("./NavigationItem/NavigationItemLocator");
38
38
  */
39
39
 
40
40
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
41
- const NavigationLocator = (0, _locator.locator)(_index.Navigation.selector, {
41
+ const NavigationLocator = exports.NavigationLocator = (0, _locator.locator)(_index.Navigation.selector, {
42
42
  findAllItems: (...args) => {
43
43
  return _NavigationItemLocator.NavigationItemLocator.findAll(...args);
44
44
  },
45
45
  findItem: (...args) => {
46
46
  return _NavigationItemLocator.NavigationItemLocator.find(...args);
47
47
  }
48
- });
49
- exports.NavigationLocator = NavigationLocator;
48
+ });
@@ -62,7 +62,7 @@ category: components/deprecated
62
62
  ---
63
63
  @tsProps
64
64
  **/
65
- let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec3 = (0, _deprecated.deprecated)('9.0.0', null, 'This component is deprecated and will be removed in a later version. Use <SideNavBar /> instead.'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Navigation extends _react.Component {
65
+ let Navigation = exports.Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec3 = (0, _deprecated.deprecated)('9.0.0', null, 'This component is deprecated and will be removed in a later version. Use <SideNavBar /> instead.'), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Navigation extends _react.Component {
66
66
  constructor(props) {
67
67
  super(props);
68
68
  this.ref = null;
@@ -143,6 +143,4 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
143
143
  // TODO we should investigate later if it used or not
144
144
  onClick: function (_e) {}
145
145
  }, _class2.Item = _NavigationItem.NavigationItem, _class2)) || _class) || _class) || _class);
146
- exports.Navigation = Navigation;
147
- var _default = Navigation;
148
- exports.default = _default;
146
+ var _default = exports.default = Navigation;
@@ -40,5 +40,4 @@ var _NavigationLocator = require("./NavigationLocator");
40
40
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
41
  * SOFTWARE.
42
42
  */
43
- var _default = _NavigationLocator.NavigationLocator;
44
- exports.default = _default;
43
+ var _default = exports.default = _NavigationLocator.NavigationLocator;
@@ -33,7 +33,7 @@ var _NavigationItem = require("./NavigationItem");
33
33
  * SOFTWARE.
34
34
  */
35
35
 
36
- const propTypes = {
36
+ const propTypes = exports.propTypes = {
37
37
  children: _Children.Children.oneOf([_NavigationItem.NavigationItem]),
38
38
  minimized: (0, _controllable.controllable)(_propTypes.default.bool, 'onMinimized', 'defaultMinimized'),
39
39
  defaultMinimized: _propTypes.default.bool,
@@ -46,6 +46,4 @@ const propTypes = {
46
46
  href: _propTypes.default.string,
47
47
  onClick: _propTypes.default.func
48
48
  };
49
- exports.propTypes = propTypes;
50
- const allowedProps = ['children', 'minimized', 'defaultMinimized', 'onMinimized', 'label', 'toggleLabel', 'href', 'onClick'];
51
- exports.allowedProps = allowedProps;
49
+ const allowedProps = exports.allowedProps = ['children', 'minimized', 'defaultMinimized', 'onMinimized', 'label', 'toggleLabel', 'href', 'onClick'];
@@ -80,5 +80,4 @@ const generateStyle = (componentTheme, props, state) => {
80
80
  }
81
81
  };
82
82
  };
83
- var _default = generateStyle;
84
- exports.default = _default;
83
+ var _default = exports.default = generateStyle;
@@ -64,5 +64,4 @@ const generateComponentTheme = theme => {
64
64
  ...themeSpecificStyle[themeName]
65
65
  };
66
66
  };
67
- var _default = generateComponentTheme;
68
- exports.default = _default;
67
+ var _default = exports.default = generateComponentTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-navigation",
3
- "version": "8.46.2-snapshot-5",
3
+ "version": "8.46.2-snapshot-7",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,32 +23,32 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.46.2-snapshot-5",
27
- "@instructure/ui-color-utils": "8.46.2-snapshot-5",
28
- "@instructure/ui-test-locator": "8.46.2-snapshot-5",
29
- "@instructure/ui-test-utils": "8.46.2-snapshot-5",
30
- "@instructure/ui-themes": "8.46.2-snapshot-5"
26
+ "@instructure/ui-babel-preset": "8.46.2-snapshot-7",
27
+ "@instructure/ui-color-utils": "8.46.2-snapshot-7",
28
+ "@instructure/ui-test-locator": "8.46.2-snapshot-7",
29
+ "@instructure/ui-test-utils": "8.46.2-snapshot-7",
30
+ "@instructure/ui-themes": "8.46.2-snapshot-7"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/runtime": "^7.22.15",
34
- "@instructure/console": "8.46.2-snapshot-5",
35
- "@instructure/debounce": "8.46.2-snapshot-5",
36
- "@instructure/emotion": "8.46.2-snapshot-5",
37
- "@instructure/shared-types": "8.46.2-snapshot-5",
38
- "@instructure/ui-a11y-content": "8.46.2-snapshot-5",
39
- "@instructure/ui-a11y-utils": "8.46.2-snapshot-5",
40
- "@instructure/ui-badge": "8.46.2-snapshot-5",
41
- "@instructure/ui-dom-utils": "8.46.2-snapshot-5",
42
- "@instructure/ui-focusable": "8.46.2-snapshot-5",
43
- "@instructure/ui-icons": "8.46.2-snapshot-5",
44
- "@instructure/ui-menu": "8.46.2-snapshot-5",
45
- "@instructure/ui-prop-types": "8.46.2-snapshot-5",
46
- "@instructure/ui-react-utils": "8.46.2-snapshot-5",
47
- "@instructure/ui-testable": "8.46.2-snapshot-5",
48
- "@instructure/ui-tooltip": "8.46.2-snapshot-5",
49
- "@instructure/ui-truncate-list": "8.46.2-snapshot-5",
50
- "@instructure/ui-utils": "8.46.2-snapshot-5",
51
- "@instructure/ui-view": "8.46.2-snapshot-5",
33
+ "@babel/runtime": "^7.23.2",
34
+ "@instructure/console": "8.46.2-snapshot-7",
35
+ "@instructure/debounce": "8.46.2-snapshot-7",
36
+ "@instructure/emotion": "8.46.2-snapshot-7",
37
+ "@instructure/shared-types": "8.46.2-snapshot-7",
38
+ "@instructure/ui-a11y-content": "8.46.2-snapshot-7",
39
+ "@instructure/ui-a11y-utils": "8.46.2-snapshot-7",
40
+ "@instructure/ui-badge": "8.46.2-snapshot-7",
41
+ "@instructure/ui-dom-utils": "8.46.2-snapshot-7",
42
+ "@instructure/ui-focusable": "8.46.2-snapshot-7",
43
+ "@instructure/ui-icons": "8.46.2-snapshot-7",
44
+ "@instructure/ui-menu": "8.46.2-snapshot-7",
45
+ "@instructure/ui-prop-types": "8.46.2-snapshot-7",
46
+ "@instructure/ui-react-utils": "8.46.2-snapshot-7",
47
+ "@instructure/ui-testable": "8.46.2-snapshot-7",
48
+ "@instructure/ui-tooltip": "8.46.2-snapshot-7",
49
+ "@instructure/ui-truncate-list": "8.46.2-snapshot-7",
50
+ "@instructure/ui-utils": "8.46.2-snapshot-7",
51
+ "@instructure/ui-view": "8.46.2-snapshot-7",
52
52
  "prop-types": "^15.8.1"
53
53
  },
54
54
  "peerDependencies": {