@instructure/ui-view 8.17.1-snapshot.21 → 8.17.1-snapshot.35

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.
@@ -38,27 +38,27 @@ const topPlacements = ['top', 'top start', 'top end', 'top center'];
38
38
  const getPlacementStyle = (placement, theme) => {
39
39
  if (endPlacements.includes(placement)) {
40
40
  return {
41
- paddingInlineStart: theme === null || theme === void 0 ? void 0 : theme.arrowSize,
41
+ paddingInlineStart: theme?.arrowSize,
42
42
  paddingInlineEnd: '0'
43
43
  };
44
44
  }
45
45
 
46
46
  if (startPlacements.includes(placement)) {
47
47
  return {
48
- paddingInlineEnd: theme === null || theme === void 0 ? void 0 : theme.arrowSize,
48
+ paddingInlineEnd: theme?.arrowSize,
49
49
  paddingInlineStart: '0'
50
50
  };
51
51
  }
52
52
 
53
53
  if (bottomPlacements.includes(placement)) {
54
54
  return {
55
- paddingTop: theme === null || theme === void 0 ? void 0 : theme.arrowSize
55
+ paddingTop: theme?.arrowSize
56
56
  };
57
57
  }
58
58
 
59
59
  if (topPlacements.includes(placement)) {
60
60
  return {
61
- paddingBottom: theme === null || theme === void 0 ? void 0 : theme.arrowSize
61
+ paddingBottom: theme?.arrowSize
62
62
  };
63
63
  }
64
64
 
@@ -83,27 +83,27 @@ const getArrowCorrections = (placement, theme) => {
83
83
 
84
84
  if (start.includes(placement)) {
85
85
  return {
86
- insetInlineStart: `calc((${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}) * 2)`,
86
+ insetInlineStart: `calc((${theme?.arrowSize} + ${theme?.arrowBorderWidth}) * 2)`,
87
87
  insetInlineEnd: 'auto'
88
88
  };
89
89
  }
90
90
 
91
91
  if (end.includes(placement)) {
92
92
  return {
93
- insetInlineStart: `calc(100% - (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}) * 2)`,
93
+ insetInlineStart: `calc(100% - (${theme?.arrowSize} + ${theme?.arrowBorderWidth}) * 2)`,
94
94
  insetInlineEnd: 'auto'
95
95
  };
96
96
  }
97
97
 
98
98
  if (top.includes(placement)) {
99
99
  return {
100
- top: `calc((${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}) * 2)`
100
+ top: `calc((${theme?.arrowSize} + ${theme?.arrowBorderWidth}) * 2)`
101
101
  };
102
102
  }
103
103
 
104
104
  if (bottom.includes(placement)) {
105
105
  return {
106
- top: `calc(100% - (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}) * 2)`
106
+ top: `calc(100% - (${theme?.arrowSize} + ${theme?.arrowBorderWidth}) * 2)`
107
107
  };
108
108
  }
109
109
 
@@ -120,24 +120,24 @@ const getArrowPlacementVariant = (placement, background, theme) => {
120
120
  top: '50%',
121
121
  insetInlineStart: '100%',
122
122
  insetInlineEnd: 'auto',
123
- marginTop: `calc(-1 * (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}))`,
123
+ marginTop: `calc(-1 * (${theme?.arrowSize} + ${theme?.arrowBorderWidth}))`,
124
124
  borderInlineEndWidth: '0',
125
125
  borderInlineEndColor: 'transparent',
126
- borderInlineStartColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBorderColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBorderColor,
126
+ borderInlineStartColor: isInversed ? theme?.arrowBorderColorInverse : theme?.arrowBorderColor,
127
127
  borderTopColor: 'transparent',
128
128
  borderBottomColor: 'transparent',
129
- borderInlineStartWidth: theme === null || theme === void 0 ? void 0 : theme.arrowSize
129
+ borderInlineStartWidth: theme?.arrowSize
130
130
  },
131
131
  __after: {
132
- insetInlineEnd: theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth,
132
+ insetInlineEnd: theme?.arrowBorderWidth,
133
133
  insetInlineStart: 'auto',
134
- marginTop: `calc(-1 * ${theme === null || theme === void 0 ? void 0 : theme.arrowSize})`,
134
+ marginTop: `calc(-1 * ${theme?.arrowSize})`,
135
135
  borderInlineEndWidth: '0',
136
136
  borderInlineEndColor: 'transparent',
137
137
  borderTopColor: 'transparent',
138
138
  borderBottomColor: 'transparent',
139
- borderInlineStartWidth: theme === null || theme === void 0 ? void 0 : theme.arrowSize,
140
- borderInlineStartColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColor
139
+ borderInlineStartWidth: theme?.arrowSize,
140
+ borderInlineStartColor: isInversed ? theme?.arrowBackgroundColorInverse : theme?.arrowBackgroundColor
141
141
  }
142
142
  };
143
143
  }
