@instructure/ui-instructure 11.7.3-snapshot-4 → 11.7.3-snapshot-7

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 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-4](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-4) (2026-04-28)
6
+ ## [11.7.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-7) (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 = (componentTheme, _params, _sharedTokens) => {
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 = (componentTheme, _params, _sharedTokens) => {
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 = (componentTheme, _params, _sharedTokens) => {
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 = (componentTheme, _params, _sharedTokens) => {
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 = (componentTheme, _params, _sharedTokens) => {
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 = (componentTheme, _params, _sharedTokens) => {
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-4",
3
+ "version": "11.7.3-snapshot-7",
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-4",
19
- "@instructure/ui-buttons": "11.7.3-snapshot-4",
20
- "@instructure/shared-types": "11.7.3-snapshot-4",
21
- "@instructure/ui-heading": "11.7.3-snapshot-4",
22
- "@instructure/ui-icons": "11.7.3-snapshot-4",
23
- "@instructure/ui-link": "11.7.3-snapshot-4",
24
- "@instructure/ui-modal": "11.7.3-snapshot-4",
25
- "@instructure/ui-text": "11.7.3-snapshot-4",
26
- "@instructure/ui-react-utils": "11.7.3-snapshot-4",
27
- "@instructure/ui-view": "11.7.3-snapshot-4",
28
- "@instructure/ui-popover": "11.7.3-snapshot-4"
18
+ "@instructure/ui-buttons": "11.7.3-snapshot-7",
19
+ "@instructure/emotion": "11.7.3-snapshot-7",
20
+ "@instructure/ui-heading": "11.7.3-snapshot-7",
21
+ "@instructure/ui-icons": "11.7.3-snapshot-7",
22
+ "@instructure/ui-link": "11.7.3-snapshot-7",
23
+ "@instructure/ui-modal": "11.7.3-snapshot-7",
24
+ "@instructure/ui-popover": "11.7.3-snapshot-7",
25
+ "@instructure/ui-react-utils": "11.7.3-snapshot-7",
26
+ "@instructure/ui-text": "11.7.3-snapshot-7",
27
+ "@instructure/ui-themes": "11.7.3-snapshot-7",
28
+ "@instructure/ui-view": "11.7.3-snapshot-7",
29
+ "@instructure/shared-types": "11.7.3-snapshot-7"
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-4",
35
- "@instructure/ui-babel-preset": "11.7.3-snapshot-4",
36
- "@instructure/ui-themes": "11.7.3-snapshot-4",
37
- "@instructure/ui-color-utils": "11.7.3-snapshot-4"
35
+ "@instructure/ui-axe-check": "11.7.3-snapshot-7",
36
+ "@instructure/ui-babel-preset": "11.7.3-snapshot-7",
37
+ "@instructure/ui-color-utils": "11.7.3-snapshot-7"
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
- import type { ComponentStyle, ThemeOverrideValue } from '@instructure/emotion'
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
- themeOverride?: ThemeOverrideValue
124
- } & OtherHTMLAttributes<AiInformationOwnProps>
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, SharedTokens } from '@instructure/ui-themes'
26
- import type { AiInformationStyle, AiInformationProps } from './props'
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, ThemeOverrideValue } from '@instructure/emotion'
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
- themeOverride?: ThemeOverrideValue
78
- } & OtherHTMLAttributes<DataPermissionLevelsOwnProps>
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, SharedTokens } from '@instructure/ui-themes'
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, ThemeOverrideValue } from '@instructure/emotion'
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
- themeOverride?: ThemeOverrideValue
79
- } & OtherHTMLAttributes<NutritionFactsOwnProps>
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, SharedTokens } from '@instructure/ui-themes'
26
- import type { NutritionFactsProps, NutritionFactsStyle } from './props'
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: {