@instructure/ui-progress 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 (97) hide show
  1. package/CHANGELOG.md +37 -294
  2. package/es/ProgressBar/{index.js → v1/index.js} +2 -2
  3. package/es/ProgressBar/v2/index.js +130 -0
  4. package/{src/index.ts → es/ProgressBar/v2/props.js} +2 -5
  5. package/es/ProgressBar/v2/styles.js +237 -0
  6. package/es/ProgressCircle/{index.js → v1/index.js} +2 -2
  7. package/es/ProgressCircle/v2/index.js +173 -0
  8. package/es/ProgressCircle/v2/props.js +26 -0
  9. package/es/ProgressCircle/v2/styles.js +349 -0
  10. package/es/{index.js → exports/a.js} +2 -2
  11. package/es/exports/b.js +25 -0
  12. package/lib/ProgressBar/{index.js → v1/index.js} +3 -3
  13. package/lib/ProgressBar/v2/index.js +136 -0
  14. package/lib/ProgressBar/v2/props.js +31 -0
  15. package/lib/ProgressBar/v2/styles.js +243 -0
  16. package/lib/ProgressCircle/{index.js → v1/index.js} +3 -3
  17. package/lib/ProgressCircle/v2/index.js +179 -0
  18. package/lib/ProgressCircle/v2/props.js +31 -0
  19. package/lib/ProgressCircle/v2/styles.js +355 -0
  20. package/lib/{index.js → exports/a.js} +4 -4
  21. package/lib/exports/b.js +19 -0
  22. package/package.json +40 -18
  23. package/src/ProgressBar/{index.tsx → v1/index.tsx} +2 -2
  24. package/src/ProgressBar/v2/README.md +384 -0
  25. package/src/ProgressBar/v2/index.tsx +142 -0
  26. package/src/ProgressBar/v2/props.ts +155 -0
  27. package/src/ProgressBar/v2/styles.ts +221 -0
  28. package/src/ProgressCircle/{index.tsx → v1/index.tsx} +2 -2
  29. package/src/ProgressCircle/v2/README.md +219 -0
  30. package/src/ProgressCircle/v2/index.tsx +196 -0
  31. package/src/ProgressCircle/v2/props.ts +141 -0
  32. package/src/ProgressCircle/v2/styles.ts +343 -0
  33. package/src/exports/a.ts +29 -0
  34. package/src/exports/b.ts +29 -0
  35. package/tsconfig.build.tsbuildinfo +1 -1
  36. package/types/ProgressBar/v1/index.d.ts.map +1 -0
  37. package/types/ProgressBar/v1/props.d.ts.map +1 -0
  38. package/types/ProgressBar/v1/styles.d.ts.map +1 -0
  39. package/types/ProgressBar/v1/theme.d.ts.map +1 -0
  40. package/types/ProgressBar/v2/index.d.ts +43 -0
  41. package/types/ProgressBar/v2/index.d.ts.map +1 -0
  42. package/types/ProgressBar/v2/props.d.ts +77 -0
  43. package/types/ProgressBar/v2/props.d.ts.map +1 -0
  44. package/types/ProgressBar/v2/styles.d.ts +15 -0
  45. package/types/ProgressBar/v2/styles.d.ts.map +1 -0
  46. package/types/ProgressCircle/v1/index.d.ts.map +1 -0
  47. package/types/ProgressCircle/v1/props.d.ts.map +1 -0
  48. package/types/ProgressCircle/v1/styles.d.ts.map +1 -0
  49. package/types/ProgressCircle/v1/theme.d.ts.map +1 -0
  50. package/types/ProgressCircle/v2/index.d.ts +49 -0
  51. package/types/ProgressCircle/v2/index.d.ts.map +1 -0
  52. package/types/ProgressCircle/v2/props.d.ts +75 -0
  53. package/types/ProgressCircle/v2/props.d.ts.map +1 -0
  54. package/types/ProgressCircle/v2/styles.d.ts +15 -0
  55. package/types/ProgressCircle/v2/styles.d.ts.map +1 -0
  56. package/types/exports/a.d.ts +5 -0
  57. package/types/exports/a.d.ts.map +1 -0
  58. package/types/exports/b.d.ts +5 -0
  59. package/types/exports/b.d.ts.map +1 -0
  60. package/types/ProgressBar/index.d.ts.map +0 -1
  61. package/types/ProgressBar/props.d.ts.map +0 -1
  62. package/types/ProgressBar/styles.d.ts.map +0 -1
  63. package/types/ProgressBar/theme.d.ts.map +0 -1
  64. package/types/ProgressCircle/index.d.ts.map +0 -1
  65. package/types/ProgressCircle/props.d.ts.map +0 -1
  66. package/types/ProgressCircle/styles.d.ts.map +0 -1
  67. package/types/ProgressCircle/theme.d.ts.map +0 -1
  68. package/types/index.d.ts +0 -5
  69. package/types/index.d.ts.map +0 -1
  70. /package/es/ProgressBar/{props.js → v1/props.js} +0 -0
  71. /package/es/ProgressBar/{styles.js → v1/styles.js} +0 -0
  72. /package/es/ProgressBar/{theme.js → v1/theme.js} +0 -0
  73. /package/es/ProgressCircle/{props.js → v1/props.js} +0 -0
  74. /package/es/ProgressCircle/{styles.js → v1/styles.js} +0 -0
  75. /package/es/ProgressCircle/{theme.js → v1/theme.js} +0 -0
  76. /package/lib/ProgressBar/{props.js → v1/props.js} +0 -0
  77. /package/lib/ProgressBar/{styles.js → v1/styles.js} +0 -0
  78. /package/lib/ProgressBar/{theme.js → v1/theme.js} +0 -0
  79. /package/lib/ProgressCircle/{props.js → v1/props.js} +0 -0
  80. /package/lib/ProgressCircle/{styles.js → v1/styles.js} +0 -0
  81. /package/lib/ProgressCircle/{theme.js → v1/theme.js} +0 -0
  82. /package/src/ProgressBar/{README.md → v1/README.md} +0 -0
  83. /package/src/ProgressBar/{props.ts → v1/props.ts} +0 -0
  84. /package/src/ProgressBar/{styles.ts → v1/styles.ts} +0 -0
  85. /package/src/ProgressBar/{theme.ts → v1/theme.ts} +0 -0
  86. /package/src/ProgressCircle/{README.md → v1/README.md} +0 -0
  87. /package/src/ProgressCircle/{props.ts → v1/props.ts} +0 -0
  88. /package/src/ProgressCircle/{styles.ts → v1/styles.ts} +0 -0
  89. /package/src/ProgressCircle/{theme.ts → v1/theme.ts} +0 -0
  90. /package/types/ProgressBar/{index.d.ts → v1/index.d.ts} +0 -0
  91. /package/types/ProgressBar/{props.d.ts → v1/props.d.ts} +0 -0
  92. /package/types/ProgressBar/{styles.d.ts → v1/styles.d.ts} +0 -0
  93. /package/types/ProgressBar/{theme.d.ts → v1/theme.d.ts} +0 -0
  94. /package/types/ProgressCircle/{index.d.ts → v1/index.d.ts} +0 -0
  95. /package/types/ProgressCircle/{props.d.ts → v1/props.d.ts} +0 -0
  96. /package/types/ProgressCircle/{styles.d.ts → v1/styles.d.ts} +0 -0
  97. /package/types/ProgressCircle/{theme.d.ts → v1/theme.d.ts} +0 -0