@@ -148,24 +148,24 @@ const getArrowPlacementVariant = (placement, background, theme) => {
148
148
  top: '50%',
149
149
  insetInlineEnd: '100%',
150
150
  insetInlineStart: 'auto',
151
- marginTop: `calc(-1 * (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}))`,
151
+ marginTop: `calc(-1 * (${theme?.arrowSize} + ${theme?.arrowBorderWidth}))`,
152
152
  borderInlineStartWidth: '0',
153
153
  borderInlineStartColor: 'transparent',
154
- borderInlineEndColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBorderColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBorderColor,
154
+ borderInlineEndColor: isInversed ? theme?.arrowBorderColorInverse : theme?.arrowBorderColor,
155
155
  borderTopColor: 'transparent',
156
156
  borderBottomColor: 'transparent',
157
- borderInlineEndWidth: theme === null || theme === void 0 ? void 0 : theme.arrowSize
157
+ borderInlineEndWidth: theme?.arrowSize
158
158
  },
159
159
  __after: {
160
- insetInlineStart: theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth,
160
+ insetInlineStart: theme?.arrowBorderWidth,
161
161
  insetInlineEnd: 'auto',
162
- marginTop: `calc(-1 * ${theme === null || theme === void 0 ? void 0 : theme.arrowSize})`,
162
+ marginTop: `calc(-1 * ${theme?.arrowSize})`,
163
163
  borderInlineStartWidth: '0',
164
164
  borderInlineStartColor: 'transparent',
165
165
  borderTopColor: 'transparent',
166
166
  borderBottomColor: 'transparent',
167
- borderInlineEndWidth: theme === null || theme === void 0 ? void 0 : theme.arrowSize,
168
- borderInlineEndColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColor
167
+ borderInlineEndWidth: theme?.arrowSize,
168
+ borderInlineEndColor: isInversed ? theme?.arrowBackgroundColorInverse : theme?.arrowBackgroundColor
169
169
  }
170
170
  };
171
171
  }
