@instructure/ui-svg-images 8.18.0 → 8.18.1-snapshot.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,27 @@
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.
@@ -63,11 +63,15 @@ let InlineSVG = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
63
63
  }
64
64
 
65
65
  componentDidMount() {
66
- this.props.makeStyles?.();
66
+ var _this$props$makeStyle, _this$props;
67
+
68
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
67
69
  }
68
70
 
69
71
  componentDidUpdate() {
70
- this.props.makeStyles?.();
72
+ var _this$props$makeStyle2, _this$props2;
73
+
74
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
71
75
  }
72
76
 
73
77
  get role() {
@@ -123,15 +127,15 @@ let InlineSVG = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
123
127
  }
124
128
 
125
129
  render() {
126
- const _this$props = this.props,
127
- style = _this$props.style,
128
- title = _this$props.title,
129
- description = _this$props.description,
130
- focusable = _this$props.focusable,
131
- children = _this$props.children,
132
- src = _this$props.src,
133
- styles = _this$props.styles,
134
- props = _objectWithoutProperties(_this$props, _excluded); // if width or height are 'auto', don't supply anything to the SVG
130
+ const _this$props3 = this.props,
131
+ style = _this$props3.style,
132
+ title = _this$props3.title,
133
+ description = _this$props3.description,
134
+ focusable = _this$props3.focusable,
135
+ children = _this$props3.children,
136
+ src = _this$props3.src,
137
+ styles = _this$props3.styles,
138
+ props = _objectWithoutProperties(_this$props3, _excluded); // if width or height are 'auto', don't supply anything to the SVG
135
139
 
136
140
 
137
141
  const width = this.props.width === 'auto' ? void 0 : this.props.width;
@@ -147,7 +151,7 @@ let InlineSVG = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
147
151
  "aria-labelledby": this.labelledBy,
148
152
  role: this.role,
149
153
  focusable: focusable ? 'true' : 'false',
150
- css: styles?.inlineSVG,
154
+ css: styles === null || styles === void 0 ? void 0 : styles.inlineSVG,
151
155
  className: props.className,
152
156
  ref: this.handleRef
153
157
  }), this.renderTitle(), this.renderDesc(description), this.renderContent());
@@ -39,15 +39,15 @@ const generateComponentTheme = theme => {
39
39
  }
40
40
  };
41
41
  const componentVariables = {
42
- primaryInverseColor: colors?.textLightest,
43
- primaryColor: colors?.textDarkest,
44
- secondaryColor: colors?.textDark,
45
- secondaryInverseColor: colors?.textLight,
46
- warningColor: colors?.textWarning,
47
- brandColor: colors?.textBrand,
48
- errorColor: colors?.textDanger,
49
- alertColor: colors?.textAlert,
50
- successColor: colors?.textSuccess
42
+ primaryInverseColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
43
+ primaryColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
44
+ secondaryColor: colors === null || colors === void 0 ? void 0 : colors.textDark,
45
+ secondaryInverseColor: colors === null || colors === void 0 ? void 0 : colors.textLight,
46
+ warningColor: colors === null || colors === void 0 ? void 0 : colors.textWarning,
47
+ brandColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
48
+ errorColor: colors === null || colors === void 0 ? void 0 : colors.textDanger,
49
+ alertColor: colors === null || colors === void 0 ? void 0 : colors.textAlert,
50
+ successColor: colors === null || colors === void 0 ? void 0 : colors.textSuccess
51
51
  };
52
52
  return { ...componentVariables,
53
53
  ...themeSpecificStyle[themeName]
@@ -58,28 +58,32 @@ let SVGIcon = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
58
58
  }
59
59
 
60
60
  componentDidMount() {
61
- this.props.makeStyles?.();
61
+ var _this$props$makeStyle, _this$props;
62
+
63
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
62
64
  }
63
65
 
64
66
  componentDidUpdate() {
65
- this.props.makeStyles?.();
67
+ var _this$props$makeStyle2, _this$props2;
68
+
69
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
66
70
  }
67
71
 