@@ -0,0 +1,355 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ /**
32
+ * ---
33
+ * private: true
34
+ * ---
35
+ * Generates the style object from the theme and provided additional information
36
+ * @param {Object} componentTheme The theme variable object.
37
+ * @param {Object} props the props of the component, the style is applied to
38
+ * @param {Object} state the state of the component, the style is applied to
39
+ * @return {Object} The final style object, which will be used in the component
40
+ */
41
+ const generateStyle = (componentTheme, props, _sharedTokens, state) => {
42
+ const size = props.size,
43
+ color = props.color,
44
+ meterColor = props.meterColor,
45
+ _props$valueNow = props.valueNow,
46
+ valueNow = _props$valueNow === void 0 ? 0 : _props$valueNow,
47
+ _props$valueMax = props.valueMax,
48
+ valueMax = _props$valueMax === void 0 ? 100 : _props$valueMax;
49
+ const shouldAnimateOnMount = state.shouldAnimateOnMount;
50
+ const getMeterColorClassName = typeof meterColor === 'function' ? meterColor({
51
+ valueNow,
52
+ valueMax
53
+ }) : meterColor;
54
+ const getCircumference = () => {
55
+ const camelSize = size === 'x-small' ? 'xSmall' : size;
56
+ // get the circumference of the meter circle
57
+ return parseFloat(componentTheme[`${camelSize}Circumference`]);
58
+ };
59
+ const getRadii = () => {
60
+ const camelSize = size === 'x-small' ? 'xSmall' : size;
61
+ return {
62
+ radius: componentTheme[`${camelSize}Radius`],
63
+ borderOffsetRadius: componentTheme[`${camelSize}BorderOffset`]
64
+ };
65
+ };
66
+ const getDashOffset = () => {
67
+ // send the stroke-dashoffset to the meter circle, checking
68
+ // to make sure current value doesn't exceed max value
69
+ if (valueNow < valueMax) {
70
+ const circumference = getCircumference();
71
+ // figure out how much offset to give the stroke to show the % complete
72
+ return circumference - valueNow / valueMax * circumference;
73
+ } else {
74
+ return 0;
75
+ }
76
+ };
77
+
78
+ /*
79
+ Using !important on the meter shouldAnimateOnMount versions
80
+ to guarantee that the bars will start showing 0 if the
81
+ animateOnMount prop is set
82
+ */
83
+ const sizeVariants = {
84
+ 'x-small': {
85
+ progressCircle: {
86
+ width: componentTheme.xSmallSize,
87
+ height: componentTheme.xSmallSize
88
+ },
89
+ circle: {
90
+ width: componentTheme.xSmallSize,
91
+ height: componentTheme.xSmallSize
92
+ },
93
+ value: {
94
+ padding: '0.5rem'
95
+ },
96
+ border: {
97
+ transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`
98
+ },
99
+ track: {
100
+ transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`,
101
+ strokeWidth: componentTheme.xSmallStrokeWidth
102
+ },
103
+ meter: {
104
+ strokeWidth: componentTheme.xSmallStrokeWidth,
105
+ strokeDasharray: componentTheme.xSmallCircumference,
106
+ ...(shouldAnimateOnMount && {
107
+ strokeDashoffset: `${componentTheme.xSmallCircumference} !important`
108
+ })
109
+ }
110
+ },
111
+ small: {
112
+ progressCircle: {
113
+ width: componentTheme.smallSize,
114
+ height: componentTheme.smallSize
115
+ },
116
+ circle: {
117
+ width: componentTheme.smallSize,
118
+ height: componentTheme.smallSize
119
+ },
120
+ value: {},
121
+ border: {
122
+ transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`
123
+ },
124
+ track: {
125
+ transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`,
126
+ strokeWidth: componentTheme.smallStrokeWidth
127
+ },
128
+ meter: {
129
+ strokeWidth: componentTheme.smallStrokeWidth,
130
+ strokeDasharray: componentTheme.smallCircumference,
131
+ ...(shouldAnimateOnMount && {
132
+ strokeDashoffset: `${componentTheme.smallCircumference} !important`
133
+ })
134
+ }
135
+ },
136
+ medium: {
137
+ progressCircle: {
138
+ width: componentTheme.mediumSize,
139
+ height: componentTheme.mediumSize
140
+ },
141
+ circle: {
142
+ width: componentTheme.mediumSize,
143
+ height: componentTheme.mediumSize
144
+ },
145
+ value: {},
146
+ border: {
147
+ transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`
148
+ },
149
+ track: {
150
+ transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`,
151
+ strokeWidth: componentTheme.mediumStrokeWidth
152
+ },
153
+ meter: {
154
+ strokeWidth: componentTheme.mediumStrokeWidth,
155
+ strokeDasharray: componentTheme.mediumCircumference,
156
+ ...(shouldAnimateOnMount && {
157
+ strokeDashoffset: `${componentTheme.mediumCircumference} !important`
158
+ })
159
+ }
160
+ },
161
+ large: {
162
+ progressCircle: {
163
+ width: componentTheme.largeSize,
164
+ height: componentTheme.largeSize
165
+ },
166
+ circle: {
167
+ width: componentTheme.largeSize,
168
+ height: componentTheme.largeSize
169
+ },
170
+ value: {},
171
+ border: {
172
+ transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`
173
+ },
174
+ track: {
175
+ transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`,
176
+ strokeWidth: componentTheme.largeStrokeWidth
177
+ },
178
+ meter: {
179
+ strokeWidth: componentTheme.largeStrokeWidth,
180
+ strokeDasharray: componentTheme.largeCircumference,
181
+ ...(shouldAnimateOnMount && {
182
+ strokeDashoffset: `${componentTheme.largeCircumference} !important`
183
+ })
184
+ }
185
+ }
186
+ };
187
+ const colorVariants = {
188
+ primary: {
189
+ track: {
190
+ stroke: componentTheme.trackColor
191
+ },
192
+ value: {
193
+ color: componentTheme.color
194
+ },
195
+ border: {
196
+ stroke: componentTheme.trackBorderColor
197
+ }
198
+ },
199
+ 'primary-inverse': {
200
+ track: {
201
+ stroke: componentTheme.trackColorInverse
202
+ },
203
+ value: {
204
+ color: componentTheme.colorInverse
205
+ },
206
+ border: {
207
+ stroke: componentTheme.trackBorderColorInverse
208
+ }
209
+ }
210
+ };
211
+ const meterColorVariants = {
212
+ primary: {
213
+ brand: {
214
+ stroke: componentTheme.meterColorBrand
215
+ },
216
+ info: {
217
+ stroke: componentTheme.meterColorInfo
218
+ },
219
+ warning: {
220
+ stroke: componentTheme.meterColorWarning
221
+ },
222
+ danger: {
223
+ stroke: componentTheme.meterColorDanger
224
+ },
225
+ alert: {
226
+ stroke: componentTheme.meterColorAlert
227
+ },
228
+ success: {
229
+ stroke: componentTheme.meterColorSuccess
230
+ }
231
+ },
232
+ 'primary-inverse': {
233
+ brand: {
234
+ stroke: componentTheme.meterColorBrandInverse
235
+ },
236
+ info: {
237
+ stroke: componentTheme.meterColorInfoInverse
238
+ },
239
+ warning: {
240
+ stroke: componentTheme.meterColorWarningInverse
241
+ },
242
+ danger: {
243
+ stroke: componentTheme.meterColorDangerInverse
244
+ },
245
+ alert: {
246
+ stroke: componentTheme.meterColorAlertInverse
247
+ },
248
+ success: {
249
+ stroke: componentTheme.meterColorSuccessInverse
250
+ }
251
+ }
252
+ };
253
+ return {
254
+ progressCircle: {
255
+ label: 'progressCircle',
256
+ display: 'inline-block',
257
+ verticalAlign: 'middle',
258
+ position: 'relative',
259
+ overflow: 'hidden',
260
+ /*
261
+ Seems like a good idea to reset font-size because
262
+ the SVG uses ems and might inherit a container's
263
+ font-size
264
+ */
265
+ fontSize: '1rem',
266
+ fontFamily: componentTheme.fontFamily,
267
+ fontWeight: componentTheme.fontWeight,
268
+ lineHeight: componentTheme.lineHeight,
269
+ ...sizeVariants[size].progressCircle
270
+ },
271
+ center: {
272
+ label: 'progressCircle__center',
273
+ transition: 'all 0.5s',
274
+ transitionDelay: '1s',
275
+ display: 'block',
276
+ position: 'absolute',
277
+ transform: 'translate3d(0, 0, 0)',
278
+ top: 0,
279
+ left: 0,
280
+ height: '100%',
281
+ width: '100%',
282
+ borderRadius: '50%',
283
+ ...(shouldAnimateOnMount && {
284
+ opacity: 0,
285
+ transform: 'translate3d(0, 10%, 0)'
286
+ })
287
+ },
288
+ value: {
289
+ label: 'progressCircle__value',
290
+ boxSizing: 'border-box',
291
+ wordWrap: 'break-word',
292
+ textAlign: 'center',
293
+ borderRadius: '50%',
294
+ display: 'flex',
295
+ alignItems: 'center',
296
+ justifyContent: 'center',
297
+ padding: '1.5rem',
298
+ width: '100%',
299
+ height: '100%',
300
+ lineHeight: 1,
301
+ ...sizeVariants[size].value,
302
+ ...colorVariants[color].value
303
+ },
304
+ circle: {
305
+ label: 'progressCircle__circle',
306
+ transform: 'rotate(-90deg)',
307
+ display: 'block',
308
+ position: 'absolute',
309
+ top: 0,
310
+ left: 0,
311
+ ...sizeVariants[size].circle
312
+ },
313
+ track: {
314
+ label: 'progressCircle__track',
315
+ fill: 'none',
316
+ opacity: 1,
317
+ transition: 'all 0.5s',
318
+ transitionDelay: '0.2s',
319
+ transform: 'translate3d(0, 0, 0)',
320
+ ...sizeVariants[size].track,
321
+ ...colorVariants[color].track,
322
+ ...(shouldAnimateOnMount && {
323
+ opacity: 0,
324
+ transform: 'translate3d(0, 0, 0)'
325
+ })
326
+ },
327
+ border: {
328
+ label: 'progressCircle__border',
329
+ fill: 'none',
330
+ opacity: 1,
331
+ transition: 'all 0.5s',
332
+ transform: 'translate3d(0, 0, 0) scale(1)',
333
+ ...sizeVariants[size].border,
334
+ ...colorVariants[color].border,
335
+ ...(shouldAnimateOnMount && {
336
+ opacity: 0,
337
+ transform: 'translate3d(0, 0, 0) scale(0.75)'
338
+ })
339
+ },
340
+ meter: {
341
+ label: 'progressCircle__meter',
342
+ fill: 'none',
343
+ transition: 'stroke-dashoffset 1s',
344
+ transform: 'translate3d(0, 0, 0)',
345
+ ...sizeVariants[size].meter,
346
+ ...(getMeterColorClassName && meterColorVariants[color][getMeterColorClassName]),
347
+ ...(shouldAnimateOnMount && {
348
+ opacity: 0
349
+ })
350
+ },
351
+ radii: getRadii(),
352
+ dashOffset: getDashOffset()
353
+ };
354
+ };
355
+ var _default = exports.default = generateStyle;
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "ProgressBar", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _ProgressBar.ProgressBar;
9
+ return _v.ProgressBar;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "ProgressCircle", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _ProgressCircle.ProgressCircle;
15
+ return _v2.ProgressCircle;
16
16
  }
