@instructure/ui-svg-images 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,12 @@
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
+ ### Bug Fixes
9
+
10
+ - **ui-svg-images:** fix icons getting cropped in zoomed windows ([732ac88](https://github.com/instructure/instructure-ui/commit/732ac885d8fdad2ae1cbccb81faebcd96ee9c2f3))
11
+
6
12
  ## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
13
 
8
14
  **Note:** Version bump only for package @instructure/ui-svg-images
@@ -48,10 +48,12 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
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.titleId = uid('InlineSVG-title');
@@ -59,15 +61,15 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
59
61
  }
60
62
 
61
63
  componentDidMount() {
62
- var _this$props$makeStyle, _this$props2;
64
+ var _this$props$makeStyle, _this$props;
63
65
 
64
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
66
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
65
67
  }
66
68
 
67
69
  componentDidUpdate() {
68
- var _this$props$makeStyle2, _this$props3;
70
+ var _this$props$makeStyle2, _this$props2;
69
71
 
70
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
72
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
71
73
  }
72
74
 
73
75
  get role() {
@@ -102,7 +104,7 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
102
104
  ids.push(this.descId);
103
105
  }
104
106
 
105
- return ids.length > 0 ? ids.join(' ') : null;
107
+ return ids.length > 0 ? ids.join(' ') : void 0;
106
108
  }
107
109
 
108
110
  renderContent() {
@@ -123,19 +125,19 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
123
125
  }
124
126
 
125
127
  render() {
126
- const _this$props4 = this.props,
127
- style = _this$props4.style,
128
- title = _this$props4.title,
129
- description = _this$props4.description,
130
- focusable = _this$props4.focusable,
131
- children = _this$props4.children,
132
- src = _this$props4.src,
133
- styles = _this$props4.styles,
134
- props = _objectWithoutProperties(_this$props4, _excluded); // if width or height are 'auto', don't supply anything to the SVG
135
-
136
-
137
- const width = this.props.width === 'auto' ? null : this.props.width;
138
- const height = this.props.height === 'auto' ? null : this.props.height;
128
+ const _this$props3 = this.props,
129
+ style = _this$props3.style,
130
+ title = _this$props3.title,
131
+ description = _this$props3.description,
132
+ focusable = _this$props3.focusable,
133
+ children = _this$props3.children,
134
+ src = _this$props3.src,
135
+ styles = _this$props3.styles,
136
+ props = _objectWithoutProperties(_this$props3, _excluded); // if width or height are 'auto', don't supply anything to the SVG
137
+
138
+
139
+ const width = this.props.width === 'auto' ? void 0 : this.props.width;
140
+ const height = this.props.height === 'auto' ? void 0 : this.props.height;
139
141
  return jsx("svg", Object.assign({}, parseAttributes(this.props.src), omitProps(this.props, InlineSVG.allowedProps, ['inline']), {
140
142
  style: { ...style,
141
143
  width,
@@ -143,7 +145,7 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
143
145
  },
144
146
  width: width,
145
147
  height: height,
146
- "aria-hidden": title ? null : 'true',
148
+ "aria-hidden": title ? void 0 : 'true',
147
149
  "aria-labelledby": this.labelledBy,
148
150
  role: this.role,
149
151
  focusable: focusable ? 'true' : 'false',
@@ -40,6 +40,10 @@ const propTypes = {
40
40
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
41
41
  inline: PropTypes.bool,
42
42
  color: PropTypes.oneOf(['inherit', 'primary', 'secondary', 'primary-inverse', 'secondary-inverse', 'success', 'error', 'alert', 'warning', 'brand', 'auto']),
43
+
44
+ /**
45
+ * provides a reference to the underlying html root element
46
+ */
43
47
  elementRef: PropTypes.func
44
48
  };
45
49
  const allowedProps = ['children', 'src', 'title', 'description', 'focusable', 'width', 'height', 'inline', 'color', 'elementRef'];
@@ -73,6 +73,7 @@ const generateStyle = (componentTheme, props) => {
73
73
  label: 'inlineSVG',
74
74
  fill: 'currentColor',
75
75
  display: inline ? 'inline-block' : 'block',
76
+ overflow: 'visible',
76
77
  ...colorVariants[color]
77
78
  }
78
79
  };
@@ -1,5 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- const _excluded = ["rotate", "className", "size", "bidirectional", "makeStyles", "styles"];
2
+ const _excluded = ["rotate", "className", "size", "bidirectional", "makeStyles", "styles", "themeOverride"];
3
3
 
4
4
  var _dec, _dec2, _class, _class2, _temp;
5
5
 
@@ -47,36 +47,40 @@ let SVGIcon = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
47
47
  this.ref = null;
48
48
 
49
49
  this.handleRef = el => {
50
- var _this$props$elementRe, _this$props;
51
-
50
+ const elementRef = this.props.elementRef;
52
51
  this.ref = el;
53
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
52
+
53
+ if (typeof elementRef === 'function') {
54
+ elementRef(el);
55
+ }
54
56
  };
55
57
  }
56
58
 
57
59
  componentDidMount() {
58
- var _this$props$makeStyle, _this$props2;
60
+ var _this$props$makeStyle, _this$props;
59
61
 
60
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
62
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
61
63
  }
62
64
 
63
65
  componentDidUpdate() {
64
- var _this$props$makeStyle2, _this$props3;
66
+ var _this$props$makeStyle2, _this$props2;
65
67
 
66
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
68
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
67
69
  }
68
70
 
69
71
  render() {
70
- const _this$props4 = this.props,
71
- rotate = _this$props4.rotate,
72
- className = _this$props4.className,
73
- size = _this$props4.size,
74
- bidirectional = _this$props4.bidirectional,
75
- makeStyles = _this$props4.makeStyles,
76
- styles = _this$props4.styles,
77
- props = _objectWithoutProperties(_this$props4, _excluded);
72
+ const _this$props3 = this.props,
73
+ rotate = _this$props3.rotate,
74
+ className = _this$props3.className,
75
+ size = _this$props3.size,
76
+ bidirectional = _this$props3.bidirectional,
77
+ makeStyles = _this$props3.makeStyles,
78
+ styles = _this$props3.styles,
79
+ themeOverride = _this$props3.themeOverride,
80
+ props = _objectWithoutProperties(_this$props3, _excluded);
78
81
 
79
82
  return jsx(InlineSVG, Object.assign({}, props, {
83
+ themeOverride: themeOverride,
80
84
  rotate: rotate,
81
85
  css: styles === null || styles === void 0 ? void 0 : styles.svgIcon,
82
86
  className: className,
@@ -40,10 +40,12 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
40
40
  this.ref = null;
41
41
 
42
42
  this.handleRef = el => {
43
- var _this$props$elementRe, _this$props;
44
-
43
+ const elementRef = this.props.elementRef;
45
44
  this.ref = el;
46
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
45
+
46
+ if (typeof elementRef === 'function') {
47
+ elementRef(el);
48
+ }
47
49
  };
48
50
 
49
51
  this.titleId = (0, _uid.uid)('InlineSVG-title');
@@ -51,15 +53,15 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
51
53
  }
52
54
 
53
55
  componentDidMount() {
54
- var _this$props$makeStyle, _this$props2;
56
+ var _this$props$makeStyle, _this$props;
55
57
 
56
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
58
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
57
59
  }
58
60
 
59
61
  componentDidUpdate() {
60
- var _this$props$makeStyle2, _this$props3;
62
+ var _this$props$makeStyle2, _this$props2;
61
63
 
62
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
64
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
63
65
  }
64
66
 
65
67
  get role() {
@@ -94,7 +96,7 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
94
96
  ids.push(this.descId);
95
97
  }
96
98
 
97
- return ids.length > 0 ? ids.join(' ') : null;
99
+ return ids.length > 0 ? ids.join(' ') : void 0;
98
100
  }
99
101
 
100
102
  renderContent() {
@@ -115,18 +117,18 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
115
117
  }
116
118
 
117
119
  render() {
118
- const _this$props4 = this.props,
119
- style = _this$props4.style,
120
- title = _this$props4.title,
121
- description = _this$props4.description,
122
- focusable = _this$props4.focusable,
123
- children = _this$props4.children,
124
- src = _this$props4.src,
125
- styles = _this$props4.styles,
126
- props = (0, _objectWithoutProperties2.default)(_this$props4, _excluded); // if width or height are 'auto', don't supply anything to the SVG
127
-
128
- const width = this.props.width === 'auto' ? null : this.props.width;
129
- const height = this.props.height === 'auto' ? null : this.props.height;
120
+ const _this$props3 = this.props,
121
+ style = _this$props3.style,
122
+ title = _this$props3.title,
123
+ description = _this$props3.description,
124
+ focusable = _this$props3.focusable,
125
+ children = _this$props3.children,
126
+ src = _this$props3.src,
127
+ styles = _this$props3.styles,
128
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded); // if width or height are 'auto', don't supply anything to the SVG
129
+
130
+ const width = this.props.width === 'auto' ? void 0 : this.props.width;
131
+ const height = this.props.height === 'auto' ? void 0 : this.props.height;
130
132
  return (0, _emotion.jsx)("svg", Object.assign({}, parseAttributes(this.props.src), (0, _omitProps.omitProps)(this.props, InlineSVG.allowedProps, ['inline']), {
131
133
  style: { ...style,
132
134
  width,
@@ -134,7 +136,7 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
134
136
  },
135
137
  width: width,
136
138
  height: height,
137
- "aria-hidden": title ? null : 'true',
139
+ "aria-hidden": title ? void 0 : 'true',
138
140
  "aria-labelledby": this.labelledBy,
139
141
  role: this.role,
140
142
  focusable: focusable ? 'true' : 'false',
@@ -50,6 +50,10 @@ const propTypes = {
50
50
  height: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
51
51
  inline: _propTypes.default.bool,
52
52
  color: _propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'primary-inverse', 'secondary-inverse', 'success', 'error', 'alert', 'warning', 'brand', 'auto']),
53
+
54
+ /**
55
+ * provides a reference to the underlying html root element
56
+ */
53
57
  elementRef: _propTypes.default.func
54
58
  };
55
59
  exports.propTypes = propTypes;
@@ -80,6 +80,7 @@ const generateStyle = (componentTheme, props) => {
80
80
  label: 'inlineSVG',
81
81
  fill: 'currentColor',
82
82
  display: inline ? 'inline-block' : 'block',
83
+ overflow: 'visible',
83
84
  ...colorVariants[color]
84
85
  }
85
86
  };
@@ -23,7 +23,7 @@ var _theme = _interopRequireDefault(require("./theme"));
23
23
 
24
24
  var _props = require("./props");
25
25
 
26
- const _excluded = ["rotate", "className", "size", "bidirectional", "makeStyles", "styles"];
26
+ const _excluded = ["rotate", "className", "size", "bidirectional", "makeStyles", "styles", "themeOverride"];
27
27
 
28
28
  var _dec, _dec2, _class, _class2, _temp;
29
29
 
@@ -38,35 +38,39 @@ let SVGIcon = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
38
38
  this.ref = null;
39
39
 
40
40
  this.handleRef = el => {
41
- var _this$props$elementRe, _this$props;
42
-
41
+ const elementRef = this.props.elementRef;
43
42
  this.ref = el;
44
- (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
43
+
44
+ if (typeof elementRef === 'function') {
45
+ elementRef(el);
46
+ }
45
47
  };
46
48
  }
47
49
 
48
50
  componentDidMount() {
49
- var _this$props$makeStyle, _this$props2;
51
+ var _this$props$makeStyle, _this$props;
50
52
 
51
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
53
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
52
54
  }
53
55
 
54
56
  componentDidUpdate() {
55
- var _this$props$makeStyle2, _this$props3;
57
+ var _this$props$makeStyle2, _this$props2;
56
58
 
57
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
59
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
58
60
  }
59
61
 
60
62
  render() {
61
- const _this$props4 = this.props,
62
- rotate = _this$props4.rotate,
63
- className = _this$props4.className,
64
- size = _this$props4.size,
65
- bidirectional = _this$props4.bidirectional,
66
- makeStyles = _this$props4.makeStyles,
67
- styles = _this$props4.styles,
68
- props = (0, _objectWithoutProperties2.default)(_this$props4, _excluded);
63
+ const _this$props3 = this.props,
64
+ rotate = _this$props3.rotate,
65
+ className = _this$props3.className,
66
+ size = _this$props3.size,
67
+ bidirectional = _this$props3.bidirectional,
68
+ makeStyles = _this$props3.makeStyles,
69
+ styles = _this$props3.styles,
70
+ themeOverride = _this$props3.themeOverride,
71
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
69
72
  return (0, _emotion.jsx)(_InlineSVG.InlineSVG, Object.assign({}, props, {
73
+ themeOverride: themeOverride,
70
74
  rotate: rotate,
71
75
  css: styles === null || styles === void 0 ? void 0 : styles.svgIcon,
72
76
  className: className,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-svg-images",
3
- "version": "8.10.3-snapshot.9+47592ffa9",
3
+ "version": "8.11.0",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,19 +24,19 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.3-snapshot.9+47592ffa9",
28
- "@instructure/ui-test-locator": "8.10.3-snapshot.9+47592ffa9",
29
- "@instructure/ui-test-utils": "8.10.3-snapshot.9+47592ffa9",
30
- "@instructure/ui-themes": "8.10.3-snapshot.9+47592ffa9"
27
+ "@instructure/ui-babel-preset": "8.11.0",
28
+ "@instructure/ui-test-locator": "8.11.0",
29
+ "@instructure/ui-test-utils": "8.11.0",
30
+ "@instructure/ui-themes": "8.11.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.10.3-snapshot.9+47592ffa9",
35
- "@instructure/shared-types": "8.10.3-snapshot.9+47592ffa9",
36
- "@instructure/ui-react-utils": "8.10.3-snapshot.9+47592ffa9",
37
- "@instructure/ui-testable": "8.10.3-snapshot.9+47592ffa9",
38
- "@instructure/ui-utils": "8.10.3-snapshot.9+47592ffa9",
39
- "@instructure/uid": "8.10.3-snapshot.9+47592ffa9",
34
+ "@instructure/emotion": "8.11.0",
35
+ "@instructure/shared-types": "8.11.0",
36
+ "@instructure/ui-react-utils": "8.11.0",
37
+ "@instructure/ui-testable": "8.11.0",
38
+ "@instructure/ui-utils": "8.11.0",
39
+ "@instructure/uid": "8.11.0",
40
40
  "prop-types": "^15"
41
41
  },
42
42
  "peerDependencies": {
@@ -45,6 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "sideEffects": false,
49
- "gitHead": "47592ffa9fed565a9df0677c77e6d890d5e964ea"
48
+ "sideEffects": false
50
49
  }
@@ -64,8 +64,13 @@ class InlineSVG extends Component<InlineSVGProps> {
64
64
  ref: Element | null = null
65
65
 
66
66
  handleRef = (el: Element | null) => {
67
+ const { elementRef } = this.props
68
+
67
69
  this.ref = el
68
- this.props.elementRef?.(el)
70
+
71
+ if (typeof elementRef === 'function') {
72
+ elementRef(el)
73
+ }
69
74
  }
70
75
 
71
76
  constructor() {
@@ -127,7 +132,7 @@ class InlineSVG extends Component<InlineSVGProps> {
127
132
  ids.push(this.descId)
128
133
  }
129
134
 
130
- return ids.length > 0 ? ids.join(' ') : null
135
+ return ids.length > 0 ? ids.join(' ') : undefined
131
136
  }
132
137
 
133
138
  renderContent() {
@@ -146,7 +151,6 @@ class InlineSVG extends Component<InlineSVGProps> {
146
151
 
147
152
  render() {
148
153
  const {
149
- // @ts-expect-error ts-migrate(2339) FIXME: Property 'style' does not exist on type 'Readonly<... Remove this comment to see the full error message
150
154
  style, // eslint-disable-line react/prop-types
151
155
  title,
152
156
  description,
@@ -158,8 +162,8 @@ class InlineSVG extends Component<InlineSVGProps> {
158
162
  } = this.props
159
163
 
160
164
  // if width or height are 'auto', don't supply anything to the SVG
161
- const width = this.props.width === 'auto' ? null : this.props.width
162
- const height = this.props.height === 'auto' ? null : this.props.height
165
+ const width = this.props.width === 'auto' ? undefined : this.props.width
166
+ const height = this.props.height === 'auto' ? undefined : this.props.height
163
167
 
164
168
  return (
165
169
  <svg
@@ -170,16 +174,13 @@ class InlineSVG extends Component<InlineSVGProps> {
170
174
  width,
171
175
  height
172
176
  }}
173
- // @ts-expect-error ts-migrate(2322) FIXME: Type 'string | number | null | undefined' is not a... Remove this comment to see the full error message
174
177
  width={width}
175
- // @ts-expect-error ts-migrate(2322) FIXME: Type 'string | number | null | undefined' is not a... Remove this comment to see the full error message
176
178
  height={height}
177
- aria-hidden={title ? null : 'true'}
179
+ aria-hidden={title ? undefined : 'true'}
178
180
  aria-labelledby={this.labelledBy}
179
181
  role={this.role}
180
182
  focusable={focusable ? 'true' : 'false'}
181
183
  css={styles?.inlineSVG}
182
- // @ts-expect-error ts-migrate(2339) FIXME: Property 'className' does not exist on type '{ mak... Remove this comment to see the full error message
183
184
  className={props.className}
184
185
  ref={this.handleRef}
185
186
  >
@@ -21,10 +21,14 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React from 'react'
24
+ import React, { SVGAttributes } from 'react'
25
25
  import PropTypes from 'prop-types'
26
26
 
27
- import type { PropValidators, InlineSVGTheme } from '@instructure/shared-types'
27
+ import type {
28
+ PropValidators,
29
+ InlineSVGTheme,
30
+ OtherHTMLAttributes
31
+ } from '@instructure/shared-types'
28
32
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
29
33
 
30
34
  type InlineSVGOwnProps = {
@@ -56,7 +60,8 @@ type PropKeys = keyof InlineSVGOwnProps
56
60
  type AllowedPropKeys = Readonly<Array<PropKeys>>
57
61
 
58
62
  type InlineSVGProps = InlineSVGOwnProps &
59
- WithStyleProps<InlineSVGTheme, InlineSVGStyle>
63
+ WithStyleProps<InlineSVGTheme, InlineSVGStyle> &
64
+ OtherHTMLAttributes<InlineSVGOwnProps, SVGAttributes<InlineSVGOwnProps>>
60
65
 
61
66
  type InlineSVGStyle = ComponentStyle<'inlineSVG'>
62
67
 
@@ -88,6 +93,9 @@ const propTypes: PropValidators<PropKeys> = {
88
93
  'brand',
89
94
  'auto'
90
95
  ]),
96
+ /**
97
+ * provides a reference to the underlying html root element
98
+ */
91
99
  elementRef: PropTypes.func
92
100
  }
93
101
 
@@ -60,6 +60,7 @@ const generateStyle = (
60
60
  label: 'inlineSVG',
61
61
  fill: 'currentColor',
62
62
  display: inline ? 'inline-block' : 'block',
63
+ overflow: 'visible',
63
64
  ...colorVariants[color!]
64
65
  }
65
66
  }
@@ -57,8 +57,13 @@ class SVGIcon extends Component<SVGIconProps> {
57
57
  ref: ReactInstance | null = null
58
58
 
59
59
  handleRef = (el: Element | null) => {
60
+ const { elementRef } = this.props
61
+
60
62
  this.ref = el
61
- this.props.elementRef?.(el)
63
+
64
+ if (typeof elementRef === 'function') {
65
+ elementRef(el)
66
+ }
62
67
  }
63
68
 
64
69
  componentDidMount() {
@@ -72,7 +77,6 @@ class SVGIcon extends Component<SVGIconProps> {
72
77
  render() {
73
78
  const {
74
79
  rotate,
75
- // @ts-expect-error ts-migrate(2339) FIXME: Property 'className' does not exist on type 'Reado... Remove this comment to see the full error message
76
80
  className,
77
81
  size,
78
82
  bidirectional,
@@ -80,13 +84,14 @@ class SVGIcon extends Component<SVGIconProps> {
80
84
  // so it won't be passed to InlineSVG via '...props'
81
85
  makeStyles,
82
86
  styles,
87
+ themeOverride,
83
88
  ...props
84
89
  } = this.props
85
90
 
86
91
  return (
87
92
  <InlineSVG
88
93
  {...props}
89
- // @ts-expect-error ts-migrate(2322) FIXME: Type '{ rotate: "0" | "90" | "180" | "270" | undef... Remove this comment to see the full error message
94
+ themeOverride={themeOverride}
90
95
  rotate={rotate}
91
96
  css={styles?.svgIcon}
92
97
  className={className}
@@ -25,10 +25,16 @@ import PropTypes from 'prop-types'
25
25
 
26
26
  import { InlineSVG } from '../InlineSVG'
27
27
 
28
- import type { PropValidators, SVGIconTheme } from '@instructure/shared-types'
28
+ import type {
29
+ InlineSVGTheme,
30
+ OtherHTMLAttributes,
31
+ PropValidators,
32
+ SVGIconTheme
33
+ } from '@instructure/shared-types'
29
34
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
30
35
 
31
36
  import type { InlineSVGOwnProps } from '../InlineSVG/props'
37
+ import { SVGAttributes } from 'react'
32
38
 
33
39
  type SVGIconOwnProps = InlineSVGOwnProps & {
34
40
  rotate?: '0' | '90' | '180' | '270'
@@ -40,7 +46,9 @@ type PropKeys = keyof SVGIconOwnProps
40
46
 
41
47
  type AllowedPropKeys = Readonly<Array<PropKeys>>
42
48
 
43
- type SVGIconProps = SVGIconOwnProps & WithStyleProps<SVGIconTheme, SVGIconStyle>
49
+ type SVGIconProps = SVGIconOwnProps &
50
+ WithStyleProps<SVGIconTheme & InlineSVGTheme, SVGIconStyle> &
51
+ OtherHTMLAttributes<SVGIconOwnProps, SVGAttributes<SVGIconOwnProps>>
44
52
 
45
53
  type SVGIconStyle = ComponentStyle<'svgIcon'>
46
54
 
@@ -31,7 +31,7 @@ declare class InlineSVG extends Component<InlineSVGProps> {
31
31
  get role(): "img" | "presentation";
32
32
  renderTitle(): jsx.JSX.Element | null;
33
33
  renderDesc(desc: any): jsx.JSX.Element | null;
34
- get labelledBy(): string | null;
34
+ get labelledBy(): string | undefined;
35
35
  renderContent(): jsx.JSX.Element;
36
36
  render(): jsx.JSX.Element;
37
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C;;;;GAIG;AACH,cAEM,SAAU,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,YAAY,yDAAe;IAClC,MAAM,CAAC,SAAS,mHAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;;;MAUlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;;IAYD,iBAAiB;IAIjB,kBAAkB;IAKlB,MAAM,CAAC,UAAU,oBAKhB;IAED,IAAI,IAAI,2BAMP;IAED,WAAW;IAOX,UAAU,CAAC,IAAI,KAAA;IAKf,IAAI,UAAU,kBAcb;IAED,aAAa;IAcb,MAAM;CA6CP;AA8BD,eAAe,SAAS,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C;;;;GAIG;AACH,cAEM,SAAU,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,YAAY,yDAAe;IAClC,MAAM,CAAC,SAAS,mHAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;;;MAUlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;;IAYD,iBAAiB;IAIjB,kBAAkB;IAKlB,MAAM,CAAC,UAAU,oBAKhB;IAED,IAAI,IAAI,2BAMP;IAED,WAAW;IAOX,UAAU,CAAC,IAAI,KAAA;IAKf,IAAI,UAAU,uBAcb;IAED,aAAa;IAcb,MAAM;CAyCP;AA8BD,eAAe,SAAS,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import type { PropValidators, InlineSVGTheme } from '@instructure/shared-types';
1
+ import React, { SVGAttributes } from 'react';
2
+ import type { PropValidators, InlineSVGTheme, OtherHTMLAttributes } from '@instructure/shared-types';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type InlineSVGOwnProps = {
5
5
  src?: string;
@@ -15,7 +15,7 @@ declare type InlineSVGOwnProps = {
15
15
  };
16
16
  declare type PropKeys = keyof InlineSVGOwnProps;
17
17
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
18
- declare type InlineSVGProps = InlineSVGOwnProps & WithStyleProps<InlineSVGTheme, InlineSVGStyle>;
18
+ declare type InlineSVGProps = InlineSVGOwnProps & WithStyleProps<InlineSVGTheme, InlineSVGStyle> & OtherHTMLAttributes<InlineSVGOwnProps, SVGAttributes<InlineSVGOwnProps>>;
19
19
  declare type InlineSVGStyle = ComponentStyle<'inlineSVG'>;
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/InlineSVG/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB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CvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAWnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,SACvB,cAAc,KACpB,cAyBF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,SACvB,cAAc,KACpB,cA0BF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAMhD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C;;;;GAIG;AACH,cAEM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY,0GAAe;IAClC,MAAM,CAAC,SAAS,oKAAY;IAE5B,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,aAAa,GAAG,IAAI,CAAO;IAEhC,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAyBP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAMhD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C;;;;GAIG;AACH,cAEM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY,0GAAe;IAClC,MAAM,CAAC,SAAS,oKAAY;IAE5B,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,aAAa,GAAG,IAAI,CAAO;IAEhC,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAyBP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,6 +1,7 @@
1
- import type { PropValidators, SVGIconTheme } from '@instructure/shared-types';
1
+ import type { InlineSVGTheme, OtherHTMLAttributes, PropValidators, SVGIconTheme } from '@instructure/shared-types';
2
2
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
3
  import type { InlineSVGOwnProps } from '../InlineSVG/props';
4
+ import { SVGAttributes } from 'react';
4
5
  declare type SVGIconOwnProps = InlineSVGOwnProps & {
5
6
  rotate?: '0' | '90' | '180' | '270';
6
7
  size?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
@@ -8,7 +9,7 @@ declare type SVGIconOwnProps = InlineSVGOwnProps & {
8
9
  };
9
10
  declare type PropKeys = keyof SVGIconOwnProps;
10
11
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
11
- declare type SVGIconProps = SVGIconOwnProps & WithStyleProps<SVGIconTheme, SVGIconStyle>;
12
+ declare type SVGIconProps = SVGIconOwnProps & WithStyleProps<SVGIconTheme & InlineSVGTheme, SVGIconStyle> & OtherHTMLAttributes<SVGIconOwnProps, SVGAttributes<SVGIconOwnProps>>;
12
13
  declare type SVGIconStyle = ComponentStyle<'svgIcon'>;
13
14
  declare const propTypes: PropValidators<PropKeys>;
14
15
  declare const allowedProps: AllowedPropKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/props.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,aAAK,eAAe,GAAG,iBAAiB,GAAG;IACzC,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAA;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,eAAe,CAAA;AAErC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAEhF,aAAK,YAAY,GAAG,cAAc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,EAAE,eAcnB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,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.