68
72
  render() {
69
- const _this$props = this.props,
70
- rotate = _this$props.rotate,
71
- className = _this$props.className,
72
- themeOverride = _this$props.themeOverride,
73
- size = _this$props.size,
74
- bidirectional = _this$props.bidirectional,
75
- makeStyles = _this$props.makeStyles,
76
- styles = _this$props.styles,
77
- props = _objectWithoutProperties(_this$props, _excluded);
73
+ const _this$props3 = this.props,
74
+ rotate = _this$props3.rotate,
75
+ className = _this$props3.className,
76
+ themeOverride = _this$props3.themeOverride,
77
+ size = _this$props3.size,
78
+ bidirectional = _this$props3.bidirectional,
79
+ makeStyles = _this$props3.makeStyles,
80
+ styles = _this$props3.styles,
81
+ props = _objectWithoutProperties(_this$props3, _excluded);
78
82
 
79
83
  return jsx(InlineSVG, Object.assign({}, props, {
80
84
  themeOverride: themeOverride,
81
85
  rotate: rotate,
82
- css: styles?.svgIcon,
86
+ css: styles === null || styles === void 0 ? void 0 : styles.svgIcon,
83
87
  className: className,
84
88
  elementRef: this.handleRef
85
89
  }));
@@ -56,11 +56,15 @@ let InlineSVG = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
56
56
  }
57
57
 
58
58
  componentDidMount() {
59
- this.props.makeStyles?.();
59
+ var _this$props$makeStyle, _this$props;
60
+
61
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
60
62
  }
61
63
 
62
64
  componentDidUpdate() {
63
- this.props.makeStyles?.();
65
+ var _this$props$makeStyle2, _this$props2;
66
+
67
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
64
68
  }
65
69
 
66
70
  get role() {
@@ -116,15 +120,15 @@ let InlineSVG = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
116
120
  }
117
121
 
118
122
  render() {
119
- const _this$props = this.props,
120
- style = _this$props.style,
121
- title = _this$props.title,
122
- description = _this$props.description,
123
- focusable = _this$props.focusable,
124
- children = _this$props.children,
125
- src = _this$props.src,
126
- styles = _this$props.styles,
127
- props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); // if width or height are 'auto', don't supply anything to the SVG
123
+ const _this$props3 = this.props,
124
+ style = _this$props3.style,
125
+ title = _this$props3.title,
126
+ description = _this$props3.description,
127
+ focusable = _this$props3.focusable,
128
+ children = _this$props3.children,
129
+ src = _this$props3.src,
130
+ styles = _this$props3.styles,
131
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded); // if width or height are 'auto', don't supply anything to the SVG
128
132
 
129
133
  const width = this.props.width === 'auto' ? void 0 : this.props.width;
130
134
  const height = this.props.height === 'auto' ? void 0 : this.props.height;
@@ -139,7 +143,7 @@ let InlineSVG = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
139
143
  "aria-labelledby": this.labelledBy,
140
144
  role: this.role,
141
145
  focusable: focusable ? 'true' : 'false',
142
- css: styles?.inlineSVG,
146
+ css: styles === null || styles === void 0 ? void 0 : styles.inlineSVG,
143
147
  className: props.className,
144
148
  ref: this.handleRef
145
149
  }), this.renderTitle(), this.renderDesc(description), this.renderContent());
@@ -46,15 +46,15 @@ const generateComponentTheme = theme => {
46
46
  }
47
47
  };
48
48
  const componentVariables = {
49
- primaryInverseColor: colors?.textLightest,
50
- primaryColor: colors?.textDarkest,
51
- secondaryColor: colors?.textDark,
52
- secondaryInverseColor: colors?.textLight,
53
- warningColor: colors?.textWarning,
54
- brandColor: colors?.textBrand,
55
- errorColor: colors?.textDanger,
56
- alertColor: colors?.textAlert,
57
- successColor: colors?.textSuccess
49
+ primaryInverseColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
50
+ primaryColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
51
+ secondaryColor: colors === null || colors === void 0 ? void 0 : colors.textDark,
52
+ secondaryInverseColor: colors === null || colors === void 0 ? void 0 : colors.textLight,
53
+ warningColor: colors === null || colors === void 0 ? void 0 : colors.textWarning,
54
+ brandColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
55
+ errorColor: colors === null || colors === void 0 ? void 0 : colors.textDanger,
56
+ alertColor: colors === null || colors === void 0 ? void 0 : colors.textAlert,
57
+ successColor: colors === null || colors === void 0 ? void 0 : colors.textSuccess
58
58
  };
