wjec-one 3.10.18 → 3.10.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wjec-one",
3
- "version": "3.10.18",
3
+ "version": "3.10.21",
4
4
  "description": "",
5
5
  "main": "legacy/index.js",
6
6
  "module": "index.js",
@@ -1,5 +1,5 @@
1
- import { ContentExtractor, KeyExtractor } from '../../utils/ComponentUtils';
2
1
  import React from 'react';
2
+ import { ContentExtractor, KeyExtractor } from '../../utils/ComponentUtils';
3
3
  import { ColorProperty } from 'csstype';
4
4
  declare type Props<T> = {
5
5
  backgroundStyle?: 'filled' | 'transparent';
@@ -7,12 +7,16 @@ declare type Props<T> = {
7
7
  keyExtractor?: KeyExtractor<T>;
8
8
  labelExtractor?: ContentExtractor<T>;
9
9
  onSelect?: (tab: T) => void;
10
+ /**
11
+ * @deprecated The "scrollable" prop is now redundant, and the component
12
+ * will behave as though scrollable={true} in all cases
13
+ */
10
14
  scrollable?: boolean;
11
15
  selectedTab?: T;
12
16
  selectedTabColor?: ColorProperty;
13
17
  tabs: T[];
14
18
  };
15
- export declare const Tabs: <T extends {}>({ backgroundStyle, disabledTabs, id, keyExtractor, labelExtractor, onSelect, scrollable, selectedTab, selectedTabColor, tabs }: React.PropsWithChildren<Props<T> & {
19
+ export declare const Tabs: <T extends any>({ backgroundStyle, disabledTabs, id, keyExtractor, labelExtractor, onSelect, scrollable, selectedTab, selectedTabColor, tabs }: React.PropsWithChildren<Props<T> & {
16
20
  id?: string;
17
21
  }>) => JSX.Element;
18
22
  export {};