@instructure/ui-metric 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 (102) hide show
  1. package/CHANGELOG.md +29 -280
  2. package/es/Metric/{index.js → v1/index.js} +1 -1
  3. package/es/Metric/v2/index.js +71 -0
  4. package/es/Metric/v2/props.js +26 -0
  5. package/es/Metric/v2/styles.js +65 -0
  6. package/es/MetricGroup/{index.js → v1/index.js} +1 -1
  7. package/es/MetricGroup/v2/index.js +60 -0
  8. package/es/{index.js → MetricGroup/v2/props.js} +3 -2
  9. package/es/MetricGroup/v2/styles.js +44 -0
  10. package/es/MetricGroup/v2/theme.js +39 -0
  11. package/es/exports/a.js +25 -0
  12. package/es/exports/b.js +25 -0
  13. package/lib/Metric/{index.js → v1/index.js} +1 -1
  14. package/lib/Metric/v2/index.js +78 -0
  15. package/lib/Metric/v2/props.js +31 -0
  16. package/lib/Metric/v2/styles.js +71 -0
  17. package/lib/MetricGroup/{index.js → v1/index.js} +1 -1
  18. package/lib/MetricGroup/v2/index.js +66 -0
  19. package/lib/MetricGroup/v2/props.js +31 -0
  20. package/lib/MetricGroup/v2/styles.js +50 -0
  21. package/lib/MetricGroup/v2/theme.js +45 -0
  22. package/lib/{index.js → exports/a.js} +4 -4
  23. package/lib/exports/b.js +19 -0
  24. package/package.json +38 -16
  25. package/src/Metric/{index.tsx → v1/index.tsx} +1 -1
  26. package/src/Metric/v2/README.md +30 -0
  27. package/src/Metric/v2/index.tsx +79 -0
  28. package/src/Metric/v2/props.ts +63 -0
  29. package/src/Metric/v2/styles.ts +77 -0
  30. package/src/MetricGroup/{index.tsx → v1/index.tsx} +1 -1
  31. package/src/MetricGroup/v2/README.md +16 -0
  32. package/src/MetricGroup/v2/index.tsx +70 -0
  33. package/src/MetricGroup/v2/props.ts +46 -0
  34. package/src/MetricGroup/v2/styles.ts +47 -0
  35. package/src/MetricGroup/v2/theme.ts +45 -0
  36. package/src/{index.ts → exports/a.ts} +4 -4
  37. package/src/exports/b.ts +29 -0
  38. package/tsconfig.build.tsbuildinfo +1 -1
  39. package/types/Metric/v1/index.d.ts.map +1 -0
  40. package/types/Metric/v1/props.d.ts.map +1 -0
  41. package/types/Metric/v1/styles.d.ts.map +1 -0
  42. package/types/Metric/v1/theme.d.ts.map +1 -0
  43. package/types/Metric/v2/index.d.ts +33 -0
  44. package/types/Metric/v2/index.d.ts.map +1 -0
  45. package/types/Metric/v2/props.d.ts +23 -0
  46. package/types/Metric/v2/props.d.ts.map +1 -0
  47. package/types/Metric/v2/styles.d.ts +17 -0
  48. package/types/Metric/v2/styles.d.ts.map +1 -0
  49. package/types/MetricGroup/v1/index.d.ts.map +1 -0
  50. package/types/MetricGroup/v1/props.d.ts.map +1 -0
  51. package/types/MetricGroup/v1/styles.d.ts.map +1 -0
  52. package/types/MetricGroup/v1/theme.d.ts.map +1 -0
  53. package/types/MetricGroup/v2/index.d.ts +15 -0
  54. package/types/MetricGroup/v2/index.d.ts.map +1 -0
  55. package/types/MetricGroup/v2/props.d.ts +16 -0
  56. package/types/MetricGroup/v2/props.d.ts.map +1 -0
  57. package/types/MetricGroup/v2/styles.d.ts +11 -0
  58. package/types/MetricGroup/v2/styles.d.ts.map +1 -0
  59. package/types/MetricGroup/v2/theme.d.ts +10 -0
  60. package/types/MetricGroup/v2/theme.d.ts.map +1 -0
  61. package/types/exports/a.d.ts +5 -0
  62. package/types/exports/a.d.ts.map +1 -0
  63. package/types/exports/b.d.ts +5 -0
  64. package/types/exports/b.d.ts.map +1 -0
  65. package/types/Metric/index.d.ts.map +0 -1
  66. package/types/Metric/props.d.ts.map +0 -1
  67. package/types/Metric/styles.d.ts.map +0 -1
  68. package/types/Metric/theme.d.ts.map +0 -1
  69. package/types/MetricGroup/index.d.ts.map +0 -1
  70. package/types/MetricGroup/props.d.ts.map +0 -1
  71. package/types/MetricGroup/styles.d.ts.map +0 -1
  72. package/types/MetricGroup/theme.d.ts.map +0 -1
  73. package/types/index.d.ts +0 -5
  74. package/types/index.d.ts.map +0 -1
  75. /package/es/Metric/{props.js → v1/props.js} +0 -0
  76. /package/es/Metric/{styles.js → v1/styles.js} +0 -0
  77. /package/es/Metric/{theme.js → v1/theme.js} +0 -0
  78. /package/es/MetricGroup/{props.js → v1/props.js} +0 -0
  79. /package/es/MetricGroup/{styles.js → v1/styles.js} +0 -0
  80. /package/es/MetricGroup/{theme.js → v1/theme.js} +0 -0
  81. /package/lib/Metric/{props.js → v1/props.js} +0 -0
  82. /package/lib/Metric/{styles.js → v1/styles.js} +0 -0
  83. /package/lib/Metric/{theme.js → v1/theme.js} +0 -0
  84. /package/lib/MetricGroup/{props.js → v1/props.js} +0 -0
  85. /package/lib/MetricGroup/{styles.js → v1/styles.js} +0 -0
  86. /package/lib/MetricGroup/{theme.js → v1/theme.js} +0 -0
  87. /package/src/Metric/{README.md → v1/README.md} +0 -0
  88. /package/src/Metric/{props.ts → v1/props.ts} +0 -0
  89. /package/src/Metric/{styles.ts → v1/styles.ts} +0 -0
  90. /package/src/Metric/{theme.ts → v1/theme.ts} +0 -0
  91. /package/src/MetricGroup/{README.md → v1/README.md} +0 -0
  92. /package/src/MetricGroup/{props.ts → v1/props.ts} +0 -0
  93. /package/src/MetricGroup/{styles.ts → v1/styles.ts} +0 -0
  94. /package/src/MetricGroup/{theme.ts → v1/theme.ts} +0 -0
  95. /package/types/Metric/{index.d.ts → v1/index.d.ts} +0 -0
  96. /package/types/Metric/{props.d.ts → v1/props.d.ts} +0 -0
  97. /package/types/Metric/{styles.d.ts → v1/styles.d.ts} +0 -0
  98. /package/types/Metric/{theme.d.ts → v1/theme.d.ts} +0 -0
  99. /package/types/MetricGroup/{index.d.ts → v1/index.d.ts} +0 -0
  100. /package/types/MetricGroup/{props.d.ts → v1/props.d.ts} +0 -0
  101. /package/types/MetricGroup/{styles.d.ts → v1/styles.d.ts} +0 -0
  102. /package/types/MetricGroup/{theme.d.ts → v1/theme.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,559 +3,308 @@
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)
6
+ ## [11.6.1-snapshot-129](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-snapshot-129) (2026-03-16)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-metric
9
8
 
