@instructure/ui-view 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/ContextView/v2/props.js → babel.config.cjs} +12 -7
- package/es/ContextView/v1/index.js +5 -5
- package/es/ContextView/v1/styles.js +0 -1
- package/es/ContextView/v2/index.js +4 -4
- package/es/ContextView/v2/styles.js +0 -1
- package/es/View/v1/index.js +4 -4
- package/es/View/v2/index.js +3 -6
- package/es/View/v2/props.js +1 -1
- package/es/exports/a.js +3 -2
- package/es/exports/b.js +3 -2
- package/package.json +14 -19
- package/src/ContextView/v1/index.tsx +5 -4
- package/src/ContextView/v2/index.tsx +4 -3
- package/src/View/v1/index.tsx +4 -3
- package/src/View/v2/index.tsx +3 -9
- package/src/View/v2/props.ts +0 -12
- package/src/exports/a.ts +2 -2
- package/src/exports/b.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/ContextView/v1/index.d.ts +1 -0
- package/types/ContextView/v1/index.d.ts.map +1 -1
- package/types/ContextView/v2/index.d.ts +1 -0
- package/types/ContextView/v2/index.d.ts.map +1 -1
- package/types/View/v1/index.d.ts +2 -1
- package/types/View/v1/index.d.ts.map +1 -1
- package/types/View/v2/index.d.ts +2 -2
- package/types/View/v2/index.d.ts.map +1 -1
- package/types/View/v2/props.d.ts +0 -11
- package/types/View/v2/props.d.ts.map +1 -1
- package/types/exports/a.d.ts +2 -2
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +2 -2
- package/types/exports/b.d.ts.map +1 -1
- package/lib/ContextView/v1/index.js +0 -133
- package/lib/ContextView/v1/props.js +0 -31
- package/lib/ContextView/v1/styles.js +0 -267
- package/lib/ContextView/v1/theme.js +0 -49
- package/lib/ContextView/v2/index.js +0 -132
- package/lib/ContextView/v2/styles.js +0 -267
- package/lib/View/v1/index.js +0 -182
- package/lib/View/v1/props.js +0 -34
- package/lib/View/v1/styles.js +0 -423
- package/lib/View/v1/theme.js +0 -109
- package/lib/View/v2/index.js +0 -181
- package/lib/View/v2/props.js +0 -34
- package/lib/View/v2/styles.js +0 -432
- package/lib/exports/a.js +0 -19
- package/lib/exports/b.js +0 -19
- 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
|
+
}
|
|
@@ -26,10 +26,10 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { View } from
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
29
|
+
import { View } from '../../View/v1/index.js';
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -37,7 +37,7 @@ category: components
|
|
|
37
37
|
---
|
|
38
38
|
**/
|
|
39
39
|
let ContextView = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ContextView extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'ContextView';
|
|
41
41
|
static componentId = 'ContextView';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
|
@@ -26,9 +26,9 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyleNew } from '@instructure/emotion';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { View } from
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
29
|
+
import { View } from '../../View/v2/index.js';
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
33
33
|
/**
|
|
34
34
|
---
|
|
@@ -36,7 +36,7 @@ category: components
|
|
|
36
36
|
---
|
|
37
37
|
**/
|
|
38
38
|
let ContextView = (_dec = withStyleNew(generateStyle), _dec(_class = class ContextView extends Component {
|
|
39
|
-
static displayName =
|
|
39
|
+
static displayName = 'ContextView';
|
|
40
40
|
static componentId = 'ContextView';
|
|
41
41
|
static allowedProps = allowedProps;
|
|
42
42
|
static defaultProps = {
|
package/es/View/v1/index.js
CHANGED
|
@@ -29,9 +29,9 @@ import { textDirectionContextConsumer } from '@instructure/ui-i18n';
|
|
|
29
29
|
import { logError as error } from '@instructure/console';
|
|
30
30
|
import { getElementType, omitProps, pickProps, passthroughProps } from '@instructure/ui-react-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
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
@@ -40,7 +40,7 @@ category: components
|
|
|
40
40
|
@module View
|
|
41
41
|
**/
|
|
42
42
|
let View = (_dec = textDirectionContextConsumer(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class View extends Component {
|
|
43
|
-
static displayName =
|
|
43
|
+
static displayName = 'View';
|
|
44
44
|
static componentId = 'View';
|
|
45
45
|
static allowedProps = allowedProps;
|
|
46
46
|
static defaultProps = {
|
package/es/View/v2/index.js
CHANGED
|
@@ -29,8 +29,8 @@ import { textDirectionContextConsumer } from '@instructure/ui-i18n';
|
|
|
29
29
|
import { logError as error } from '@instructure/console';
|
|
30
30
|
import { getElementType, omitProps, pickProps, passthroughProps } from '@instructure/ui-react-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
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
35
35
|
/**
|
|
36
36
|
---
|
|
@@ -39,7 +39,7 @@ category: components
|
|
|
39
39
|
@module View
|
|
40
40
|
**/
|
|
41
41
|
let View = (_dec = textDirectionContextConsumer(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class View extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'View';
|
|
43
43
|
static componentId = 'View';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
|
@@ -81,9 +81,6 @@ let View = (_dec = textDirectionContextConsumer(), _dec2 = withStyleNew(generate
|
|
|
81
81
|
return omitProps(props, propsToOmit);
|
|
82
82
|
};
|
|
83
83
|
spanMarginVerified;
|
|
84
|
-
get _element() {
|
|
85
|
-
return this.ref;
|
|
86
|
-
}
|
|
87
84
|
constructor(props) {
|
|
88
85
|
super(props);
|
|
89
86
|
this.spanMarginVerified = false;
|
package/es/View/v2/props.js
CHANGED
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
// This variable will be attached as static property on the `View` component
|
|
26
26
|
// so we don't rely on the `PropTypes` validators for our internal logic.
|
|
27
27
|
// This means on prod builds the consuming applications can safely delete propTypes.
|
|
28
|
-
const allowedProps = ['as', 'background', 'borderColor', 'borderRadius', 'borderWidth', 'children', 'cursor', 'dir', 'display', 'elementRef', 'focusColor', 'focusPosition', 'height', 'insetBlockEnd', 'insetBlockStart', 'insetInlineEnd', 'insetInlineStart', 'margin', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflowX', 'overflowY', 'overscrollBehavior', 'padding', 'position', 'shadow', 'shouldAnimateFocus', 'stacking', 'textAlign', 'width', 'withFocusOutline', 'withVisualDebug', '
|
|
28
|
+
const allowedProps = ['as', 'background', 'borderColor', 'borderRadius', 'borderWidth', 'children', 'cursor', 'dir', 'display', 'elementRef', 'focusColor', 'focusPosition', 'height', 'insetBlockEnd', 'insetBlockStart', 'insetInlineEnd', 'insetInlineStart', 'margin', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflowX', 'overflowY', 'overscrollBehavior', 'padding', 'position', 'shadow', 'shouldAnimateFocus', 'stacking', 'textAlign', 'width', 'withFocusOutline', 'withVisualDebug', 'focusWithin'];
|
|
29
29
|
export { allowedProps };
|
package/es/exports/a.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { ContextView } from '../ContextView/v1/index.js';
|
|
26
|
+
export { View } from '../View/v1/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { ContextView } from '../ContextView/v2/index.js';
|
|
26
|
+
export { View } from '../View/v2/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-view",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A component for basic styles including spacing, sizing, borders, display, positioning, and focus states.",
|
|
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,22 +15,22 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.
|
|
19
|
-
"@instructure/shared-types": "11.7.
|
|
20
|
-
"@instructure/ui-
|
|
21
|
-
"@instructure/ui-
|
|
22
|
-
"@instructure/emotion": "11.7.
|
|
23
|
-
"@instructure/ui-i18n": "11.7.
|
|
24
|
-
"@instructure/ui-position": "11.7.
|
|
25
|
-
"@instructure/ui-react-utils": "11.7.
|
|
26
|
-
"@instructure/ui-themes": "11.7.
|
|
18
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-i18n": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
|
|
25
|
+
"@instructure/ui-react-utils": "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
|
"vitest": "^3.2.2",
|
|
32
|
-
"@instructure/ui-axe-check": "11.7.
|
|
33
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
32
|
+
"@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
|
|
33
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18 <=19"
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"exports": {
|
|
43
|
-
"./lib/*": "./lib/*",
|
|
44
43
|
"./es/*": "./es/*",
|
|
45
44
|
"./types/*": "./types/*",
|
|
46
45
|
"./package.json": "./package.json",
|
|
@@ -49,28 +48,24 @@
|
|
|
49
48
|
"src": "./src/exports/a.ts",
|
|
50
49
|
"types": "./types/exports/a.d.ts",
|
|
51
50
|
"import": "./es/exports/a.js",
|
|
52
|
-
"require": "./lib/exports/a.js",
|
|
53
51
|
"default": "./es/exports/a.js"
|
|
54
52
|
},
|
|
55
53
|
"./v11_6": {
|
|
56
54
|
"src": "./src/exports/a.ts",
|
|
57
55
|
"types": "./types/exports/a.d.ts",
|
|
58
56
|
"import": "./es/exports/a.js",
|
|
59
|
-
"require": "./lib/exports/a.js",
|
|
60
57
|
"default": "./es/exports/a.js"
|
|
61
58
|
},
|
|
62
59
|
"./v11_7": {
|
|
63
60
|
"src": "./src/exports/b.ts",
|
|
64
61
|
"types": "./types/exports/b.d.ts",
|
|
65
62
|
"import": "./es/exports/b.js",
|
|
66
|
-
"require": "./lib/exports/b.js",
|
|
67
63
|
"default": "./es/exports/b.js"
|
|
68
64
|
},
|
|
69
65
|
"./latest": {
|
|
70
66
|
"src": "./src/exports/b.ts",
|
|
71
67
|
"types": "./types/exports/b.d.ts",
|
|
72
68
|
"import": "./es/exports/b.js",
|
|
73
|
-
"require": "./lib/exports/b.js",
|
|
74
69
|
"default": "./es/exports/b.js"
|
|
75
70
|
}
|
|
76
71
|
},
|
|
@@ -78,7 +73,7 @@
|
|
|
78
73
|
"lint": "ui-scripts lint",
|
|
79
74
|
"lint:fix": "ui-scripts lint --fix",
|
|
80
75
|
"clean": "ui-scripts clean",
|
|
81
|
-
"build": "ui-scripts build
|
|
76
|
+
"build": "ui-scripts build",
|
|
82
77
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
83
78
|
"build:types": "tsc -p tsconfig.build.json",
|
|
84
79
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -27,11 +27,11 @@ import { Component } from 'react'
|
|
|
27
27
|
import { withStyle } from '@instructure/emotion'
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils'
|
|
29
29
|
|
|
30
|
-
import { View } from '../../View/v1'
|
|
30
|
+
import { View } from '../../View/v1/index.js'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
33
|
-
import generateComponentTheme from './theme'
|
|
34
|
-
import { allowedProps } from './props'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
|
+
import generateComponentTheme from './theme.js'
|
|
34
|
+
import { allowedProps } from './props.js'
|
|
35
35
|
import type { ContextViewProps } from './props'
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -42,6 +42,7 @@ category: components
|
|
|
42
42
|
|
|
43
43
|
@withStyle(generateStyle, generateComponentTheme)
|
|
44
44
|
class ContextView extends Component<ContextViewProps> {
|
|
45
|
+
static displayName = 'ContextView'
|
|
45
46
|
static readonly componentId = 'ContextView'
|
|
46
47
|
static allowedProps = allowedProps
|
|
47
48
|
static defaultProps = {
|
|
@@ -27,10 +27,10 @@ import { Component } from 'react'
|
|
|
27
27
|
import { withStyleNew } from '@instructure/emotion'
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils'
|
|
29
29
|
|
|
30
|
-
import { View } from '../../View/v2'
|
|
30
|
+
import { View } from '../../View/v2/index.js'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
33
|
-
import { allowedProps } from './props'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
|
+
import { allowedProps } from './props.js'
|
|
34
34
|
import type { ContextViewProps } from './props'
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -41,6 +41,7 @@ category: components
|
|
|
41
41
|
|
|
42
42
|
@withStyleNew(generateStyle)
|
|
43
43
|
class ContextView extends Component<ContextViewProps> {
|
|
44
|
+
static displayName = 'ContextView'
|
|
44
45
|
static readonly componentId = 'ContextView'
|
|
45
46
|
static allowedProps = allowedProps
|
|
46
47
|
static defaultProps = {
|
package/src/View/v1/index.tsx
CHANGED
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
} from '@instructure/ui-react-utils'
|
|
36
36
|
import { withStyle } from '@instructure/emotion'
|
|
37
37
|
|
|
38
|
-
import generateStyle from './styles'
|
|
39
|
-
import generateComponentTheme from './theme'
|
|
38
|
+
import generateStyle from './styles.js'
|
|
39
|
+
import generateComponentTheme from './theme.js'
|
|
40
40
|
|
|
41
|
-
import { allowedProps } from './props'
|
|
41
|
+
import { allowedProps } from './props.js'
|
|
42
42
|
import type { ViewProps } from './props'
|
|
43
43
|
|
|
44
44
|
declare const process: Record<string, any> | undefined
|
|
@@ -52,6 +52,7 @@ category: components
|
|
|
52
52
|
@textDirectionContextConsumer()
|
|
53
53
|
@withStyle(generateStyle, generateComponentTheme)
|
|
54
54
|
class View extends Component<ViewProps> {
|
|
55
|
+
static displayName = 'View'
|
|
55
56
|
static componentId = 'View'
|
|
56
57
|
static allowedProps = allowedProps
|
|
57
58
|
static defaultProps = {
|
package/src/View/v2/index.tsx
CHANGED
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
} from '@instructure/ui-react-utils'
|
|
36
36
|
import { withStyleNew } from '@instructure/emotion'
|
|
37
37
|
|
|
38
|
-
import generateStyle from './styles'
|
|
38
|
+
import generateStyle from './styles.js'
|
|
39
39
|
|
|
40
|
-
import { allowedProps } from './props'
|
|
40
|
+
import { allowedProps } from './props.js'
|
|
41
41
|
import type { ViewProps } from './props'
|
|
42
42
|
|
|
43
43
|
declare const process: Record<string, any> | undefined
|
|
@@ -51,6 +51,7 @@ category: components
|
|
|
51
51
|
@textDirectionContextConsumer()
|
|
52
52
|
@withStyleNew(generateStyle)
|
|
53
53
|
class View extends Component<ViewProps> {
|
|
54
|
+
static displayName = 'View'
|
|
54
55
|
static componentId = 'View'
|
|
55
56
|
static allowedProps = allowedProps
|
|
56
57
|
static defaultProps = {
|
|
@@ -106,13 +107,6 @@ class View extends Component<ViewProps> {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
private spanMarginVerified: boolean
|
|
109
|
-
get _element() {
|
|
110
|
-
console.warn(
|
|
111
|
-
'_element property is deprecated and will be removed in v9, please use ref instead'
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
return this.ref
|
|
115
|
-
}
|
|
116
110
|
|
|
117
111
|
constructor(props: ViewProps) {
|
|
118
112
|
super(props)
|
package/src/View/v2/props.ts
CHANGED
|
@@ -201,17 +201,6 @@ type ViewOwnProps = {
|
|
|
201
201
|
* Valid values are `auto`, `contain`, `none`.
|
|
202
202
|
*/
|
|
203
203
|
overscrollBehavior?: 'auto' | 'contain' | 'none'
|
|
204
|
-
/**
|
|
205
|
-
* DEPRECATED, this prop does nothing. Use the focusOutlineOffset theme
|
|
206
|
-
* variable
|
|
207
|
-
*
|
|
208
|
-
* Sets the radius of the focus border ring.
|
|
209
|
-
*
|
|
210
|
-
* For offset type, the given value is increased by the difference between the focus ring' offset and the focus ring's width.
|
|
211
|
-
*
|
|
212
|
-
* For inset type, the given value is decreased by the sum of the focus ring' offset and the focus ring's width.
|
|
213
|
-
*/
|
|
214
|
-
focusRingBorderRadius?: string
|
|
215
204
|
/**
|
|
216
205
|
* Display the focus ring when any of the descendants is focused.
|
|
217
206
|
* (uses the [:focus-within](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within)
|
|
@@ -270,7 +259,6 @@ const allowedProps: AllowedPropKeys = [
|
|
|
270
259
|
'width',
|
|
271
260
|
'withFocusOutline',
|
|
272
261
|
'withVisualDebug',
|
|
273
|
-
'focusRingBorderRadius',
|
|
274
262
|
'focusWithin'
|
|
275
263
|
]
|
|
276
264
|
|
package/src/exports/a.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { ContextView } from '../ContextView/v1'
|
|
26
|
-
export { View } from '../View/v1'
|
|
25
|
+
export { ContextView } from '../ContextView/v1/index.js'
|
|
26
|
+
export { View } from '../View/v1/index.js'
|
|
27
27
|
|
|
28
28
|
export type { ContextViewProps } from '../ContextView/v1/props'
|
|
29
29
|
export type { ViewProps, ViewOwnProps } from '../View/v1/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { ContextView } from '../ContextView/v2'
|
|
26
|
-
export { View } from '../View/v2'
|
|
25
|
+
export { ContextView } from '../ContextView/v2/index.js'
|
|
26
|
+
export { View } from '../View/v2/index.js'
|
|
27
27
|
|
|
28
28
|
export type { ContextViewProps } from '../ContextView/v2/props'
|
|
29
29
|
export type { ViewProps, ViewOwnProps } from '../View/v2/props'
|