@elliemae/ds-tabs 2.0.0-alpha.9 → 2.0.0-next.4

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/cjs/Carousel.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
+ require('core-js/modules/web.dom-collections.iterator.js');
4
5
  var React = require('react');
5
6
  var ChevronRight = require('@elliemae/ds-icons/ChevronRight');
6
7
  var ChevronLeft = require('@elliemae/ds-icons/ChevronLeft');
package/cjs/DSTab.js CHANGED
@@ -15,7 +15,7 @@ const DSTab = ({
15
15
  title = '',
16
16
  required = false
17
17
  }) => /*#__PURE__*/_jsx__default["default"]("div", {
18
- "aria-labelledby": `${tabId}-label`,
18
+ "aria-labelledby": "".concat(tabId, "-label"),
19
19
  tabId: tabId,
20
20
  title: title,
21
21
  required: required
package/cjs/TabBar.js CHANGED
@@ -198,7 +198,7 @@ class TabBar extends React.Component {
198
198
  disabled
199
199
  },
200
200
  "data-tab-id": tabId,
201
- id: `${tabId}-label`,
201
+ id: "".concat(tabId, "-label"),
202
202
  onClick: e => {
203
203
  if (!disabled) this.handleTabClick(tabId, e, index);
204
204
  },
@@ -295,7 +295,7 @@ class TabBar extends React.Component {
295
295
 
296
296
  getActiveTabElement(activeTab) {
297
297
  const tabListEl = this.tabListRef.current;
298
- const tabSelector = `[data-tab-id="${activeTab}"]`;
298
+ const tabSelector = "[data-tab-id=\"".concat(activeTab, "\"]");
299
299
  return tabListEl && tabListEl.querySelector(tabSelector);
300
300
  }
301
301
 
@@ -335,12 +335,12 @@ class TabBar extends React.Component {
335
335
  left
336
336
  } = activeTabEl.getBoundingClientRect();
337
337
  const leftOff = withCarousel ? Math.max(0, left - tabListEl.getBoundingClientRect().left) : offsetLeft;
338
- const width = withCarousel ? this.getVisibleDimensions(activeTabEl, tabListEl).width : clientWidth + 2;
338
+ const width = withCarousel ? this.getVisibleDimensions(activeTabEl, tabListEl).width + 2 : clientWidth + 2;
339
339
  return {
340
340
  height: clientHeight,
341
- left: `${Math.floor(leftOff)}px`,
341
+ left: "".concat(Math.floor(leftOff), "px"),
342
342
  // using left and top for ie compatibility
343
- top: `${Math.floor(offsetTop)}px`,
343
+ top: "".concat(Math.floor(offsetTop), "px"),
344
344
  width
345
345
  };
346
346
  }
package/cjs/TabsImpl.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _jsx = require('@babel/runtime/helpers/jsx');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var dsClassnames = require('@elliemae/ds-classnames');
7
8
  var TabsPanels = require('./TabsPanels.js');
package/cjs/TabsPanels.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var memoizeOne = require('memoize-one');
7
8
  var dsClassnames = require('@elliemae/ds-classnames');
@@ -42,7 +43,7 @@ class TabsPanels extends React.Component {
42
43
  const isActive = activeTab === panelId;
43
44
  const shouldRender = !onlyRenderActiveTab || isActive;
44
45
  return /*#__PURE__*/_jsx__default["default"](PanelContainer, {
45
- "aria-labelledby": `${panelId}-label`,
46
+ "aria-labelledby": "".concat(panelId, "-label"),
46
47
  lastTabRef: this.props.lastTabRef,
47
48
  firstSubtabRef: this.props.firstTabRefByParent,
48
49
  classProps: {
package/esm/Carousel.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { useRef, useState, useEffect } from 'react';
3
4
  import ChevronRight from '@elliemae/ds-icons/ChevronRight';
4
5
  import ChevronLeft from '@elliemae/ds-icons/ChevronLeft';
package/esm/DSTab.js CHANGED
@@ -7,7 +7,7 @@ const DSTab = ({
7
7
  title = '',
8
8
  required = false
9
9
  }) => /*#__PURE__*/_jsx("div", {
10
- "aria-labelledby": `${tabId}-label`,
10
+ "aria-labelledby": "".concat(tabId, "-label"),
11
11
  tabId: tabId,
12
12
  title: title,
13
13
  required: required
package/esm/TabBar.js CHANGED
@@ -187,7 +187,7 @@ class TabBar extends Component {
187
187
  disabled
188
188
  },
189
189
  "data-tab-id": tabId,
190
- id: `${tabId}-label`,
190
+ id: "".concat(tabId, "-label"),
191
191
  onClick: e => {
192
192
  if (!disabled) this.handleTabClick(tabId, e, index);
193
193
  },
@@ -284,7 +284,7 @@ class TabBar extends Component {
284
284
 
285
285
  getActiveTabElement(activeTab) {
286
286
  const tabListEl = this.tabListRef.current;
287
- const tabSelector = `[data-tab-id="${activeTab}"]`;
287
+ const tabSelector = "[data-tab-id=\"".concat(activeTab, "\"]");
288
288
  return tabListEl && tabListEl.querySelector(tabSelector);
289
289
  }
290
290
 
@@ -324,12 +324,12 @@ class TabBar extends Component {
324
324
  left
325
325
  } = activeTabEl.getBoundingClientRect();
326
326
  const leftOff = withCarousel ? Math.max(0, left - tabListEl.getBoundingClientRect().left) : offsetLeft;
327
- const width = withCarousel ? this.getVisibleDimensions(activeTabEl, tabListEl).width : clientWidth + 2;
327
+ const width = withCarousel ? this.getVisibleDimensions(activeTabEl, tabListEl).width + 2 : clientWidth + 2;
328
328
  return {
329
329
  height: clientHeight,
330
- left: `${Math.floor(leftOff)}px`,
330
+ left: "".concat(Math.floor(leftOff), "px"),
331
331
  // using left and top for ie compatibility
332
- top: `${Math.floor(offsetTop)}px`,
332
+ top: "".concat(Math.floor(offsetTop), "px"),
333
333
  width
334
334
  };
335
335
  }
package/esm/TabsImpl.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
4
5
  import { aggregatedClasses } from '@elliemae/ds-classnames';
5
6
  import TabsPanels from './TabsPanels.js';
package/esm/TabsPanels.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import React, { Component } from 'react';
4
5
  import memoizeOne from 'memoize-one';
5
6
  import { aggregatedClasses } from '@elliemae/ds-classnames';
@@ -32,7 +33,7 @@ class TabsPanels extends Component {
32
33
  const isActive = activeTab === panelId;
33
34
  const shouldRender = !onlyRenderActiveTab || isActive;
34
35
  return /*#__PURE__*/_jsx(PanelContainer, {
35
- "aria-labelledby": `${panelId}-label`,
36
+ "aria-labelledby": "".concat(panelId, "-label"),
36
37
  lastTabRef: this.props.lastTabRef,
37
38
  firstSubtabRef: this.props.firstTabRefByParent,
38
39
  classProps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-tabs",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.0.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tabs",
6
6
  "module": "./esm/index.js",
@@ -72,10 +72,10 @@
72
72
  "build": "node ../../scripts/build/build.js"
73
73
  },
74
74
  "dependencies": {
75
- "@elliemae/ds-button": "2.0.0-alpha.9",
76
- "@elliemae/ds-classnames": "2.0.0-alpha.9",
77
- "@elliemae/ds-form": "2.0.0-alpha.9",
78
- "@elliemae/ds-icons": "2.0.0-alpha.9",
75
+ "@elliemae/ds-button": "2.0.0-next.4",
76
+ "@elliemae/ds-classnames": "2.0.0-next.4",
77
+ "@elliemae/ds-form": "2.0.0-next.4",
78
+ "@elliemae/ds-icons": "2.0.0-next.4",
79
79
  "memoize-one": "~5.1.1",
80
80
  "prop-types": "~15.7.2",
81
81
  "react-desc": "^4.1.3",
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }