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