@instructure/ui-tag 8.14.0 → 8.14.1-snapshot.17

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.
package/es/Tag/index.js CHANGED
@@ -26,7 +26,7 @@ var _dec, _dec2, _class, _class2, _temp;
26
26
 
27
27
  /** @jsx jsx */
28
28
  import React, { Component } from 'react';
29
- import { IconXSolid } from '@instructure/ui-icons';
29
+ import { IconXLine } from '@instructure/ui-icons';
30
30
  import { View } from '@instructure/ui-view';
31
31
  import { omitProps } from '@instructure/ui-react-utils';
32
32
  import { isActiveElement } from '@instructure/ui-dom-utils';
@@ -115,7 +115,7 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
115
115
  title: title || (typeof text === 'string' ? text : void 0)
116
116
  }), jsx("span", {
117
117
  css: styles === null || styles === void 0 ? void 0 : styles.text
118
- }, text), onClick && dismissible ? jsx(IconXSolid, {
118
+ }, text), onClick && dismissible ? jsx(IconXLine, {
119
119
  css: styles === null || styles === void 0 ? void 0 : styles.icon
120
120
  }) : null);
121
121
  }
package/es/Tag/styles.js CHANGED
@@ -61,7 +61,7 @@ const generateStyle = (componentTheme, props) => {
61
61
  lineHeight: `calc(${componentTheme.heightMedium} - (${componentTheme.defaultBorderWidth} * 2))`
62
62
  },
63
63
  icon: {
64
- fontSize: '0.75rem'
64
+ fontSize: '0.875rem'
65
65
  }
66
66
  },
67
67
  large: {
@@ -73,7 +73,7 @@ const generateStyle = (componentTheme, props) => {
73
73
  lineHeight: `calc(${componentTheme.heightLarge} - (${componentTheme.defaultBorderWidth} * 2))`
74
74
  },
75
75
  icon: {
76
- fontSize: '0.875rem'
76
+ fontSize: '1rem'
77
77
  }
78
78
  }
79
79
  };
@@ -209,7 +209,6 @@ const generateStyle = (componentTheme, props) => {
209
209
  label: 'tag__icon',
210
210
  marginInlineStart: componentTheme.iconMargin,
211
211
  marginInlineEnd: 0,
212
- transform: 'translateY(0.0625rem)',
213
212
  transition: `all ${componentTheme.transitionTiming}`,
214
213
  cursor: 'pointer',
215
214
  ...sizeVariants[size].icon,
package/es/Tag/theme.js CHANGED
@@ -88,7 +88,7 @@ const generateComponentTheme = theme => {
88
88
  focusOutlineWidth: borders.widthMedium,
89
89
  focusOutlineStyle: borders.style,
90
90
  maxWidth: '10rem',
91
- iconMargin: spacing.small,
91
+ iconMargin: spacing.xSmall,
92
92
  transitionTiming: '0.2s',
93
93
  ...tagVariant('default', {
94
94
  borderColor: colors.borderMedium,
package/lib/Tag/index.js CHANGED
@@ -11,7 +11,7 @@ exports.default = exports.Tag = void 0;
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
14
- var _IconXSolid = require("@instructure/ui-icons/lib/IconXSolid.js");
14
+ var _IconXLine = require("@instructure/ui-icons/lib/IconXLine.js");
15
15
 
16
16
  var _View = require("@instructure/ui-view/lib/View");
17
17
 
@@ -112,7 +112,7 @@ let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
112
112
  title: title || (typeof text === 'string' ? text : void 0)
113
113
  }), (0, _emotion.jsx)("span", {
114
114
  css: styles === null || styles === void 0 ? void 0 : styles.text
115
- }, text), onClick && dismissible ? (0, _emotion.jsx)(_IconXSolid.IconXSolid, {
115
+ }, text), onClick && dismissible ? (0, _emotion.jsx)(_IconXLine.IconXLine, {
116
116
  css: styles === null || styles === void 0 ? void 0 : styles.icon
117
117
  }) : null);
118
118
  }
package/lib/Tag/styles.js CHANGED
@@ -68,7 +68,7 @@ const generateStyle = (componentTheme, props) => {
68
68
  lineHeight: `calc(${componentTheme.heightMedium} - (${componentTheme.defaultBorderWidth} * 2))`
69
69
  },
70
70
  icon: {
71
- fontSize: '0.75rem'
71
+ fontSize: '0.875rem'
72
72
  }
73
73
  },
74
74
  large: {
@@ -80,7 +80,7 @@ const generateStyle = (componentTheme, props) => {
80
80
  lineHeight: `calc(${componentTheme.heightLarge} - (${componentTheme.defaultBorderWidth} * 2))`
81
81
  },
82
82
  icon: {
83
- fontSize: '0.875rem'
83
+ fontSize: '1rem'
84
84
  }
85
85
  }
86
86
  };
