@elliemae/ds-tabs 2.0.0-rc.7 → 2.0.0-rc.8

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": "@elliemae/ds-tabs",
3
- "version": "2.0.0-rc.7",
3
+ "version": "2.0.0-rc.8",
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-rc.7",
76
- "@elliemae/ds-classnames": "2.0.0-rc.7",
77
- "@elliemae/ds-form": "2.0.0-rc.7",
78
- "@elliemae/ds-icons": "2.0.0-rc.7",
75
+ "@elliemae/ds-button": "2.0.0-rc.8",
76
+ "@elliemae/ds-classnames": "2.0.0-rc.8",
77
+ "@elliemae/ds-form": "2.0.0-rc.8",
78
+ "@elliemae/ds-icons": "2.0.0-rc.8",
79
79
  "memoize-one": "~5.1.1",
80
80
  "prop-types": "~15.7.2",
81
81
  "react-desc": "~4.1.3",
package/types/DSTab.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSTab: {
3
4
  ({ tabId, title, required }: {
@@ -8,15 +9,43 @@ declare const DSTab: {
8
9
  displayName: string;
9
10
  propTypes: {
10
11
  /** unique id for tab */
11
- tabId: any;
12
+ tabId: {
13
+ defaultValue<T = unknown>(arg: T): {
14
+ deprecated: import("react-desc").PropTypesDescValidator;
15
+ };
16
+ isRequired: import("react-desc").PropTypesDescValidator;
17
+ };
12
18
  /** tab title */
13
- title: any;
19
+ title: {
20
+ defaultValue<T = unknown>(arg: T): {
21
+ deprecated: import("react-desc").PropTypesDescValidator;
22
+ };
23
+ isRequired: import("react-desc").PropTypesDescValidator;
24
+ };
14
25
  /** Show a required mark next to the title */
15
- required: any;
26
+ required: {
27
+ defaultValue<T = unknown>(arg: T): {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ isRequired: import("react-desc").PropTypesDescValidator;
31
+ };
16
32
  /** Whether or not it's a ds-tab from DSMobile tabs */
17
- isDSMobile: any;
33
+ isDSMobile: {
34
+ defaultValue<T = unknown>(arg: T): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValidator;
38
+ };
18
39
  };
19
40
  };
20
- declare const DSTabWithSchema: any;
41
+ declare const DSTabWithSchema: {
42
+ (props?: {
43
+ tabId?: string | undefined;
44
+ title?: string | undefined;
45
+ required?: boolean | undefined;
46
+ } | undefined): JSX.Element;
47
+ propTypes: unknown;
48
+ toTypescript: () => import("react-desc").TypescriptSchema;
49
+ };
21
50
  export { DSTab, DSTabWithSchema };
22
51
  export default DSTab;
package/types/DSTabs.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSTabs: {
3
4
  ({ containerProps, innerRef, animated, enableMouseEvents, allowTextSelection, onTabChange, tabsListAriaLabel, type, tabBarExtraContent, children: tabs, onlyRenderActiveTab, activeTab, withCarousel, firstSubtabRef, lastTabRef, flexibleTabsHeaders, fixedTabsHeaders, isDSMobile, }: {
@@ -22,43 +23,151 @@ declare const DSTabs: {
22
23
  }): JSX.Element;
23
24
  propTypes: {
24
25
  /** Whether the tab transition should animate or not */
25
- animated: any;
26
+ animated: {
27
+ defaultValue<T = unknown>(arg: T): {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ isRequired: import("react-desc").PropTypesDescValidator;
31
+ };
26
32
  /** Enables tab transition with mouse drag events */
27
- enableMouseEvents: any;
33
+ enableMouseEvents: {
34
+ defaultValue<T = unknown>(arg: T): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValidator;
38
+ };
28
39
  /** Allow text selection when mouse drag events are active */
29
- allowTextSelection: any;
40
+ allowTextSelection: {
41
+ defaultValue<T = unknown>(arg: T): {
42
+ deprecated: import("react-desc").PropTypesDescValidator;
43
+ };
44
+ isRequired: import("react-desc").PropTypesDescValidator;
45
+ };
30
46
  /** Handler when a user clicks on a different tab */
31
- onTabChange: any;
47
+ onTabChange: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
32
53
  /** Tab type */
33
- type: any;
54
+ type: {
55
+ defaultValue<T = unknown>(arg: T): {
56
+ deprecated: import("react-desc").PropTypesDescValidator;
57
+ };
58
+ isRequired: import("react-desc").PropTypesDescValidator;
59
+ };
34
60
  /** Extra content next to the tabs pills */
35
- tabBarExtraContent: any;
61
+ tabBarExtraContent: {
62
+ defaultValue<T = unknown>(arg: T): {
63
+ deprecated: import("react-desc").PropTypesDescValidator;
64
+ };
65
+ isRequired: import("react-desc").PropTypesDescValidator;
66
+ };
36
67
  /** Only renders the active tab in the DOM */
37
- onlyRenderActiveTab: any;
68
+ onlyRenderActiveTab: {
69
+ defaultValue<T = unknown>(arg: T): {
70
+ deprecated: import("react-desc").PropTypesDescValidator;
71
+ };
72
+ isRequired: import("react-desc").PropTypesDescValidator;
73
+ };
38
74
  /** Mobile only flexible tabs mode */
39
- flexibleTabsHeaders: any;
75
+ flexibleTabsHeaders: {
76
+ defaultValue<T = unknown>(arg: T): {
77
+ deprecated: import("react-desc").PropTypesDescValidator;
78
+ };
79
+ isRequired: import("react-desc").PropTypesDescValidator;
80
+ };
40
81
  /** Mobile only fixed tabs mode */
41
- fixedTabsHeaders: any;
82
+ fixedTabsHeaders: {
83
+ defaultValue<T = unknown>(arg: T): {
84
+ deprecated: import("react-desc").PropTypesDescValidator;
85
+ };
86
+ isRequired: import("react-desc").PropTypesDescValidator;
87
+ };
42
88
  /** Whether or not it's a ds-tab from DSMobile tabs */
43
- isDSMobile: any;
89
+ isDSMobile: {
90
+ defaultValue<T = unknown>(arg: T): {
91
+ deprecated: import("react-desc").PropTypesDescValidator;
92
+ };
93
+ isRequired: import("react-desc").PropTypesDescValidator;
94
+ };
44
95
  /** Activate carousel behavior */
45
- withCarousel: any;
96
+ withCarousel: {
97
+ defaultValue<T = unknown>(arg: T): {
98
+ deprecated: import("react-desc").PropTypesDescValidator;
99
+ };
100
+ isRequired: import("react-desc").PropTypesDescValidator;
101
+ };
46
102
  /** The active tabId */
47
- activeTab: any;
103
+ activeTab: {
104
+ defaultValue<T = unknown>(arg: T): {
105
+ deprecated: import("react-desc").PropTypesDescValidator;
106
+ };
107
+ isRequired: import("react-desc").PropTypesDescValidator;
108
+ };
48
109
  /** tabs children */
49
110
  children: any;
50
111
  /** Aria label for the list */
51
- tabsListAriaLabel: any;
112
+ tabsListAriaLabel: {
113
+ defaultValue<T = unknown>(arg: T): {
114
+ deprecated: import("react-desc").PropTypesDescValidator;
115
+ };
116
+ isRequired: import("react-desc").PropTypesDescValidator;
117
+ };
52
118
  /** Additional properties for the container */
53
- containerProps: any;
119
+ containerProps: {
120
+ defaultValue<T = unknown>(arg: T): {
121
+ deprecated: import("react-desc").PropTypesDescValidator;
122
+ };
123
+ isRequired: import("react-desc").PropTypesDescValidator;
124
+ };
54
125
  /** REF */
55
- innerRef: any;
126
+ innerRef: {
127
+ defaultValue<T = unknown>(arg: T): {
128
+ deprecated: import("react-desc").PropTypesDescValidator;
129
+ };
130
+ isRequired: import("react-desc").PropTypesDescValidator;
131
+ };
56
132
  /** internal ref to handle keyboard a11y behavior */
57
- firstSubtabRef: any;
133
+ firstSubtabRef: {
134
+ defaultValue<T = unknown>(arg: T): {
135
+ deprecated: import("react-desc").PropTypesDescValidator;
136
+ };
137
+ isRequired: import("react-desc").PropTypesDescValidator;
138
+ };
58
139
  /** internal ref to handle keyboard a11y behavior */
59
- lastTabRef: any;
140
+ lastTabRef: {
141
+ defaultValue<T = unknown>(arg: T): {
142
+ deprecated: import("react-desc").PropTypesDescValidator;
143
+ };
144
+ isRequired: import("react-desc").PropTypesDescValidator;
145
+ };
60
146
  };
61
147
  };
62
- declare const DSTabsWithSchema: any;
148
+ declare const DSTabsWithSchema: {
149
+ (props?: {
150
+ containerProps?: {} | undefined;
151
+ innerRef: any;
152
+ animated?: boolean | undefined;
153
+ enableMouseEvents?: boolean | undefined;
154
+ allowTextSelection?: boolean | undefined;
155
+ onTabChange?: (() => null) | undefined;
156
+ tabsListAriaLabel?: string | undefined;
157
+ type?: string | undefined;
158
+ tabBarExtraContent?: undefined;
159
+ children: any;
160
+ onlyRenderActiveTab?: boolean | undefined;
161
+ activeTab: any;
162
+ withCarousel?: boolean | undefined;
163
+ firstSubtabRef: any;
164
+ lastTabRef: any;
165
+ flexibleTabsHeaders: any;
166
+ fixedTabsHeaders: any;
167
+ isDSMobile?: boolean | undefined;
168
+ } | undefined): JSX.Element;
169
+ propTypes: unknown;
170
+ toTypescript: () => import("react-desc").TypescriptSchema; /** Handler when a user clicks on a different tab */
171
+ };
63
172
  export { DSTabs, DSTabsWithSchema };
64
173
  export default DSTabs;