@instructure/emotion 11.6.0 → 11.6.1-snapshot-129

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +51 -303
  2. package/es/InstUISettingsProvider/index.js +1 -1
  3. package/es/getComponentThemeOverride.js +5 -4
  4. package/es/getTheme.js +2 -2
  5. package/es/index.js +4 -1
  6. package/es/styleUtils/calcFocusOutlineStyles.js +71 -0
  7. package/es/styleUtils/calcSpacingFromShorthand.js +112 -0
  8. package/es/styleUtils/index.js +2 -1
  9. package/es/useStyle.js +27 -6
  10. package/es/useStyleLegacy.js +49 -0
  11. package/es/useTheme.js +1 -1
  12. package/es/withStyle.js +13 -31
  13. package/es/withStyleLegacy.js +116 -0
  14. package/lib/InstUISettingsProvider/index.js +1 -1
  15. package/lib/getComponentThemeOverride.js +5 -4
  16. package/lib/getTheme.js +2 -2
  17. package/lib/index.js +38 -7
  18. package/lib/styleUtils/calcFocusOutlineStyles.js +78 -0
  19. package/lib/styleUtils/calcSpacingFromShorthand.js +118 -0
  20. package/lib/styleUtils/index.js +14 -7
  21. package/lib/useStyle.js +28 -6
  22. package/lib/useStyleLegacy.js +59 -0
  23. package/lib/useTheme.js +1 -1
  24. package/lib/withStyle.js +13 -31
  25. package/lib/withStyleLegacy.js +125 -0
  26. package/package.json +11 -9
  27. package/src/EmotionTypes.ts +10 -1
  28. package/src/InstUISettingsProvider/index.tsx +5 -1
  29. package/src/getComponentThemeOverride.ts +9 -8
  30. package/src/getTheme.ts +8 -2
  31. package/src/index.ts +7 -2
  32. package/src/styleUtils/calcFocusOutlineStyles.ts +106 -0
  33. package/src/styleUtils/calcSpacingFromShorthand.ts +127 -0
  34. package/src/styleUtils/index.ts +2 -1
  35. package/src/useStyle.ts +63 -32
  36. package/src/useStyleLegacy.ts +92 -0
  37. package/src/useTheme.ts +4 -1
  38. package/src/withStyle.tsx +29 -39
  39. package/src/withStyleLegacy.tsx +212 -0
  40. package/tsconfig.build.json +3 -0
  41. package/tsconfig.build.tsbuildinfo +1 -1
  42. package/types/EmotionTypes.d.ts +4 -2
  43. package/types/EmotionTypes.d.ts.map +1 -1
  44. package/types/InstUISettingsProvider/index.d.ts.map +1 -1
  45. package/types/getComponentThemeOverride.d.ts +4 -5
  46. package/types/getComponentThemeOverride.d.ts.map +1 -1
  47. package/types/getTheme.d.ts.map +1 -1
  48. package/types/index.d.ts +6 -2
  49. package/types/index.d.ts.map +1 -1
  50. package/types/styleUtils/calcFocusOutlineStyles.d.ts +51 -0
  51. package/types/styleUtils/calcFocusOutlineStyles.d.ts.map +1 -0
  52. package/types/styleUtils/calcSpacingFromShorthand.d.ts +33 -0
  53. package/types/styleUtils/calcSpacingFromShorthand.d.ts.map +1 -0
  54. package/types/styleUtils/index.d.ts +2 -1
  55. package/types/styleUtils/index.d.ts.map +1 -1
  56. package/types/useStyle.d.ts +15 -13
  57. package/types/useStyle.d.ts.map +1 -1
  58. package/types/useStyleLegacy.d.ts +22 -0
  59. package/types/useStyleLegacy.d.ts.map +1 -0
  60. package/types/useTheme.d.ts.map +1 -1
  61. package/types/withStyle.d.ts +2 -22
  62. package/types/withStyle.d.ts.map +1 -1
  63. package/types/withStyleLegacy.d.ts +22 -0
  64. package/types/withStyleLegacy.d.ts.map +1 -0
  65. package/es/styleUtils/mapSpacingToShorthand.js +0 -29
  66. package/lib/styleUtils/mapSpacingToShorthand.js +0 -35
  67. package/src/styleUtils/mapSpacingToShorthand.ts +0 -35
  68. package/types/styleUtils/mapSpacingToShorthand.d.ts +0 -5
  69. package/types/styleUtils/mapSpacingToShorthand.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,598 +3,346 @@
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.6.0](https://github.com/instructure/instructure-ui/compare/v11.5.0...v11.6.0) (2026-02-18)
7
-
8
- **Note:** Version bump only for package @instructure/emotion
6
+ ## [11.6.1-snapshot-129](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-snapshot-129) (2026-03-16)
9
7
 
10
8
 
9
+ ### Bug Fixes
11
10
 
11
+ * **emotion:** fix old them override not working properly ([02bf2b7](https://github.com/instructure/instructure-ui/commit/02bf2b7f6b43a7d731908ec0f35757dc8c79737b))
12
+ * **ui-text-input,emotion:** fix TextInput displaying double focus rings when a focusable element is rendered inside ([b33cea2](https://github.com/instructure/instructure-ui/commit/b33cea283ef84cdc674c43bf8a0b7ca55f04cfaa))
12
13
 
13
14
 
14
- # [11.5.0](https://github.com/instructure/instructure-ui/compare/v11.4.0...v11.5.0) (2026-02-03)
15
+ ### Features
15
16
 
16
- **Note:** Version bump only for package @instructure/emotion
17
+ * **many:** add new theming solution ([1cef88e](https://github.com/instructure/instructure-ui/commit/1cef88e97f40dd85e15b10bc4307d013ae8b09d0))
18
+ * **many:** add solution for using both old and new token system in the same app ([688a713](https://github.com/instructure/instructure-ui/commit/688a713ff715433bb085323dbad61285387c5141))
19
+ * **many:** refactor theme parser and implement tray and tabs ([ef28373](https://github.com/instructure/instructure-ui/commit/ef283736fd76fbdcc674854916b298c199f8df50))
20
+ * **many:** separate focus outline calculation from view, inject sharedTokens to generateStyles ([793fe43](https://github.com/instructure/instructure-ui/commit/793fe4346e7b960a272e8b4a98bc8e2c9bb7d2fe))
21
+ * **ui-metric,emotion:** rework Metric ([019cac4](https://github.com/instructure/instructure-ui/commit/019cac4b4b7d9982be8d29ac831672c2e2d1b16a))
22
+ * **ui-number-input:** rewrite NumberInput to the new theming system ([500d4bc](https://github.com/instructure/instructure-ui/commit/500d4bc03037c2cc60bf83cd1e84b878bef87535))
23
+ * **ui-radio-input:** use the new theme for RadioInput ([34bfd59](https://github.com/instructure/instructure-ui/commit/34bfd5956c47beceacb50637e7fd605b9e3f4210))
17
24
 
18
25
 
19
26
 
20
27
 
21
28
 
22
- # [11.4.0](https://github.com/instructure/instructure-ui/compare/v11.3.0...v11.4.0) (2026-01-20)
29
+ # [11.6.0](https://github.com/instructure/instructure-ui/compare/v11.5.0...v11.6.0) (2026-02-18)
23
30
 
24
31
  **Note:** Version bump only for package @instructure/emotion
25
32
 
33
+ # [11.5.0](https://github.com/instructure/instructure-ui/compare/v11.4.0...v11.5.0) (2026-02-03)
26
34
 
35
+ **Note:** Version bump only for package @instructure/emotion
27
36
 
37
+ # [11.4.0](https://github.com/instructure/instructure-ui/compare/v11.3.0...v11.4.0) (2026-01-20)
28
38
 
39
+ **Note:** Version bump only for package @instructure/emotion
29
40
 
30
41
  # [11.3.0](https://github.com/instructure/instructure-ui/compare/v11.2.0...v11.3.0) (2026-01-12)
31
42
 
32
43
  **Note:** Version bump only for package @instructure/emotion
33
44
 
34
-
35
-
36
-
37
-
38
45
  # [11.2.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.2.0) (2025-11-06)
39
46
 
40
-
41
47
  ### Features
42
48
 
43
- * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
44
-
45
-
46
-
47
-
49
+ - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
48
50
 
49
51
  # [11.1.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.1.0) (2025-11-05)
50
52
 
51
-
52
53
  ### Features
53
54
 
54
- * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
55
-
56
-
57
-
58
-
55
+ - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
59
56
 
60
57
  ## [11.0.1](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1) (2025-10-13)
61
58
 
62
-
63
59
  ### Bug Fixes
64
60
 
65
- * **emotion:** fix useTheme export. The native emotion util was exported instead of our own ([8450778](https://github.com/instructure/instructure-ui/commit/8450778bbcbc2a2f928c1c53ff21147535d61940))
66
-
67
-
68
-
69
-
61
+ - **emotion:** fix useTheme export. The native emotion util was exported instead of our own ([8450778](https://github.com/instructure/instructure-ui/commit/8450778bbcbc2a2f928c1c53ff21147535d61940))
70
62
 
71
63
  # [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
72
64
 
73
-
74
65
  ### Features
75
66
 
76
- * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
77
-
67
+ - **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
78
68
 
79
69
  ### BREAKING CHANGES
80
70
 
81
- * **many:** InstUI v11 contains the following breaking changes:
82
- - React 16 and 17 are no longer supported
83
- - remove `PropTypes` from all packages
84
- - remove `CodeEditor` component
85
- - remove `@instui/theme-registry` package
86
- - remove `@testable`, `@experimental`, `@hack` decorators
87
- - InstUISettingsProvider's `as` prop is removed
88
- - `canvas.use()`, `canvasHighContrast.use()` functions are removed
89
- - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
90
- - `variables` field on theme objects are removed
91
- - remove deprecated props from Table: Row's `isStacked`, Body's
71
+ - **many:** InstUI v11 contains the following breaking changes:
72
+
73
+ * React 16 and 17 are no longer supported
74
+ * remove `PropTypes` from all packages
75
+ * remove `CodeEditor` component
76
+ * remove `@instui/theme-registry` package
77
+ * remove `@testable`, `@experimental`, `@hack` decorators
78
+ * InstUISettingsProvider's `as` prop is removed
79
+ * `canvas.use()`, `canvasHighContrast.use()` functions are removed
80
+ * `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
81
+ * `variables` field on theme objects are removed
82
+ * remove deprecated props from Table: Row's `isStacked`, Body's
92
83
  `isStacked`, `hover`, and `headers`
93
- - `Table`'s `caption` prop is now required
94
- - `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
95
-
96
-
97
-
98
-
84
+ * `Table`'s `caption` prop is now required
85
+ * `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
99
86
 
100
87
  # [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01)
101
88
 
102
89
  **Note:** Version bump only for package @instructure/emotion
103
90
 
104
-
105
-
106
-
107
-
108
91
  # [10.25.0](https://github.com/instructure/instructure-ui/compare/v10.24.2...v10.25.0) (2025-09-09)
109
92
 
110
93
  **Note:** Version bump only for package @instructure/emotion
111
94
 
112
-
113
-
114
-
115
-
116
95
  ## [10.24.2](https://github.com/instructure/instructure-ui/compare/v10.24.1...v10.24.2) (2025-08-11)
117
96
 
118
97
  **Note:** Version bump only for package @instructure/emotion
119
98
 
120
-
121
-
122
-
123
-
124
99
  ## [10.24.1](https://github.com/instructure/instructure-ui/compare/v10.24.0...v10.24.1) (2025-07-30)
125
100
 
126
101
  **Note:** Version bump only for package @instructure/emotion
127
102
 
128
-
129
-
130
-
131
-
132
103
  # [10.24.0](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.24.0) (2025-07-18)
133
104
 
134
-
135
105
  ### Bug Fixes
136
106
 
137
- * **many:** fix focus ring not respecting theme overrides in Button and FileDrop ([8fffc5d](https://github.com/instructure/instructure-ui/commit/8fffc5db8f41249277283b0ad05be0d158d6d7d7))
138
-
139
-
140
-
141
-
107
+ - **many:** fix focus ring not respecting theme overrides in Button and FileDrop ([8fffc5d](https://github.com/instructure/instructure-ui/commit/8fffc5db8f41249277283b0ad05be0d158d6d7d7))
142
108
 
143
109
  # [10.23.0](https://github.com/instructure/instructure-ui/compare/v10.22.0...v10.23.0) (2025-07-09)
144
110
 
145
111
  **Note:** Version bump only for package @instructure/emotion
146
112
 
147
-
148
-
149
-
150
-
151
113
  # [10.22.0](https://github.com/instructure/instructure-ui/compare/v10.21.0...v10.22.0) (2025-07-04)
152
114
 
153
-
154
115
  ### Features
155
116
 
156
- * **many:** add new package (instructure) and three new components: AiInformation, NutritionFacts and DataPermissionLevels ([073be7b](https://github.com/instructure/instructure-ui/commit/073be7b50893e9ab77158ee8a83506eddfbd4113))
157
-
158
-
159
-
160
-
117
+ - **many:** add new package (instructure) and three new components: AiInformation, NutritionFacts and DataPermissionLevels ([073be7b](https://github.com/instructure/instructure-ui/commit/073be7b50893e9ab77158ee8a83506eddfbd4113))
161
118
 
162
119
  # [10.21.0](https://github.com/instructure/instructure-ui/compare/v10.20.1...v10.21.0) (2025-06-27)
163
120
 
164
121
  **Note:** Version bump only for package @instructure/emotion
165
122
 
166
-
167
-
168
-
169
-
170
123
  ## [10.20.1](https://github.com/instructure/instructure-ui/compare/v10.20.0...v10.20.1) (2025-06-17)
171
124
 
172
125
  **Note:** Version bump only for package @instructure/emotion
173
126
 
174
-
175
-
176
-
177
-
178
127
  # [10.20.0](https://github.com/instructure/instructure-ui/compare/v10.19.1...v10.20.0) (2025-06-13)
179
128
 
180
-
181
129
  ### Bug Fixes
182
130
 
183
- * **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2))
184
-
185
-
186
-
187
-
131
+ - **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2))
188
132
 
189
133
  ## [10.19.1](https://github.com/instructure/instructure-ui/compare/v10.19.0...v10.19.1) (2025-06-05)
190
134
 
191
135
  **Note:** Version bump only for package @instructure/emotion
192
136
 
193
-
194
-
195
-
196
-
197
137
  # [10.19.0](https://github.com/instructure/instructure-ui/compare/v10.18.1...v10.19.0) (2025-06-03)
198
138
 
199
-
200
139
  ### Bug Fixes
201
140
 
202
- * **emotion:** fix proptype definition ([d140fe3](https://github.com/instructure/instructure-ui/commit/d140fe3fcb78b2bb3eeda29014108f956d2226ac))
203
-
204
-
205
-
206
-
141
+ - **emotion:** fix proptype definition ([d140fe3](https://github.com/instructure/instructure-ui/commit/d140fe3fcb78b2bb3eeda29014108f956d2226ac))
207
142
 
208
143
  ## [10.18.1](https://github.com/instructure/instructure-ui/compare/v10.18.0...v10.18.1) (2025-05-29)
209
144
 
210
145
  **Note:** Version bump only for package @instructure/emotion
211
146
 
212
-
213
-
214
-
215
-
216
147
  # [10.18.0](https://github.com/instructure/instructure-ui/compare/v10.17.0...v10.18.0) (2025-05-26)
217
148
 
218
-
219
149
  ### Features
220
150
 
221
- * **emotion:** [InstUISettingsProvider] should be able to access the current theme ([d13b6c1](https://github.com/instructure/instructure-ui/commit/d13b6c1449d5ae7c2fa6d917c1a5db8d676df5b2))
222
-
223
-
224
-
225
-
151
+ - **emotion:** [InstUISettingsProvider] should be able to access the current theme ([d13b6c1](https://github.com/instructure/instructure-ui/commit/d13b6c1449d5ae7c2fa6d917c1a5db8d676df5b2))
226
152
 
227
153
  # [10.17.0](https://github.com/instructure/instructure-ui/compare/v10.16.4...v10.17.0) (2025-05-20)
228
154
 
229
155
  **Note:** Version bump only for package @instructure/emotion
230
156
 
231
-
232
-
233
-
234
-
235
157
  ## [10.16.4](https://github.com/instructure/instructure-ui/compare/v10.16.3...v10.16.4) (2025-05-09)
236
158
 
237
159
  **Note:** Version bump only for package @instructure/emotion
238
160
 
239
-
240
-
241
-
242
-
243
161
  ## [10.16.3](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.3) (2025-04-30)
244
162
 
245
163
  **Note:** Version bump only for package @instructure/emotion
246
164
 
247
-
248
-
249
-
250
-
251
165
  ## [10.16.2](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.2) (2025-04-22)
252
166
 
253
167
  **Note:** Version bump only for package @instructure/emotion
254
168
 
255
-
256
-
257
-
258
-
259
169
  ## [10.16.1](https://github.com/instructure/instructure-ui/compare/v10.16.0...v10.16.1) (2025-04-22)
260
170
 
261
171
  **Note:** Version bump only for package @instructure/emotion
262
172
 
263
-
264
-
265
-
266
-
267
173
  # [10.16.0](https://github.com/instructure/instructure-ui/compare/v10.15.2...v10.16.0) (2025-04-11)
268
174
 
269
175
  **Note:** Version bump only for package @instructure/emotion
270
176
 
271
-
272
-
273
-
274
-
275
177
  ## [10.15.2](https://github.com/instructure/instructure-ui/compare/v10.15.1...v10.15.2) (2025-04-07)
276
178
 
277
-
278
179
  ### Bug Fixes
279
180
 
280
- * update PropTypes to align with the new spacing tokens ([223d55b](https://github.com/instructure/instructure-ui/commit/223d55bad95e2a3a8b298d622e5b1d0fbab6b289))
281
-
282
-
283
-
284
-
181
+ - update PropTypes to align with the new spacing tokens ([223d55b](https://github.com/instructure/instructure-ui/commit/223d55bad95e2a3a8b298d622e5b1d0fbab6b289))
285
182
 
286
183
  ## [10.15.1](https://github.com/instructure/instructure-ui/compare/v10.15.0...v10.15.1) (2025-04-03)
287
184
 
288
185
  **Note:** Version bump only for package @instructure/emotion
289
186
 
290
-
291
-
292
-
293
-
294
187
  # [10.15.0](https://github.com/instructure/instructure-ui/compare/v10.14.0...v10.15.0) (2025-03-31)
295
188
 
296
-
297
189
  ### Bug Fixes
298
190
 
299
- * **many:** fix having the same DOM ids if there are multiple instances of InstUI, e.g. module federation ([a0bb4d0](https://github.com/instructure/instructure-ui/commit/a0bb4d0a8d0f8bcca8f565883f56b599eec66fc9))
300
- * **ui-themes,emotion:** fix typos in names of some spacing token ([9bbc6e4](https://github.com/instructure/instructure-ui/commit/9bbc6e4b51e000aa9d9a279224fd890401940a7e))
301
-
191
+ - **many:** fix having the same DOM ids if there are multiple instances of InstUI, e.g. module federation ([a0bb4d0](https://github.com/instructure/instructure-ui/commit/a0bb4d0a8d0f8bcca8f565883f56b599eec66fc9))
192
+ - **ui-themes,emotion:** fix typos in names of some spacing token ([9bbc6e4](https://github.com/instructure/instructure-ui/commit/9bbc6e4b51e000aa9d9a279224fd890401940a7e))
302
193
 
303
194
  ### Features
304
195
 
305
- * **ui-avatar,emotion:** add theming solution to functional components ([9cbfd35](https://github.com/instructure/instructure-ui/commit/9cbfd35f038aed2942424707ec4669c820e3c820))
306
-
307
-
308
-
309
-
196
+ - **ui-avatar,emotion:** add theming solution to functional components ([9cbfd35](https://github.com/instructure/instructure-ui/commit/9cbfd35f038aed2942424707ec4669c820e3c820))
310
197
 
311
198
  # [10.14.0](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.14.0) (2025-03-17)
312
199
 
313
200
  **Note:** Version bump only for package @instructure/emotion
314
201
 
315
-
316
-
317
-
318
-
319
202
  # [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06)
320
203
 
321
204
  **Note:** Version bump only for package @instructure/emotion
322
205
 
323
-
324
-
325
-
326
-
327
206
  # [10.12.0](https://github.com/instructure/instructure-ui/compare/v10.11.0...v10.12.0) (2025-02-24)
328
207
 
329
-
330
208
  ### Features
331
209
 
332
- * **many:** introduce new spacing tokens; add margin prop for more components ([048c902](https://github.com/instructure/instructure-ui/commit/048c902406c00611cd117fb2fb8164a6eba62fb8))
333
-
334
-
335
-
336
-
210
+ - **many:** introduce new spacing tokens; add margin prop for more components ([048c902](https://github.com/instructure/instructure-ui/commit/048c902406c00611cd117fb2fb8164a6eba62fb8))
337
211
 
338
212
  # [10.11.0](https://github.com/instructure/instructure-ui/compare/v10.10.0...v10.11.0) (2025-02-03)
339
213
 
340
214
  **Note:** Version bump only for package @instructure/emotion
341
215
 
342
-
343
-
344
-
345
-
346
216
  # [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18)
347
217
 
348
218
  **Note:** Version bump only for package @instructure/emotion
349
219
 
350
-
351
-
352
-
353
-
354
220
  # [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12)
355
221
 
356
222
  **Note:** Version bump only for package @instructure/emotion
357
223
 
358
-
359
-
360
-
361
-
362
224
  # [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09)
363
225
 
364
226
  **Note:** Version bump only for package @instructure/emotion
365
227
 
366
-
367
-
368
-
369
-
370
228
  # [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03)
371
229
 
372
230
  **Note:** Version bump only for package @instructure/emotion
373
231
 
374
-
375
-
376
-
377
-
378
232
  ## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26)
379
233
 
380
-
381
234
  ### Bug Fixes
382
235
 
383
- * **emotion,shared-types:** better TS types for theme objects and their overrides ([c790958](https://github.com/instructure/instructure-ui/commit/c7909580b283ab6808f7c9d0f53b49630bf713d9))
384
-
385
-
386
-
387
-
236
+ - **emotion,shared-types:** better TS types for theme objects and their overrides ([c790958](https://github.com/instructure/instructure-ui/commit/c7909580b283ab6808f7c9d0f53b49630bf713d9))
388
237
 
389
238
  # [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18)
390
239
 
391
240
  **Note:** Version bump only for package @instructure/emotion
392
241
 
393
-
394
-
395
-
396
-
397
242
  # [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07)
398
243
 
399
244
  **Note:** Version bump only for package @instructure/emotion
400
245
 
401
-
402
-
403
-
404
-
405
246
  ## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28)
406
247
 
407
-
408
248
  ### Bug Fixes
409
249
 
410
- * update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5))
411
-
412
-
413
-
414
-
250
+ - update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5))
415
251
 
416
252
  # [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16)
417
253
 
418
254
  **Note:** Version bump only for package @instructure/emotion
419
255
 
420
-
421
-
422
-
423
-
424
256
  # [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03)
425
257
 
426
258
  **Note:** Version bump only for package @instructure/emotion
427
259
 
428
-
429
-
430
-
431
-
432
260
  ## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13)
433
261
 
434
262
  **Note:** Version bump only for package @instructure/emotion
435
263
 
436
-
437
-
438
-
439
-
440
264
  ## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30)
441
265
 
442
266
  **Note:** Version bump only for package @instructure/emotion
443
267
 
444
-
445
-
446
-
447
-
448
268
  # [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23)
449
269
 
450
-
451
270
  ### Features
452
271
 
453
- * **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
454
-
455
-
456
-
457
-
272
+ - **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
458
273
 
459
274
  # [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23)
460
275
 
461
-
462
276
  ### Features
463
277
 
464
- * **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
465
-
466
-
467
-
468
-
278
+ - **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
469
279
 
470
280
  # [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31)
471
281
 
472
-
473
282
  ### Features
474
283
 
475
- * **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
476
-
284
+ - **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
477
285
 
478
286
  ### BREAKING CHANGES
479
287
 
480
- * **many:** Breaks color overrides in certain cases
481
-
482
-
483
-
484
-
288
+ - **many:** Breaks color overrides in certain cases
485
289
 
486
290
  ## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30)
487
291
 
488
292
  **Note:** Version bump only for package @instructure/emotion
489
293
 
490
-
491
-
492
-
493
-
494
294
  # [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26)
495
295
 
496
296
  **Note:** Version bump only for package @instructure/emotion
497
297
 
498
-
499
-
500
-
501
-
502
298
  # [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26)
503
299
 
504
300
  **Note:** Version bump only for package @instructure/emotion
505
301
 
506
-
507
-
508
-
509
-
510
302
  # [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17)
511
303
 
512
304
  **Note:** Version bump only for package @instructure/emotion
513
305
 
514
-
515
-
516
-
517
-
518
306
  # [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09)
519
307
 
520
308
  **Note:** Version bump only for package @instructure/emotion
521
309
 
522
-
523
-
524
-
525
-
526
310
  # [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14)
527
311
 
528
312
  **Note:** Version bump only for package @instructure/emotion
529
313
 
530
-
531
-
532
-
533
-
534
314
  ## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09)
535
315
 
536
316
  **Note:** Version bump only for package @instructure/emotion
537
317
 
538
-
539
-
540
-
541
-
542
318
  # [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09)
543
319
 
544
320
  **Note:** Version bump only for package @instructure/emotion
545
321
 
546
-
547
-
548
-
549
-
550
322
  # [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06)
551
323
 
552
324
  **Note:** Version bump only for package @instructure/emotion
553
325
 
554
-
555
-
556
-
557
-
558
326
  ## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30)
559
327
 
560
328
  **Note:** Version bump only for package @instructure/emotion
561
329
 
562
-
563
-
564
-
565
-
566
330
  # [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09)
567
331
 
568
332
  **Note:** Version bump only for package @instructure/emotion
569
333
 
570
-
571
-
572
-
573
-
574
334
  # [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21)
575
335
 
576
336
  **Note:** Version bump only for package @instructure/emotion
577
337
 
578
-
579
-
580
-
581
-
582
338
  ## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15)
583
339
 
584
340
  **Note:** Version bump only for package @instructure/emotion
585
341
 
586
-
587
-
588
-
589
-
590
342
  ## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09)
591
343
 
592
344
  **Note:** Version bump only for package @instructure/emotion
593
345
 
594
-
595
-
596
-
597
-
598
346
  # [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08)
599
347
 
600
348
  **Note:** Version bump only for package @instructure/emotion
@@ -41,7 +41,7 @@ function InstUISettingsProvider({
41
41
  instanceCounterMap
42
42
  }) {
43
43
  const finalDir = dir || useContext(TextDirectionContext);
44
- if (process.env.NODE_ENV !== 'production' && finalDir === 'auto') {}
44
+ if ((process.env.NODE_ENV !== 'production' || process.env.GITHUB_PULL_REQUEST_PREVIEW === 'true') && finalDir === 'auto') {}
45
45
  let providers = _jsx(DeterministicIdContextProvider, {
46
46
  instanceCounterMap: instanceCounterMap,
47
47
  children: _jsx(ThemeProvider, {
@@ -32,14 +32,13 @@
32
32
  * @param theme - Theme object
33
33
  * @param displayName - Name of the component
34
34
  * @param componentId - componentId of the component
35
- * @param props - The component's props object
35
+ * @param themeOverride - The theme override object
36
36
  * @param componentTheme - The component's default theme
37
37
  * @returns The calculated theme override object
38
38
  */
39
- const getComponentThemeOverride = (theme, displayName, componentId, props, componentTheme) => {
39
+ const getComponentThemeOverride = (theme, displayName, componentId, themeOverride, componentTheme) => {
40
40
  const name = displayName;
41
41
  const id = componentId;
42
- const themeOverride = props ? props.themeOverride : void 0;
43
42
  const _ref = theme,
44
43
  componentOverrides = _ref.componentOverrides;
45
44
  let overridesFromTheme = {};
@@ -49,7 +48,9 @@ const getComponentThemeOverride = (theme, displayName, componentId, props, compo
49
48
  }
50
49
  if (themeOverride) {
51
50
  if (typeof themeOverride === 'function') {
52
- overrideFromComponent = themeOverride(componentTheme || {},
51
+ overrideFromComponent = themeOverride(
52
+ //TODO type properly when the old theme is gone
53
+ componentTheme || {},
53
54
  // the `theme` technically could be a partial theme / override object too,
54
55
  // but we want to display all possible options
55
56
  theme);