@@ -216,7 +216,6 @@ const generateStyle = (componentTheme, props) => {
216
216
  label: 'tag__icon',
217
217
  marginInlineStart: componentTheme.iconMargin,
218
218
  marginInlineEnd: 0,
219
- transform: 'translateY(0.0625rem)',
220
219
  transition: `all ${componentTheme.transitionTiming}`,
221
220
  cursor: 'pointer',
222
221
  ...sizeVariants[size].icon,
package/lib/Tag/theme.js CHANGED
@@ -96,7 +96,7 @@ const generateComponentTheme = theme => {
96
96
  focusOutlineWidth: borders.widthMedium,
97
97
  focusOutlineStyle: borders.style,
98
98
  maxWidth: '10rem',
99
- iconMargin: spacing.small,
99
+ iconMargin: spacing.xSmall,
100
100
  transitionTiming: '0.2s',
101
101
  ...tagVariant('default', {
102
102
  borderColor: colors.borderMedium,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.14.0",
3
+ "version": "8.14.1-snapshot.17+737c5b359",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.14.0",
29
- "@instructure/emotion": "8.14.0",
30
- "@instructure/shared-types": "8.14.0",
31
- "@instructure/ui-color-utils": "8.14.0",
32
- "@instructure/ui-dom-utils": "8.14.0",
33
- "@instructure/ui-icons": "8.14.0",
34
- "@instructure/ui-react-utils": "8.14.0",
35
- "@instructure/ui-testable": "8.14.0",
36
- "@instructure/ui-view": "8.14.0",
28
+ "@instructure/console": "8.14.1-snapshot.17+737c5b359",
29
+ "@instructure/emotion": "8.14.1-snapshot.17+737c5b359",
30
+ "@instructure/shared-types": "8.14.1-snapshot.17+737c5b359",
31
+ "@instructure/ui-color-utils": "8.14.1-snapshot.17+737c5b359",
32
+ "@instructure/ui-dom-utils": "8.14.1-snapshot.17+737c5b359",
33
+ "@instructure/ui-icons": "8.14.1-snapshot.17+737c5b359",
34
+ "@instructure/ui-react-utils": "8.14.1-snapshot.17+737c5b359",
35
+ "@instructure/ui-testable": "8.14.1-snapshot.17+737c5b359",
36
+ "@instructure/ui-view": "8.14.1-snapshot.17+737c5b359",
37
37
  "prop-types": "^15"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-babel-preset": "8.14.0",
41
- "@instructure/ui-test-locator": "8.14.0",
42
- "@instructure/ui-test-utils": "8.14.0",
43
- "@instructure/ui-themes": "8.14.0"
40
+ "@instructure/ui-babel-preset": "8.14.1-snapshot.17+737c5b359",
41
+ "@instructure/ui-test-locator": "8.14.1-snapshot.17+737c5b359",
42
+ "@instructure/ui-test-utils": "8.14.1-snapshot.17+737c5b359",
43
+ "@instructure/ui-themes": "8.14.1-snapshot.17+737c5b359"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -48,5 +48,6 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false
51
+ "sideEffects": false,
52
+ "gitHead": "737c5b359b44421c8a6f91c31d55f1579d8c96d9"
52
53
  }
package/src/Tag/index.tsx CHANGED
@@ -24,7 +24,7 @@
24
24
  /** @jsx jsx */
25
25
  import React, { Component } from 'react'
26
26
 
27
- import { IconXSolid } from '@instructure/ui-icons'
27
+ import { IconXLine } from '@instructure/ui-icons'
28
28
  import { View } from '@instructure/ui-view'
29
29
  import type { ViewProps } from '@instructure/ui-view'
30
30
  import { omitProps } from '@instructure/ui-react-utils'
@@ -129,7 +129,7 @@ class Tag extends Component<TagProps> {
129
129
  title={title || (typeof text === 'string' ? text : undefined)}
130
130
  >
131
131
  <span css={styles?.text}>{text}</span>
132
- {onClick && dismissible ? <IconXSolid css={styles?.icon} /> : null}
132
+ {onClick && dismissible ? <IconXLine css={styles?.icon} /> : null}
133
133
  </View>
134
134
  )
135
135
  }
package/src/Tag/styles.ts CHANGED
@@ -59,7 +59,7 @@ const generateStyle = (componentTheme: TagTheme, props: TagProps): TagStyle => {
59
59
  text: {
60
60
  lineHeight: `calc(${componentTheme.heightMedium} - (${componentTheme.defaultBorderWidth} * 2))`
61
61
  },
62
- icon: { fontSize: '0.75rem' }
62
+ icon: { fontSize: '0.875rem' }
63
63
  },
64
64
  large: {
65
65
  tag: {
@@ -69,7 +69,7 @@ const generateStyle = (componentTheme: TagTheme, props: TagProps): TagStyle => {
69
69
  text: {
70
70
  lineHeight: `calc(${componentTheme.heightLarge} - (${componentTheme.defaultBorderWidth} * 2))`
71
71
  },
72
- icon: { fontSize: '0.875rem' }
72
+ icon: { fontSize: '1rem' }
73
73
  }
74
74
  }
75
75
 
@@ -213,7 +213,6 @@ const generateStyle = (componentTheme: TagTheme, props: TagProps): TagStyle => {
213
213
  label: 'tag__icon',
214
214
  marginInlineStart: componentTheme.iconMargin,
215
215
  marginInlineEnd: 0,
216
- transform: 'translateY(0.0625rem)',
217
216
  transition: `all ${componentTheme.transitionTiming}`,
218
217
  cursor: 'pointer',
219
218
  ...sizeVariants[size!].icon,
package/src/Tag/theme.ts CHANGED
@@ -118,7 +118,7 @@ const generateComponentTheme = (theme: Theme): TagTheme => {
118
118
  focusOutlineWidth: borders.widthMedium,
119
119
  focusOutlineStyle: borders.style,
120
120
  maxWidth: '10rem',
121
- iconMargin: spacing.small,
121
+ iconMargin: spacing.xSmall,
122
122
  transitionTiming: '0.2s',
123
123
 
124
124
  ...tagVariant('default', {