@instructure/ui-link 8.36.1-snapshot-0 → 8.36.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/CHANGELOG.md +1 -1
- package/es/Link/styles.js +1 -0
- package/es/Link/theme.js +1 -0
- package/lib/Link/styles.js +1 -0
- package/lib/Link/theme.js +1 -0
- package/package.json +17 -17
- package/src/Link/styles.ts +3 -1
- package/src/Link/theme.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Link/styles.d.ts.map +1 -1
- package/types/Link/theme.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.36.1-snapshot-
|
|
6
|
+
## [8.36.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-2) (2023-04-11)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-link
|
|
9
9
|
|
package/es/Link/styles.js
CHANGED
|
@@ -50,6 +50,7 @@ const generateStyle = (componentTheme, props, state) => {
|
|
|
50
50
|
outlineColor: 'transparent',
|
|
51
51
|
outlineWidth: componentTheme.focusOutlineWidth,
|
|
52
52
|
outlineStyle: componentTheme.focusOutlineStyle,
|
|
53
|
+
borderRadius: componentTheme.focusOutlineBorderRadius,
|
|
53
54
|
outlineOffset: '0.25rem',
|
|
54
55
|
// If TruncateText is used in Link with icon, align the icon and the text vertically
|
|
55
56
|
...(renderIcon && containsTruncateText && hasVisibleChildren && {
|
package/es/Link/theme.js
CHANGED
|
@@ -61,6 +61,7 @@ const generateComponentTheme = theme => {
|
|
|
61
61
|
focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
|
|
62
62
|
focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
|
|
63
63
|
focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style,
|
|
64
|
+
focusOutlineBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusSmall,
|
|
64
65
|
hoverColor: darken(colors === null || colors === void 0 ? void 0 : colors.textLink, 10),
|
|
65
66
|
colorInverse: colors === null || colors === void 0 ? void 0 : colors.textLight,
|
|
66
67
|
focusInverseOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderLightest,
|
package/lib/Link/styles.js
CHANGED
|
@@ -56,6 +56,7 @@ const generateStyle = (componentTheme, props, state) => {
|
|
|
56
56
|
outlineColor: 'transparent',
|
|
57
57
|
outlineWidth: componentTheme.focusOutlineWidth,
|
|
58
58
|
outlineStyle: componentTheme.focusOutlineStyle,
|
|
59
|
+
borderRadius: componentTheme.focusOutlineBorderRadius,
|
|
59
60
|
outlineOffset: '0.25rem',
|
|
60
61
|
// If TruncateText is used in Link with icon, align the icon and the text vertically
|
|
61
62
|
...(renderIcon && containsTruncateText && hasVisibleChildren && {
|
package/lib/Link/theme.js
CHANGED
|
@@ -67,6 +67,7 @@ const generateComponentTheme = theme => {
|
|
|
67
67
|
focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
|
|
68
68
|
focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
|
|
69
69
|
focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style,
|
|
70
|
+
focusOutlineBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusSmall,
|
|
70
71
|
hoverColor: (0, _darken.darken)(colors === null || colors === void 0 ? void 0 : colors.textLink, 10),
|
|
71
72
|
colorInverse: colors === null || colors === void 0 ? void 0 : colors.textLight,
|
|
72
73
|
focusInverseOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderLightest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-link",
|
|
3
|
-
"version": "8.36.1-snapshot-
|
|
3
|
+
"version": "8.36.1-snapshot-2",
|
|
4
4
|
"description": "A component for creating links",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.20.13",
|
|
27
|
-
"@instructure/console": "8.36.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.36.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.36.1-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-utils": "8.36.1-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "8.36.1-snapshot-
|
|
32
|
-
"@instructure/ui-dom-utils": "8.36.1-snapshot-
|
|
33
|
-
"@instructure/ui-icons": "8.36.1-snapshot-
|
|
34
|
-
"@instructure/ui-prop-types": "8.36.1-snapshot-
|
|
35
|
-
"@instructure/ui-react-utils": "8.36.1-snapshot-
|
|
36
|
-
"@instructure/ui-testable": "8.36.1-snapshot-
|
|
37
|
-
"@instructure/ui-view": "8.36.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.36.1-snapshot-2",
|
|
28
|
+
"@instructure/emotion": "8.36.1-snapshot-2",
|
|
29
|
+
"@instructure/shared-types": "8.36.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-a11y-utils": "8.36.1-snapshot-2",
|
|
31
|
+
"@instructure/ui-color-utils": "8.36.1-snapshot-2",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.36.1-snapshot-2",
|
|
33
|
+
"@instructure/ui-icons": "8.36.1-snapshot-2",
|
|
34
|
+
"@instructure/ui-prop-types": "8.36.1-snapshot-2",
|
|
35
|
+
"@instructure/ui-react-utils": "8.36.1-snapshot-2",
|
|
36
|
+
"@instructure/ui-testable": "8.36.1-snapshot-2",
|
|
37
|
+
"@instructure/ui-view": "8.36.1-snapshot-2",
|
|
38
38
|
"prop-types": "^15.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.36.1-snapshot-
|
|
42
|
-
"@instructure/ui-test-locator": "8.36.1-snapshot-
|
|
43
|
-
"@instructure/ui-test-queries": "8.36.1-snapshot-
|
|
44
|
-
"@instructure/ui-test-utils": "8.36.1-snapshot-
|
|
45
|
-
"@instructure/ui-themes": "8.36.1-snapshot-
|
|
41
|
+
"@instructure/ui-babel-preset": "8.36.1-snapshot-2",
|
|
42
|
+
"@instructure/ui-test-locator": "8.36.1-snapshot-2",
|
|
43
|
+
"@instructure/ui-test-queries": "8.36.1-snapshot-2",
|
|
44
|
+
"@instructure/ui-test-utils": "8.36.1-snapshot-2",
|
|
45
|
+
"@instructure/ui-themes": "8.36.1-snapshot-2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=18"
|
package/src/Link/styles.ts
CHANGED
|
@@ -55,6 +55,7 @@ const generateStyle = (
|
|
|
55
55
|
outlineColor: 'transparent',
|
|
56
56
|
outlineWidth: componentTheme.focusOutlineWidth,
|
|
57
57
|
outlineStyle: componentTheme.focusOutlineStyle,
|
|
58
|
+
borderRadius: componentTheme.focusOutlineBorderRadius,
|
|
58
59
|
outlineOffset: '0.25rem',
|
|
59
60
|
|
|
60
61
|
// If TruncateText is used in Link with icon, align the icon and the text vertically
|
|
@@ -134,7 +135,8 @@ const generateStyle = (
|
|
|
134
135
|
...(inverseStyle && {
|
|
135
136
|
...inverseStyles,
|
|
136
137
|
'&:is(a):link, &:is(a):visited, &:is(button)': inverseStyles,
|
|
137
|
-
'&:-webkit-any(a):link, &:-webkit-any(a):visited, &:-webkit-any(button)':
|
|
138
|
+
'&:-webkit-any(a):link, &:-webkit-any(a):visited, &:-webkit-any(button)':
|
|
139
|
+
inverseStyles
|
|
138
140
|
})
|
|
139
141
|
},
|
|
140
142
|
icon: {
|
package/src/Link/theme.ts
CHANGED
|
@@ -62,6 +62,7 @@ const generateComponentTheme = (theme: Theme): LinkTheme => {
|
|
|
62
62
|
focusOutlineWidth: borders?.widthMedium,
|
|
63
63
|
focusOutlineColor: colors?.borderBrand,
|
|
64
64
|
focusOutlineStyle: borders?.style,
|
|
65
|
+
focusOutlineBorderRadius: borders?.radiusSmall,
|
|
65
66
|
|
|
66
67
|
hoverColor: darken(colors?.textLink, 10),
|
|
67
68
|
|