59
59
  return { ...componentVariables,
60
60
  ...themeSpecificStyle[themeName]
@@ -49,27 +49,31 @@ let SVGIcon = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
49
49
  }
50
50
 
51
51
  componentDidMount() {
52
- this.props.makeStyles?.();
52
+ var _this$props$makeStyle, _this$props;
53
+
54
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
53
55
  }
54
56
 
55
57
  componentDidUpdate() {
56
- this.props.makeStyles?.();
58
+ var _this$props$makeStyle2, _this$props2;
59
+
60
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
57
61
  }
58
62
 
59
63
  render() {
60
- const _this$props = this.props,
61
- rotate = _this$props.rotate,
62
- className = _this$props.className,
63
- themeOverride = _this$props.themeOverride,
64
- size = _this$props.size,
65
- bidirectional = _this$props.bidirectional,
66
- makeStyles = _this$props.makeStyles,
67
- styles = _this$props.styles,
68
- props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
64
+ const _this$props3 = this.props,
65
+ rotate = _this$props3.rotate,
66
+ className = _this$props3.className,
67
+ themeOverride = _this$props3.themeOverride,
68
+ size = _this$props3.size,
69
+ bidirectional = _this$props3.bidirectional,
70
+ makeStyles = _this$props3.makeStyles,
71
+ styles = _this$props3.styles,
72
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
69
73
  return (0, _emotion.jsx)(_InlineSVG.InlineSVG, Object.assign({}, props, {
70
74
  themeOverride: themeOverride,
71
75
  rotate: rotate,
72
- css: styles?.svgIcon,
76
+ css: styles === null || styles === void 0 ? void 0 : styles.svgIcon,
73
77
  className: className,
74
78
  elementRef: this.handleRef
75
79
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-svg-images",
3
- "version": "8.18.0",
3
+ "version": "8.18.1-snapshot.2+ca4c1ff9d",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,19 +23,19 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.18.0",
27
- "@instructure/ui-test-locator": "8.18.0",
28
- "@instructure/ui-test-utils": "8.18.0",
29
- "@instructure/ui-themes": "8.18.0"
26
+ "@instructure/ui-babel-preset": "8.18.1-snapshot.2+ca4c1ff9d",
27
+ "@instructure/ui-test-locator": "8.18.1-snapshot.2+ca4c1ff9d",
28
+ "@instructure/ui-test-utils": "8.18.1-snapshot.2+ca4c1ff9d",
29
+ "@instructure/ui-themes": "8.18.1-snapshot.2+ca4c1ff9d"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.13.10",
33
- "@instructure/emotion": "8.18.0",
34
- "@instructure/shared-types": "8.18.0",
35
- "@instructure/ui-react-utils": "8.18.0",
36
- "@instructure/ui-testable": "8.18.0",
37
- "@instructure/ui-utils": "8.18.0",
38
- "@instructure/uid": "8.18.0",
33
+ "@instructure/emotion": "8.18.1-snapshot.2+ca4c1ff9d",
34
+ "@instructure/shared-types": "8.18.1-snapshot.2+ca4c1ff9d",
35
+ "@instructure/ui-react-utils": "8.18.1-snapshot.2+ca4c1ff9d",
36
+ "@instructure/ui-testable": "8.18.1-snapshot.2+ca4c1ff9d",
37
+ "@instructure/ui-utils": "8.18.1-snapshot.2+ca4c1ff9d",
38
+ "@instructure/uid": "8.18.1-snapshot.2+ca4c1ff9d",
39
39
  "prop-types": "^15"
40
40
  },
41
41
  "peerDependencies": {
@@ -44,5 +44,6 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "sideEffects": false
47
+ "sideEffects": false,
48
+ "gitHead": "ca4c1ff9d3985151ae0758fb596de41652dbb58b"
48
49
  }