@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.
- package/CHANGELOG.md +5 -2
- package/es/ContextView/v1/index.js +53 -51
- package/es/ContextView/v1/styles.js +44 -39
- package/es/ContextView/v1/theme.js +4 -5
- package/es/ContextView/v2/index.js +54 -52
- package/es/ContextView/v2/styles.js +45 -40
- package/es/View/v1/index.js +84 -69
- package/es/View/v1/styles.js +38 -32
- package/es/View/v1/theme.js +41 -40
- package/es/View/v2/index.js +84 -69
- package/es/View/v2/styles.js +38 -32
- package/lib/ContextView/v1/index.js +53 -51
- package/lib/ContextView/v1/styles.js +44 -39
- package/lib/ContextView/v1/theme.js +4 -5
- package/lib/ContextView/v2/index.js +54 -52
- package/lib/ContextView/v2/styles.js +45 -40
- package/lib/View/v1/index.js +84 -69
- package/lib/View/v1/styles.js +38 -32
- package/lib/View/v1/theme.js +41 -40
- package/lib/View/v2/index.js +84 -69
- package/lib/View/v2/styles.js +38 -32
- package/package.json +13 -13
- package/tsconfig.build.tsbuildinfo +1 -1
package/lib/View/v2/styles.js
CHANGED
|
@@ -152,7 +152,9 @@ const getStyleProps = ({
|
|
|
152
152
|
return whitelisted;
|
|
153
153
|
};
|
|
154
154
|
const withBorder = props => {
|
|
155
|
-
const
|
|
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
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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-
|
|
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.
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-dom-utils": "11.7.3-snapshot-
|
|
23
|
-
"@instructure/ui-i18n": "11.7.3-snapshot-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
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-
|
|
33
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
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"
|