@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 +6 -0
- package/es/InlineSVG/index.js +24 -22
- package/es/InlineSVG/props.js +4 -0
- package/es/InlineSVG/styles.js +1 -0
- package/es/SVGIcon/index.js +20 -16
- package/lib/InlineSVG/index.js +23 -21
- package/lib/InlineSVG/props.js +4 -0
- package/lib/InlineSVG/styles.js +1 -0
- package/lib/SVGIcon/index.js +20 -16
- package/package.json +12 -13
- package/src/InlineSVG/index.tsx +10 -9
- package/src/InlineSVG/props.ts +11 -3
- package/src/InlineSVG/styles.ts +1 -0
- package/src/SVGIcon/index.tsx +8 -3
- package/src/SVGIcon/props.ts +10 -2
- package/types/InlineSVG/index.d.ts +1 -1
- package/types/InlineSVG/index.d.ts.map +1 -1
- package/types/InlineSVG/props.d.ts +3 -3
- package/types/InlineSVG/props.d.ts.map +1 -1
- package/types/InlineSVG/styles.d.ts.map +1 -1
- package/types/SVGIcon/index.d.ts.map +1 -1
- package/types/SVGIcon/props.d.ts +3 -2
- package/types/SVGIcon/props.d.ts.map +1 -1
- package/LICENSE.md +0 -27
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
|
package/es/InlineSVG/index.js
CHANGED
|
@@ -48,10 +48,12 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
48
48
|
this.ref = null;
|
|
49
49
|
|
|
50
50
|
this.handleRef = el => {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
const elementRef = this.props.elementRef;
|
|
53
52
|
this.ref = el;
|
|
54
|
-
|
|
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$
|
|
64
|
+
var _this$props$makeStyle, _this$props;
|
|
63
65
|
|
|
64
|
-
(_this$props$makeStyle = (_this$
|
|
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$
|
|
70
|
+
var _this$props$makeStyle2, _this$props2;
|
|
69
71
|
|
|
70
|
-
(_this$props$makeStyle2 = (_this$
|
|
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(' ') :
|
|
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$
|
|
127
|
-
style = _this$
|
|
128
|
-
title = _this$
|
|
129
|
-
description = _this$
|
|
130
|
-
focusable = _this$
|
|
131
|
-
children = _this$
|
|
132
|
-
src = _this$
|
|
133
|
-
styles = _this$
|
|
134
|
-
props = _objectWithoutProperties(_this$
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
const width = this.props.width === 'auto' ?
|
|
138
|
-
const height = this.props.height === 'auto' ?
|
|
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 ?
|
|
148
|
+
"aria-hidden": title ? void 0 : 'true',
|
|
147
149
|
"aria-labelledby": this.labelledBy,
|
|
148
150
|
role: this.role,
|
|
149
151
|
focusable: focusable ? 'true' : 'false',
|
package/es/InlineSVG/props.js
CHANGED
|
@@ -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'];
|
package/es/InlineSVG/styles.js
CHANGED
package/es/SVGIcon/index.js
CHANGED
|
@@ -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
|
-
|
|
51
|
-
|
|
50
|
+
const elementRef = this.props.elementRef;
|
|
52
51
|
this.ref = el;
|
|
53
|
-
|
|
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$
|
|
60
|
+
var _this$props$makeStyle, _this$props;
|
|
59
61
|
|
|
60
|
-
(_this$props$makeStyle = (_this$
|
|
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$
|
|
66
|
+
var _this$props$makeStyle2, _this$props2;
|
|
65
67
|
|
|
66
|
-
(_this$props$makeStyle2 = (_this$
|
|
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$
|
|
71
|
-
rotate = _this$
|
|
72
|
-
className = _this$
|
|
73
|
-
size = _this$
|
|
74
|
-
bidirectional = _this$
|
|
75
|
-
makeStyles = _this$
|
|
76
|
-
styles = _this$
|
|
77
|
-
|
|
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,
|
package/lib/InlineSVG/index.js
CHANGED
|
@@ -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
|
-
|
|
44
|
-
|
|
43
|
+
const elementRef = this.props.elementRef;
|
|
45
44
|
this.ref = el;
|
|
46
|
-
|
|
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$
|
|
56
|
+
var _this$props$makeStyle, _this$props;
|
|
55
57
|
|
|
56
|
-
(_this$props$makeStyle = (_this$
|
|
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$
|
|
62
|
+
var _this$props$makeStyle2, _this$props2;
|
|
61
63
|
|
|
62
|
-
(_this$props$makeStyle2 = (_this$
|
|
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(' ') :
|
|
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$
|
|
119
|
-
style = _this$
|
|
120
|
-
title = _this$
|
|
121
|
-
description = _this$
|
|
122
|
-
focusable = _this$
|
|
123
|
-
children = _this$
|
|
124
|
-
src = _this$
|
|
125
|
-
styles = _this$
|
|
126
|
-
props = (0, _objectWithoutProperties2.default)(_this$
|
|
127
|
-
|
|
128
|
-
const width = this.props.width === 'auto' ?
|
|
129
|
-
const height = this.props.height === 'auto' ?
|
|
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 ?
|
|
139
|
+
"aria-hidden": title ? void 0 : 'true',
|
|
138
140
|
"aria-labelledby": this.labelledBy,
|
|
139
141
|
role: this.role,
|
|
140
142
|
focusable: focusable ? 'true' : 'false',
|
package/lib/InlineSVG/props.js
CHANGED
|
@@ -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;
|
package/lib/InlineSVG/styles.js
CHANGED
package/lib/SVGIcon/index.js
CHANGED
|
@@ -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
|
-
|
|
42
|
-
|
|
41
|
+
const elementRef = this.props.elementRef;
|
|
43
42
|
this.ref = el;
|
|
44
|
-
|
|
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$
|
|
51
|
+
var _this$props$makeStyle, _this$props;
|
|
50
52
|
|
|
51
|
-
(_this$props$makeStyle = (_this$
|
|
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$
|
|
57
|
+
var _this$props$makeStyle2, _this$props2;
|
|
56
58
|
|
|
57
|
-
(_this$props$makeStyle2 = (_this$
|
|
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$
|
|
62
|
-
rotate = _this$
|
|
63
|
-
className = _this$
|
|
64
|
-
size = _this$
|
|
65
|
-
bidirectional = _this$
|
|
66
|
-
makeStyles = _this$
|
|
67
|
-
styles = _this$
|
|
68
|
-
|
|
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.
|
|
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.
|
|
28
|
-
"@instructure/ui-test-locator": "8.
|
|
29
|
-
"@instructure/ui-test-utils": "8.
|
|
30
|
-
"@instructure/ui-themes": "8.
|
|
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.
|
|
35
|
-
"@instructure/shared-types": "8.
|
|
36
|
-
"@instructure/ui-react-utils": "8.
|
|
37
|
-
"@instructure/ui-testable": "8.
|
|
38
|
-
"@instructure/ui-utils": "8.
|
|
39
|
-
"@instructure/uid": "8.
|
|
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
|
}
|
package/src/InlineSVG/index.tsx
CHANGED
|
@@ -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
|
-
|
|
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(' ') :
|
|
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' ?
|
|
162
|
-
const height = this.props.height === 'auto' ?
|
|
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 ?
|
|
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
|
>
|
package/src/InlineSVG/props.ts
CHANGED
|
@@ -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 {
|
|
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
|
|
package/src/InlineSVG/styles.ts
CHANGED
package/src/SVGIcon/index.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
94
|
+
themeOverride={themeOverride}
|
|
90
95
|
rotate={rotate}
|
|
91
96
|
css={styles?.svgIcon}
|
|
92
97
|
className={className}
|
package/src/SVGIcon/props.ts
CHANGED
|
@@ -25,10 +25,16 @@ import PropTypes from 'prop-types'
|
|
|
25
25
|
|
|
26
26
|
import { InlineSVG } from '../InlineSVG'
|
|
27
27
|
|
|
28
|
-
import type {
|
|
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 &
|
|
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 |
|
|
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,
|
|
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;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG5C,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EACF,SAAS,GACT,SAAS,GACT,WAAW,GACX,iBAAiB,GACjB,mBAAmB,GACnB,SAAS,GACT,OAAO,GACP,OAAO,GACP,SAAS,GACT,OAAO,GACP,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAA;AAE1E,aAAK,cAAc,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAEjD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAgCvC,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,
|
|
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,
|
|
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"}
|
package/types/SVGIcon/props.d.ts
CHANGED
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/props.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,YAAY,EACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,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,GACjC,cAAc,CAAC,YAAY,GAAG,cAAc,EAAE,YAAY,CAAC,GAC3D,mBAAmB,CAAC,eAAe,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAA;AAEtE,aAAK,YAAY,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAE7C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAMvC,CAAA;AAED,QAAA,MAAM,YAAY,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.
|