@instructure/ui-grid 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.
- package/CHANGELOG.md +27 -276
- package/es/Grid/{index.js → v1/index.js} +3 -3
- package/es/Grid/v2/index.js +98 -0
- package/es/Grid/v2/props.js +26 -0
- package/es/Grid/v2/styles.js +61 -0
- package/es/GridCol/{index.js → v1/index.js} +1 -1
- package/es/GridCol/v2/index.js +100 -0
- package/es/GridCol/v2/props.js +26 -0
- package/es/GridCol/v2/styles.js +211 -0
- package/es/GridRow/{index.js → v1/index.js} +2 -2
- package/es/GridRow/v2/index.js +93 -0
- package/es/GridRow/v2/props.js +26 -0
- package/es/GridRow/v2/styles.js +137 -0
- package/es/{index.js → exports/a.js} +1 -1
- package/es/exports/b.js +24 -0
- package/lib/Grid/v1/index.js +120 -0
- package/lib/Grid/{index.js → v2/index.js} +7 -8
- package/lib/Grid/v2/props.js +31 -0
- package/lib/Grid/v2/styles.js +67 -0
- package/lib/GridCol/v1/index.js +106 -0
- package/lib/GridCol/{index.js → v2/index.js} +1 -2
- package/lib/GridCol/v2/props.js +31 -0
- package/lib/GridCol/v2/styles.js +217 -0
- package/lib/GridRow/v1/index.js +102 -0
- package/lib/GridRow/{index.js → v2/index.js} +3 -4
- package/{src/index.ts → lib/GridRow/v2/props.js} +7 -6
- package/lib/GridRow/v2/styles.js +143 -0
- package/lib/{index.js → exports/a.js} +4 -4
- package/lib/exports/b.js +24 -0
- package/package.json +39 -17
- package/src/Grid/{index.tsx → v1/index.tsx} +4 -4
- package/src/Grid/{props.ts → v1/props.ts} +1 -1
- package/src/Grid/{styles.ts → v1/styles.ts} +1 -1
- package/src/Grid/v2/README.md +239 -0
- package/src/Grid/v2/index.tsx +117 -0
- package/src/Grid/v2/props.ts +62 -0
- package/src/Grid/v2/styles.ts +70 -0
- package/src/GridCol/{index.tsx → v1/index.tsx} +1 -1
- package/src/GridCol/{props.ts → v1/props.ts} +1 -1
- package/src/GridCol/{styles.ts → v1/styles.ts} +1 -1
- package/src/GridCol/v2/index.tsx +113 -0
- package/src/GridCol/v2/props.ts +90 -0
- package/src/GridCol/v2/styles.ts +221 -0
- package/src/GridRow/{index.tsx → v1/index.tsx} +3 -3
- package/src/GridRow/{props.ts → v1/props.ts} +1 -1
- package/src/GridRow/{styles.ts → v1/styles.ts} +1 -1
- package/src/GridRow/v2/index.tsx +109 -0
- package/src/GridRow/v2/props.ts +66 -0
- package/src/GridRow/v2/styles.ts +120 -0
- package/src/exports/a.ts +30 -0
- package/src/exports/b.ts +30 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Grid/{index.d.ts → v1/index.d.ts} +4 -4
- package/types/Grid/v1/index.d.ts.map +1 -0
- package/types/Grid/{props.d.ts → v1/props.d.ts} +1 -1
- package/types/Grid/v1/props.d.ts.map +1 -0
- package/types/Grid/v1/styles.d.ts.map +1 -0
- package/types/Grid/v1/theme.d.ts.map +1 -0
- package/types/Grid/v2/index.d.ts +42 -0
- package/types/Grid/v2/index.d.ts.map +1 -0
- package/types/Grid/v2/props.d.ts +23 -0
- package/types/Grid/v2/props.d.ts.map +1 -0
- package/types/Grid/v2/styles.d.ts +15 -0
- package/types/Grid/v2/styles.d.ts.map +1 -0
- package/types/GridCol/{index.d.ts → v1/index.d.ts} +1 -1
- package/types/GridCol/v1/index.d.ts.map +1 -0
- package/types/GridCol/{props.d.ts → v1/props.d.ts} +1 -1
- package/types/GridCol/v1/props.d.ts.map +1 -0
- package/types/GridCol/v1/styles.d.ts.map +1 -0
- package/types/GridCol/v1/theme.d.ts.map +1 -0
- package/types/GridCol/v2/index.d.ts +51 -0
- package/types/GridCol/v2/index.d.ts.map +1 -0
- package/types/GridCol/v2/props.d.ts +40 -0
- package/types/GridCol/v2/props.d.ts.map +1 -0
- package/types/GridCol/v2/styles.d.ts +15 -0
- package/types/GridCol/v2/styles.d.ts.map +1 -0
- package/types/GridRow/{index.d.ts → v1/index.d.ts} +3 -3
- package/types/GridRow/v1/index.d.ts.map +1 -0
- package/types/GridRow/{props.d.ts → v1/props.d.ts} +1 -1
- package/types/GridRow/v1/props.d.ts.map +1 -0
- package/types/GridRow/v1/styles.d.ts.map +1 -0
- package/types/GridRow/v1/theme.d.ts.map +1 -0
- package/types/GridRow/v2/index.d.ts +36 -0
- package/types/GridRow/v2/index.d.ts.map +1 -0
- package/types/GridRow/v2/props.d.ts +25 -0
- package/types/GridRow/v2/props.d.ts.map +1 -0
- package/types/GridRow/v2/styles.d.ts +15 -0
- package/types/GridRow/v2/styles.d.ts.map +1 -0
- package/types/exports/a.d.ts +6 -0
- package/types/exports/a.d.ts.map +1 -0
- package/types/exports/b.d.ts +6 -0
- package/types/exports/b.d.ts.map +1 -0
- package/types/utils/v1/GridTypes.d.ts.map +1 -0
- package/types/Grid/index.d.ts.map +0 -1
- package/types/Grid/props.d.ts.map +0 -1
- package/types/Grid/styles.d.ts.map +0 -1
- package/types/Grid/theme.d.ts.map +0 -1
- package/types/GridCol/index.d.ts.map +0 -1
- package/types/GridCol/props.d.ts.map +0 -1
- package/types/GridCol/styles.d.ts.map +0 -1
- package/types/GridCol/theme.d.ts.map +0 -1
- package/types/GridRow/index.d.ts.map +0 -1
- package/types/GridRow/props.d.ts.map +0 -1
- package/types/GridRow/styles.d.ts.map +0 -1
- package/types/GridRow/theme.d.ts.map +0 -1
- package/types/GridTypes.d.ts.map +0 -1
- package/types/index.d.ts +0 -6
- package/types/index.d.ts.map +0 -1
- /package/es/Grid/{props.js → v1/props.js} +0 -0
- /package/es/Grid/{styles.js → v1/styles.js} +0 -0
- /package/es/Grid/{theme.js → v1/theme.js} +0 -0
- /package/es/GridCol/{props.js → v1/props.js} +0 -0
- /package/es/GridCol/{styles.js → v1/styles.js} +0 -0
- /package/es/GridCol/{theme.js → v1/theme.js} +0 -0
- /package/es/GridRow/{props.js → v1/props.js} +0 -0
- /package/es/GridRow/{styles.js → v1/styles.js} +0 -0
- /package/es/GridRow/{theme.js → v1/theme.js} +0 -0
- /package/es/{GridTypes.js → utils/v1/GridTypes.js} +0 -0
- /package/lib/Grid/{props.js → v1/props.js} +0 -0
- /package/lib/Grid/{styles.js → v1/styles.js} +0 -0
- /package/lib/Grid/{theme.js → v1/theme.js} +0 -0
- /package/lib/GridCol/{props.js → v1/props.js} +0 -0
- /package/lib/GridCol/{styles.js → v1/styles.js} +0 -0
- /package/lib/GridCol/{theme.js → v1/theme.js} +0 -0
- /package/lib/GridRow/{props.js → v1/props.js} +0 -0
- /package/lib/GridRow/{styles.js → v1/styles.js} +0 -0
- /package/lib/GridRow/{theme.js → v1/theme.js} +0 -0
- /package/lib/{GridTypes.js → utils/v1/GridTypes.js} +0 -0
- /package/src/Grid/{README.md → v1/README.md} +0 -0
- /package/src/Grid/{theme.ts → v1/theme.ts} +0 -0
- /package/src/GridCol/{theme.ts → v1/theme.ts} +0 -0
- /package/src/GridRow/{theme.ts → v1/theme.ts} +0 -0
- /package/src/{GridTypes.ts → utils/v1/GridTypes.ts} +0 -0
- /package/types/Grid/{styles.d.ts → v1/styles.d.ts} +0 -0
- /package/types/Grid/{theme.d.ts → v1/theme.d.ts} +0 -0
- /package/types/GridCol/{styles.d.ts → v1/styles.d.ts} +0 -0
- /package/types/GridCol/{theme.d.ts → v1/theme.d.ts} +0 -0
- /package/types/GridRow/{styles.d.ts → v1/styles.d.ts} +0 -0
- /package/types/GridRow/{theme.d.ts → v1/theme.d.ts} +0 -0
- /package/types/{GridTypes.d.ts → utils/v1/GridTypes.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,551 +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
|
-
|
|
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.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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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
|
-
|
|
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
|
-
|
|
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-grid
|
|
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
|
-
|
|
74
|
-
|
|
54
|
+
- **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
|
|
75
55
|
|
|
76
56
|
### BREAKING CHANGES
|
|
77
57
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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
|
-
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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
|
-
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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-grid
|
|
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
244
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
434
245
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
246
|
## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30)
|
|
440
247
|
|
|
441
248
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
442
249
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
250
|
# [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26)
|
|
448
251
|
|
|
449
252
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
450
253
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
254
|
# [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26)
|
|
456
255
|
|
|
457
256
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
458
257
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
258
|
# [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17)
|
|
464
259
|
|
|
465
260
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
466
261
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
262
|
# [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09)
|
|
472
263
|
|
|
473
264
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
474
265
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
266
|
# [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14)
|
|
480
267
|
|
|
481
268
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
482
269
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
270
|
## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09)
|
|
488
271
|
|
|
489
272
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
490
273
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
274
|
# [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09)
|
|
496
275
|
|
|
497
276
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
498
277
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
278
|
# [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06)
|
|
504
279
|
|
|
505
280
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
506
281
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
282
|
## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30)
|
|
512
283
|
|
|
513
284
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
514
285
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
286
|
# [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09)
|
|
520
287
|
|
|
521
288
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
522
289
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
290
|
# [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21)
|
|
528
291
|
|
|
529
292
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
530
293
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
294
|
## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15)
|
|
536
295
|
|
|
537
296
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
538
297
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
298
|
## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09)
|
|
544
299
|
|
|
545
300
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
546
301
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
302
|
# [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08)
|
|
552
303
|
|
|
553
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 "
|
|
32
|
-
import { GridCol } from "
|
|
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 };
|