@instructure/ui-navigation 8.10.3-snapshot.9 → 8.11.0

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,6 +3,10 @@
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.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-navigation
9
+
6
10
  ## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-navigation
@@ -49,16 +49,18 @@ let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
49
49
  this.ref = null;
50
50
 
51
51
  this.handleRef = el => {
52
- var _this$props$elementRe, _this$props;
53
-
52
+ const elementRef = this.props.elementRef;
54
53
  this.ref = el;
55
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
54
+
55
+ if (typeof elementRef === 'function') {
56
+ elementRef(el);
57
+ }
56
58
  };
57
59
 
58
60
  this.handleClick = e => {
59
- const _this$props2 = this.props,
60
- isDisabled = _this$props2.isDisabled,
61
- onClick = _this$props2.onClick;
61
+ const _this$props = this.props,
62
+ isDisabled = _this$props.isDisabled,
63
+ onClick = _this$props.onClick;
62
64
 
63
65
  if (isDisabled) {
64
66
  e.preventDefault();
@@ -70,29 +72,28 @@ let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
70
72
  }
71
73
 
72
74
  componentDidMount() {
73
- var _this$props$makeStyle, _this$props3;
75
+ var _this$props$makeStyle, _this$props2;
74
76
 
75
- (_this$props$makeStyle = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props3);
77
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
76
78
  }
77
79
 
78
80
  componentDidUpdate() {
79
- var _this$props$makeStyle2, _this$props4;
81
+ var _this$props$makeStyle2, _this$props3;
80
82
 
81
- (_this$props$makeStyle2 = (_this$props4 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props4);
83
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
82
84
  }
83
85
 
84
86
  render() {
85
87
  var _this$props$styles, _this$props$styles2;
86
88
 
87
89
  const ElementType = getElementType(Item, this.props);
88
- const _this$props5 = this.props,
89
- renderIcon = _this$props5.renderIcon,
90
- renderLabel = _this$props5.renderLabel,
91
- href = _this$props5.href,
92
- elementRef = _this$props5.elementRef,
93
- renderAfter = _this$props5.renderAfter,
94
- cursor = _this$props5.cursor,
95
- isDisabled = _this$props5.isDisabled;
90
+ const _this$props4 = this.props,
91
+ renderIcon = _this$props4.renderIcon,
92
+ renderLabel = _this$props4.renderLabel,
93
+ href = _this$props4.href,
94
+ renderAfter = _this$props4.renderAfter,
95
+ cursor = _this$props4.cursor,
96
+ isDisabled = _this$props4.isDisabled;
96
97
  const icon = callRenderProp(renderIcon);
97
98
  const label = callRenderProp(renderLabel);
98
99
  const labelIsForScreenReaders = matchComponentTypes(label, [ScreenReaderContent]);
@@ -106,7 +107,7 @@ let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
106
107
  href: href,
107
108
  onClick: this.handleClick,
108
109
  disabled: isDisabled,
109
- elementRef: elementRef,
110
+ elementRef: this.handleRef,
110
111
  display: "flex",
111
112
  position: "relative",
112
113
  borderRadius: "medium",
@@ -105,17 +105,19 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
105
105
  };
106
106
 
107
107
  this.handleRef = el => {
108
- var _this$props$elementRe, _this$props;
109
-
108
+ const elementRef = this.props.elementRef;
110
109
  this.ref = el;
111
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
110
+
111
+ if (typeof elementRef === 'function') {
112
+ elementRef(el);
113
+ }
112
114
  };
113
115
  }
114
116
 
115
117
  componentDidMount() {
116
- var _this$props$makeStyle, _this$props2;
118
+ var _this$props$makeStyle, _this$props;
117
119
 
118
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
120
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
119
121
 
120
122
  const _getBoundingClientRec3 = getBoundingClientRect(this._list),
121
123
  origWidth = _getBoundingClientRec3.width;
@@ -140,9 +142,9 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
140
142
  }
141
143
 
142
144
  componentDidUpdate() {
143
- var _this$props$makeStyle2, _this$props3;
145
+ var _this$props$makeStyle2, _this$props2;
144
146
 
145
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
147
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
146
148
  }
147
149
 
148
150
  componentWillUnmount() {
@@ -184,11 +186,11 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
184
186
  render() {
185
187
  var _this$props$styles4, _this$props$styles5, _this$props$styles6;
186
188
 
187
- const _this$props4 = this.props,
188
- children = _this$props4.children,
189
- visibleItemsCount = _this$props4.visibleItemsCount,
190
- screenReaderLabel = _this$props4.screenReaderLabel,
191
- margin = _this$props4.margin;
189
+ const _this$props3 = this.props,
190
+ children = _this$props3.children,
191
+ visibleItemsCount = _this$props3.visibleItemsCount,
192
+ screenReaderLabel = _this$props3.screenReaderLabel,
193
+ margin = _this$props3.margin;
192
194
  const passthroughProps = View.omitViewProps(omitProps(this.props, AppNav.allowedProps), AppNav);
193
195
  const isMeasuring = this.state.isMeasuring;
194
196
  const childrenArray = Children.toArray(children);
@@ -48,16 +48,18 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
48
48
  this.ref = null;
49
49
 
50
50
  this.handleRef = el => {
51
- var _this$props$elementRe, _this$props;
52
-
51
+ const elementRef = this.props.elementRef;
53
52
  this.ref = el;
54
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
53
+
54
+ if (typeof elementRef === 'function') {
55
+ elementRef(el);
56
+ }
55
57
  };
56
58
 
57
59
  this.handleClick = e => {
58
- const _this$props2 = this.props,
59
- isDisabled = _this$props2.isDisabled,
60
- onClick = _this$props2.onClick;
60
+ const _this$props = this.props,
61
+ isDisabled = _this$props.isDisabled,
62
+ onClick = _this$props.onClick;
61
63
 
62
64
  if (isDisabled) {
63
65
  e.preventDefault();
@@ -69,29 +71,28 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
69
71
  }
70
72
 
71
73
  componentDidMount() {
72
- var _this$props$makeStyle, _this$props3;
74
+ var _this$props$makeStyle, _this$props2;
73
75
 
74
- (_this$props$makeStyle = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props3);
76
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
75
77
  }
76
78
 
77
79
  componentDidUpdate() {
78
- var _this$props$makeStyle2, _this$props4;
80
+ var _this$props$makeStyle2, _this$props3;
79
81
 
80
- (_this$props$makeStyle2 = (_this$props4 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props4);
82
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
81
83
  }
82
84
 
83
85
  render() {
84
86
  var _this$props$styles, _this$props$styles2;
85
87
 
86
88
  const ElementType = (0, _getElementType.getElementType)(Item, this.props);
87
- const _this$props5 = this.props,
88
- renderIcon = _this$props5.renderIcon,
89
- renderLabel = _this$props5.renderLabel,
90
- href = _this$props5.href,
91
- elementRef = _this$props5.elementRef,
92
- renderAfter = _this$props5.renderAfter,
93
- cursor = _this$props5.cursor,
94
- isDisabled = _this$props5.isDisabled;
89
+ const _this$props4 = this.props,
90
+ renderIcon = _this$props4.renderIcon,
91
+ renderLabel = _this$props4.renderLabel,
92
+ href = _this$props4.href,
93
+ renderAfter = _this$props4.renderAfter,
94
+ cursor = _this$props4.cursor,
95
+ isDisabled = _this$props4.isDisabled;
95
96
  const icon = (0, _callRenderProp.callRenderProp)(renderIcon);
96
97
  const label = (0, _callRenderProp.callRenderProp)(renderLabel);
97
98
  const labelIsForScreenReaders = (0, _matchComponentTypes.matchComponentTypes)(label, [_ScreenReaderContent.ScreenReaderContent]);
@@ -105,7 +106,7 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
105
106
  href: href,
106
107
  onClick: this.handleClick,
107
108
  disabled: isDisabled,
108
- elementRef: elementRef,
109
+ elementRef: this.handleRef,
109
110
  display: "flex",
110
111
  position: "relative",
111
112
  borderRadius: "medium",
@@ -103,17 +103,19 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
103
103
  };
104
104
 
105
105
  this.handleRef = el => {
106
- var _this$props$elementRe, _this$props;
107
-
106
+ const elementRef = this.props.elementRef;
108
107
  this.ref = el;
109
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
108
+
109
+ if (typeof elementRef === 'function') {
110
+ elementRef(el);
111
+ }
110
112
  };
111
113
  }
112
114
 
113
115
  componentDidMount() {
114
- var _this$props$makeStyle, _this$props2;
116
+ var _this$props$makeStyle, _this$props;
115
117
 
116
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
118
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
117
119
 
118
120
  const _getBoundingClientRec3 = (0, _getBoundingClientRect.getBoundingClientRect)(this._list),
119
121
  origWidth = _getBoundingClientRec3.width;
@@ -138,9 +140,9 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
138
140
  }
139
141
 
140
142
  componentDidUpdate() {
141
- var _this$props$makeStyle2, _this$props3;
143
+ var _this$props$makeStyle2, _this$props2;
142
144
 
143
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
145
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
144
146
  }
145
147
 
146
148
  componentWillUnmount() {
@@ -182,11 +184,11 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
182
184
  render() {
183
185
  var _this$props$styles4, _this$props$styles5, _this$props$styles6;
184
186
 
185
- const _this$props4 = this.props,
186
- children = _this$props4.children,
187
- visibleItemsCount = _this$props4.visibleItemsCount,
188
- screenReaderLabel = _this$props4.screenReaderLabel,
189
- margin = _this$props4.margin;
187
+ const _this$props3 = this.props,
188
+ children = _this$props3.children,
189
+ visibleItemsCount = _this$props3.visibleItemsCount,
190
+ screenReaderLabel = _this$props3.screenReaderLabel,
191
+ margin = _this$props3.margin;
190
192
 
191
193
  const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, AppNav.allowedProps), AppNav);
192
194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-navigation",
3
- "version": "8.10.3-snapshot.9+47592ffa9",
3
+ "version": "8.11.0",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,31 +24,31 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.3-snapshot.9+47592ffa9",
28
- "@instructure/ui-color-utils": "8.10.3-snapshot.9+47592ffa9",
29
- "@instructure/ui-test-locator": "8.10.3-snapshot.9+47592ffa9",
30
- "@instructure/ui-test-utils": "8.10.3-snapshot.9+47592ffa9",
31
- "@instructure/ui-themes": "8.10.3-snapshot.9+47592ffa9"
27
+ "@instructure/ui-babel-preset": "8.11.0",
28
+ "@instructure/ui-color-utils": "8.11.0",
29
+ "@instructure/ui-test-locator": "8.11.0",
30
+ "@instructure/ui-test-utils": "8.11.0",
31
+ "@instructure/ui-themes": "8.11.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.10.3-snapshot.9+47592ffa9",
36
- "@instructure/debounce": "8.10.3-snapshot.9+47592ffa9",
37
- "@instructure/emotion": "8.10.3-snapshot.9+47592ffa9",
38
- "@instructure/shared-types": "8.10.3-snapshot.9+47592ffa9",
39
- "@instructure/ui-a11y-content": "8.10.3-snapshot.9+47592ffa9",
40
- "@instructure/ui-a11y-utils": "8.10.3-snapshot.9+47592ffa9",
41
- "@instructure/ui-badge": "8.10.3-snapshot.9+47592ffa9",
42
- "@instructure/ui-dom-utils": "8.10.3-snapshot.9+47592ffa9",
43
- "@instructure/ui-focusable": "8.10.3-snapshot.9+47592ffa9",
44
- "@instructure/ui-icons": "8.10.3-snapshot.9+47592ffa9",
45
- "@instructure/ui-menu": "8.10.3-snapshot.9+47592ffa9",
46
- "@instructure/ui-prop-types": "8.10.3-snapshot.9+47592ffa9",
47
- "@instructure/ui-react-utils": "8.10.3-snapshot.9+47592ffa9",
48
- "@instructure/ui-testable": "8.10.3-snapshot.9+47592ffa9",
49
- "@instructure/ui-tooltip": "8.10.3-snapshot.9+47592ffa9",
50
- "@instructure/ui-utils": "8.10.3-snapshot.9+47592ffa9",
51
- "@instructure/ui-view": "8.10.3-snapshot.9+47592ffa9",
35
+ "@instructure/console": "8.11.0",
36
+ "@instructure/debounce": "8.11.0",
37
+ "@instructure/emotion": "8.11.0",
38
+ "@instructure/shared-types": "8.11.0",
39
+ "@instructure/ui-a11y-content": "8.11.0",
40
+ "@instructure/ui-a11y-utils": "8.11.0",
41
+ "@instructure/ui-badge": "8.11.0",
42
+ "@instructure/ui-dom-utils": "8.11.0",
43
+ "@instructure/ui-focusable": "8.11.0",
44
+ "@instructure/ui-icons": "8.11.0",
45
+ "@instructure/ui-menu": "8.11.0",
46
+ "@instructure/ui-prop-types": "8.11.0",
47
+ "@instructure/ui-react-utils": "8.11.0",
48
+ "@instructure/ui-testable": "8.11.0",
49
+ "@instructure/ui-tooltip": "8.11.0",
50
+ "@instructure/ui-utils": "8.11.0",
51
+ "@instructure/ui-view": "8.11.0",
52
52
  "prop-types": "^15"
53
53
  },
54
54
  "peerDependencies": {
@@ -57,6 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "sideEffects": false,
61
- "gitHead": "47592ffa9fed565a9df0677c77e6d890d5e964ea"
60
+ "sideEffects": false
62
61
  }
@@ -77,8 +77,13 @@ class Item extends Component<AppNavItemProps> {
77
77
  }
78
78
 
79
79
  handleRef = (el: Element | null) => {
80
+ const { elementRef } = this.props
81
+
80
82
  this.ref = el
81
- this.props.elementRef?.(el)
83
+
84
+ if (typeof elementRef === 'function') {
85
+ elementRef(el)
86
+ }
82
87
  }
83
88
 
84
89
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'e' implicitly has an 'any' type.
@@ -100,7 +105,6 @@ class Item extends Component<AppNavItemProps> {
100
105
  renderIcon,
101
106
  renderLabel,
102
107
  href,
103
- elementRef,
104
108
  renderAfter,
105
109
  cursor,
106
110
  isDisabled
@@ -127,7 +131,7 @@ class Item extends Component<AppNavItemProps> {
127
131
  href={href}
128
132
  onClick={this.handleClick}
129
133
  disabled={isDisabled}
130
- elementRef={elementRef}
134
+ elementRef={this.handleRef}
131
135
  display="flex"
132
136
  position="relative"
133
137
  borderRadius="medium"
@@ -26,7 +26,8 @@ import PropTypes from 'prop-types'
26
26
  import type {
27
27
  AsElementType,
28
28
  PropValidators,
29
- AppNavItemTheme
29
+ AppNavItemTheme,
30
+ OtherHTMLAttributes
30
31
  } from '@instructure/shared-types'
31
32
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
32
33
 
@@ -48,7 +49,8 @@ type PropKeys = keyof AppNavItemOwnProps
48
49
  type AllowedPropKeys = Readonly<Array<PropKeys>>
49
50
 
50
51
  type AppNavItemProps = AppNavItemOwnProps &
51
- WithStyleProps<AppNavItemTheme, AppNavItemStyle>
52
+ WithStyleProps<AppNavItemTheme, AppNavItemStyle> &
53
+ OtherHTMLAttributes<AppNavItemOwnProps>
52
54
 
53
55
  type AppNavItemStyle = ComponentStyle<'item' | 'label'>
54
56
 
@@ -163,8 +163,13 @@ class AppNav extends Component<AppNavProps> {
163
163
  }
164
164
 
165
165
  handleRef = (el: Element | null) => {
166
+ const { elementRef } = this.props
167
+
166
168
  this.ref = el
167
- this.props.elementRef?.(el)
169
+
170
+ if (typeof elementRef === 'function') {
171
+ elementRef(el)
172
+ }
168
173
  }
169
174
 
170
175
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'item' implicitly has an 'any' type.
@@ -34,7 +34,11 @@ import type {
34
34
  WithStyleProps,
35
35
  ComponentStyle
36
36
  } from '@instructure/emotion'
37
- import type { PropValidators, AppNavTheme } from '@instructure/shared-types'
37
+ import type {
38
+ PropValidators,
39
+ AppNavTheme,
40
+ OtherHTMLAttributes
41
+ } from '@instructure/shared-types'
38
42
 
39
43
  type AppNavOwnProps = {
40
44
  screenReaderLabel: string
@@ -53,7 +57,9 @@ type PropKeys = keyof AppNavOwnProps
53
57
 
54
58
  type AllowedPropKeys = Readonly<Array<PropKeys>>
55
59
 
56
- type AppNavProps = AppNavOwnProps & WithStyleProps<AppNavTheme, AppNavStyle>
60
+ type AppNavProps = AppNavOwnProps &
61
+ WithStyleProps<AppNavTheme, AppNavStyle> &
62
+ OtherHTMLAttributes<AppNavOwnProps>
57
63
 
58
64
  type AppNavStyle = ComponentStyle<
59
65
  | 'appNav'
@@ -82,7 +82,7 @@ class NavigationItem extends Component<NavigationItemProps> {
82
82
  onClick={onClick}
83
83
  css={this.props.styles?.navigationItem}
84
84
  aria-label={this.props.minimized ? label : undefined}
85
- // @ts-expect-error TODO fix TS2590: Expression produces a union type that is too complex to represent.
85
+ // @ts-expect-error TODO: fix TS2590: Expression produces a union type that is too complex to represent.
86
86
  ref={(element) => {
87
87
  this.ref = element
88
88
  }}
@@ -26,7 +26,8 @@ import PropTypes from 'prop-types'
26
26
  import type {
27
27
  AsElementType,
28
28
  PropValidators,
29
- NavigationItemTheme
29
+ NavigationItemTheme,
30
+ OtherHTMLAttributes
30
31
  } from '@instructure/shared-types'
31
32
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
32
33
 
@@ -45,7 +46,8 @@ type PropKeys = keyof NavigationItemOwnProps
45
46
  type AllowedPropKeys = Readonly<Array<PropKeys>>
46
47
 
47
48
  type NavigationItemProps = NavigationItemOwnProps &
48
- WithStyleProps<NavigationItemTheme, NavigationItemStyle>
49
+ WithStyleProps<NavigationItemTheme, NavigationItemStyle> &
50
+ OtherHTMLAttributes<NavigationItemOwnProps>
49
51
 
50
52
  type NavigationItemStyle = ComponentStyle<'navigationItem' | 'icon' | 'label'>
51
53
 
@@ -31,7 +31,11 @@ import {
31
31
 
32
32
  import { NavigationItem } from './NavigationItem'
33
33
 
34
- import type { PropValidators, NavigationTheme } from '@instructure/shared-types'
34
+ import type {
35
+ PropValidators,
36
+ NavigationTheme,
37
+ OtherHTMLAttributes
38
+ } from '@instructure/shared-types'
35
39
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
36
40
 
37
41
  type NavigationOwnProps = {
@@ -57,7 +61,8 @@ type PropKeys = keyof NavigationOwnProps
57
61
  type AllowedPropKeys = Readonly<Array<PropKeys>>
58
62
 
59
63
  type NavigationProps = NavigationOwnProps &
60
- WithStyleProps<NavigationTheme, NavigationStyle>
64
+ WithStyleProps<NavigationTheme, NavigationStyle> &
65
+ OtherHTMLAttributes<NavigationOwnProps>
61
66
 
62
67
  type NavigationStyle = ComponentStyle<
63
68
  'navigation' | 'list' | 'content' | 'toggle' | 'toggleIcon'
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAGD,WAAW,mBASV;IAED,MAAM;CAuDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAGD,WAAW,mBASV;IAED,MAAM;CAsDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { AsElementType, PropValidators, AppNavItemTheme } from '@instructure/shared-types';
2
+ import type { AsElementType, PropValidators, AppNavItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type AppNavItemOwnProps = {
5
5
  renderLabel: React.ReactNode | ((...args: any[]) => any);
@@ -15,7 +15,7 @@ declare type AppNavItemOwnProps = {
15
15
  };
16
16
  declare type PropKeys = keyof AppNavItemOwnProps;
17
17
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
18
- declare type AppNavItemProps = AppNavItemOwnProps & WithStyleProps<AppNavItemTheme, AppNavItemStyle>;
18
+ declare type AppNavItemProps = AppNavItemOwnProps & WithStyleProps<AppNavItemTheme, AppNavItemStyle> & OtherHTMLAttributes<AppNavItemOwnProps>;
19
19
  declare type AppNavItemStyle = ComponentStyle<'item' | 'label'>;
20
20
  declare const propTypes: PropValidators<PropKeys>;
21
21
  declare const allowedProps: AllowedPropKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/props.ts"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACzD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA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Ae,MAAM,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
- import type { PropValidators, AppNavTheme } from '@instructure/shared-types';
3
+ import type { PropValidators, AppNavTheme, OtherHTMLAttributes } from '@instructure/shared-types';
4
4
  declare type AppNavOwnProps = {
5
5
  screenReaderLabel: string;
6
6
  debounce?: number;
@@ -15,7 +15,7 @@ declare type AppNavOwnProps = {
15
15
  };
16
16
  declare type PropKeys = keyof AppNavOwnProps;
17
17
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
18
- declare type AppNavProps = AppNavOwnProps & WithStyleProps<AppNavTheme, AppNavStyle>;
18
+ declare type AppNavProps = AppNavOwnProps & WithStyleProps<AppNavTheme, AppNavStyle> & OtherHTMLAttributes<AppNavOwnProps>;
19
19
  declare type AppNavStyle = ComponentStyle<'appNav' | 'alignCenter' | 'listItemWithMenuTrigger' | 'listItem' | 'list' | 'menuTriggerWidth'>;
20
20
  declare const propTypes: PropValidators<PropKeys>;
21
21
  declare const allowedProps: AllowedPropKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/AppNav/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5E,aAAK,cAAc,GAAG;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC/D,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,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E,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { AsElementType, PropValidators, NavigationItemTheme } from '@instructure/shared-types';
2
+ import type { AsElementType, PropValidators, NavigationItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type NavigationItemOwnProps = {
5
5
  icon: React.ReactNode;
@@ -12,7 +12,7 @@ declare type NavigationItemOwnProps = {
12
12
  };
13
13
  declare type PropKeys = keyof NavigationItemOwnProps;
14
14
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
15
- declare type NavigationItemProps = NavigationItemOwnProps & WithStyleProps<NavigationItemTheme, NavigationItemStyle>;
15
+ declare type NavigationItemProps = NavigationItemOwnProps & WithStyleProps<NavigationItemTheme, NavigationItemStyle> & OtherHTMLAttributes<NavigationItemOwnProps>;
16
16
  declare type NavigationItemStyle = ComponentStyle<'navigationItem' | 'icon' | 'label'>;
17
17
  declare const propTypes: PropValidators<PropKeys>;
18
18
  declare const allowedProps: AllowedPropKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Navigation/NavigationItem/props.ts"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAA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sB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,aAAK,mBAAmB,GAAG,cAAc,CAAC,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;AAE9E,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PropValidators, NavigationTheme } from '@instructure/shared-types';
2
+ import type { PropValidators, NavigationTheme, OtherHTMLAttributes } from '@instructure/shared-types';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type NavigationOwnProps = {
5
5
  minimized?: any;
@@ -19,7 +19,7 @@ declare type NavigationState = {
19
19
  };
20
20
  declare type PropKeys = keyof NavigationOwnProps;
21
21
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
22
- declare type NavigationProps = NavigationOwnProps & WithStyleProps<NavigationTheme, NavigationStyle>;
22
+ declare type NavigationProps = NavigationOwnProps & WithStyleProps<NavigationTheme, NavigationStyle> & OtherHTMLAttributes<NavigationOwnProps>;
23
23
  declare type NavigationStyle = ComponentStyle<'navigation' | 'list' | 'content' | 'toggle' | 'toggleIcon'>;
24
24
  declare const propTypes: PropValidators<PropKeys>;
25
25
  declare const allowedProps: AllowedPropKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Navigation/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,C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;AAED,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.