@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/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']),
@@ -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
- tabOverflow = props.tabOverflow,
45
- fixHeight = props.fixHeight; // fixHeight can be 0, so simply `fixheight` could return falsy value
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
- colors = theme.colors,
40
- stacking = theme.stacking;
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
- return { ...componentVariables
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
@@ -9,5 +9,4 @@ Object.defineProperty(exports, "Tabs", {
9
9
  return _Tabs.Tabs;
10
10
  }
11
11
  });
12
-
13
12
  var _Tabs = require("./Tabs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tabs",
3
- "version": "8.33.1",
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.1",
27
- "@instructure/ui-color-utils": "8.33.1",
28
- "@instructure/ui-test-locator": "8.33.1",
29
- "@instructure/ui-test-utils": "8.33.1",
30
- "@instructure/ui-themes": "8.33.1"
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.1",
35
- "@instructure/debounce": "8.33.1",
36
- "@instructure/emotion": "8.33.1",
37
- "@instructure/shared-types": "8.33.1",
38
- "@instructure/ui-dom-utils": "8.33.1",
39
- "@instructure/ui-focusable": "8.33.1",
40
- "@instructure/ui-i18n": "8.33.1",
41
- "@instructure/ui-motion": "8.33.1",
42
- "@instructure/ui-prop-types": "8.33.1",
43
- "@instructure/ui-react-utils": "8.33.1",
44
- "@instructure/ui-testable": "8.33.1",
45
- "@instructure/ui-utils": "8.33.1",
46
- "@instructure/ui-view": "8.33.1",
47
- "@instructure/uid": "8.33.1",
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
  },