@instructure/ui-instructure 11.7.3-snapshot-4 → 11.7.3-snapshot-6
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/AiInformation/v2/styles.js +1 -3
- package/es/DataPermissionLevels/v2/styles.js +1 -3
- package/es/NutritionFacts/v2/styles.js +1 -3
- package/lib/AiInformation/v2/styles.js +1 -3
- package/lib/DataPermissionLevels/v2/styles.js +1 -3
- package/lib/NutritionFacts/v2/styles.js +1 -3
- package/package.json +16 -16
- package/src/AiInformation/v2/props.ts +6 -4
- package/src/AiInformation/v2/styles.ts +3 -7
- package/src/DataPermissionLevels/v2/props.ts +5 -4
- package/src/DataPermissionLevels/v2/styles.ts +3 -10
- package/src/NutritionFacts/v2/props.ts +5 -4
- package/src/NutritionFacts/v2/styles.ts +3 -7
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AiInformation/v2/props.d.ts +3 -4
- package/types/AiInformation/v2/props.d.ts.map +1 -1
- package/types/AiInformation/v2/styles.d.ts +3 -5
- package/types/AiInformation/v2/styles.d.ts.map +1 -1
- package/types/DataPermissionLevels/v2/props.d.ts +3 -4
- package/types/DataPermissionLevels/v2/props.d.ts.map +1 -1
- package/types/DataPermissionLevels/v2/styles.d.ts +3 -5
- package/types/DataPermissionLevels/v2/styles.d.ts.map +1 -1
- package/types/NutritionFacts/v2/props.d.ts +3 -4
- package/types/NutritionFacts/v2/props.d.ts.map +1 -1
- package/types/NutritionFacts/v2/styles.d.ts +3 -5
- package/types/NutritionFacts/v2/styles.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
|
-
## [11.7.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-6](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-6) (2026-04-29)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-instructure
|
|
9
9
|
|
|
@@ -28,11 +28,9 @@
|
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
30
|
* @param componentTheme The theme variable object.
|
|
31
|
-
* @param params Additional parameters to customize the style.
|
|
32
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
33
31
|
* @return The final style object, which will be used in the component
|
|
34
32
|
*/
|
|
35
|
-
const generateStyle =
|
|
33
|
+
const generateStyle = componentTheme => {
|
|
36
34
|
return {
|
|
37
35
|
aiInformation: {
|
|
38
36
|
label: 'ai-information',
|
|
@@ -28,11 +28,9 @@
|
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
30
|
* @param componentTheme The theme variable object.
|
|
31
|
-
* @param params Additional parameters to customize the style.
|
|
32
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
33
31
|
* @return The final style object, which will be used in the component
|
|
34
32
|
*/
|
|
35
|
-
const generateStyle =
|
|
33
|
+
const generateStyle = componentTheme => {
|
|
36
34
|
return {
|
|
37
35
|
dataPermissionLevels: {
|
|
38
36
|
label: 'data-permission-levels'
|
|
@@ -28,11 +28,9 @@
|
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
30
|
* @param componentTheme The theme variable object.
|
|
31
|
-
* @param params Additional parameters to customize the style.
|
|
32
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
33
31
|
* @return The final style object, which will be used in the component
|
|
34
32
|
*/
|
|
35
|
-
const generateStyle =
|
|
33
|
+
const generateStyle = componentTheme => {
|
|
36
34
|
return {
|
|
37
35
|
segmentCard: {
|
|
38
36
|
label: 'nutrition-facts__segment-card',
|
|
@@ -34,11 +34,9 @@ exports.default = void 0;
|
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
36
|
* @param componentTheme The theme variable object.
|
|
37
|
-
* @param params Additional parameters to customize the style.
|
|
38
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
39
37
|
* @return The final style object, which will be used in the component
|
|
40
38
|
*/
|
|
41
|
-
const generateStyle =
|
|
39
|
+
const generateStyle = componentTheme => {
|
|
42
40
|
return {
|
|
43
41
|
aiInformation: {
|
|
44
42
|
label: 'ai-information',
|
|
@@ -34,11 +34,9 @@ exports.default = void 0;
|
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
36
|
* @param componentTheme The theme variable object.
|
|
37
|
-
* @param params Additional parameters to customize the style.
|
|
38
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
39
37
|
* @return The final style object, which will be used in the component
|
|
40
38
|
*/
|
|
41
|
-
const generateStyle =
|
|
39
|
+
const generateStyle = componentTheme => {
|
|
42
40
|
return {
|
|
43
41
|
dataPermissionLevels: {
|
|
44
42
|
label: 'data-permission-levels'
|
|
@@ -34,11 +34,9 @@ exports.default = void 0;
|
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
36
|
* @param componentTheme The theme variable object.
|
|
37
|
-
* @param params Additional parameters to customize the style.
|
|
38
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
39
37
|
* @return The final style object, which will be used in the component
|
|
40
38
|
*/
|
|
41
|
-
const generateStyle =
|
|
39
|
+
const generateStyle = componentTheme => {
|
|
42
40
|
return {
|
|
43
41
|
segmentCard: {
|
|
44
42
|
label: 'nutrition-facts__segment-card',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-instructure",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-6",
|
|
4
4
|
"description": "Collection of specific components for Instructure products",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,26 +15,26 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
|
-
"@instructure/emotion": "11.7.3-snapshot-
|
|
19
|
-
"@instructure/ui-buttons": "11.7.3-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-icons": "11.7.3-snapshot-
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/emotion": "11.7.3-snapshot-6",
|
|
19
|
+
"@instructure/ui-buttons": "11.7.3-snapshot-6",
|
|
20
|
+
"@instructure/ui-heading": "11.7.3-snapshot-6",
|
|
21
|
+
"@instructure/shared-types": "11.7.3-snapshot-6",
|
|
22
|
+
"@instructure/ui-icons": "11.7.3-snapshot-6",
|
|
23
|
+
"@instructure/ui-modal": "11.7.3-snapshot-6",
|
|
24
|
+
"@instructure/ui-link": "11.7.3-snapshot-6",
|
|
25
|
+
"@instructure/ui-popover": "11.7.3-snapshot-6",
|
|
26
|
+
"@instructure/ui-text": "11.7.3-snapshot-6",
|
|
27
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-6",
|
|
28
|
+
"@instructure/ui-themes": "11.7.3-snapshot-6",
|
|
29
|
+
"@instructure/ui-view": "11.7.3-snapshot-6"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
33
|
"@testing-library/react": "15.0.7",
|
|
33
34
|
"vitest": "^3.2.2",
|
|
34
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
35
|
-
"@instructure/ui-babel-preset": "11.7.3-snapshot-
|
|
36
|
-
"@instructure/ui-
|
|
37
|
-
"@instructure/ui-color-utils": "11.7.3-snapshot-4"
|
|
35
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-6",
|
|
36
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-6",
|
|
37
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=18 <=19"
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion'
|
|
25
26
|
import type { OtherHTMLAttributes, Renderable } from '@instructure/shared-types'
|
|
26
27
|
import type { NutritionFactsProps } from '../../NutritionFacts/v1/props'
|
|
27
28
|
import type { DataPermissionLevelsProps } from '../../DataPermissionLevels/v1/props'
|
|
29
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
28
30
|
|
|
29
31
|
type AiInformationOwnProps = {
|
|
30
32
|
/**
|
|
@@ -119,9 +121,9 @@ type PropKeys = keyof AiInformationOwnProps
|
|
|
119
121
|
|
|
120
122
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
121
123
|
|
|
122
|
-
type AiInformationProps = AiInformationOwnProps &
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
type AiInformationProps = AiInformationOwnProps &
|
|
125
|
+
NewThemeOverrideProp<ReturnType<NewComponentTypes['AiInformation']>> &
|
|
126
|
+
OtherHTMLAttributes<AiInformationOwnProps>
|
|
125
127
|
|
|
126
128
|
type AiInformationStyle = ComponentStyle<
|
|
127
129
|
| 'aiInformation'
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { NewComponentTypes
|
|
26
|
-
import type { AiInformationStyle
|
|
25
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
26
|
+
import type { AiInformationStyle } from './props'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ---
|
|
@@ -31,14 +31,10 @@ import type { AiInformationStyle, AiInformationProps } from './props'
|
|
|
31
31
|
* ---
|
|
32
32
|
* Generates the style object from the theme and provided additional information
|
|
33
33
|
* @param componentTheme The theme variable object.
|
|
34
|
-
* @param params Additional parameters to customize the style.
|
|
35
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
36
34
|
* @return The final style object, which will be used in the component
|
|
37
35
|
*/
|
|
38
36
|
const generateStyle = (
|
|
39
|
-
componentTheme: ReturnType<NewComponentTypes['AiInformation']
|
|
40
|
-
_params: AiInformationProps,
|
|
41
|
-
_sharedTokens: SharedTokens
|
|
37
|
+
componentTheme: ReturnType<NewComponentTypes['AiInformation']>
|
|
42
38
|
): AiInformationStyle => {
|
|
43
39
|
return {
|
|
44
40
|
aiInformation: {
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { ComponentStyle,
|
|
25
|
+
import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion'
|
|
26
26
|
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
27
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
27
28
|
|
|
28
29
|
type DataPermissionLevelsOwnProps = {
|
|
29
30
|
/**
|
|
@@ -73,9 +74,9 @@ type PropKeys = keyof DataPermissionLevelsOwnProps
|
|
|
73
74
|
|
|
74
75
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
75
76
|
|
|
76
|
-
type DataPermissionLevelsProps = DataPermissionLevelsOwnProps &
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
type DataPermissionLevelsProps = DataPermissionLevelsOwnProps &
|
|
78
|
+
NewThemeOverrideProp<ReturnType<NewComponentTypes['DataPermissionLevels']>> &
|
|
79
|
+
OtherHTMLAttributes<DataPermissionLevelsOwnProps>
|
|
79
80
|
|
|
80
81
|
type DataPermissionLevelsStyle = ComponentStyle<
|
|
81
82
|
| 'dataPermissionLevels'
|
|
@@ -22,11 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { NewComponentTypes
|
|
26
|
-
import type {
|
|
27
|
-
DataPermissionLevelsProps,
|
|
28
|
-
DataPermissionLevelsStyle
|
|
29
|
-
} from './props'
|
|
25
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
26
|
+
import type { DataPermissionLevelsStyle } from './props'
|
|
30
27
|
|
|
31
28
|
/**
|
|
32
29
|
* ---
|
|
@@ -34,14 +31,10 @@ import type {
|
|
|
34
31
|
* ---
|
|
35
32
|
* Generates the style object from the theme and provided additional information
|
|
36
33
|
* @param componentTheme The theme variable object.
|
|
37
|
-
* @param params Additional parameters to customize the style.
|
|
38
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
39
34
|
* @return The final style object, which will be used in the component
|
|
40
35
|
*/
|
|
41
36
|
const generateStyle = (
|
|
42
|
-
componentTheme: ReturnType<NewComponentTypes['DataPermissionLevels']
|
|
43
|
-
_params: DataPermissionLevelsProps,
|
|
44
|
-
_sharedTokens: SharedTokens
|
|
37
|
+
componentTheme: ReturnType<NewComponentTypes['DataPermissionLevels']>
|
|
45
38
|
): DataPermissionLevelsStyle => {
|
|
46
39
|
return {
|
|
47
40
|
dataPermissionLevels: {
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { ComponentStyle,
|
|
25
|
+
import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion'
|
|
26
26
|
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
27
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
27
28
|
|
|
28
29
|
type BlockType = {
|
|
29
30
|
blockTitle: string
|
|
@@ -74,9 +75,9 @@ type PropKeys = keyof NutritionFactsOwnProps
|
|
|
74
75
|
|
|
75
76
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
76
77
|
|
|
77
|
-
type NutritionFactsProps = NutritionFactsOwnProps &
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
type NutritionFactsProps = NutritionFactsOwnProps &
|
|
79
|
+
NewThemeOverrideProp<ReturnType<NewComponentTypes['NutritionFacts']>> &
|
|
80
|
+
OtherHTMLAttributes<NutritionFactsOwnProps>
|
|
80
81
|
|
|
81
82
|
type NutritionFactsStyle = ComponentStyle<
|
|
82
83
|
| 'segmentCard'
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { NewComponentTypes
|
|
26
|
-
import type {
|
|
25
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
26
|
+
import type { NutritionFactsStyle } from './props'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ---
|
|
@@ -31,14 +31,10 @@ import type { NutritionFactsProps, NutritionFactsStyle } from './props'
|
|
|
31
31
|
* ---
|
|
32
32
|
* Generates the style object from the theme and provided additional information
|
|
33
33
|
* @param componentTheme The theme variable object.
|
|
34
|
-
* @param params Additional parameters to customize the style.
|
|
35
|
-
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
36
34
|
* @return The final style object, which will be used in the component
|
|
37
35
|
*/
|
|
38
36
|
const generateStyle = (
|
|
39
|
-
componentTheme: ReturnType<NewComponentTypes['NutritionFacts']
|
|
40
|
-
_params: NutritionFactsProps,
|
|
41
|
-
_sharedTokens: SharedTokens
|
|
37
|
+
componentTheme: ReturnType<NewComponentTypes['NutritionFacts']>
|
|
42
38
|
): NutritionFactsStyle => {
|
|
43
39
|
return {
|
|
44
40
|
segmentCard: {
|