17
17
  });
18
- var _ProgressBar = require("./ProgressBar");
19
- var _ProgressCircle = require("./ProgressCircle");
18
+ var _v = require("../ProgressBar/v1");
19
+ var _v2 = require("../ProgressCircle/v1");
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ProgressBar", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _v.ProgressBar;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ProgressCircle", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _v2.ProgressCircle;
16
+ }
17
+ });
18
+ var _v = require("../ProgressBar/v2");
19
+ var _v2 = require("../ProgressCircle/v2");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-progress",
3
- "version": "11.6.0",
3
+ "version": "11.6.1-snapshot-129",
4
4
  "description": "Styled HTML <progress /> elements for showing completion of a task",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,21 +15,21 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/console": "11.6.0",
19
- "@instructure/emotion": "11.6.0",
20
- "@instructure/shared-types": "11.6.0",
21
- "@instructure/ui-a11y-content": "11.6.0",
22
- "@instructure/ui-color-utils": "11.6.0",
23
- "@instructure/ui-view": "11.6.0",
24
- "@instructure/ui-react-utils": "11.6.0"
18
+ "@instructure/console": "11.6.1-snapshot-129",
19
+ "@instructure/emotion": "11.6.1-snapshot-129",
20
+ "@instructure/shared-types": "11.6.1-snapshot-129",
21
+ "@instructure/ui-color-utils": "11.6.1-snapshot-129",
22
+ "@instructure/ui-a11y-content": "11.6.1-snapshot-129",
23
+ "@instructure/ui-react-utils": "11.6.1-snapshot-129",
24
+ "@instructure/ui-view": "11.6.1-snapshot-129"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@testing-library/jest-dom": "^6.6.3",
28
28
  "@testing-library/react": "15.0.7",
