@instructure/ui-tag 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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 +44 -0
- package/LICENSE.md +1 -0
- package/{lib/Tag/v2/props.js → babel.config.cjs} +12 -7
- package/es/Tag/v1/index.js +5 -4
- package/es/Tag/v2/index.js +5 -5
- package/es/Tag/v2/props.js +1 -1
- package/es/exports/a.js +2 -1
- package/es/exports/b.js +2 -1
- package/package.json +14 -19
- package/src/Tag/v1/index.tsx +4 -3
- package/src/Tag/v2/index.tsx +4 -4
- package/src/Tag/v2/props.ts +0 -6
- package/src/exports/a.ts +1 -1
- package/src/exports/b.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Tag/v1/index.d.ts +1 -0
- package/types/Tag/v1/index.d.ts.map +1 -1
- package/types/Tag/v2/index.d.ts +1 -1
- package/types/Tag/v2/index.d.ts.map +1 -1
- package/types/Tag/v2/props.d.ts +0 -5
- package/types/Tag/v2/props.d.ts.map +1 -1
- package/types/exports/a.d.ts +1 -1
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +1 -1
- package/types/exports/b.d.ts.map +1 -1
- package/lib/Tag/v1/index.js +0 -127
- package/lib/Tag/v1/props.js +0 -31
- package/lib/Tag/v1/styles.js +0 -232
- package/lib/Tag/v1/theme.js +0 -98
- package/lib/Tag/v2/index.js +0 -170
- package/lib/Tag/v2/styles.js +0 -215
- package/lib/exports/a.js +0 -12
- package/lib/exports/b.js +0 -12
- package/lib/package.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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
|
+
## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **many:** remove deprecated v2 items ([eaf8876](https://github.com/instructure/instructure-ui/commit/eaf88767c9beb95c4e09ee5705c387dfd79e4cb7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **many:** Removed FormFieldLabel component
|
|
17
|
+
|
|
18
|
+
Removed _content prop from DrawerLayout.Tray and DrawerLayout.Content
|
|
19
|
+
|
|
20
|
+
Removed _link prop from Link
|
|
21
|
+
|
|
22
|
+
Removed _node prop from Menu.Item
|
|
23
|
+
|
|
24
|
+
Removed _root prop from Pagination, TreeBrowser
|
|
25
|
+
|
|
26
|
+
Removed _select prop from SimpleSelect and TimeSelect
|
|
27
|
+
|
|
28
|
+
Removed _ref prop from TruncateText
|
|
29
|
+
|
|
30
|
+
Removed _element prop from View
|
|
31
|
+
|
|
32
|
+
Removed color="ai" from Heading
|
|
33
|
+
|
|
34
|
+
Removed variant="inline-small" and variant="standalone-small" from Link
|
|
35
|
+
|
|
36
|
+
Removed title prop from Tag
|
|
37
|
+
|
|
38
|
+
Removed focusRingBorderRadius prop from View
|
|
39
|
+
|
|
40
|
+
Removed hideActionsUserSeparator prop from TopNavBar.Layout
|
|
41
|
+
|
|
42
|
+
Removed handleFocusOutlineColor, handleFocusOutlineWidth, handleShadowColor from RangeInput
|
|
43
|
+
|
|
44
|
+
INSTUI-5025
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
51
|
|
|
8
52
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES),
|
|
31
|
+
removeConsole: process.env.NODE_ENV === 'production',
|
|
32
|
+
transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
package/es/Tag/v1/index.js
CHANGED
|
@@ -29,9 +29,10 @@ import { View } from '@instructure/ui-view/v11_6';
|
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
30
30
|
import { isActiveElement } from '@instructure/ui-dom-utils';
|
|
31
31
|
import { withStyle } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import generateComponentTheme from
|
|
34
|
-
import { allowedProps } from
|
|
32
|
+
import generateStyle from './styles.js';
|
|
33
|
+
import generateComponentTheme from './theme.js';
|
|
34
|
+
import { allowedProps } from './props.js';
|
|
35
|
+
|
|
35
36
|
/**
|
|
36
37
|
---
|
|
37
38
|
category: components
|
|
@@ -39,7 +40,7 @@ category: components
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Tag extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'Tag';
|
|
43
44
|
static componentId = 'Tag';
|
|
44
45
|
static allowedProps = allowedProps;
|
|
45
46
|
static defaultProps = {
|
package/es/Tag/v2/index.js
CHANGED
|
@@ -29,8 +29,9 @@ import { View } from '@instructure/ui-view/latest';
|
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
30
30
|
import { isActiveElement } from '@instructure/ui-dom-utils';
|
|
31
31
|
import { withStyleNew } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import { allowedProps } from
|
|
32
|
+
import generateStyle from './styles.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
category: components
|
|
@@ -38,7 +39,7 @@ category: components
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let Tag = (_dec = withStyleNew(generateStyle), _dec(_class = class Tag extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'Tag';
|
|
42
43
|
static componentId = 'Tag';
|
|
43
44
|
static allowedProps = allowedProps;
|
|
44
45
|
static defaultProps = {
|
|
@@ -115,7 +116,6 @@ let Tag = (_dec = withStyleNew(generateStyle), _dec(_class = class Tag extends C
|
|
|
115
116
|
disabled,
|
|
116
117
|
readOnly,
|
|
117
118
|
text,
|
|
118
|
-
title,
|
|
119
119
|
onClick,
|
|
120
120
|
margin,
|
|
121
121
|
styles,
|
|
@@ -144,7 +144,7 @@ let Tag = (_dec = withStyleNew(generateStyle), _dec(_class = class Tag extends C
|
|
|
144
144
|
}),
|
|
145
145
|
disabled: disabled || readOnly,
|
|
146
146
|
display: undefined,
|
|
147
|
-
title:
|
|
147
|
+
title: typeof text === 'string' ? text : undefined,
|
|
148
148
|
"data-cid": "Tag",
|
|
149
149
|
onMouseEnter: this.handleIconMouseEnter,
|
|
150
150
|
onMouseLeave: this.handleIconMouseLeave,
|
package/es/Tag/v2/props.js
CHANGED
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
const allowedProps = ['className', 'text', '
|
|
25
|
+
const allowedProps = ['className', 'text', 'disabled', 'readOnly', 'dismissible', 'margin', 'onClick', 'elementRef', 'size', 'variant'];
|
|
26
26
|
export { allowedProps };
|
package/es/exports/a.js
CHANGED
package/es/exports/b.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tag",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A tag component",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/emotion": "11.7.
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/ui-
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-icons": "11.7.
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-view": "11.7.
|
|
26
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
25
|
+
"@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
|
|
26
|
+
"@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
|
30
30
|
"@testing-library/react": "15.0.7",
|
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
|
32
32
|
"vitest": "^3.2.2",
|
|
33
|
-
"@instructure/ui-axe-check": "11.7.
|
|
34
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
33
|
+
"@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=18 <=19"
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"exports": {
|
|
44
|
-
"./lib/*": "./lib/*",
|
|
45
44
|
"./es/*": "./es/*",
|
|
46
45
|
"./types/*": "./types/*",
|
|
47
46
|
"./package.json": "./package.json",
|
|
@@ -50,28 +49,24 @@
|
|
|
50
49
|
"src": "./src/exports/a.ts",
|
|
51
50
|
"types": "./types/exports/a.d.ts",
|
|
52
51
|
"import": "./es/exports/a.js",
|
|
53
|
-
"require": "./lib/exports/a.js",
|
|
54
52
|
"default": "./es/exports/a.js"
|
|
55
53
|
},
|
|
56
54
|
"./v11_6": {
|
|
57
55
|
"src": "./src/exports/a.ts",
|
|
58
56
|
"types": "./types/exports/a.d.ts",
|
|
59
57
|
"import": "./es/exports/a.js",
|
|
60
|
-
"require": "./lib/exports/a.js",
|
|
61
58
|
"default": "./es/exports/a.js"
|
|
62
59
|
},
|
|
63
60
|
"./v11_7": {
|
|
64
61
|
"src": "./src/exports/b.ts",
|
|
65
62
|
"types": "./types/exports/b.d.ts",
|
|
66
63
|
"import": "./es/exports/b.js",
|
|
67
|
-
"require": "./lib/exports/b.js",
|
|
68
64
|
"default": "./es/exports/b.js"
|
|
69
65
|
},
|
|
70
66
|
"./latest": {
|
|
71
67
|
"src": "./src/exports/b.ts",
|
|
72
68
|
"types": "./types/exports/b.d.ts",
|
|
73
69
|
"import": "./es/exports/b.js",
|
|
74
|
-
"require": "./lib/exports/b.js",
|
|
75
70
|
"default": "./es/exports/b.js"
|
|
76
71
|
}
|
|
77
72
|
},
|
|
@@ -79,7 +74,7 @@
|
|
|
79
74
|
"lint": "ui-scripts lint",
|
|
80
75
|
"lint:fix": "ui-scripts lint --fix",
|
|
81
76
|
"clean": "ui-scripts clean",
|
|
82
|
-
"build": "ui-scripts build
|
|
77
|
+
"build": "ui-scripts build",
|
|
83
78
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
84
79
|
"build:types": "tsc -p tsconfig.build.json",
|
|
85
80
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
package/src/Tag/v1/index.tsx
CHANGED
|
@@ -31,10 +31,10 @@ import { omitProps } from '@instructure/ui-react-utils'
|
|
|
31
31
|
import { isActiveElement } from '@instructure/ui-dom-utils'
|
|
32
32
|
import { withStyle } from '@instructure/emotion'
|
|
33
33
|
|
|
34
|
-
import generateStyle from './styles'
|
|
35
|
-
import generateComponentTheme from './theme'
|
|
34
|
+
import generateStyle from './styles.js'
|
|
35
|
+
import generateComponentTheme from './theme.js'
|
|
36
36
|
import type { TagProps } from './props'
|
|
37
|
-
import { allowedProps } from './props'
|
|
37
|
+
import { allowedProps } from './props.js'
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
@@ -44,6 +44,7 @@ category: components
|
|
|
44
44
|
|
|
45
45
|
@withStyle(generateStyle, generateComponentTheme)
|
|
46
46
|
class Tag extends Component<TagProps> {
|
|
47
|
+
static displayName = 'Tag'
|
|
47
48
|
static readonly componentId = 'Tag'
|
|
48
49
|
|
|
49
50
|
static allowedProps = allowedProps
|
package/src/Tag/v2/index.tsx
CHANGED
|
@@ -31,9 +31,9 @@ import { omitProps } from '@instructure/ui-react-utils'
|
|
|
31
31
|
import { isActiveElement } from '@instructure/ui-dom-utils'
|
|
32
32
|
import { withStyleNew } from '@instructure/emotion'
|
|
33
33
|
|
|
34
|
-
import generateStyle from './styles'
|
|
34
|
+
import generateStyle from './styles.js'
|
|
35
35
|
import type { TagProps } from './props'
|
|
36
|
-
import { allowedProps } from './props'
|
|
36
|
+
import { allowedProps } from './props.js'
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -43,6 +43,7 @@ category: components
|
|
|
43
43
|
|
|
44
44
|
@withStyleNew(generateStyle)
|
|
45
45
|
class Tag extends Component<TagProps> {
|
|
46
|
+
static displayName = 'Tag'
|
|
46
47
|
static readonly componentId = 'Tag'
|
|
47
48
|
|
|
48
49
|
static allowedProps = allowedProps
|
|
@@ -126,7 +127,6 @@ class Tag extends Component<TagProps> {
|
|
|
126
127
|
disabled,
|
|
127
128
|
readOnly,
|
|
128
129
|
text,
|
|
129
|
-
title,
|
|
130
130
|
onClick,
|
|
131
131
|
margin,
|
|
132
132
|
styles,
|
|
@@ -160,7 +160,7 @@ class Tag extends Component<TagProps> {
|
|
|
160
160
|
{...(onClick && { onClick: this.handleClick })}
|
|
161
161
|
disabled={disabled || readOnly}
|
|
162
162
|
display={undefined}
|
|
163
|
-
title={
|
|
163
|
+
title={typeof text === 'string' ? text : undefined}
|
|
164
164
|
data-cid="Tag"
|
|
165
165
|
onMouseEnter={this.handleIconMouseEnter}
|
|
166
166
|
onMouseLeave={this.handleIconMouseLeave}
|
package/src/Tag/v2/props.ts
CHANGED
|
@@ -35,11 +35,6 @@ import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
|
35
35
|
type TagOwnProps = {
|
|
36
36
|
className?: string
|
|
37
37
|
text: string | React.ReactNode
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated since version 10
|
|
40
|
-
* Use of the title attribute is highly problematic due to accessibility concerns
|
|
41
|
-
*/
|
|
42
|
-
title?: string
|
|
43
38
|
/**
|
|
44
39
|
* Whether or not to disable the tag
|
|
45
40
|
*/
|
|
@@ -79,7 +74,6 @@ type TagStyle = ComponentStyle<'tag' | 'text' | 'icon'>
|
|
|
79
74
|
const allowedProps: AllowedPropKeys = [
|
|
80
75
|
'className',
|
|
81
76
|
'text',
|
|
82
|
-
'title',
|
|
83
77
|
'disabled',
|
|
84
78
|
'readOnly',
|
|
85
79
|
'dismissible',
|
package/src/exports/a.ts
CHANGED
package/src/exports/b.ts
CHANGED