@elliemae/ds-tabs 2.4.9 → 2.4.12

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/propTypes.js CHANGED
@@ -8,7 +8,7 @@ var constants = require('./utils/constants.js');
8
8
  const noop = () => {};
9
9
 
10
10
  const tabPropTypes = {
11
- tabId: reactDesc.PropTypes.string.description('Unique Tab id.').defaultValue(''),
11
+ tabId: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Unique Tab id.').defaultValue(''),
12
12
  title: reactDesc.PropTypes.string.description('Tab title.').defaultValue(''),
13
13
  required: reactDesc.PropTypes.bool.description('Show a required mark next to the title.').defaultValue(false),
14
14
  disabled: reactDesc.PropTypes.bool.description('Disables Tab.').defaultValue(false)
package/esm/propTypes.js CHANGED
@@ -4,7 +4,7 @@ import { TabTypesValuesAsArray, TabTypes } from './utils/constants.js';
4
4
  const noop = () => {};
5
5
 
6
6
  const tabPropTypes = {
7
- tabId: PropTypes.string.description('Unique Tab id.').defaultValue(''),
7
+ tabId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Unique Tab id.').defaultValue(''),
8
8
  title: PropTypes.string.description('Tab title.').defaultValue(''),
9
9
  required: PropTypes.bool.description('Show a required mark next to the title.').defaultValue(false),
10
10
  disabled: PropTypes.bool.description('Disables Tab.').defaultValue(false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-tabs",
3
- "version": "2.4.9",
3
+ "version": "2.4.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tabs",
6
6
  "module": "./esm/index.js",
@@ -124,11 +124,11 @@
124
124
  "build": "node ../../scripts/build/build.js"
125
125
  },
126
126
  "dependencies": {
127
- "@elliemae/ds-button": "2.4.9",
128
- "@elliemae/ds-icon": "2.4.9",
129
- "@elliemae/ds-icons": "2.4.9",
130
- "@elliemae/ds-props-helpers": "2.4.9",
131
- "@elliemae/ds-system": "2.4.9",
127
+ "@elliemae/ds-button": "2.4.12",
128
+ "@elliemae/ds-icon": "2.4.12",
129
+ "@elliemae/ds-icons": "2.4.12",
130
+ "@elliemae/ds-props-helpers": "2.4.12",
131
+ "@elliemae/ds-system": "2.4.12",
132
132
  "@react-hook/resize-observer": "~1.2.5",
133
133
  "prop-types": "~15.7.2",
134
134
  "react-desc": "~4.1.3",
@@ -8,12 +8,12 @@ export declare namespace DSTabT {
8
8
  required?: boolean;
9
9
  disabled?: boolean;
10
10
  ref?: React.MutableRefObject<HTMLButtonElement>;
11
- onClick?: (tabId: string, e: React.MouseEvent) => null | void;
11
+ onClick?: (tabId: string | number, e: React.MouseEvent) => null | void;
12
12
  onKeyDown?: (e: React.KeyboardEvent) => null | void;
13
13
  }
14
14
  interface PropsRequired {
15
15
  children: React.ReactNode;
16
- tabId: string;
16
+ tabId: string | number;
17
17
  }
18
18
  interface Props extends PropsOptional, PropsRequired {
19
19
  }
@@ -24,7 +24,7 @@ export declare namespace DSTabsT {
24
24
  animated: boolean;
25
25
  enableMouseEvents: boolean;
26
26
  allowTextSelection: boolean;
27
- onTabChange: (tabId: string, e?: React.MouseEvent) => void;
27
+ onTabChange: (tabId: string | number, e?: React.MouseEvent) => void;
28
28
  tabsListAriaLabel: string;
29
29
  type: DSTabsInternalsT.TabTypesT;
30
30
  children: React.ReactElement<DSTabT.Props>[];