@instructure/ui-view 11.7.3-snapshot-7 → 11.7.3-snapshot-26

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.
@@ -152,7 +152,9 @@ const getStyleProps = ({
152
152
  return whitelisted;
153
153
  };
154
154
  const withBorder = props => {
155
- const borderWidth = props.borderWidth;
155
+ const {
156
+ borderWidth
157
+ } = props;
156
158
  return borderWidth && borderWidth !== '0' && borderWidth !== 'none';
157
159
  };
158
160
 
@@ -163,32 +165,34 @@ const withBorder = props => {
163
165
  * @return {Object} The final style object, which will be used in the component
164
166
  */
165
167
  const generateStyle = (componentTheme, props, sharedTokens) => {
166
- const borderRadius = props.borderRadius,
167
- borderWidth = props.borderWidth,
168
- margin = props.margin,
169
- padding = props.padding,
170
- position = props.position,
171
- display = props.display,
172
- textAlign = props.textAlign,
173
- borderColor = props.borderColor,
174
- background = props.background,
175
- stacking = props.stacking,
176
- shadow = props.shadow,
177
- overflowY = props.overflowY,
178
- overflowX = props.overflowX,
179
- overscrollBehavior = props.overscrollBehavior,
180
- insetBlockEnd = props.insetBlockEnd,
181
- insetBlockStart = props.insetBlockStart,
182
- insetInlineEnd = props.insetInlineEnd,
183
- insetInlineStart = props.insetInlineStart,
184
- width = props.width,
185
- height = props.height,
186
- minWidth = props.minWidth,
187
- minHeight = props.minHeight,
188
- maxWidth = props.maxWidth,
189
- maxHeight = props.maxHeight,
190
- withVisualDebug = props.withVisualDebug,
191
- dir = props.dir;
168
+ const {
169
+ borderRadius,
170
+ borderWidth,
171
+ margin,
172
+ padding,
173
+ position,
174
+ display,
175
+ textAlign,
176
+ borderColor,
177
+ background,
178
+ stacking,
179
+ shadow,
180
+ overflowY,
181
+ overflowX,
182
+ overscrollBehavior,
183
+ insetBlockEnd,
184
+ insetBlockStart,
185
+ insetInlineEnd,
186
+ insetInlineStart,
187
+ width,
188
+ height,
189
+ minWidth,
190
+ minHeight,
191
+ maxWidth,
192
+ maxHeight,
193
+ withVisualDebug,
194
+ dir
195
+ } = props;
192
196
  const borderStyle = getBorderStyle({
193
197
  sharedTokens,
194
198
  borderRadius,
@@ -366,11 +370,13 @@ const generateStyle = (componentTheme, props, sharedTokens) => {
366
370
  },
367
371
  none: {}
368
372
  };
369
- const focusColor = props.focusColor,
370
- focusPosition = props.focusPosition,
371
- shouldAnimateFocus = props.shouldAnimateFocus,
372
- withFocusOutline = props.withFocusOutline,
373
- focusWithin = props.focusWithin;
373
+ const {
374
+ focusColor,
375
+ focusPosition,
376
+ shouldAnimateFocus,
377
+ withFocusOutline,
378
+ focusWithin
379
+ } = props;
374
380
  const focusOutline = (0, _emotion.calcFocusOutlineStyles)(sharedTokens.focusOutline, {
375
381
  focusColor,
376
382
  focusPosition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-view",
3
- "version": "11.7.3-snapshot-7",
3
+ "version": "11.7.3-snapshot-26",
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",
@@ -14,23 +14,23 @@
14
14
  "bugs": "https://github.com/instructure/instructure-ui/issues",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@babel/runtime": "^7.27.6",
18
- "@instructure/shared-types": "11.7.3-snapshot-7",
19
- "@instructure/console": "11.7.3-snapshot-7",
20
- "@instructure/ui-color-utils": "11.7.3-snapshot-7",
21
- "@instructure/emotion": "11.7.3-snapshot-7",
22
- "@instructure/ui-dom-utils": "11.7.3-snapshot-7",
23
- "@instructure/ui-i18n": "11.7.3-snapshot-7",
24
- "@instructure/ui-position": "11.7.3-snapshot-7",
25
- "@instructure/ui-react-utils": "11.7.3-snapshot-7",
26
- "@instructure/ui-themes": "11.7.3-snapshot-7"
17
+ "@babel/runtime": "^7.29.2",
18
+ "@instructure/console": "11.7.3-snapshot-26",
19
+ "@instructure/shared-types": "11.7.3-snapshot-26",
20
+ "@instructure/emotion": "11.7.3-snapshot-26",
21
+ "@instructure/ui-color-utils": "11.7.3-snapshot-26",
22
+ "@instructure/ui-dom-utils": "11.7.3-snapshot-26",
23
+ "@instructure/ui-i18n": "11.7.3-snapshot-26",
24
+ "@instructure/ui-react-utils": "11.7.3-snapshot-26",
25
+ "@instructure/ui-themes": "11.7.3-snapshot-26",
26
+ "@instructure/ui-position": "11.7.3-snapshot-26"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@testing-library/jest-dom": "^6.6.3",
30
30
  "@testing-library/react": "15.0.7",
31
31
  "vitest": "^3.2.2",
32
- "@instructure/ui-babel-preset": "11.7.3-snapshot-7",
33
- "@instructure/ui-axe-check": "11.7.3-snapshot-7"
32
+ "@instructure/ui-babel-preset": "11.7.3-snapshot-26",
33
+ "@instructure/ui-axe-check": "11.7.3-snapshot-26"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": ">=18 <=19"