@instructure/ui-svg-images 8.9.2-snapshot.3 → 8.10.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.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-svg-images
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-svg-images
@@ -127,7 +127,7 @@ let InlineSVG = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
127
127
 
128
128
  const width = this.props.width === 'auto' ? null : this.props.width;
129
129
  const height = this.props.height === 'auto' ? null : this.props.height;
130
- return jsx("svg", Object.assign({}, parseAttributes(this.props.src), omitProps(this.props, InlineSVG.propTypes, ['inline']), {
130
+ return jsx("svg", Object.assign({}, parseAttributes(this.props.src), omitProps(this.props, InlineSVG.allowedProps, ['inline']), {
131
131
  style: { ...style,
132
132
  width,
133
133
  height
@@ -23,7 +23,8 @@
23
23
  */
24
24
  import PropTypes from 'prop-types';
25
25
  import { InlineSVG } from '../InlineSVG';
26
- const propTypes = { ...InlineSVG.propTypes,
26
+ const propTypes = { // eslint-disable-next-line react/forbid-foreign-prop-types
27
+ ...InlineSVG.propTypes,
27
28
  rotate: PropTypes.oneOf(['0', '90', '180', '270']),
28
29
  size: PropTypes.oneOf(['x-small', 'small', 'medium', 'large', 'x-large']),
29
30
  bidirectional: PropTypes.bool
@@ -118,7 +118,7 @@ let InlineSVG = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
118
118
 
119
119
  const width = this.props.width === 'auto' ? null : this.props.width;
120
120
  const height = this.props.height === 'auto' ? null : this.props.height;
121
- return (0, _emotion.jsx)("svg", Object.assign({}, parseAttributes(this.props.src), (0, _omitProps.omitProps)(this.props, InlineSVG.propTypes, ['inline']), {
121
+ return (0, _emotion.jsx)("svg", Object.assign({}, parseAttributes(this.props.src), (0, _omitProps.omitProps)(this.props, InlineSVG.allowedProps, ['inline']), {
122
122
  style: { ...style,
123
123
  width,
124
124
  height
@@ -34,7 +34,8 @@ var _InlineSVG = require("../InlineSVG");
34
34
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
35
  * SOFTWARE.
36
36
  */
37
- const propTypes = { ..._InlineSVG.InlineSVG.propTypes,
37
+ const propTypes = { // eslint-disable-next-line react/forbid-foreign-prop-types
38
+ ..._InlineSVG.InlineSVG.propTypes,
38
39
  rotate: _propTypes.default.oneOf(['0', '90', '180', '270']),
39
40
  size: _propTypes.default.oneOf(['x-small', 'small', 'medium', 'large', 'x-large']),
40
41
  bidirectional: _propTypes.default.bool
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-svg-images",
3
- "version": "8.9.2-snapshot.3+ddc7880d5",
3
+ "version": "8.10.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.9.2-snapshot.3+ddc7880d5",
28
- "@instructure/ui-test-locator": "8.9.2-snapshot.3+ddc7880d5",
29
- "@instructure/ui-test-utils": "8.9.2-snapshot.3+ddc7880d5",
30
- "@instructure/ui-themes": "8.9.2-snapshot.3+ddc7880d5"
27
+ "@instructure/ui-babel-preset": "8.10.0",
28
+ "@instructure/ui-test-locator": "8.10.0",
29
+ "@instructure/ui-test-utils": "8.10.0",
30
+ "@instructure/ui-themes": "8.10.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.9.2-snapshot.3+ddc7880d5",
35
- "@instructure/shared-types": "8.9.2-snapshot.3+ddc7880d5",
36
- "@instructure/ui-react-utils": "8.9.2-snapshot.3+ddc7880d5",
37
- "@instructure/ui-testable": "8.9.2-snapshot.3+ddc7880d5",
38
- "@instructure/ui-utils": "8.9.2-snapshot.3+ddc7880d5",
39
- "@instructure/uid": "8.9.2-snapshot.3+ddc7880d5",
34
+ "@instructure/emotion": "8.10.0",
35
+ "@instructure/shared-types": "8.10.0",
36
+ "@instructure/ui-react-utils": "8.10.0",
37
+ "@instructure/ui-testable": "8.10.0",
38
+ "@instructure/ui-utils": "8.10.0",
39
+ "@instructure/uid": "8.10.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": "ddc7880d5a2f7d4d0596332e8d49cb9b1de68024"
48
+ "sideEffects": false
50
49
  }
@@ -157,7 +157,7 @@ class InlineSVG extends Component<InlineSVGProps> {
157
157
  return (
158
158
  <svg
159
159
  {...parseAttributes(this.props.src)}
160
- {...omitProps(this.props, InlineSVG.propTypes, ['inline'])}
160
+ {...omitProps(this.props, InlineSVG.allowedProps, ['inline'])}
161
161
  style={{
162
162
  ...style,
163
163
  width,
@@ -24,8 +24,8 @@
24
24
  import React from 'react'
25
25
  import PropTypes from 'prop-types'
26
26
 
27
- import type { PropValidators } from '@instructure/shared-types'
28
- import type { WithStyleProps } from '@instructure/emotion'
27
+ import type { PropValidators, InlineSVGTheme } from '@instructure/shared-types'
28
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
29
29
 
30
30
  type InlineSVGOwnProps = {
31
31
  src?: string
@@ -54,7 +54,10 @@ type PropKeys = keyof InlineSVGOwnProps
54
54
 
55
55
  type AllowedPropKeys = Readonly<Array<PropKeys>>
56
56
 
57
- type InlineSVGProps = InlineSVGOwnProps & WithStyleProps
57
+ type InlineSVGProps = InlineSVGOwnProps &
58
+ WithStyleProps<InlineSVGTheme, InlineSVGStyle>
59
+
60
+ type InlineSVGStyle = ComponentStyle<'inlineSVG'>
58
61
 
59
62
  const propTypes: PropValidators<PropKeys> = {
60
63
  children: PropTypes.node,
@@ -98,5 +101,5 @@ const allowedProps: AllowedPropKeys = [
98
101
  'color'
99
102
  ]
100
103
 
101
- export type { InlineSVGProps, InlineSVGOwnProps }
104
+ export type { InlineSVGProps, InlineSVGOwnProps, InlineSVGStyle }
102
105
  export { propTypes, allowedProps }
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { InlineSVGTheme } from '@instructure/shared-types'
26
- import { InlineSVGProps } from './props'
25
+ import type { InlineSVGTheme } from '@instructure/shared-types'
26
+ import type { InlineSVGProps, InlineSVGStyle } from './props'
27
27
 
28
28
  /**
29
29
  * ---
@@ -38,7 +38,7 @@ import { InlineSVGProps } from './props'
38
38
  const generateStyle = (
39
39
  componentTheme: InlineSVGTheme,
40
40
  props: InlineSVGProps
41
- ) => {
41
+ ): InlineSVGStyle => {
42
42
  const { inline, color } = props
43
43
 
44
44
  const colorVariants = {
@@ -25,8 +25,8 @@ import PropTypes from 'prop-types'
25
25
 
26
26
  import { InlineSVG } from '../InlineSVG'
27
27
 
28
- import type { PropValidators } from '@instructure/shared-types'
29
- import type { WithStyleProps } from '@instructure/emotion'
28
+ import type { PropValidators, SVGIconTheme } from '@instructure/shared-types'
29
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
30
30
 
31
31
  import type { InlineSVGOwnProps } from '../InlineSVG/props'
32
32
 
@@ -40,9 +40,12 @@ type PropKeys = keyof SVGIconOwnProps
40
40
 
41
41
  type AllowedPropKeys = Readonly<Array<PropKeys>>
42
42
 
43
- type SVGIconProps = SVGIconOwnProps & WithStyleProps
43
+ type SVGIconProps = SVGIconOwnProps & WithStyleProps<SVGIconTheme, SVGIconStyle>
44
+
45
+ type SVGIconStyle = ComponentStyle<'svgIcon'>
44
46
 
45
47
  const propTypes: PropValidators<PropKeys> = {
48
+ // eslint-disable-next-line react/forbid-foreign-prop-types
46
49
  ...InlineSVG.propTypes,
47
50
  rotate: PropTypes.oneOf(['0', '90', '180', '270']),
48
51
  size: PropTypes.oneOf(['x-small', 'small', 'medium', 'large', 'x-large']),
@@ -64,5 +67,5 @@ const allowedProps: AllowedPropKeys = [
64
67
  'bidirectional'
65
68
  ]
66
69
 
67
- export type { SVGIconProps }
70
+ export type { SVGIconProps, SVGIconStyle }
68
71
  export { propTypes, allowedProps }
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { SVGIconTheme } from '@instructure/shared-types'
26
- import { SVGIconProps } from './props'
25
+ import type { SVGIconTheme } from '@instructure/shared-types'
26
+ import type { SVGIconProps, SVGIconStyle } from './props'
27
27
 
28
28
  /**
29
29
  * ---
@@ -35,7 +35,10 @@ import { SVGIconProps } from './props'
35
35
  * @param {Object} state the state of the component, the style is applied to
36
36
  * @return {Object} The final style object, which will be used in the component
37
37
  */
38
- const generateStyle = (componentTheme: SVGIconTheme, props: SVGIconProps) => {
38
+ const generateStyle = (
39
+ componentTheme: SVGIconTheme,
40
+ props: SVGIconProps
41
+ ): SVGIconStyle => {
39
42
  const { rotate, size, bidirectional } = props
40
43
 
41
44
  const rotateVariants = {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { PropValidators } from '@instructure/shared-types';
3
- import type { WithStyleProps } from '@instructure/emotion';
2
+ import type { PropValidators, InlineSVGTheme } from '@instructure/shared-types';
3
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type InlineSVGOwnProps = {
5
5
  src?: string;
6
6
  title?: string;
@@ -14,9 +14,10 @@ declare type InlineSVGOwnProps = {
14
14
  };
15
15
  declare type PropKeys = keyof InlineSVGOwnProps;
16
16
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
17
- declare type InlineSVGProps = InlineSVGOwnProps & WithStyleProps;
17
+ declare type InlineSVGProps = InlineSVGOwnProps & WithStyleProps<InlineSVGTheme, InlineSVGStyle>;
18
+ declare type InlineSVGStyle = ComponentStyle<'inlineSVG'>;
18
19
  declare const propTypes: PropValidators<PropKeys>;
19
20
  declare const allowedProps: AllowedPropKeys;
20
- export type { InlineSVGProps, InlineSVGOwnProps };
21
+ export type { InlineSVGProps, InlineSVGOwnProps, InlineSVGStyle };
21
22
  export { propTypes, allowedProps };
22
23
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,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;CAC3B,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,GAAG,cAAc,CAAA;AAExD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA4BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAUnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/E,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;CAC3B,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,CAAA;AAEhD,aAAK,cAAc,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAEjD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA4BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAUnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { InlineSVGTheme } from '@instructure/shared-types';
2
- import { InlineSVGProps } from './props';
1
+ import type { InlineSVGTheme } from '@instructure/shared-types';
2
+ import type { InlineSVGProps, InlineSVGStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,62 +10,6 @@ import { InlineSVGProps } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: InlineSVGTheme, props: InlineSVGProps) => {
14
- inlineSVG: {
15
- color: string;
16
- label: string;
17
- fill: string;
18
- display: string;
19
- } | {
20
- color: string;
21
- label: string;
22
- fill: string;
23
- display: string;
24
- } | {
25
- color: string;
26
- label: string;
27
- fill: string;
28
- display: string;
29
- } | {
30
- color: string;
31
- label: string;
32
- fill: string;
33
- display: string;
34
- } | {
35
- color: string;
36
- label: string;
37
- fill: string;
38
- display: string;
39
- } | {
40
- color: string;
41
- label: string;
42
- fill: string;
43
- display: string;
44
- } | {
45
- color: string;
46
- label: string;
47
- fill: string;
48
- display: string;
49
- } | {
50
- color: string;
51
- label: string;
52
- fill: string;
53
- display: string;
54
- } | {
55
- color: string;
56
- label: string;
57
- fill: string;
58
- display: string;
59
- } | {
60
- color: string;
61
- label: string;
62
- fill: string;
63
- display: string;
64
- } | {
65
- label: string;
66
- fill: string;
67
- display: string;
68
- };
69
- };
13
+ declare const generateStyle: (componentTheme: InlineSVGTheme, props: InlineSVGProps) => InlineSVGStyle;
70
14
  export default generateStyle;
71
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/InlineSVG/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,SACvB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,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,cAyBF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { PropValidators } from '@instructure/shared-types';
2
- import type { WithStyleProps } from '@instructure/emotion';
1
+ import type { PropValidators, SVGIconTheme } from '@instructure/shared-types';
2
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
3
  import type { InlineSVGOwnProps } from '../InlineSVG/props';
4
4
  declare type SVGIconOwnProps = InlineSVGOwnProps & {
5
5
  rotate?: '0' | '90' | '180' | '270';
@@ -8,9 +8,10 @@ declare type SVGIconOwnProps = InlineSVGOwnProps & {
8
8
  };
9
9
  declare type PropKeys = keyof SVGIconOwnProps;
10
10
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
11
- declare type SVGIconProps = SVGIconOwnProps & WithStyleProps;
11
+ declare type SVGIconProps = SVGIconOwnProps & WithStyleProps<SVGIconTheme, SVGIconStyle>;
12
+ declare type SVGIconStyle = ComponentStyle<'svgIcon'>;
12
13
  declare const propTypes: PropValidators<PropKeys>;
13
14
  declare const allowedProps: AllowedPropKeys;
14
- export type { SVGIconProps };
15
+ export type { SVGIconProps, SVGIconStyle };
15
16
  export { propTypes, allowedProps };
16
17
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/props.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,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,CAAA;AAEpD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAKvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,CAAA;AAC5B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
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,CAAC,SAAS,CAAC,CAAA;AAE7C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAMvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { SVGIconTheme } from '@instructure/shared-types';
2
- import { SVGIconProps } from './props';
1
+ import type { SVGIconTheme } from '@instructure/shared-types';
2
+ import type { SVGIconProps, SVGIconStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,406 +10,6 @@ import { SVGIconProps } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: SVGIconTheme, props: SVGIconProps) => {
14
- svgIcon: {
15
- '[dir="rtl"] &'?: {
16
- transform: string;
17
- } | {
18
- transform: string;
19
- } | {
20
- transform: string;
21
- } | {
22
- transform: string;
23
- } | undefined;
24
- label: string;
25
- verticalAlign: string;
26
- lineHeight: number;
27
- width: string;
28
- height: string;
29
- } | {
30
- '[dir="rtl"] &'?: {
31
- transform: string;
32
- } | {
33
- transform: string;
34
- } | {
35
- transform: string;
36
- } | {
37
- transform: string;
38
- } | undefined;
39
- fontSize: string | 0;
40
- label: string;
41
- verticalAlign: string;
42
- lineHeight: number;
43
- width: string;
44
- height: string;
45
- } | {
46
- '[dir="rtl"] &'?: {
47
- transform: string;
48
- } | {
49
- transform: string;
50
- } | {
51
- transform: string;
52
- } | {
53
- transform: string;
54
- } | undefined;
55
- fontSize: string | 0;
56
- label: string;
57
- verticalAlign: string;
58
- lineHeight: number;
59
- width: string;
60
- height: string;
61
- } | {
62
- '[dir="rtl"] &'?: {
63
- transform: string;
64
- } | {
65
- transform: string;
66
- } | {
67
- transform: string;
68
- } | {
69
- transform: string;
70
- } | undefined;
71
- fontSize: string | 0;
72
- label: string;
73
- verticalAlign: string;
74
- lineHeight: number;
75
- width: string;
76
- height: string;
77
- } | {
78
- '[dir="rtl"] &'?: {
79
- transform: string;
80
- } | {
81
- transform: string;
82
- } | {
83
- transform: string;
84
- } | {
85
- transform: string;
86
- } | undefined;
87
- fontSize: string | 0;
88
- label: string;
89
- verticalAlign: string;
90
- lineHeight: number;
91
- width: string;
92
- height: string;
93
- } | {
94
- '[dir="rtl"] &'?: {
95
- transform: string;
96
- } | {
97
- transform: string;
98
- } | {
99
- transform: string;
100
- } | {
101
- transform: string;
102
- } | undefined;
103
- fontSize: string | 0;
104
- label: string;
105
- verticalAlign: string;
106
- lineHeight: number;
107
- width: string;
108
- height: string;
109
- } | {
110
- '[dir="rtl"] &'?: {
111
- transform: string;
112
- } | {
113
- transform: string;
114
- } | {
115
- transform: string;
116
- } | {
117
- transform: string;
118
- } | undefined;
119
- transform: string;
120
- label: string;
121
- verticalAlign: string;
122
- lineHeight: number;
123
- width: string;
124
- height: string;
125
- } | {
126
- '[dir="rtl"] &'?: {
127
- transform: string;
128
- } | {
129
- transform: string;
130
- } | {
131
- transform: string;
132
- } | {
133
- transform: string;
134
- } | undefined;
135
- fontSize: string | 0;
136
- transform: string;
137
- label: string;
138
- verticalAlign: string;
139
- lineHeight: number;
140
- width: string;
141
- height: string;
142
- } | {
143
- '[dir="rtl"] &'?: {
144
- transform: string;
145
- } | {
146
- transform: string;
147
- } | {
148
- transform: string;
149
- } | {
150
- transform: string;
151
- } | undefined;
152
- fontSize: string | 0;
153
- transform: string;
154
- label: string;
155
- verticalAlign: string;
156
- lineHeight: number;
157
- width: string;
158
- height: string;
159
- } | {
160
- '[dir="rtl"] &'?: {
161
- transform: string;
162
- } | {
163
- transform: string;
164
- } | {
165
- transform: string;
166
- } | {
167
- transform: string;
168
- } | undefined;
169
- fontSize: string | 0;
170
- transform: string;
171
- label: string;
172
- verticalAlign: string;
173
- lineHeight: number;
174
- width: string;
175
- height: string;
176
- } | {
177
- '[dir="rtl"] &'?: {
178
- transform: string;
179
- } | {
180
- transform: string;
181
- } | {
182
- transform: string;
183
- } | {
184
- transform: string;
185
- } | undefined;
186
- fontSize: string | 0;
187
- transform: string;
188
- label: string;
189
- verticalAlign: string;
190
- lineHeight: number;
191
- width: string;
192
- height: string;
193
- } | {
194
- '[dir="rtl"] &'?: {
195
- transform: string;
196
- } | {
197
- transform: string;
198
- } | {
199
- transform: string;
200
- } | {
201
- transform: string;
202
- } | undefined;
203
- fontSize: string | 0;
204
- transform: string;
205
- label: string;
206
- verticalAlign: string;
207
- lineHeight: number;
208
- width: string;
209
- height: string;
210
- } | {
211
- '[dir="rtl"] &'?: {
212
- transform: string;
213
- } | {
214
- transform: string;
215
- } | {
216
- transform: string;
217
- } | {
218
- transform: string;
219
- } | undefined;
220
- transform: string;
221
- label: string;
222
- verticalAlign: string;
223
- lineHeight: number;
224
- width: string;
225
- height: string;
226
- } | {
227
- '[dir="rtl"] &'?: {
228
- transform: string;
229
- } | {
230
- transform: string;
231
- } | {
232
- transform: string;
233
- } | {
234
- transform: string;
235
- } | undefined;
236
- fontSize: string | 0;
237
- transform: string;
238
- label: string;
239
- verticalAlign: string;
240
- lineHeight: number;
241
- width: string;
242
- height: string;
243
- } | {
244
- '[dir="rtl"] &'?: {
245
- transform: string;
246
- } | {
247
- transform: string;
248
- } | {
249
- transform: string;
250
- } | {
251
- transform: string;
252
- } | undefined;
253
- fontSize: string | 0;
254
- transform: string;
255
- label: string;
256
- verticalAlign: string;
257
- lineHeight: number;
258
- width: string;
259
- height: string;
260
- } | {
261
- '[dir="rtl"] &'?: {
262
- transform: string;
263
- } | {
264
- transform: string;
265
- } | {
266
- transform: string;
267
- } | {
268
- transform: string;
269
- } | undefined;
270
- fontSize: string | 0;
271
- transform: string;
272
- label: string;
273
- verticalAlign: string;
274
- lineHeight: number;
275
- width: string;
276
- height: string;
277
- } | {
278
- '[dir="rtl"] &'?: {
279
- transform: string;
280
- } | {
281
- transform: string;
282
- } | {
283
- transform: string;
284
- } | {
285
- transform: string;
286
- } | undefined;
287
- fontSize: string | 0;
288
- transform: string;
289
- label: string;
290
- verticalAlign: string;
291
- lineHeight: number;
292
- width: string;
293
- height: string;
294
- } | {
295
- '[dir="rtl"] &'?: {
296
- transform: string;
297
- } | {
298
- transform: string;
299
- } | {
300
- transform: string;
301
- } | {
302
- transform: string;
303
- } | undefined;
304
- fontSize: string | 0;
305
- transform: string;
306
- label: string;
307
- verticalAlign: string;
308
- lineHeight: number;
309
- width: string;
310
- height: string;
311
- } | {
312
- '[dir="rtl"] &'?: {
313
- transform: string;
314
- } | {
315
- transform: string;
316
- } | {
317
- transform: string;
318
- } | {
319
- transform: string;
320
- } | undefined;
321
- transform: string;
322
- label: string;
323
- verticalAlign: string;
324
- lineHeight: number;
325
- width: string;
326
- height: string;
327
- } | {
328
- '[dir="rtl"] &'?: {
329
- transform: string;
330
- } | {
331
- transform: string;
332
- } | {
333
- transform: string;
334
- } | {
335
- transform: string;
336
- } | undefined;
337
- fontSize: string | 0;
338
- transform: string;
339
- label: string;
340
- verticalAlign: string;
341
- lineHeight: number;
342
- width: string;
343
- height: string;
344
- } | {
345
- '[dir="rtl"] &'?: {
346
- transform: string;
347
- } | {
348
- transform: string;
349
- } | {
350
- transform: string;
351
- } | {
352
- transform: string;
353
- } | undefined;
354
- fontSize: string | 0;
355
- transform: string;
356
- label: string;
357
- verticalAlign: string;
358
- lineHeight: number;
359
- width: string;
360
- height: string;
361
- } | {
362
- '[dir="rtl"] &'?: {
363
- transform: string;
364
- } | {
365
- transform: string;
366
- } | {
367
- transform: string;
368
- } | {
369
- transform: string;
370
- } | undefined;
371
- fontSize: string | 0;
372
- transform: string;
373
- label: string;
374
- verticalAlign: string;
375
- lineHeight: number;
376
- width: string;
377
- height: string;
378
- } | {
379
- '[dir="rtl"] &'?: {
380
- transform: string;
381
- } | {
382
- transform: string;
383
- } | {
384
- transform: string;
385
- } | {
386
- transform: string;
387
- } | undefined;
388
- fontSize: string | 0;
389
- transform: string;
390
- label: string;
391
- verticalAlign: string;
392
- lineHeight: number;
393
- width: string;
394
- height: string;
395
- } | {
396
- '[dir="rtl"] &'?: {
397
- transform: string;
398
- } | {
399
- transform: string;
400
- } | {
401
- transform: string;
402
- } | {
403
- transform: string;
404
- } | undefined;
405
- fontSize: string | 0;
406
- transform: string;
407
- label: string;
408
- verticalAlign: string;
409
- lineHeight: number;
410
- width: string;
411
- height: string;
412
- };
413
- };
13
+ declare const generateStyle: (componentTheme: SVGIconTheme, props: SVGIconProps) => SVGIconStyle;
414
14
  export default generateStyle;
415
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBAAoB,YAAY,SAAS,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCvE,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/SVGIcon/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,YAAY,SACrB,YAAY,KAClB,YAwCF,CAAA;AAED,eAAe,aAAa,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.