@instructure/ui-billboard 10.26.1-snapshot-0 → 10.26.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 +23 -2
- package/es/Billboard/index.js +2 -2
- package/es/Billboard/props.js +1 -17
- package/lib/Billboard/index.js +1 -1
- package/lib/Billboard/props.js +1 -18
- package/package.json +14 -15
- package/src/Billboard/index.tsx +1 -2
- package/src/Billboard/props.ts +2 -22
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Billboard/index.d.ts +0 -15
- package/types/Billboard/index.d.ts.map +1 -1
- package/types/Billboard/props.d.ts +2 -3
- package/types/Billboard/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,30 @@
|
|
|
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
|
-
## [10.26.1-snapshot-
|
|
6
|
+
## [10.26.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1-snapshot-2) (2025-10-06)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **many:** InstUI v11 contains the following breaking changes:
|
|
17
|
+
- React 16 and 17 are no longer supported
|
|
18
|
+
- remove `PropTypes` from all packages
|
|
19
|
+
- remove `CodeEditor` component
|
|
20
|
+
- remove `@instui/theme-registry` package
|
|
21
|
+
- remove `@testable`, `@experimental`, `@hack` decorators
|
|
22
|
+
- InstUISettingsProvider's `as` prop is removed
|
|
23
|
+
- `canvas.use()`, `canvasHighContrast.use()` functions are removed
|
|
24
|
+
- `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
|
|
25
|
+
- `variables` field on theme objects are removed
|
|
26
|
+
- remove deprecated props from Table: Row's `isStacked`, Body's
|
|
27
|
+
`isStacked`, `hover`, and `headers`
|
|
28
|
+
- `Table`'s `caption` prop is now required
|
|
29
|
+
- `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
|
|
9
30
|
|
|
10
31
|
|
|
11
32
|
|
package/es/Billboard/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import { omitProps, callRenderProp, getElementType } from '@instructure/ui-react
|
|
|
30
30
|
import { withStyle } from '@instructure/emotion';
|
|
31
31
|
import generateStyle from './styles';
|
|
32
32
|
import generateComponentTheme from './theme';
|
|
33
|
-
import {
|
|
33
|
+
import { allowedProps } from './props';
|
|
34
34
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
35
35
|
/**
|
|
36
36
|
---
|
|
@@ -145,7 +145,7 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
145
145
|
})
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
}, _Billboard.displayName = "Billboard", _Billboard.componentId = 'Billboard', _Billboard.
|
|
148
|
+
}, _Billboard.displayName = "Billboard", _Billboard.componentId = 'Billboard', _Billboard.allowedProps = allowedProps, _Billboard.defaultProps = {
|
|
149
149
|
disabled: false,
|
|
150
150
|
readOnly: false,
|
|
151
151
|
size: 'medium',
|
package/es/Billboard/props.js
CHANGED
|
@@ -22,21 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
hero: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
28
|
-
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
29
|
-
as: PropTypes.elementType,
|
|
30
|
-
elementRef: PropTypes.func,
|
|
31
|
-
heading: PropTypes.string,
|
|
32
|
-
headingAs: PropTypes.oneOf(['h1', 'h2', 'h3', 'span']),
|
|
33
|
-
headingLevel: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']),
|
|
34
|
-
message: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
35
|
-
onClick: PropTypes.func,
|
|
36
|
-
href: PropTypes.string,
|
|
37
|
-
disabled: PropTypes.bool,
|
|
38
|
-
readOnly: PropTypes.bool,
|
|
39
|
-
margin: PropTypes.string
|
|
40
|
-
};
|
|
41
25
|
const allowedProps = ['hero', 'size', 'as', 'elementRef', 'heading', 'headingAs', 'headingLevel', 'message', 'onClick', 'href', 'disabled', 'readOnly', 'margin'];
|
|
42
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/lib/Billboard/index.js
CHANGED
|
@@ -153,7 +153,7 @@ let Billboard = exports.Billboard = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
}, _Billboard.displayName = "Billboard", _Billboard.componentId = 'Billboard', _Billboard.
|
|
156
|
+
}, _Billboard.displayName = "Billboard", _Billboard.componentId = 'Billboard', _Billboard.allowedProps = _props.allowedProps, _Billboard.defaultProps = {
|
|
157
157
|
disabled: false,
|
|
158
158
|
readOnly: false,
|
|
159
159
|
size: 'medium',
|
package/lib/Billboard/props.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
exports.allowedProps = void 0;
|
|
9
7
|
/*
|
|
10
8
|
* The MIT License (MIT)
|
|
11
9
|
*
|
|
@@ -30,19 +28,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
28
|
* SOFTWARE.
|
|
31
29
|
*/
|
|
32
30
|
|
|
33
|
-
const propTypes = exports.propTypes = {
|
|
34
|
-
hero: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
35
|
-
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
36
|
-
as: _propTypes.default.elementType,
|
|
37
|
-
elementRef: _propTypes.default.func,
|
|
38
|
-
heading: _propTypes.default.string,
|
|
39
|
-
headingAs: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'span']),
|
|
40
|
-
headingLevel: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'h4']),
|
|
41
|
-
message: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
42
|
-
onClick: _propTypes.default.func,
|
|
43
|
-
href: _propTypes.default.string,
|
|
44
|
-
disabled: _propTypes.default.bool,
|
|
45
|
-
readOnly: _propTypes.default.bool,
|
|
46
|
-
margin: _propTypes.default.string
|
|
47
|
-
};
|
|
48
31
|
const allowedProps = exports.allowedProps = ['hero', 'size', 'as', 'elementRef', 'heading', 'headingAs', 'headingLevel', 'message', 'onClick', 'href', 'disabled', 'readOnly', 'margin'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-billboard",
|
|
3
|
-
"version": "10.26.1-snapshot-
|
|
3
|
+
"version": "10.26.1-snapshot-2",
|
|
4
4
|
"description": "A UI component to display empty states, 404 pages, redirects, etc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,28 +23,27 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.26.1-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.26.1-snapshot-
|
|
28
|
-
"@instructure/ui-color-utils": "10.26.1-snapshot-
|
|
29
|
-
"@instructure/ui-icons": "10.26.1-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "10.26.1-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.26.1-snapshot-2",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.26.1-snapshot-2",
|
|
28
|
+
"@instructure/ui-color-utils": "10.26.1-snapshot-2",
|
|
29
|
+
"@instructure/ui-icons": "10.26.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-themes": "10.26.1-snapshot-2",
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
|
-
"@testing-library/react": "
|
|
32
|
+
"@testing-library/react": "15.0.7",
|
|
33
33
|
"@testing-library/user-event": "^14.6.1",
|
|
34
34
|
"vitest": "^3.2.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.27.6",
|
|
38
|
-
"@instructure/emotion": "10.26.1-snapshot-
|
|
39
|
-
"@instructure/shared-types": "10.26.1-snapshot-
|
|
40
|
-
"@instructure/ui-heading": "10.26.1-snapshot-
|
|
41
|
-
"@instructure/ui-img": "10.26.1-snapshot-
|
|
42
|
-
"@instructure/ui-react-utils": "10.26.1-snapshot-
|
|
43
|
-
"@instructure/ui-view": "10.26.1-snapshot-
|
|
44
|
-
"prop-types": "^15.8.1"
|
|
38
|
+
"@instructure/emotion": "10.26.1-snapshot-2",
|
|
39
|
+
"@instructure/shared-types": "10.26.1-snapshot-2",
|
|
40
|
+
"@instructure/ui-heading": "10.26.1-snapshot-2",
|
|
41
|
+
"@instructure/ui-img": "10.26.1-snapshot-2",
|
|
42
|
+
"@instructure/ui-react-utils": "10.26.1-snapshot-2",
|
|
43
|
+
"@instructure/ui-view": "10.26.1-snapshot-2"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"react": ">=
|
|
46
|
+
"react": ">=18 <=19"
|
|
48
47
|
},
|
|
49
48
|
"publishConfig": {
|
|
50
49
|
"access": "public"
|
package/src/Billboard/index.tsx
CHANGED
|
@@ -37,7 +37,7 @@ import { withStyle } from '@instructure/emotion'
|
|
|
37
37
|
import generateStyle from './styles'
|
|
38
38
|
import generateComponentTheme from './theme'
|
|
39
39
|
|
|
40
|
-
import {
|
|
40
|
+
import { allowedProps } from './props'
|
|
41
41
|
import type { BillboardProps, HeroIconSize } from './props'
|
|
42
42
|
import type { ViewProps } from '@instructure/ui-view'
|
|
43
43
|
|
|
@@ -50,7 +50,6 @@ category: components
|
|
|
50
50
|
class Billboard extends Component<BillboardProps> {
|
|
51
51
|
static readonly componentId = 'Billboard'
|
|
52
52
|
|
|
53
|
-
static propTypes = propTypes
|
|
54
53
|
static allowedProps = allowedProps
|
|
55
54
|
static defaultProps = {
|
|
56
55
|
disabled: false,
|
package/src/Billboard/props.ts
CHANGED
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types'
|
|
26
|
-
|
|
27
25
|
import type {
|
|
28
26
|
Spacing,
|
|
29
27
|
WithStyleProps,
|
|
@@ -32,8 +30,7 @@ import type {
|
|
|
32
30
|
import type {
|
|
33
31
|
AsElementType,
|
|
34
32
|
BillboardTheme,
|
|
35
|
-
OtherHTMLAttributes
|
|
36
|
-
PropValidators
|
|
33
|
+
OtherHTMLAttributes
|
|
37
34
|
} from '@instructure/shared-types'
|
|
38
35
|
import type { ViewProps } from '@instructure/ui-view'
|
|
39
36
|
import { MouseEvent } from 'react'
|
|
@@ -111,23 +108,6 @@ type BillboardProps = BillboardOwnProps &
|
|
|
111
108
|
type BillboardStyle = ComponentStyle<
|
|
112
109
|
'billboard' | 'content' | 'hero' | 'heading' | 'message'
|
|
113
110
|
>
|
|
114
|
-
|
|
115
|
-
const propTypes: PropValidators<PropKeys> = {
|
|
116
|
-
hero: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
117
|
-
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
118
|
-
as: PropTypes.elementType,
|
|
119
|
-
elementRef: PropTypes.func,
|
|
120
|
-
heading: PropTypes.string,
|
|
121
|
-
headingAs: PropTypes.oneOf(['h1', 'h2', 'h3', 'span']),
|
|
122
|
-
headingLevel: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']),
|
|
123
|
-
message: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
124
|
-
onClick: PropTypes.func,
|
|
125
|
-
href: PropTypes.string,
|
|
126
|
-
disabled: PropTypes.bool,
|
|
127
|
-
readOnly: PropTypes.bool,
|
|
128
|
-
margin: PropTypes.string
|
|
129
|
-
}
|
|
130
|
-
|
|
131
111
|
const allowedProps: AllowedPropKeys = [
|
|
132
112
|
'hero',
|
|
133
113
|
'size',
|
|
@@ -145,4 +125,4 @@ const allowedProps: AllowedPropKeys = [
|
|
|
145
125
|
]
|
|
146
126
|
|
|
147
127
|
export type { BillboardProps, BillboardStyle, HeroIconSize }
|
|
148
|
-
export {
|
|
128
|
+
export { allowedProps }
|