1 | "use strict";
|
2 |
|
3 | function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports.isFixed = exports.isIntrinsic = exports.isRTL = exports.isVertical = exports.isHorizontal = exports.getTabPanelId = exports.getTabId = void 0;
|
9 |
|
10 | var React = _interopRequireWildcard(require("react"));
|
11 |
|
12 | var _constants = require("./constants.js");
|
13 |
|
14 | function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
15 |
|
16 | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | var getTabId = function getTabId(uid, key) {
|
25 | return "tabs-".concat(uid, "-tab-").concat(key);
|
26 | };
|
27 |
|
28 | exports.getTabId = getTabId;
|
29 |
|
30 | var getTabPanelId = function getTabPanelId(uid, key) {
|
31 | return "tabs-".concat(uid, "-tabpanel-").concat(key);
|
32 | };
|
33 |
|
34 | exports.getTabPanelId = getTabPanelId;
|
35 |
|
36 | var isHorizontal = function isHorizontal(orientation) {
|
37 | return orientation === _constants.ORIENTATION.horizontal;
|
38 | };
|
39 |
|
40 | exports.isHorizontal = isHorizontal;
|
41 |
|
42 | var isVertical = function isVertical(orientation) {
|
43 | return orientation === _constants.ORIENTATION.vertical;
|
44 | };
|
45 |
|
46 | exports.isVertical = isVertical;
|
47 |
|
48 | var isRTL = function isRTL(direction) {
|
49 | return direction === 'rtl';
|
50 | };
|
51 |
|
52 | exports.isRTL = isRTL;
|
53 |
|
54 | var isIntrinsic = function isIntrinsic(fill) {
|
55 | return fill === _constants.FILL.intrinsic;
|
56 | };
|
57 |
|
58 | exports.isIntrinsic = isIntrinsic;
|
59 |
|
60 | var isFixed = function isFixed(fill) {
|
61 | return fill === _constants.FILL.fixed;
|
62 | };
|
63 |
|
64 | exports.isFixed = isFixed; |
\ | No newline at end of file |