29
29
  "vitest": "^3.2.2",
30
- "@instructure/ui-themes": "11.6.0",
31
- "@instructure/ui-babel-preset": "11.6.0",
32
- "@instructure/ui-axe-check": "11.6.0"
30
+ "@instructure/ui-axe-check": "11.6.1-snapshot-129",
31
+ "@instructure/ui-babel-preset": "11.6.1-snapshot-129",
32
+ "@instructure/ui-themes": "11.6.1-snapshot-129"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=18 <=19"
@@ -39,17 +39,39 @@
39
39
  },
40
40
  "sideEffects": false,
41
41
  "exports": {
42
- ".": {
43
- "types": "./types/index.d.ts",
44
- "import": "./es/index.js",
45
- "require": "./lib/index.js",
46
- "default": "./es/index.js"
47
- },
48
42
  "./lib/*": "./lib/*",
49
43
  "./es/*": "./es/*",
50
44
  "./types/*": "./types/*",
51
45
  "./package.json": "./package.json",
52
- "./src/*": "./src/*"
46
+ "./src/*": "./src/*",
47
+ ".": {
48
+ "src": "./src/exports/a.ts",
49
+ "types": "./types/exports/a.d.ts",
50
+ "import": "./es/exports/a.js",
51
+ "require": "./lib/exports/a.js",
52
+ "default": "./es/exports/a.js"
53
+ },
54
+ "./v11_6": {
55
+ "src": "./src/exports/a.ts",
56
+ "types": "./types/exports/a.d.ts",
57
+ "import": "./es/exports/a.js",
58
+ "require": "./lib/exports/a.js",
59
+ "default": "./es/exports/a.js"
60
+ },
61
+ "./v11_7": {
62
+ "src": "./src/exports/b.ts",
63
+ "types": "./types/exports/b.d.ts",
64
+ "import": "./es/exports/b.js",
65
+ "require": "./lib/exports/b.js",
66
+ "default": "./es/exports/b.js"
67
+ },
68
+ "./latest": {
69
+ "src": "./src/exports/b.ts",
70
+ "types": "./types/exports/b.d.ts",
71
+ "import": "./es/exports/b.js",
72
+ "require": "./lib/exports/b.js",
73
+ "default": "./es/exports/b.js"
74
+ }
53
75
  },
54
76
  "scripts": {
55
77
  "lint": "ui-scripts lint",
@@ -24,10 +24,10 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { View } from '@instructure/ui-view'
27
+ import { View } from '@instructure/ui-view/v11_6'
28
28
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils'
29
29
 
30
- import { withStyle } from '@instructure/emotion'
30
+ import { withStyleLegacy as withStyle } from '@instructure/emotion'
31
31
 
32
32
  import generateStyle from './styles'
33
33
  import generateComponentTheme from './theme'