@nativescript-community/ui-material-tabs 6.0.0
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/CHANGELOG.md +1037 -0
- package/LICENSE +201 -0
- package/README.md +320 -0
- package/angular/bundles/nativescript-community-ui-material-tabs-angular.umd.js +71 -0
- package/angular/bundles/nativescript-community-ui-material-tabs-angular.umd.js.map +1 -0
- package/angular/bundles/nativescript-community-ui-material-tabs-angular.umd.min.js +2 -0
- package/angular/bundles/nativescript-community-ui-material-tabs-angular.umd.min.js.map +1 -0
- package/angular/esm2015/index.js +30 -0
- package/angular/esm2015/nativescript-community-ui-material-tabs-angular.js +2 -0
- package/angular/fesm2015/nativescript-community-ui-material-tabs-angular.js +33 -0
- package/angular/fesm2015/nativescript-community-ui-material-tabs-angular.js.map +1 -0
- package/angular/index.d.ts +10 -0
- package/angular/nativescript-community-ui-material-tabs-angular.d.ts +2 -0
- package/angular/package.json +16 -0
- package/package.json +51 -0
- package/platforms/ios/Podfile +2 -0
- package/pnpm-lock.yaml +90 -0
- package/react/index.d.ts +38 -0
- package/react/index.js +78 -0
- package/react/index.js.map +1 -0
- package/tabs-common.d.ts +18 -0
- package/tabs-common.js +35 -0
- package/tabs-common.js.map +1 -0
- package/tabs.android.d.ts +63 -0
- package/tabs.android.js +779 -0
- package/tabs.android.js.map +1 -0
- package/tabs.d.ts +89 -0
- package/tabs.ios.d.ts +103 -0
- package/tabs.ios.js +967 -0
- package/tabs.ios.js.map +1 -0
- package/vue/component.d.ts +12 -0
- package/vue/component.js +22 -0
- package/vue/component.js.map +1 -0
- package/vue/index.d.ts +4 -0
- package/vue/index.js +20 -0
- package/vue/index.js.map +1 -0
package/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
@@ -0,0 +1,320 @@
|
|
1
|
+
# NativeScript Material Tabs
|
2
|
+
|
3
|
+
Material Design's [Tabs](https://material.io/components/tabs) component for NativeScript.
|
4
|
+
|
5
|
+
[](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs)
|
6
|
+
[](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs)
|
7
|
+
|
8
|
+
## Contents
|
9
|
+
|
10
|
+
1. [Installation](#installation)
|
11
|
+
2. [Changelog](#changelog)
|
12
|
+
3. [FAQ](#faq)
|
13
|
+
4. [Usage](#usage)
|
14
|
+
- [Plain NativeScript](#plain-nativescript)
|
15
|
+
- [Angular](#nativescript--angular)
|
16
|
+
- [Vue](#nativescript--vue)
|
17
|
+
- [React](#nativescript--react)
|
18
|
+
5. [API](#api)
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
### :warning: Warning :warning:
|
23
|
+
From NativeScript 5.x using this component will break the [NativeScript tab component](https://docs.nativescript.org/ui/components/tabs) on iOS (which is bound to be removed). This is needed to allow using the latest native iOS features. If needed you can use either [bottomnavigationbar](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomnavigationbar) (this one is the best choice, closest to material design) or [material-tabs](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs) (clone of the NativeScript one, but with a little less features).
|
24
|
+
|
25
|
+
##
|
26
|
+
|
27
|
+
```
|
28
|
+
ns plugin add @nativescript-community/ui-material-tabs
|
29
|
+
```
|
30
|
+
|
31
|
+
Be sure to run a new build after adding plugins to avoid any issues.
|
32
|
+
|
33
|
+
## [Changelog](./CHANGELOG.md)
|
34
|
+
|
35
|
+
## [FAQ](../../README.md#faq)
|
36
|
+
|
37
|
+
## Usage
|
38
|
+
|
39
|
+
### Plain NativeScript
|
40
|
+
|
41
|
+
IMPORTANT: _Make sure you include `xmlns:mds="@nativescript-community/ui-material-tabs"` on the Page element._
|
42
|
+
|
43
|
+
#### XML
|
44
|
+
|
45
|
+
```XML
|
46
|
+
<Page xmlns:mdt="@nativescript-community/ui-material-tabs">
|
47
|
+
<mdt:MDTabs selectedIndex="1">
|
48
|
+
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
|
49
|
+
<mdt:MDTabStrip>
|
50
|
+
<mdt:MDTabStripItem>
|
51
|
+
<Label text="Home"></Label>
|
52
|
+
<Image src="font://" class="fas"></Image>
|
53
|
+
</MDTabStripItem>
|
54
|
+
<mdt:MDTabStripItem>Item class="special">
|
55
|
+
<Label text="Account"></Label>
|
56
|
+
<Image src="font://" class="fas"></Image>
|
57
|
+
</MDTabStripItem>
|
58
|
+
<mdt:MDTabStripItem>Item class="special">
|
59
|
+
<Label text="Search"></Label>
|
60
|
+
<Image src="font://" class="fas"></Image>
|
61
|
+
</MDTabStripItem>
|
62
|
+
</MDTabStrip>
|
63
|
+
|
64
|
+
<!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
|
65
|
+
<mdt:MDTabContentItem>
|
66
|
+
<GridLayout>
|
67
|
+
<Label text="Home Page" class="h2 text-center"></Label>
|
68
|
+
</GridLayout>
|
69
|
+
</MDTabContentItem>
|
70
|
+
<mdt:MDTabContentItem>
|
71
|
+
<GridLayout>
|
72
|
+
<Label text="Account Page" class="h2 text-center"></Label>
|
73
|
+
</GridLayout>
|
74
|
+
</MDTabContentItem>
|
75
|
+
<mdt:MDTabContentItem>
|
76
|
+
<GridLayout>
|
77
|
+
<Label text="Search Page" class="h2 text-center"></Label>
|
78
|
+
</GridLayout>
|
79
|
+
</MDTabContentItem>
|
80
|
+
</Tabs>
|
81
|
+
</Page>
|
82
|
+
```
|
83
|
+
|
84
|
+
#### CSS
|
85
|
+
|
86
|
+
```CSS
|
87
|
+
MDTabs.bottom-nav {
|
88
|
+
background-color: orangered;
|
89
|
+
color: gold;
|
90
|
+
font-size: 18;
|
91
|
+
}
|
92
|
+
|
93
|
+
MDTabStripItem.tabstripitem-active {
|
94
|
+
background-color: teal;
|
95
|
+
}
|
96
|
+
|
97
|
+
MDTabStripItem.tabstripitem-active:active {
|
98
|
+
background-color: yellowgreen;
|
99
|
+
}
|
100
|
+
|
101
|
+
MDTabContentItem.first-tabcontent {
|
102
|
+
background-color: seashell;
|
103
|
+
color: olive;
|
104
|
+
}
|
105
|
+
MDTabContentItem.second-tabcontent {
|
106
|
+
background-color: slategray;
|
107
|
+
color: aquamarine;
|
108
|
+
}
|
109
|
+
MDTabContentItem.third-tabcontent {
|
110
|
+
background-color: blueviolet;
|
111
|
+
color: antiquewhite;
|
112
|
+
}
|
113
|
+
MDTabs MDTabStrip {
|
114
|
+
highlight-color: red;
|
115
|
+
}
|
116
|
+
```
|
117
|
+
|
118
|
+
##
|
119
|
+
|
120
|
+
### NativeScript + Angular
|
121
|
+
|
122
|
+
```typescript
|
123
|
+
import { NativeScriptMaterialTabsModule } from "@nativescript-community/ui-material-tabs/angular";
|
124
|
+
|
125
|
+
@NgModule({
|
126
|
+
imports: [
|
127
|
+
NativeScriptMaterialTabsModule,
|
128
|
+
...
|
129
|
+
],
|
130
|
+
...
|
131
|
+
})
|
132
|
+
```
|
133
|
+
|
134
|
+
```html
|
135
|
+
<MDTabs selectedIndex="1">
|
136
|
+
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
|
137
|
+
<MDTabStrip>
|
138
|
+
<MDTabStripItem>
|
139
|
+
<Label text="Home"></Label>
|
140
|
+
<Image src="font://" class="fas"></Image>
|
141
|
+
</MDTabStripItem>
|
142
|
+
<MDTabStripItem class="special">
|
143
|
+
<Label text="Account"></Label>
|
144
|
+
<Image src="font://" class="fas"></Image>
|
145
|
+
</MDTabStripItem>
|
146
|
+
<MDTabStripItem class="special">
|
147
|
+
<Label text="Search"></Label>
|
148
|
+
<Image src="font://" class="fas"></Image>
|
149
|
+
</MDTabStripItem>
|
150
|
+
</MDTabStrip>
|
151
|
+
|
152
|
+
<!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
|
153
|
+
<MDTabContentItem>
|
154
|
+
<GridLayout>
|
155
|
+
<Label text="Home Page" class="h2 text-center"></Label>
|
156
|
+
</GridLayout>
|
157
|
+
</MDTabContentItem>
|
158
|
+
<MDTabContentItem>
|
159
|
+
<GridLayout>
|
160
|
+
<Label text="Account Page" class="h2 text-center"></Label>
|
161
|
+
</GridLayout>
|
162
|
+
</MDTabContentItem>
|
163
|
+
<MDTabContentItem>
|
164
|
+
<GridLayout>
|
165
|
+
<Label text="Search Page" class="h2 text-center"></Label>
|
166
|
+
</GridLayout>
|
167
|
+
</MDTabContentItem>
|
168
|
+
</MDTabs>
|
169
|
+
```
|
170
|
+
|
171
|
+
##
|
172
|
+
|
173
|
+
### NativeScript + Vue
|
174
|
+
|
175
|
+
```javascript
|
176
|
+
import TabsPlugin from '@nativescript-community/ui-material-tabs/vue';
|
177
|
+
|
178
|
+
Vue.use(TabsPlugin);
|
179
|
+
```
|
180
|
+
|
181
|
+
```html
|
182
|
+
<MDTabs selectedIndex="1">
|
183
|
+
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
|
184
|
+
<MDTabStrip>
|
185
|
+
<MDTabStripItem>
|
186
|
+
<Label text="Home"></Label>
|
187
|
+
<Image src="font://" class="fas"></Image>
|
188
|
+
</MDTabStripItem>
|
189
|
+
<MDTabStripItem class="special">
|
190
|
+
<Label text="Account"></Label>
|
191
|
+
<Image src="font://" class="fas"></Image>
|
192
|
+
</MDTabStripItem>
|
193
|
+
<MDTabStripItem class="special">
|
194
|
+
<Label text="Search"></Label>
|
195
|
+
<Image src="font://" class="fas"></Image>
|
196
|
+
</MDTabStripItem>
|
197
|
+
</MDTabStrip>
|
198
|
+
|
199
|
+
<!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
|
200
|
+
<MDTabContentItem>
|
201
|
+
<GridLayout>
|
202
|
+
<Label text="Home Page" class="h2 text-center"></Label>
|
203
|
+
</GridLayout>
|
204
|
+
</MDTabContentItem>
|
205
|
+
<MDTabContentItem>
|
206
|
+
<GridLayout>
|
207
|
+
<Label text="Account Page" class="h2 text-center"></Label>
|
208
|
+
</GridLayout>
|
209
|
+
</MDTabContentItem>
|
210
|
+
<MDTabContentItem>
|
211
|
+
<GridLayout>
|
212
|
+
<Label text="Search Page" class="h2 text-center"></Label>
|
213
|
+
</GridLayout>
|
214
|
+
</MDTabContentItem>
|
215
|
+
</MDTabs>
|
216
|
+
```
|
217
|
+
|
218
|
+
##
|
219
|
+
|
220
|
+
### NativeScript + React
|
221
|
+
|
222
|
+
First, register the component before any of your React NativeScript app renders. A good place to put this code is in your entrypoint file (which may be called `src/app.ts` or similar), before the `ReactNativeScript.start` function is called. Here's how to install it:
|
223
|
+
|
224
|
+
```ts
|
225
|
+
import { registerTabNavigationBase } from '@nativescript-community/ui-material-core/tab-navigation-base/react';
|
226
|
+
import { registerTabs } from '@nativescript-community/ui-material-tabs/react';
|
227
|
+
|
228
|
+
registerTabNavigationBase();
|
229
|
+
registerTabs();
|
230
|
+
```
|
231
|
+
|
232
|
+
Normally it would be best to use this component via the `tabNavigatorFactory()` API exported by [React NativeScript Navigation](https://github.com/shirakaba/react-nativescript-navigation/tree/master/react-nativescript-navigation), as it makes nested navigation easy, but here's how to use it directly:
|
233
|
+
|
234
|
+
```tsx
|
235
|
+
import * as React from 'react';
|
236
|
+
|
237
|
+
export function Tabs() {
|
238
|
+
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
239
|
+
|
240
|
+
return (
|
241
|
+
<tabs
|
242
|
+
selectedIndex={selectedIndex}
|
243
|
+
onSelectedIndexChanged={(args) => {
|
244
|
+
setSelectedIndex(args.newIndex);
|
245
|
+
}}
|
246
|
+
style={{ backgroundColor: 'orange' }}
|
247
|
+
>
|
248
|
+
{/* The bottomTab UI is created via tabStrip (the container) and tabStripItem (for each tab) */}
|
249
|
+
<tabStrip nodeRole="tabStrip" style={{ backgroundColor: 'red' }}>
|
250
|
+
<tabStripItem nodeRole="items">
|
251
|
+
<label nodeRole="label">Home</label>
|
252
|
+
<image nodeRole="image" src="font://" className="fas" />
|
253
|
+
</tabStripItem>
|
254
|
+
<tabStripItem nodeRole="items">
|
255
|
+
<label nodeRole="label">Account</label>
|
256
|
+
<image nodeRole="image" src="font://" className="fas" />
|
257
|
+
</tabStripItem>
|
258
|
+
<tabStripItem nodeRole="items">
|
259
|
+
<label nodeRole="label">Search</label>
|
260
|
+
<image nodeRole="image" src="font://" className="fas" />
|
261
|
+
</tabStripItem>
|
262
|
+
</tabStrip>
|
263
|
+
|
264
|
+
{/* The number of tabContentItem components should corespond to the number of TabStripItem components */}
|
265
|
+
<tabContentItem nodeRole="items">
|
266
|
+
<gridLayout style={{ backgroundColor: 'blue' }}>
|
267
|
+
<label style={{ color: 'white' }}>Home Page</label>
|
268
|
+
</gridLayout>
|
269
|
+
</tabContentItem>
|
270
|
+
<tabContentItem nodeRole="items">
|
271
|
+
<gridLayout style={{ backgroundColor: 'cyan' }}>
|
272
|
+
<label style={{ color: 'black' }}>Account Page</label>
|
273
|
+
</gridLayout>
|
274
|
+
</tabContentItem>
|
275
|
+
<tabContentItem nodeRole="items">
|
276
|
+
<gridLayout style={{ backgroundColor: 'magenta' }}>
|
277
|
+
<label style={{ color: 'black' }}>Search Page</label>
|
278
|
+
</gridLayout>
|
279
|
+
</tabContentItem>
|
280
|
+
</tabs>
|
281
|
+
);
|
282
|
+
}
|
283
|
+
```
|
284
|
+
|
285
|
+
**Troubleshooting**
|
286
|
+
|
287
|
+
If you see an error like this when writing e.g. `<tabs>` into your JSX:
|
288
|
+
|
289
|
+
> Property 'tabs' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
|
290
|
+
|
291
|
+
Make sure that you have:
|
292
|
+
|
293
|
+
1. Installed the `react-nativescript` npm module.
|
294
|
+
2. Installed the `@types/react` npm module, strictly with the exact version provided in the [React NativeScript starter template](https://github.com/NativeScript/nativescript-app-templates/tree/master/packages/template-blank-react).
|
295
|
+
3. Run the postinstall script that comes with the React NativeScript template – `npm run postinstall` – to patch `@types/react`.
|
296
|
+
4. Registered the component as described above (i.e. import and run the `registerTabNavigationBase()` and `registerTabs()` methods).
|
297
|
+
5. If using Visual Studio Code, option-click the import `@nativescript-community/ui-material-tabs/react` to jump to the file; opening the file will force it to load its provided typings.
|
298
|
+
|
299
|
+
## API
|
300
|
+
|
301
|
+
### Attributes
|
302
|
+
|
303
|
+
| Name | Type | Description |
|
304
|
+
| ------------- | :-------------: | -----: |
|
305
|
+
| items | Array<MDTabContentItem> | Gets or sets the items of the BottomNavigation. |
|
306
|
+
|selectedIndex | number | Gets or sets the selectedIndex of the BottomNavigation. |
|
307
|
+
|swipeEnabled | boolean | Gets or sets the swipe enabled state of the Tabs. |
|
308
|
+
|offscreenTabLimit | number | Gets or sets the number of offscreen preloaded tabs of the Tabs. |
|
309
|
+
|tabStrip | TabStrip | Gets or sets the tab strip of the BottomNavigation. |
|
310
|
+
|tabsPosition | "top", "bottom" | Gets or sets the position state of the Tabs. Default value: top |
|
311
|
+
|iOSTabBarItemsAlignment | "leading", "justified", "center", "centerSelected" | iOS Only: Gets or set the MDCTabBarAlignment of the tab bar icons in iOS. Default value: justified |
|
312
|
+
|
313
|
+
### Events
|
314
|
+
|
315
|
+
| Name | Description |
|
316
|
+
| ------------- | -------------: |
|
317
|
+
| selectedIndexChanged | Emitted when the selectedIndex property is changed. |
|
318
|
+
| loaded | Emitted when the view is loaded. |
|
319
|
+
| unloaded | Emitted when the view is unloaded. |
|
320
|
+
| layoutChanged | Emitted when the layout bounds of a view changes due to layout processing. |
|
@@ -0,0 +1,71 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@nativescript/angular'), require('@nativescript-community/ui-material-tabs')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@nativescript-community/ui-material-tabs-angular', ['exports', '@angular/core', '@nativescript/angular', '@nativescript-community/ui-material-tabs'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['nativescript-community'] = global['nativescript-community'] || {}, global['nativescript-community']['ui-material-tabs-angular'] = {}), global.ng.core, global['ns-angular'], global['ns-material-tabs']));
|
5
|
+
}(this, (function (exports, i0, angular, uiMaterialTabs) { 'use strict';
|
6
|
+
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () {
|
17
|
+
return e[k];
|
18
|
+
}
|
19
|
+
});
|
20
|
+
}
|
21
|
+
});
|
22
|
+
}
|
23
|
+
n['default'] = e;
|
24
|
+
return Object.freeze(n);
|
25
|
+
}
|
26
|
+
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
28
|
+
|
29
|
+
var MaterialTabsDirective = /** @class */ (function () {
|
30
|
+
function MaterialTabsDirective() {
|
31
|
+
}
|
32
|
+
return MaterialTabsDirective;
|
33
|
+
}());
|
34
|
+
MaterialTabsDirective.ɵfac = function MaterialTabsDirective_Factory(t) { return new (t || MaterialTabsDirective)(); };
|
35
|
+
MaterialTabsDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MaterialTabsDirective, selectors: [["MDTabs"]] });
|
36
|
+
(function () {
|
37
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MaterialTabsDirective, [{
|
38
|
+
type: i0.Directive,
|
39
|
+
args: [{ selector: 'MDTabs' }]
|
40
|
+
}], null, null);
|
41
|
+
})();
|
42
|
+
var NativeScriptMaterialTabsModule = /** @class */ (function () {
|
43
|
+
function NativeScriptMaterialTabsModule() {
|
44
|
+
}
|
45
|
+
return NativeScriptMaterialTabsModule;
|
46
|
+
}());
|
47
|
+
NativeScriptMaterialTabsModule.ɵfac = function NativeScriptMaterialTabsModule_Factory(t) { return new (t || NativeScriptMaterialTabsModule)(); };
|
48
|
+
NativeScriptMaterialTabsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: NativeScriptMaterialTabsModule });
|
49
|
+
NativeScriptMaterialTabsModule.ɵinj = i0__namespace.ɵɵdefineInjector({});
|
50
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(NativeScriptMaterialTabsModule, { declarations: [MaterialTabsDirective], exports: [MaterialTabsDirective] }); })();
|
51
|
+
(function () {
|
52
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NativeScriptMaterialTabsModule, [{
|
53
|
+
type: i0.NgModule,
|
54
|
+
args: [{
|
55
|
+
declarations: [MaterialTabsDirective],
|
56
|
+
exports: [MaterialTabsDirective]
|
57
|
+
}]
|
58
|
+
}], null, null);
|
59
|
+
})();
|
60
|
+
angular.registerElement('MDTabs', function () { return uiMaterialTabs.Tabs; });
|
61
|
+
angular.registerElement('MDTabStrip', function () { return uiMaterialTabs.TabStrip; });
|
62
|
+
angular.registerElement('MDTabStripItem', function () { return uiMaterialTabs.TabStripItem; });
|
63
|
+
angular.registerElement('MDTabContentItem', function () { return uiMaterialTabs.TabContentItem; });
|
64
|
+
|
65
|
+
exports.MaterialTabsDirective = MaterialTabsDirective;
|
66
|
+
exports.NativeScriptMaterialTabsModule = NativeScriptMaterialTabsModule;
|
67
|
+
|
68
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
69
|
+
|
70
|
+
})));
|
71
|
+
//# sourceMappingURL=nativescript-community-ui-material-tabs-angular.umd.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nativescript-community-ui-material-tabs-angular.umd.js","sources":["../../../../src/tabs/angular/index.ts"],"sourcesContent":["import { Directive, NgModule } from '@angular/core';\nimport { registerElement } from '@nativescript/angular';\nimport { TabContentItem, TabStrip, TabStripItem, Tabs } from '@nativescript-community/ui-material-tabs';\n\n@Directive({ selector: 'MDTabs' })\nexport class MaterialTabsDirective {}\n\n@NgModule({\n declarations: [MaterialTabsDirective],\n exports: [MaterialTabsDirective]\n})\nexport class NativeScriptMaterialTabsModule {}\n\nregisterElement('MDTabs', () => Tabs);\nregisterElement('MDTabStrip', () => TabStrip);\nregisterElement('MDTabStripItem', () => TabStripItem);\nregisterElement('MDTabContentItem', () => TabContentItem);\n"],"names":["Directive","NgModule","registerElement","Tabs","TabStrip","TabStripItem","TabContentItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAKA;;;;8FAAa,qBAAqB;yEAArB,qBAAqB;;2FAArB,qBAAqB;sBADjCA,YAAS;uBAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE;;;;QAOjC;;;;gHAAa,8BAA8B;iFAA9B,8BAA8B;;uGAA9B,8BAA8B,mBAN9B,qBAAqB,aAArB,qBAAqB;;2FAMrB,8BAA8B;sBAJ1CC,WAAQ;uBAAC;wBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;wBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;qBACnC;;;AAGDC,2BAAe,CAAC,QAAQ,EAAE,cAAM,OAAAC,mBAAI,GAAA,CAAC,CAAC;AACtCD,2BAAe,CAAC,YAAY,EAAE,cAAM,OAAAE,uBAAQ,GAAA,CAAC,CAAC;AAC9CF,2BAAe,CAAC,gBAAgB,EAAE,cAAM,OAAAG,2BAAY,GAAA,CAAC,CAAC;AACtDH,2BAAe,CAAC,kBAAkB,EAAE,cAAM,OAAAI,6BAAc,GAAA,CAAC;;;;;;;;;;;"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@nativescript/angular"),require("@nativescript-community/ui-material-tabs")):"function"==typeof define&&define.amd?define("@nativescript-community/ui-material-tabs-angular",["exports","@angular/core","@nativescript/angular","@nativescript-community/ui-material-tabs"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["nativescript-community"]=e["nativescript-community"]||{},e["nativescript-community"]["ui-material-tabs-angular"]={}),e.ng.core,e["ns-angular"],e["ns-material-tabs"])}(this,(function(e,t,n,r){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t),o=function(){};o.ɵfac=function(e){return new(e||o)},o.ɵdir=a.ɵɵdefineDirective({type:o,selectors:[["MDTabs"]]}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(o,[{type:t.Directive,args:[{selector:"MDTabs"}]}],null,null);var u=function(){};u.ɵfac=function(e){return new(e||u)},u.ɵmod=a.ɵɵdefineNgModule({type:u}),u.ɵinj=a.ɵɵdefineInjector({}),("undefined"==typeof ngJitMode||ngJitMode)&&a.ɵɵsetNgModuleScope(u,{declarations:[o],exports:[o]}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(u,[{type:t.NgModule,args:[{declarations:[o],exports:[o]}]}],null,null),n.registerElement("MDTabs",(function(){return r.Tabs})),n.registerElement("MDTabStrip",(function(){return r.TabStrip})),n.registerElement("MDTabStripItem",(function(){return r.TabStripItem})),n.registerElement("MDTabContentItem",(function(){return r.TabContentItem})),e.MaterialTabsDirective=o,e.NativeScriptMaterialTabsModule=u,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
|
+
//# sourceMappingURL=nativescript-community-ui-material-tabs-angular.umd.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/tabs/angular/index.ts"],"names":["MaterialTabsDirective","selectors","Directive","selector","NativeScriptMaterialTabsModule","declarations","exports","NgModule","registerElement","Tabs","TabStrip","TabStripItem","TabContentItem"],"mappings":"i7BAKA,8CAAaA,qCAAAA,EAAqBC,UAAA,CAAA,CAAA,6EAArBD,EAAqB,CAAA,MADjCE,EAAAA,gBAAU,CAAEC,SAAU,8BAOvB,8CAAaC,oCAAAA,mGAAAA,EAA8B,CAAAC,aAAA,CAN9BL,GAAqBM,QAAA,CAArBN,qEAMAI,EAA8B,CAAA,MAJ1CG,EAAAA,eAAS,CACNF,aAAc,CAACL,GACfM,QAAS,CAACN,kBAIdQ,EAAAA,gBAAgB,UAAU,WAAM,OAAAC,EAAAA,QAChCD,EAAAA,gBAAgB,cAAc,WAAM,OAAAE,EAAAA,YACpCF,EAAAA,gBAAgB,kBAAkB,WAAM,OAAAG,EAAAA,gBACxCH,EAAAA,gBAAgB,oBAAoB,WAAM,OAAAI,EAAAA","sourcesContent":["import { Directive, NgModule } from '@angular/core';\nimport { registerElement } from '@nativescript/angular';\nimport { TabContentItem, TabStrip, TabStripItem, Tabs } from '@nativescript-community/ui-material-tabs';\n\n@Directive({ selector: 'MDTabs' })\nexport class MaterialTabsDirective {}\n\n@NgModule({\n declarations: [MaterialTabsDirective],\n exports: [MaterialTabsDirective]\n})\nexport class NativeScriptMaterialTabsModule {}\n\nregisterElement('MDTabs', () => Tabs);\nregisterElement('MDTabStrip', () => TabStrip);\nregisterElement('MDTabStripItem', () => TabStripItem);\nregisterElement('MDTabContentItem', () => TabContentItem);\n"]}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Directive, NgModule } from '@angular/core';
|
2
|
+
import { registerElement } from '@nativescript/angular';
|
3
|
+
import { TabContentItem, TabStrip, TabStripItem, Tabs } from '@nativescript-community/ui-material-tabs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class MaterialTabsDirective {
|
6
|
+
}
|
7
|
+
MaterialTabsDirective.ɵfac = function MaterialTabsDirective_Factory(t) { return new (t || MaterialTabsDirective)(); };
|
8
|
+
MaterialTabsDirective.ɵdir = i0.ɵɵdefineDirective({ type: MaterialTabsDirective, selectors: [["MDTabs"]] });
|
9
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MaterialTabsDirective, [{
|
10
|
+
type: Directive,
|
11
|
+
args: [{ selector: 'MDTabs' }]
|
12
|
+
}], null, null); })();
|
13
|
+
export class NativeScriptMaterialTabsModule {
|
14
|
+
}
|
15
|
+
NativeScriptMaterialTabsModule.ɵfac = function NativeScriptMaterialTabsModule_Factory(t) { return new (t || NativeScriptMaterialTabsModule)(); };
|
16
|
+
NativeScriptMaterialTabsModule.ɵmod = i0.ɵɵdefineNgModule({ type: NativeScriptMaterialTabsModule });
|
17
|
+
NativeScriptMaterialTabsModule.ɵinj = i0.ɵɵdefineInjector({});
|
18
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NativeScriptMaterialTabsModule, { declarations: [MaterialTabsDirective], exports: [MaterialTabsDirective] }); })();
|
19
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NativeScriptMaterialTabsModule, [{
|
20
|
+
type: NgModule,
|
21
|
+
args: [{
|
22
|
+
declarations: [MaterialTabsDirective],
|
23
|
+
exports: [MaterialTabsDirective]
|
24
|
+
}]
|
25
|
+
}], null, null); })();
|
26
|
+
registerElement('MDTabs', () => Tabs);
|
27
|
+
registerElement('MDTabStrip', () => TabStrip);
|
28
|
+
registerElement('MDTabStripItem', () => TabStripItem);
|
29
|
+
registerElement('MDTabContentItem', () => TabContentItem);
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdGFicy9hbmd1bGFyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxZQUFZLEVBQUUsSUFBSSxFQUFFLE1BQU0sMENBQTBDLENBQUM7O0FBR3hHLE1BQU0sT0FBTyxxQkFBcUI7OzBGQUFyQixxQkFBcUI7MERBQXJCLHFCQUFxQjt1RkFBckIscUJBQXFCO2NBRGpDLFNBQVM7ZUFBQyxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUU7O0FBT2pDLE1BQU0sT0FBTyw4QkFBOEI7OzRHQUE5Qiw4QkFBOEI7a0VBQTlCLDhCQUE4Qjs7d0ZBQTlCLDhCQUE4QixtQkFOOUIscUJBQXFCLGFBQXJCLHFCQUFxQjt1RkFNckIsOEJBQThCO2NBSjFDLFFBQVE7ZUFBQztnQkFDTixZQUFZLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztnQkFDckMsT0FBTyxFQUFFLENBQUMscUJBQXFCLENBQUM7YUFDbkM7O0FBR0QsZUFBZSxDQUFDLFFBQVEsRUFBRSxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN0QyxlQUFlLENBQUMsWUFBWSxFQUFFLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQzlDLGVBQWUsQ0FBQyxnQkFBZ0IsRUFBRSxHQUFHLEVBQUUsQ0FBQyxZQUFZLENBQUMsQ0FBQztBQUN0RCxlQUFlLENBQUMsa0JBQWtCLEVBQUUsR0FBRyxFQUFFLENBQUMsY0FBYyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyByZWdpc3RlckVsZW1lbnQgfSBmcm9tICdAbmF0aXZlc2NyaXB0L2FuZ3VsYXInO1xuaW1wb3J0IHsgVGFiQ29udGVudEl0ZW0sIFRhYlN0cmlwLCBUYWJTdHJpcEl0ZW0sIFRhYnMgfSBmcm9tICdAbmF0aXZlc2NyaXB0LWNvbW11bml0eS91aS1tYXRlcmlhbC10YWJzJztcblxuQERpcmVjdGl2ZSh7IHNlbGVjdG9yOiAnTURUYWJzJyB9KVxuZXhwb3J0IGNsYXNzIE1hdGVyaWFsVGFic0RpcmVjdGl2ZSB7fVxuXG5ATmdNb2R1bGUoe1xuICAgIGRlY2xhcmF0aW9uczogW01hdGVyaWFsVGFic0RpcmVjdGl2ZV0sXG4gICAgZXhwb3J0czogW01hdGVyaWFsVGFic0RpcmVjdGl2ZV1cbn0pXG5leHBvcnQgY2xhc3MgTmF0aXZlU2NyaXB0TWF0ZXJpYWxUYWJzTW9kdWxlIHt9XG5cbnJlZ2lzdGVyRWxlbWVudCgnTURUYWJzJywgKCkgPT4gVGFicyk7XG5yZWdpc3RlckVsZW1lbnQoJ01EVGFiU3RyaXAnLCAoKSA9PiBUYWJTdHJpcCk7XG5yZWdpc3RlckVsZW1lbnQoJ01EVGFiU3RyaXBJdGVtJywgKCkgPT4gVGFiU3RyaXBJdGVtKTtcbnJlZ2lzdGVyRWxlbWVudCgnTURUYWJDb250ZW50SXRlbScsICgpID0+IFRhYkNvbnRlbnRJdGVtKTtcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './index';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlc2NyaXB0LWNvbW11bml0eS11aS1tYXRlcmlhbC10YWJzLWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdGFicy9hbmd1bGFyL25hdGl2ZXNjcmlwdC1jb21tdW5pdHktdWktbWF0ZXJpYWwtdGFicy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|