9
+ ### Features
10
10
 
11
+ * **many:** add solution for using both old and new token system in the same app ([688a713](https://github.com/instructure/instructure-ui/commit/688a713ff715433bb085323dbad61285387c5141))
12
+ * **ui-metric,emotion:** rework Metric ([019cac4](https://github.com/instructure/instructure-ui/commit/019cac4b4b7d9982be8d29ac831672c2e2d1b16a))
11
13
 
12
14
 
13
15
 
14
- # [11.5.0](https://github.com/instructure/instructure-ui/compare/v11.4.0...v11.5.0) (2026-02-03)
15
16
 
16
- **Note:** Version bump only for package @instructure/ui-metric
17
17
 
18
+ # [11.6.0](https://github.com/instructure/instructure-ui/compare/v11.5.0...v11.6.0) (2026-02-18)
18
19
 
20
+ **Note:** Version bump only for package @instructure/ui-metric
19
21
 
22
+ # [11.5.0](https://github.com/instructure/instructure-ui/compare/v11.4.0...v11.5.0) (2026-02-03)
20
23
 
24
+ **Note:** Version bump only for package @instructure/ui-metric
21
25
 
22
26
  # [11.4.0](https://github.com/instructure/instructure-ui/compare/v11.3.0...v11.4.0) (2026-01-20)
23
27
 
24
28
  **Note:** Version bump only for package @instructure/ui-metric
25
29
 
26
-
27
-
28
-
29
-
30
30
  # [11.3.0](https://github.com/instructure/instructure-ui/compare/v11.2.0...v11.3.0) (2026-01-12)
31
31
 
32
32
  **Note:** Version bump only for package @instructure/ui-metric
33
33
 
34
-
35
-
36
-
37
-
38
34
  # [11.2.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.2.0) (2025-11-06)
39
35
 
40
-
41
36
  ### Features
42
37
 
43
- * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
44
-
45
-
46
-
47
-
38
+ - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
48
39
 
49
40
  # [11.1.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.1.0) (2025-11-05)
50
41
 
51
-
52
42
  ### Features
53
43
 
54
- * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
55
-
56
-
57
-
58
-
44
+ - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53))
59
45
 
60
46
  ## [11.0.1](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1) (2025-10-13)
61
47
 
62
48
  **Note:** Version bump only for package @instructure/ui-metric
63
49
 
64
-
65
-
66
-
67
-
68
50
  # [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
69
51
 
70
-
71
52
  ### Features
72
53
 
73
- * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
74
-
54
+ - **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
75
55
 
76
56
  ### BREAKING CHANGES
77
57
 
78
- * **many:** InstUI v11 contains the following breaking changes:
79
- - React 16 and 17 are no longer supported
80
- - remove `PropTypes` from all packages
81
- - remove `CodeEditor` component
82
- - remove `@instui/theme-registry` package
83
- - remove `@testable`, `@experimental`, `@hack` decorators
84
- - InstUISettingsProvider's `as` prop is removed
85
- - `canvas.use()`, `canvasHighContrast.use()` functions are removed
86
- - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
87
- - `variables` field on theme objects are removed
88
- - remove deprecated props from Table: Row's `isStacked`, Body's
58
+ - **many:** InstUI v11 contains the following breaking changes:
59
+
60
+ * React 16 and 17 are no longer supported
61
+ * remove `PropTypes` from all packages
62
+ * remove `CodeEditor` component
63
+ * remove `@instui/theme-registry` package
64
+ * remove `@testable`, `@experimental`, `@hack` decorators
65
+ * InstUISettingsProvider's `as` prop is removed
66
+ * `canvas.use()`, `canvasHighContrast.use()` functions are removed
67
+ * `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
68
+ * `variables` field on theme objects are removed
69
+ * remove deprecated props from Table: Row's `isStacked`, Body's
89
70
  `isStacked`, `hover`, and `headers`
90
- - `Table`'s `caption` prop is now required
91
- - `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
92
-
93
-
94
-
95
-
71
+ * `Table`'s `caption` prop is now required
72
+ * `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
96
73
 
97
74
  # [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01)
98
75
 
99
76
  **Note:** Version bump only for package @instructure/ui-metric
100
77
 
101
-
102
-
103
-
104
-
105
78
  # [10.25.0](https://github.com/instructure/instructure-ui/compare/v10.24.2...v10.25.0) (2025-09-09)
106
79
 
107
80
  **Note:** Version bump only for package @instructure/ui-metric
108
81
 
109
-
110
-
111
-
112
-
113
82
  ## [10.24.2](https://github.com/instructure/instructure-ui/compare/v10.24.1...v10.24.2) (2025-08-11)
114
83
 
115
84
  **Note:** Version bump only for package @instructure/ui-metric
116
85
 
117
-
118
-
119
-
120
-
121
86
  ## [10.24.1](https://github.com/instructure/instructure-ui/compare/v10.24.0...v10.24.1) (2025-07-30)
122
87
 
123
88
  **Note:** Version bump only for package @instructure/ui-metric
124
89
 
125
-
126
-
127
-
128
-
129
90
  # [10.24.0](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.24.0) (2025-07-18)
130
91
 
131
92
  **Note:** Version bump only for package @instructure/ui-metric
132
93
 
133
-
134
-
135
-
136
-
137
94
  # [10.23.0](https://github.com/instructure/instructure-ui/compare/v10.22.0...v10.23.0) (2025-07-09)
138
95
 
139
96
  **Note:** Version bump only for package @instructure/ui-metric
140
97
 
141
-
142
-
143
-
144
-
145
98
  # [10.22.0](https://github.com/instructure/instructure-ui/compare/v10.21.0...v10.22.0) (2025-07-04)
146
99
 
147
100
  **Note:** Version bump only for package @instructure/ui-metric
148
101
 
149
-
150
-
151
-
152
-
153
102
  # [10.21.0](https://github.com/instructure/instructure-ui/compare/v10.20.1...v10.21.0) (2025-06-27)
154
103
 
155
104
  **Note:** Version bump only for package @instructure/ui-metric
156
105
 
157
-
158
-
159
-
160
-
161
106
  ## [10.20.1](https://github.com/instructure/instructure-ui/compare/v10.20.0...v10.20.1) (2025-06-17)
162
107
 
163
108
  **Note:** Version bump only for package @instructure/ui-metric
164
109
 
165
-
166
-
167
-
168
-
169
110
  # [10.20.0](https://github.com/instructure/instructure-ui/compare/v10.19.1...v10.20.0) (2025-06-13)
170
111
 
171
-
172
112
  ### Bug Fixes
173
113
 
174
- * **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2))
175
-
176
-
177
-
178
-
114
+ - **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2))
179
115
 
180
116
  ## [10.19.1](https://github.com/instructure/instructure-ui/compare/v10.19.0...v10.19.1) (2025-06-05)
181
117
 
182
118
  **Note:** Version bump only for package @instructure/ui-metric
183
119
 
184
-
185
-
186
-
187
-
188
120
  # [10.19.0](https://github.com/instructure/instructure-ui/compare/v10.18.1...v10.19.0) (2025-06-03)
189
121
 
190
122
  **Note:** Version bump only for package @instructure/ui-metric
191
123
 
192
-
193
-
194
-
195
-
196
124
  ## [10.18.1](https://github.com/instructure/instructure-ui/compare/v10.18.0...v10.18.1) (2025-05-29)
197
125
 
198
126
  **Note:** Version bump only for package @instructure/ui-metric
199
127
 
200
-
201
-
202
-
203
-
204
128
  # [10.18.0](https://github.com/instructure/instructure-ui/compare/v10.17.0...v10.18.0) (2025-05-26)
205
129
 
206
130
  **Note:** Version bump only for package @instructure/ui-metric
207
131
 
208
-
209
-
210
-
211
-
212
132
  # [10.17.0](https://github.com/instructure/instructure-ui/compare/v10.16.4...v10.17.0) (2025-05-20)
213
133
 
214
134
  **Note:** Version bump only for package @instructure/ui-metric
215
135
 
216
-
217
-
218
-
219
-
220
136
  ## [10.16.4](https://github.com/instructure/instructure-ui/compare/v10.16.3...v10.16.4) (2025-05-09)
221
137
 
222
138
  **Note:** Version bump only for package @instructure/ui-metric
223
139
 
224
-
225
-
226
-
227
-
228
140
  ## [10.16.3](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.3) (2025-04-30)
229
141
 
230
142
  **Note:** Version bump only for package @instructure/ui-metric
231
143
 
232
-
233
-
234
-
235
-
236
144
  ## [10.16.2](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.2) (2025-04-22)
237
145
 
238
146
  **Note:** Version bump only for package @instructure/ui-metric
239
147
 
240
-
241
-
242
-
243
-
244
148
  ## [10.16.1](https://github.com/instructure/instructure-ui/compare/v10.16.0...v10.16.1) (2025-04-22)
245
149
 
246
150
  **Note:** Version bump only for package @instructure/ui-metric
247
151
 
248
-
249
-
250
-
251
-
252
152
  # [10.16.0](https://github.com/instructure/instructure-ui/compare/v10.15.2...v10.16.0) (2025-04-11)
253
153
 
254
154
  **Note:** Version bump only for package @instructure/ui-metric
255
155
 
256
-
257
-
258
-
259
-
260
156
  ## [10.15.2](https://github.com/instructure/instructure-ui/compare/v10.15.1...v10.15.2) (2025-04-07)
261
157
 
262
158
  **Note:** Version bump only for package @instructure/ui-metric
263
159
 
264
-
265
-
266
-
267
-
268
160
  ## [10.15.1](https://github.com/instructure/instructure-ui/compare/v10.15.0...v10.15.1) (2025-04-03)
269
161
 
270
162
  **Note:** Version bump only for package @instructure/ui-metric
271
163
 
272
-
273
-
274
-
275
-
276
164
  # [10.15.0](https://github.com/instructure/instructure-ui/compare/v10.14.0...v10.15.0) (2025-03-31)
277
165
 
278
166
  **Note:** Version bump only for package @instructure/ui-metric
279
167
 
280
-
281
-
282
-
283
-
284
168
  # [10.14.0](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.14.0) (2025-03-17)
285
169
 
286
170
  **Note:** Version bump only for package @instructure/ui-metric
287
171
 
288
-
289
-
290
-
291
-
292
172
  # [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06)
293
173
 
294
174
  **Note:** Version bump only for package @instructure/ui-metric
295
175
 
296
-
297
-
298
-
299
-
300
176
  # [10.12.0](https://github.com/instructure/instructure-ui/compare/v10.11.0...v10.12.0) (2025-02-24)
301
177
 
302
178
  **Note:** Version bump only for package @instructure/ui-metric
303
179
 
304
-
305
-
306
-
307
-
308
180
  # [10.11.0](https://github.com/instructure/instructure-ui/compare/v10.10.0...v10.11.0) (2025-02-03)
309
181
 
310
182
  **Note:** Version bump only for package @instructure/ui-metric
311
183
 
312
-
313
-
314
-
315
-
316
184
  # [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18)
317
185
 
318
186
  **Note:** Version bump only for package @instructure/ui-metric
319
187
 
320
-
321
-
322
-
323
-
324
188
  # [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12)
325
189
 
326
190
  **Note:** Version bump only for package @instructure/ui-metric
327
191
 
328
-
329
-
330
-
331
-
332
192
  # [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09)
333
193
 
334
194
  **Note:** Version bump only for package @instructure/ui-metric
335
195
 
336
-
337
-
338
-
339
-
340
196
  # [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03)
341
197
 
342
198
  **Note:** Version bump only for package @instructure/ui-metric
343
199
 
344
-
345
-
346
-
347
-
348
200
  ## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26)
349
201
 
350
202
  **Note:** Version bump only for package @instructure/ui-metric
351
203
 
352
-
353
-
354
-
355
-
356
204
  # [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18)
357
205
 
358
206
  **Note:** Version bump only for package @instructure/ui-metric
359
207
 
360
-
361
-
362
-
363
-
364
208
  # [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07)
365
209
 
366
210
  **Note:** Version bump only for package @instructure/ui-metric
367
211
 
368
-
369
-
370
-
371
-
372
212
  ## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28)
373
213
 
374
-
375
214
  ### Bug Fixes
376
215
 
377
- * update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5))
378
-
379
-
380
-
381
-
216
+ - update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5))
382
217
 
383
218
  # [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16)
384
219
 
385
220
  **Note:** Version bump only for package @instructure/ui-metric
386
221
 
387
-
388
-
389
-
390
-
391
222
  # [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03)
392
223
 
393
224
  **Note:** Version bump only for package @instructure/ui-metric
394
225
 
395
-
396
-
397
-
398
-
399
226
  ## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13)
400
227
 
401
228
  **Note:** Version bump only for package @instructure/ui-metric
402
229
 
403
-
404
-
405
-
406
-
407
230
  ## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30)
408
231
 
409
232
  **Note:** Version bump only for package @instructure/ui-metric
410
233
 
411
-
412
-
413
-
414
-
415
234
  # [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23)
416
235
 
417
236
  **Note:** Version bump only for package @instructure/ui-metric
418
237
 
419
-
420
-
421
-
422
-
423
238
  # [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23)
424
239
 
425
240
  **Note:** Version bump only for package @instructure/ui-metric
426
241
 
427
-
428
-
429
-
430
-
431
242
  # [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31)
432
243
 
433
-
434
244
  ### Features
435
245
 
436
- * **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
437
-
246
+ - **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
438
247
 
439
248
  ### BREAKING CHANGES
440
249
 
441
- * **many:** Breaks color overrides in certain cases
442
-
443
-
444
-
445
-
250
+ - **many:** Breaks color overrides in certain cases
446
251
 
447
252
  ## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30)
448
253
 
449
254
  **Note:** Version bump only for package @instructure/ui-metric
450
255
 
451
-
452
-
453
-
454
-
455
256
  # [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26)
456
257
 
457
258
  **Note:** Version bump only for package @instructure/ui-metric
458
259
 
459
-
460
-
461
-
462
-
463
260
  # [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26)
464
261
 
465
262
  **Note:** Version bump only for package @instructure/ui-metric
466
263
 
467
-
468
-
469
-
470
-
471
264
  # [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17)
472
265
 
473
266
  **Note:** Version bump only for package @instructure/ui-metric
474
267
 
475
-
476
-
477
-
478
-
479
268
  # [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09)
480
269
 
481
270
  **Note:** Version bump only for package @instructure/ui-metric
482
271
 
483
-
484
-
485
-
486
-
487
272
  # [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14)
488
273
 
489
274
  **Note:** Version bump only for package @instructure/ui-metric
490
275
 
491
-
492
-
493
-
494
-
495
276
  ## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09)
496
277
 
497
278
  **Note:** Version bump only for package @instructure/ui-metric
498
279
 
499
-
500
-
501
-
502
-
503
280
  # [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09)
504
281
 
505
282
  **Note:** Version bump only for package @instructure/ui-metric
506
283
 
507
-
508
-
509
-
510
-
511
284
  # [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06)
512
285
 
513
286
  **Note:** Version bump only for package @instructure/ui-metric
514
287
 
515
-
516
-
517
-
518
-
519
288
  ## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30)
520
289
 
521
290
  **Note:** Version bump only for package @instructure/ui-metric
522
291
 
523
-
524
-
525
-
526
-
527
292
  # [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09)
528
293
 
529
294
  **Note:** Version bump only for package @instructure/ui-metric
530
295
 
531
-
532
-
533
-
534
-
535
296
  # [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21)
536
297
 
537
298
  **Note:** Version bump only for package @instructure/ui-metric
538
299
 
539
-
540
-
541
-
542
-
543
300
  ## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15)
544
301
 
545
302
  **Note:** Version bump only for package @instructure/ui-metric
546
303
 
547
-
548
-
549
-
550
-
551
304
  ## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09)
552
305
 
553
306
  **Note:** Version bump only for package @instructure/ui-metric
554
307
 
555
-
556
-
557
-
558
-
559
308
  # [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08)
560
309
 
561
310
  **Note:** Version bump only for package @instructure/ui-metric
@@ -26,7 +26,7 @@ var _dec, _class, _Metric;
26
26
  */
27
27
 
28
28
  import { Component } from 'react';
29
- import { withStyle } from '@instructure/emotion';
29
+ import { withStyleLegacy as withStyle } from '@instructure/emotion';
30
30
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
31
31
  import generateStyle from "./styles.js";
32
32
  import generateComponentTheme from "./theme.js";
@@ -0,0 +1,71 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import { forwardRef } from 'react';
26
+ import { useStyle } from '@instructure/emotion';
27
+ import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
28
+ import generateStyle from "./styles.js";
29
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
30
+ /**
31
+ ---
32
+ category: components
33
+ ---
34
+ **/
35
+ const Metric = /*#__PURE__*/forwardRef((props, ref) => {
36
+ const _props$textAlign = props.textAlign,
37
+ textAlign = _props$textAlign === void 0 ? 'center' : _props$textAlign,
38
+ renderLabel = props.renderLabel,
39
+ renderValue = props.renderValue,
40
+ _props$isGroupChild = props.isGroupChild,
41
+ isGroupChild = _props$isGroupChild === void 0 ? false : _props$isGroupChild,
42
+ themeOverride = props.themeOverride;
43
+ const styles = useStyle({
44
+ generateStyle,
45
+ themeOverride,
46
+ params: {
47
+ textAlign
48
+ },
49
+ componentId: 'Metric',
50
+ displayName: 'Metric'
51
+ });
52
+ return _jsxs("div", {
53
+ ...passthroughProps(props),
54
+ role: isGroupChild ? 'row' : void 0,
55
+ css: styles === null || styles === void 0 ? void 0 : styles.metric,
56
+ ref: ref,
57
+ "data-cid": "Metric",
58
+ children: [_jsx("div", {
59
+ role: isGroupChild ? 'rowheader' : void 0,
60
+ css: styles === null || styles === void 0 ? void 0 : styles.label,
61
+ children: callRenderProp(renderLabel)
62
+ }), _jsx("div", {
63
+ role: isGroupChild ? 'gridcell' : void 0,
64
+ css: styles === null || styles === void 0 ? void 0 : styles.value,
65
+ children: callRenderProp(renderValue)
66
+ })]
67
+ });
68
+ });
69
+ Metric.displayName = 'Metric';
70
+ export default Metric;
71
+ export { Metric };
@@ -0,0 +1,26 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ const allowedProps = ['textAlign', 'renderLabel', 'renderValue', 'isGroupChild'];
26
+ export { allowedProps };