@instructure/emotion 11.7.4-snapshot-103 → 11.7.4-snapshot-105

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.4-snapshot-103](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-103) (2026-07-14)
6
+ ## [11.7.4-snapshot-105](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-105) (2026-07-15)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -15,6 +15,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
15
15
 
16
16
  * **emotion,ui-scripts:** resolve tokens studio color modifiers and emit hex ([99141c0](https://github.com/instructure/instructure-ui/commit/99141c036c6a353c25200c57e2cd68a1bc1b8205))
17
17
  * **emotion:** support alpha color modifier in applyColorModifiers ([c1643b3](https://github.com/instructure/instructure-ui/commit/c1643b3de2f0be084a042d8fd9478b963907da77))
18
+ * **many:** support current spacing tokens in the margin prop for v2 components ([1b47c5f](https://github.com/instructure/instructure-ui/commit/1b47c5f23eaa60b532cdfd53c39bd71f0cf51aaa))
18
19
  * **ui-scripts:** refactor theme type generation and fix token fetching script ([ab0536f](https://github.com/instructure/instructure-ui/commit/ab0536f81ffe9ae60f8b8cdc5038f4f323314416))
19
20
 
20
21
 
@@ -82,6 +82,26 @@ const ThemeablePropValues = {
82
82
 
83
83
  // SPACING
84
84
 
85
+ /**
86
+ * @deprecated Era-1 (legacy) spacing keywords. Still resolved at runtime, but
87
+ * prefer the current `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`).
88
+ * See https://instructure.design/layout-spacing.
89
+ */
90
+
91
+ /**
92
+ * @deprecated Era-2 spacing tokens (the `space0`–`space60` and flat semantic set)
93
+ * have been phased out. Still resolved at runtime, but prefer the current
94
+ * `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`, `gap.cards.md`).
95
+ * See https://instructure.design/layout-spacing.
96
+ */
97
+
98
+ /**
99
+ * Current (era-3) spacing tokens. Referenced via dot-path notation and resolved
100
+ * against the new theme's `sharedTokens.spacing` map (see
101
+ * `@instructure/ui-themes` `newThemeTokens`). These are the recommended values
102
+ * for the `margin`/`padding` props. See https://instructure.design/layout-spacing.
103
+ */
104
+
85
105
  // adding `(string & {})` allows to use any string while still allowing specific string values to be suggested by IDEs
86
106
 
87
107
  // SHADOW_TYPES
@@ -88,6 +88,26 @@ const ThemeablePropValues = exports.ThemeablePropValues = {
88
88
 
89
89
  // SPACING
90
90
 
91
+ /**
92
+ * @deprecated Era-1 (legacy) spacing keywords. Still resolved at runtime, but
93
+ * prefer the current `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`).
94
+ * See https://instructure.design/layout-spacing.
95
+ */
96
+
97
+ /**
98
+ * @deprecated Era-2 spacing tokens (the `space0`–`space60` and flat semantic set)
99
+ * have been phased out. Still resolved at runtime, but prefer the current
100
+ * `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`, `gap.cards.md`).
101
+ * See https://instructure.design/layout-spacing.
102
+ */
103
+
104
+ /**
105
+ * Current (era-3) spacing tokens. Referenced via dot-path notation and resolved
106
+ * against the new theme's `sharedTokens.spacing` map (see
107
+ * `@instructure/ui-themes` `newThemeTokens`). These are the recommended values
108
+ * for the `margin`/`padding` props. See https://instructure.design/layout-spacing.
109
+ */
110
+
91
111
  // adding `(string & {})` allows to use any string while still allowing specific string values to be suggested by IDEs
92
112
 
93
113
  // SHADOW_TYPES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/emotion",
3
- "version": "11.7.4-snapshot-103",
3
+ "version": "11.7.4-snapshot-105",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -17,14 +17,14 @@
17
17
  "@babel/runtime": "^7.29.7",
18
18
  "@emotion/react": "^11",
19
19
  "hoist-non-react-statics": "^3.3.2",
20
- "@instructure/console": "11.7.4-snapshot-103",
21
- "@instructure/shared-types": "11.7.4-snapshot-103",
22
- "@instructure/ui-color-utils": "11.7.4-snapshot-103",
23
- "@instructure/ui-decorator": "11.7.4-snapshot-103",
24
- "@instructure/ui-i18n": "11.7.4-snapshot-103",
25
- "@instructure/ui-react-utils": "11.7.4-snapshot-103",
26
- "@instructure/ui-utils": "11.7.4-snapshot-103",
27
- "@instructure/ui-themes": "11.7.4-snapshot-103"
20
+ "@instructure/console": "11.7.4-snapshot-105",
21
+ "@instructure/shared-types": "11.7.4-snapshot-105",
22
+ "@instructure/ui-color-utils": "11.7.4-snapshot-105",
23
+ "@instructure/ui-i18n": "11.7.4-snapshot-105",
24
+ "@instructure/ui-decorator": "11.7.4-snapshot-105",
25
+ "@instructure/ui-react-utils": "11.7.4-snapshot-105",
26
+ "@instructure/ui-utils": "11.7.4-snapshot-105",
27
+ "@instructure/ui-themes": "11.7.4-snapshot-105"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.9.1",
@@ -33,7 +33,7 @@
33
33
  "@types/hoist-non-react-statics": "^3.3.7",
34
34
  "react-dom": "18.3.1",
35
35
  "vitest": "^4.1.9",
36
- "@instructure/ui-babel-preset": "11.7.4-snapshot-103"
36
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-105"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=18 <=19"
@@ -90,7 +90,18 @@ const ThemeablePropValues = {
90
90
 
91
91
  // SPACING
92
92
  type OldSpacingKeys = keyof typeof ThemeablePropValues.SPACING
93
+ /**
94
+ * @deprecated Era-1 (legacy) spacing keywords. Still resolved at runtime, but
95
+ * prefer the current `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`).
96
+ * See https://instructure.design/layout-spacing.
97
+ */
93
98
  type OldSpacingValues = (typeof ThemeablePropValues.SPACING)[OldSpacingKeys]
99
+ /**
100
+ * @deprecated Era-2 spacing tokens (the `space0`–`space60` and flat semantic set)
101
+ * have been phased out. Still resolved at runtime, but prefer the current
102
+ * `CurrentSpacingValues` dot-path tokens (e.g. `general.spaceMd`, `gap.cards.md`).
103
+ * See https://instructure.design/layout-spacing.
104
+ */
94
105
  type NewSpacingValues =
95
106
  | 'space0'
96
107
  | 'space2'
@@ -120,7 +131,38 @@ type NewSpacingValues =
120
131
  | 'tags'
121
132
  | 'statusIndicators'
122
133
  | 'dataPoints'
123
- type SpacingValues = OldSpacingValues | NewSpacingValues
134
+ /**
135
+ * Current (era-3) spacing tokens. Referenced via dot-path notation and resolved
136
+ * against the new theme's `sharedTokens.spacing` map (see
137
+ * `@instructure/ui-themes` `newThemeTokens`). These are the recommended values
138
+ * for the `margin`/`padding` props. See https://instructure.design/layout-spacing.
139
+ */
140
+ type CurrentSpacingValues =
141
+ // general t-shirt scale
142
+ | 'general.spaceNone'
143
+ | 'general.space2xs'
144
+ | 'general.spaceXs'
145
+ | 'general.spaceSm'
146
+ | 'general.spaceMd'
147
+ | 'general.spaceLg'
148
+ | 'general.spaceXl'
149
+ | 'general.space2xl'
150
+ // semantic gap tokens
151
+ | 'gap.sections'
152
+ | 'gap.buttons'
153
+ | 'gap.cards.sm'
154
+ | 'gap.cards.md'
155
+ | 'gap.cards.lg'
156
+ | 'gap.cards.nestedContainers.sm'
157
+ | 'gap.cards.nestedContainers.md'
158
+ | 'gap.cards.nestedContainers.lg'
159
+ | 'gap.inputs.horizontal'
160
+ | 'gap.inputs.vertical'
161
+ // semantic padding tokens
162
+ | 'padding.card.sm'
163
+ | 'padding.card.md'
164
+ | 'padding.card.lg'
165
+ type SpacingValues = CurrentSpacingValues | OldSpacingValues | NewSpacingValues
124
166
  // adding `(string & {})` allows to use any string while still allowing specific string values to be suggested by IDEs
125
167
  type Spacing = SpacingValues | (string & {})
126
168
 
@@ -152,6 +194,7 @@ export default ThemeablePropValues
152
194
  export { ThemeablePropValues }
153
195
  export type {
154
196
  SpacingValues,
197
+ CurrentSpacingValues,
155
198
  Spacing,
156
199
  Shadow,
157
200
  Stacking,