@@ -174,7 +174,7 @@ const getArrowPlacementVariant = (placement, background, theme) => {
174
174
  return {
175
175
  main: {
176
176
  top: '100%',
177
- marginInlineStart: `calc(-1 * (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}))`,
177
+ marginInlineStart: `calc(-1 * (${theme?.arrowSize} + ${theme?.arrowBorderWidth}))`,
178
178
  marginInlineEnd: '0',
179
179
  borderBottomWidth: '0',
180
180
  borderBottomColor: 'transparent',
@@ -182,14 +182,14 @@ const getArrowPlacementVariant = (placement, background, theme) => {
182
182
  borderInlineEndColor: 'transparent'
183
183
  },
184
184
  __after: {
185
- bottom: theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth,
186
- marginInlineStart: `calc(-1 * ${theme === null || theme === void 0 ? void 0 : theme.arrowSize})`,
185
+ bottom: theme?.arrowBorderWidth,
186
+ marginInlineStart: `calc(-1 * ${theme?.arrowSize})`,
187
187
  marginInlineEnd: '0',
188
188
  borderBottomWidth: '0',
189
189
  borderBottomColor: 'transparent',
190
190
  borderInlineStartColor: 'transparent',
191
191
  borderInlineEndColor: 'transparent',
192
- borderTopColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColor
192
+ borderTopColor: isInversed ? theme?.arrowBackgroundColorInverse : theme?.arrowBackgroundColor
193
193
  }
194
194
  };
195
195
  }
@@ -197,7 +197,7 @@ const getArrowPlacementVariant = (placement, background, theme) => {
197
197
  return {
198
198
  main: {
199
199
  bottom: '100%',
200
- marginInlineStart: `calc(-1 * (${theme === null || theme === void 0 ? void 0 : theme.arrowSize} + ${theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth}))`,
200
+ marginInlineStart: `calc(-1 * (${theme?.arrowSize} + ${theme?.arrowBorderWidth}))`,
201
201
  marginInlineEnd: '0',
202
202
  borderTopWidth: '0',
203
203
  borderTopColor: 'transparent',
@@ -205,14 +205,14 @@ const getArrowPlacementVariant = (placement, background, theme) => {
205
205
  borderInlineEndColor: 'transparent'
206
206
  },
207
207
  __after: {
208
- top: theme === null || theme === void 0 ? void 0 : theme.arrowBorderWidth,
209
- marginInlineStart: `calc(-1 * ${theme === null || theme === void 0 ? void 0 : theme.arrowSize})`,
208
+ top: theme?.arrowBorderWidth,
209
+ marginInlineStart: `calc(-1 * ${theme?.arrowSize})`,
210
210
  marginInlineEnd: '0',
211
211
  borderTopWidth: '0',
212
212
  borderTopColor: 'transparent',
213
213
  borderInlineStartColor: 'transparent',
214
214
  borderInlineEndColor: 'transparent',
215
- borderBottomColor: isInversed ? theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColorInverse : theme === null || theme === void 0 ? void 0 : theme.arrowBackgroundColor
215
+ borderBottomColor: isInversed ? theme?.arrowBackgroundColorInverse : theme?.arrowBackgroundColor
216
216
  }
217
217
  };
218
218
  };
@@ -242,15 +242,15 @@ const generateStyle = (componentTheme, props) => {
242
242
  borderStyle: 'solid'
243
243
  };
244
244
  const arrowBackGroundVariants = {
245
- default: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowBorderColor,
246
- inverse: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowBorderColorInverse
245
+ default: componentTheme?.arrowBorderColor,
246
+ inverse: componentTheme?.arrowBorderColorInverse
247
247
  };
248
248
  const arrowPlacementVariant = getArrowPlacementVariant(placement, background, componentTheme);
249
249
  return {
250
250
  contextView: {
251
251
  label: 'contextView',
252
252
  boxSizing: 'border-box',
253
- minHeight: `calc(${componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowSize} * 2)`,
253
+ minHeight: `calc(${componentTheme?.arrowSize} * 2)`,
254
254
  ...getPlacementStyle(placement, componentTheme)
255
255
  },
256
256
  contextView__content: {
@@ -261,12 +261,12 @@ const generateStyle = (componentTheme, props) => {
261
261
  label: 'contextView__arrow',
262
262
  ...arrowBaseStyles,
263
263
  display: 'block',
264
- borderWidth: `calc(${componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowSize} + ${componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowBorderWidth})`,
264
+ borderWidth: `calc(${componentTheme?.arrowSize} + ${componentTheme?.arrowBorderWidth})`,
265
265
  borderColor: arrowBackGroundVariants[background],
266
266
  ...arrowPlacementVariant.main,
267
267
  ...getArrowCorrections(placement, componentTheme),
268
268
  '&::after': {
269
- borderWidth: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.arrowSize,
269
+ borderWidth: componentTheme?.arrowSize,
270
270
  borderColor: arrowBackGroundVariants[background],
271
271
  ...arrowPlacementVariant.__after,
272
272
  ...arrowBaseStyles
@@ -35,14 +35,12 @@ exports.default = void 0;
35
35
  * @return {Object} The final theme object with the overrides and component variables
36
36
  */
37
37
  const generateComponentTheme = theme => {
38
- var _theme$borders, _theme$colors, _theme$colors2, _theme$colors3;
39
-
40
38
  const componentVariables = {
41
39
  arrowSize: '0.5rem',
42
- arrowBorderWidth: theme === null || theme === void 0 ? void 0 : (_theme$borders = theme.borders) === null || _theme$borders === void 0 ? void 0 : _theme$borders.widthSmall,
43
- arrowBackgroundColor: theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.white,
44
- arrowBorderColor: theme === null || theme === void 0 ? void 0 : (_theme$colors2 = theme.colors) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.tiara,
45
- arrowBackgroundColorInverse: theme === null || theme === void 0 ? void 0 : (_theme$colors3 = theme.colors) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.licorice,
40
+ arrowBorderWidth: theme?.borders?.widthSmall,
41
+ arrowBackgroundColor: theme?.colors?.white,
42
+ arrowBorderColor: theme?.colors?.tiara,
43
+ arrowBackgroundColorInverse: theme?.colors?.licorice,
46
44
  arrowBorderColorInverse: 'transparent'
47
45
  };
48
46
  return { ...componentVariables
package/lib/View/index.js CHANGED
@@ -80,15 +80,11 @@ let View = (_dec = (0, _textDirectionContextConsumer.textDirectionContextConsume
80
80
  }
81
81
 
82
82
  componentDidMount() {
83
- var _this$props$makeStyle, _this$props;
84
-
85
- (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
83
+ this.props.makeStyles?.();
86
84
  }
87
85
 
88
86
  componentDidUpdate() {
89
- var _this$props$makeStyle2, _this$props2;
90
-
91
- (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2); // Not calling getComputedStyle can save hundreds of ms in tests and production
87
+ this.props.makeStyles?.(); // Not calling getComputedStyle can save hundreds of ms in tests and production
92
88
 
93
89
  if (process.env.NODE_ENV === 'development' && !this.spanMarginVerified) {
94
90
  // We have to verify margins in the first 'componentDidUpdate',
@@ -125,35 +121,35 @@ let View = (_dec = (0, _textDirectionContextConsumer.textDirectionContextConsume
125
121
  }
126
122
 
127
123
  render() {
128
- const _this$props3 = this.props,
129
- children = _this$props3.children,
130
- textAlign = _this$props3.textAlign,
131
- background = _this$props3.background,
132
- display = _this$props3.display,
133
- withVisualDebug = _this$props3.withVisualDebug,
134
- width = _this$props3.width,
135
- height = _this$props3.height,
136
- minWidth = _this$props3.minWidth,
137
- minHeight = _this$props3.minHeight,
138
- maxWidth = _this$props3.maxWidth,
139
- maxHeight = _this$props3.maxHeight,
140
- overflowX = _this$props3.overflowX,
141
- overflowY = _this$props3.overflowY,
142
- stacking = _this$props3.stacking,
143
- shadow = _this$props3.shadow,
144
- position = _this$props3.position,
145
- focusPosition = _this$props3.focusPosition,
146
- focusColor = _this$props3.focusColor,
147
- shouldAnimateFocus = _this$props3.shouldAnimateFocus,
148
- borderColor = _this$props3.borderColor,
149
- className = _this$props3.className,
150
- styles = _this$props3.styles,
151
- makeStyles = _this$props3.makeStyles,
152
- props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
124
+ const _this$props = this.props,
125
+ children = _this$props.children,
126
+ textAlign = _this$props.textAlign,
127
+ background = _this$props.background,
128
+ display = _this$props.display,
129
+ withVisualDebug = _this$props.withVisualDebug,
130
+ width = _this$props.width,
131
+ height = _this$props.height,
132
+ minWidth = _this$props.minWidth,
133
+ minHeight = _this$props.minHeight,
134
+ maxWidth = _this$props.maxWidth,
135
+ maxHeight = _this$props.maxHeight,
136
+ overflowX = _this$props.overflowX,
137
+ overflowY = _this$props.overflowY,
138
+ stacking = _this$props.stacking,
139
+ shadow = _this$props.shadow,
140
+ position = _this$props.position,
141
+ focusPosition = _this$props.focusPosition,
142
+ focusColor = _this$props.focusColor,
143
+ shouldAnimateFocus = _this$props.shouldAnimateFocus,
144
+ borderColor = _this$props.borderColor,
145
+ className = _this$props.className,
146
+ styles = _this$props.styles,
147
+ makeStyles = _this$props.makeStyles,
148
+ props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
153
149
  const ElementType = (0, _getElementType.getElementType)(View, this.props);
154
150
  return (0, _emotion.jsx)(ElementType, Object.assign({}, (0, _passthroughProps.passthroughProps)(props), {
155
151
  className: className,
156
- css: [styles === null || styles === void 0 ? void 0 : styles.view, styles === null || styles === void 0 ? void 0 : styles.inlineStyles],
152
+ css: [styles?.view, styles?.inlineStyles],
157
153
  ref: this.handleElementRef
158
154
  }), children);
159
155
  }
package/lib/View/theme.js CHANGED
@@ -58,42 +58,42 @@ const generateComponentTheme = theme => {
58
58
  }
59
59
  };
60
60
  const componentVariables = {
61
- fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
62
- color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
63
- colorPrimaryInverse: colors === null || colors === void 0 ? void 0 : colors.textLightest,
64
- borderColorPrimary: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
65
- borderColorSecondary: colors === null || colors === void 0 ? void 0 : colors.borderDark,
66
- borderColorSuccess: colors === null || colors === void 0 ? void 0 : colors.borderSuccess,
67
- borderColorBrand: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
68
- borderColorInfo: colors === null || colors === void 0 ? void 0 : colors.borderInfo,
69
- borderColorAlert: colors === null || colors === void 0 ? void 0 : colors.borderAlert,
70
- borderColorWarning: colors === null || colors === void 0 ? void 0 : colors.borderWarning,
71
- borderColorDanger: colors === null || colors === void 0 ? void 0 : colors.borderDanger,
61
+ fontFamily: typography?.fontFamily,
62
+ color: colors?.textDarkest,
63
+ colorPrimaryInverse: colors?.textLightest,
64
+ borderColorPrimary: colors?.borderMedium,
65
+ borderColorSecondary: colors?.borderDark,
66
+ borderColorSuccess: colors?.borderSuccess,
67
+ borderColorBrand: colors?.borderBrand,
68
+ borderColorInfo: colors?.borderInfo,
69
+ borderColorAlert: colors?.borderAlert,
70
+ borderColorWarning: colors?.borderWarning,
71
+ borderColorDanger: colors?.borderDanger,
72
72
  borderColorTransparent: 'transparent',
73
- debugOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderDebug,
74
- backgroundPrimary: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
75
- backgroundSecondary: colors === null || colors === void 0 ? void 0 : colors.backgroundLight,
76
- backgroundPrimaryInverse: colors === null || colors === void 0 ? void 0 : colors.backgroundDarkest,
77
- backgroundBrand: colors === null || colors === void 0 ? void 0 : colors.backgroundBrand,
78
- backgroundInfo: colors === null || colors === void 0 ? void 0 : colors.backgroundInfo,
79
- backgroundAlert: colors === null || colors === void 0 ? void 0 : colors.backgroundAlert,
80
- backgroundSuccess: colors === null || colors === void 0 ? void 0 : colors.backgroundSuccess,
81
- backgroundDanger: colors === null || colors === void 0 ? void 0 : colors.backgroundDanger,
82
- backgroundWarning: colors === null || colors === void 0 ? void 0 : colors.backgroundWarning,
73
+ debugOutlineColor: colors?.borderDebug,
74
+ backgroundPrimary: colors?.backgroundLightest,
75
+ backgroundSecondary: colors?.backgroundLight,
76
+ backgroundPrimaryInverse: colors?.backgroundDarkest,
77
+ backgroundBrand: colors?.backgroundBrand,
78
+ backgroundInfo: colors?.backgroundInfo,
79
+ backgroundAlert: colors?.backgroundAlert,
80
+ backgroundSuccess: colors?.backgroundSuccess,
81
+ backgroundDanger: colors?.backgroundDanger,
82
+ backgroundWarning: colors?.backgroundWarning,
83
83
  arrowSize: '0.5rem',
84
- focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style,
85
- focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
84
+ focusOutlineStyle: borders?.style,
85
+ focusOutlineWidth: borders?.widthMedium,
86
86
  focusOutlineOffset: '0.3125rem',
87
87
  focusOutlineInset: '0rem',
88
88
  // do not use unitless zero (for CSS calc())
89
- focusColorInfo: colors === null || colors === void 0 ? void 0 : colors.borderInfo,
90
- focusColorDanger: colors === null || colors === void 0 ? void 0 : colors.borderDanger,
91
- focusColorSuccess: colors === null || colors === void 0 ? void 0 : colors.borderSuccess,
92
- focusColorInverse: colors === null || colors === void 0 ? void 0 : colors.borderLightest,
93
- xSmallMaxWidth: breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.xSmall,
94
- smallMaxWidth: breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.small,
95
- mediumMaxWidth: breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.medium,
96
- largeMaxWidth: breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.large,
89
+ focusColorInfo: colors?.borderInfo,
90
+ focusColorDanger: colors?.borderDanger,
91
+ focusColorSuccess: colors?.borderSuccess,
92
+ focusColorInverse: colors?.borderLightest,
93
+ xSmallMaxWidth: breakpoints?.xSmall,
94
+ smallMaxWidth: breakpoints?.small,
95
+ mediumMaxWidth: breakpoints?.medium,
96
+ largeMaxWidth: breakpoints?.large,
97
97
  ...(0, _emotion.makeThemeVars)('margin', spacing),
98
98
  ...(0, _emotion.makeThemeVars)('padding', spacing),
99
99
  ...(0, _emotion.makeThemeVars)('shadow', shadows),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-view",
3
- "version": "8.17.1-snapshot.21+79d490548",
3
+ "version": "8.17.1-snapshot.35+f91affce8",
4
4
  "description": "A component for basic styles including spacing, sizing, borders, display, positioning, and focus states.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,21 +24,21 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/console": "8.17.1-snapshot.21+79d490548",
28
- "@instructure/emotion": "8.17.1-snapshot.21+79d490548",
29
- "@instructure/shared-types": "8.17.1-snapshot.21+79d490548",
30
- "@instructure/ui-color-utils": "8.17.1-snapshot.21+79d490548",
31
- "@instructure/ui-dom-utils": "8.17.1-snapshot.21+79d490548",
32
- "@instructure/ui-i18n": "8.17.1-snapshot.21+79d490548",
33
- "@instructure/ui-position": "8.17.1-snapshot.21+79d490548",
34
- "@instructure/ui-prop-types": "8.17.1-snapshot.21+79d490548",
35
- "@instructure/ui-react-utils": "8.17.1-snapshot.21+79d490548",
27
+ "@instructure/console": "8.17.1-snapshot.35+f91affce8",
28
+ "@instructure/emotion": "8.17.1-snapshot.35+f91affce8",
29
+ "@instructure/shared-types": "8.17.1-snapshot.35+f91affce8",
30
+ "@instructure/ui-color-utils": "8.17.1-snapshot.35+f91affce8",
31
+ "@instructure/ui-dom-utils": "8.17.1-snapshot.35+f91affce8",
32
+ "@instructure/ui-i18n": "8.17.1-snapshot.35+f91affce8",
33
+ "@instructure/ui-position": "8.17.1-snapshot.35+f91affce8",
34
+ "@instructure/ui-prop-types": "8.17.1-snapshot.35+f91affce8",
35
+ "@instructure/ui-react-utils": "8.17.1-snapshot.35+f91affce8",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.17.1-snapshot.21+79d490548",
40
- "@instructure/ui-test-utils": "8.17.1-snapshot.21+79d490548",
41
- "@instructure/ui-themes": "8.17.1-snapshot.21+79d490548"
39
+ "@instructure/ui-babel-preset": "8.17.1-snapshot.35+f91affce8",
40
+ "@instructure/ui-test-utils": "8.17.1-snapshot.35+f91affce8",
41
+ "@instructure/ui-themes": "8.17.1-snapshot.35+f91affce8"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "sideEffects": false,
50
- "gitHead": "79d490548a0736feb2a7232bf5918857317b178b"
50
+ "gitHead": "f91affce8a35b3259e8744b61df1cd5a2ac6b8a8"
51
51
  }