@instructure/ui-tabs 8.33.1 → 8.33.2
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 +4 -0
- package/es/Tabs/Panel/index.js +14 -25
- package/es/Tabs/Panel/props.js +1 -0
- package/es/Tabs/Panel/styles.js +1 -2
- package/es/Tabs/Panel/theme.js +5 -5
- package/es/Tabs/Tab/index.js +17 -32
- package/es/Tabs/Tab/props.js +1 -0
- package/es/Tabs/Tab/styles.js +10 -7
- package/es/Tabs/Tab/theme.js +5 -5
- package/es/Tabs/TabsLocator.js +2 -1
- package/es/Tabs/index.js +27 -75
- package/es/Tabs/props.js +1 -0
- package/es/Tabs/styles.js +3 -3
- package/es/Tabs/theme.js +5 -5
- package/es/index.js +1 -0
- package/lib/Tabs/Panel/index.js +13 -34
- package/lib/Tabs/Panel/props.js +1 -4
- package/lib/Tabs/Panel/styles.js +1 -3
- package/lib/Tabs/Panel/theme.js +5 -6
- package/lib/Tabs/Tab/index.js +16 -42
- package/lib/Tabs/Tab/props.js +1 -3
- package/lib/Tabs/Tab/styles.js +10 -9
- package/lib/Tabs/Tab/theme.js +5 -6
- package/lib/Tabs/TabsLocator.js +3 -4
- package/lib/Tabs/index.js +27 -100
- package/lib/Tabs/locator.js +0 -2
- package/lib/Tabs/props.js +1 -6
- package/lib/Tabs/styles.js +3 -4
- package/lib/Tabs/theme.js +5 -6
- package/lib/index.js +0 -1
- package/package.json +20 -20
- package/tsconfig.build.tsbuildinfo +1 -1
package/lib/Tabs/props.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
13
|
-
|
|
14
10
|
var _emotion = require("@instructure/emotion");
|
|
15
|
-
|
|
16
11
|
var _Panel = require("./Panel");
|
|
17
|
-
|
|
18
12
|
/*
|
|
19
13
|
* The MIT License (MIT)
|
|
20
14
|
*
|
|
@@ -38,6 +32,7 @@ var _Panel = require("./Panel");
|
|
|
38
32
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
33
|
* SOFTWARE.
|
|
40
34
|
*/
|
|
35
|
+
|
|
41
36
|
const propTypes = {
|
|
42
37
|
children: _Children.Children.oneOf([_Panel.Panel, null]),
|
|
43
38
|
variant: _propTypes.default.oneOf(['default', 'secondary']),
|
package/lib/Tabs/styles.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
/*
|
|
9
8
|
* The MIT License (MIT)
|
|
10
9
|
*
|
|
@@ -41,9 +40,10 @@ exports.default = void 0;
|
|
|
41
40
|
*/
|
|
42
41
|
const generateStyle = (componentTheme, props) => {
|
|
43
42
|
const variant = props.variant,
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
tabOverflow = props.tabOverflow,
|
|
44
|
+
fixHeight = props.fixHeight;
|
|
46
45
|
|
|
46
|
+
// fixHeight can be 0, so simply `fixheight` could return falsy value
|
|
47
47
|
const hasFixedHeight = typeof fixHeight !== 'undefined';
|
|
48
48
|
const variants = {
|
|
49
49
|
default: {
|
|
@@ -145,6 +145,5 @@ const generateStyle = (componentTheme, props) => {
|
|
|
145
145
|
scrollOverlayWidthSecondary: componentTheme.scrollOverlayWidthSecondary
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
|
|
149
148
|
var _default = generateStyle;
|
|
150
149
|
exports.default = _default;
|
package/lib/Tabs/theme.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
/*
|
|
9
8
|
* The MIT License (MIT)
|
|
10
9
|
*
|
|
@@ -36,8 +35,8 @@ exports.default = void 0;
|
|
|
36
35
|
*/
|
|
37
36
|
const generateComponentTheme = theme => {
|
|
38
37
|
const borders = theme.borders,
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
colors = theme.colors,
|
|
39
|
+
stacking = theme.stacking;
|
|
41
40
|
const componentVariables = {
|
|
42
41
|
defaultBackground: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
|
|
43
42
|
scrollFadeColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
|
|
@@ -47,11 +46,11 @@ const generateComponentTheme = theme => {
|
|
|
47
46
|
scrollOverlayWidthDefault: '5rem',
|
|
48
47
|
// has to be 4 times the horizontal padding of the default style tab
|
|
49
48
|
scrollOverlayWidthSecondary: '3rem' // has to be 3 times the horizontal padding of the secondary style tab
|
|
50
|
-
|
|
51
49
|
};
|
|
52
|
-
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
...componentVariables
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
|
|
56
55
|
var _default = generateComponentTheme;
|
|
57
56
|
exports.default = _default;
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tabs",
|
|
3
|
-
"version": "8.33.
|
|
3
|
+
"version": "8.33.2",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,28 +23,28 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.33.
|
|
27
|
-
"@instructure/ui-color-utils": "8.33.
|
|
28
|
-
"@instructure/ui-test-locator": "8.33.
|
|
29
|
-
"@instructure/ui-test-utils": "8.33.
|
|
30
|
-
"@instructure/ui-themes": "8.33.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.33.2",
|
|
27
|
+
"@instructure/ui-color-utils": "8.33.2",
|
|
28
|
+
"@instructure/ui-test-locator": "8.33.2",
|
|
29
|
+
"@instructure/ui-test-utils": "8.33.2",
|
|
30
|
+
"@instructure/ui-themes": "8.33.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/console": "8.33.
|
|
35
|
-
"@instructure/debounce": "8.33.
|
|
36
|
-
"@instructure/emotion": "8.33.
|
|
37
|
-
"@instructure/shared-types": "8.33.
|
|
38
|
-
"@instructure/ui-dom-utils": "8.33.
|
|
39
|
-
"@instructure/ui-focusable": "8.33.
|
|
40
|
-
"@instructure/ui-i18n": "8.33.
|
|
41
|
-
"@instructure/ui-motion": "8.33.
|
|
42
|
-
"@instructure/ui-prop-types": "8.33.
|
|
43
|
-
"@instructure/ui-react-utils": "8.33.
|
|
44
|
-
"@instructure/ui-testable": "8.33.
|
|
45
|
-
"@instructure/ui-utils": "8.33.
|
|
46
|
-
"@instructure/ui-view": "8.33.
|
|
47
|
-
"@instructure/uid": "8.33.
|
|
34
|
+
"@instructure/console": "8.33.2",
|
|
35
|
+
"@instructure/debounce": "8.33.2",
|
|
36
|
+
"@instructure/emotion": "8.33.2",
|
|
37
|
+
"@instructure/shared-types": "8.33.2",
|
|
38
|
+
"@instructure/ui-dom-utils": "8.33.2",
|
|
39
|
+
"@instructure/ui-focusable": "8.33.2",
|
|
40
|
+
"@instructure/ui-i18n": "8.33.2",
|
|
41
|
+
"@instructure/ui-motion": "8.33.2",
|
|
42
|
+
"@instructure/ui-prop-types": "8.33.2",
|
|
43
|
+
"@instructure/ui-react-utils": "8.33.2",
|
|
44
|
+
"@instructure/ui-testable": "8.33.2",
|
|
45
|
+
"@instructure/ui-utils": "8.33.2",
|
|
46
|
+
"@instructure/ui-view": "8.33.2",
|
|
47
|
+
"@instructure/uid": "8.33.2",
|
|
48
48
|
"keycode": "^2",
|
|
49
49
|
"prop-types": "^15"
|
|
50
50
|
},
|