@draftbit/ui 47.1.1-ee131b.2 → 47.2.1-d833e1.2
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/lib/commonjs/index.js +78 -28
- package/lib/module/index.js +6 -9
- package/lib/typescript/src/index.d.ts +248 -12551
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +10 -7
- package/src/index.js +5 -8
- package/src/index.tsx +16 -13
package/lib/commonjs/index.js
CHANGED
|
@@ -34,26 +34,14 @@ Object.defineProperty(exports, "Avatar", {
|
|
|
34
34
|
return _core.Avatar;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
exports.
|
|
38
|
-
Object.defineProperty(exports, "
|
|
37
|
+
exports.Banner = exports.AvatarEdit = void 0;
|
|
38
|
+
Object.defineProperty(exports, "BottomSheet", {
|
|
39
39
|
enumerable: true,
|
|
40
40
|
get: function () {
|
|
41
|
-
return _core.
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
exports.CardContainerRating = exports.CardContainer = void 0;
|
|
45
|
-
Object.defineProperty(exports, "CardInline", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () {
|
|
48
|
-
return _core.CardInline;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "Carousel", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () {
|
|
54
|
-
return _core.Carousel;
|
|
41
|
+
return _core.BottomSheet;
|
|
55
42
|
}
|
|
56
43
|
});
|
|
44
|
+
exports.Card = exports.ButtonSolid = exports.ButtonOutline = exports.Button = void 0;
|
|
57
45
|
Object.defineProperty(exports, "Center", {
|
|
58
46
|
enumerable: true,
|
|
59
47
|
get: function () {
|
|
@@ -87,6 +75,18 @@ Object.defineProperty(exports, "Container", {
|
|
|
87
75
|
}
|
|
88
76
|
});
|
|
89
77
|
exports.DatePicker = void 0;
|
|
78
|
+
Object.defineProperty(exports, "DeckSwiper", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _core.DeckSwiper;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "DeckSwiperCard", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _core.DeckSwiperCard;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
90
|
Object.defineProperty(exports, "DefaultTheme", {
|
|
91
91
|
enumerable: true,
|
|
92
92
|
get: function () {
|
|
@@ -99,7 +99,7 @@ Object.defineProperty(exports, "Divider", {
|
|
|
99
99
|
return _core.Divider;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
exports.
|
|
102
|
+
exports.FieldSearchBarFull = exports.FAB = void 0;
|
|
103
103
|
Object.defineProperty(exports, "Icon", {
|
|
104
104
|
enumerable: true,
|
|
105
105
|
get: function () {
|
|
@@ -114,6 +114,12 @@ Object.defineProperty(exports, "LinearGradient", {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
exports.Link = void 0;
|
|
117
|
+
Object.defineProperty(exports, "Markdown", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () {
|
|
120
|
+
return _core.Markdown;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
117
123
|
Object.defineProperty(exports, "NumberInput", {
|
|
118
124
|
enumerable: true,
|
|
119
125
|
get: function () {
|
|
@@ -185,6 +191,12 @@ Object.defineProperty(exports, "ScreenContainer", {
|
|
|
185
191
|
return _core.ScreenContainer;
|
|
186
192
|
}
|
|
187
193
|
});
|
|
194
|
+
Object.defineProperty(exports, "Shadow", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () {
|
|
197
|
+
return _core.Shadow;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
188
200
|
exports.Slider = void 0;
|
|
189
201
|
Object.defineProperty(exports, "Spacer", {
|
|
190
202
|
enumerable: true,
|
|
@@ -211,6 +223,19 @@ Object.defineProperty(exports, "Surface", {
|
|
|
211
223
|
return _core.Surface;
|
|
212
224
|
}
|
|
213
225
|
});
|
|
226
|
+
exports.SwipeableView = void 0;
|
|
227
|
+
Object.defineProperty(exports, "SwipeableViewButton", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () {
|
|
230
|
+
return _core.SwipeableViewButton;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "SwipeableViewSwipeHandler", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () {
|
|
236
|
+
return _core.SwipeableViewSwipeHandler;
|
|
237
|
+
}
|
|
238
|
+
});
|
|
214
239
|
Object.defineProperty(exports, "Swiper", {
|
|
215
240
|
enumerable: true,
|
|
216
241
|
get: function () {
|
|
@@ -235,6 +260,31 @@ Object.defineProperty(exports, "SwitchRow", {
|
|
|
235
260
|
return _core.SwitchRow;
|
|
236
261
|
}
|
|
237
262
|
});
|
|
263
|
+
exports.TabView = void 0;
|
|
264
|
+
Object.defineProperty(exports, "TabViewItem", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () {
|
|
267
|
+
return _core.TabViewItem;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "Table", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () {
|
|
273
|
+
return _core.Table;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "TableCell", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _core.TableCell;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "TableRow", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _core.TableRow;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
238
288
|
exports.TextField = void 0;
|
|
239
289
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
240
290
|
enumerable: true,
|
|
@@ -255,6 +305,12 @@ Object.defineProperty(exports, "WebView", {
|
|
|
255
305
|
return _native.WebView;
|
|
256
306
|
}
|
|
257
307
|
});
|
|
308
|
+
Object.defineProperty(exports, "YoutubePlayer", {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get: function () {
|
|
311
|
+
return _core.YoutubePlayer;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
258
314
|
Object.defineProperty(exports, "useAuthState", {
|
|
259
315
|
enumerable: true,
|
|
260
316
|
get: function () {
|
|
@@ -288,10 +344,6 @@ const ButtonSolid = (0, _core.injectIcon)(_core.ButtonSolid, _native.Icon);
|
|
|
288
344
|
exports.ButtonSolid = ButtonSolid;
|
|
289
345
|
const Card = (0, _core.injectIcon)(_core.Card, _native.Icon);
|
|
290
346
|
exports.Card = Card;
|
|
291
|
-
const CardContainer = (0, _core.injectIcon)(_core.CardContainer, _native.Icon);
|
|
292
|
-
exports.CardContainer = CardContainer;
|
|
293
|
-
const CardContainerRating = (0, _core.injectIcon)(_core.CardContainerRating, _native.Icon);
|
|
294
|
-
exports.CardContainerRating = CardContainerRating;
|
|
295
347
|
const Checkbox = (0, _core.injectIcon)(_core.Checkbox, _native.Icon);
|
|
296
348
|
exports.Checkbox = Checkbox;
|
|
297
349
|
const CheckboxRow = (0, _core.injectIcon)(_core.CheckboxRow, _native.Icon);
|
|
@@ -302,12 +354,6 @@ const FAB = (0, _core.injectIcon)(_core.FAB, _native.Icon);
|
|
|
302
354
|
exports.FAB = FAB;
|
|
303
355
|
const FieldSearchBarFull = (0, _core.injectIcon)(_core.FieldSearchBarFull, _native.Icon);
|
|
304
356
|
exports.FieldSearchBarFull = FieldSearchBarFull;
|
|
305
|
-
const HeaderLarge = (0, _core.injectIcon)(_core.HeaderLarge, _native.Icon);
|
|
306
|
-
exports.HeaderLarge = HeaderLarge;
|
|
307
|
-
const HeaderMedium = (0, _core.injectIcon)(_core.HeaderMedium, _native.Icon);
|
|
308
|
-
exports.HeaderMedium = HeaderMedium;
|
|
309
|
-
const HeaderOverline = (0, _core.injectIcon)(_core.HeaderOverline, _native.Icon);
|
|
310
|
-
exports.HeaderOverline = HeaderOverline;
|
|
311
357
|
const IconButton = (0, _core.injectIcon)(_core.IconButton, _native.Icon);
|
|
312
358
|
exports.IconButton = IconButton;
|
|
313
359
|
const Link = (0, _core.injectIcon)(_core.Link, _native.Icon);
|
|
@@ -335,4 +381,8 @@ exports.Slider = Slider;
|
|
|
335
381
|
const AccordionGroup = (0, _core.injectIcon)(_core.AccordionGroup, _native.Icon);
|
|
336
382
|
exports.AccordionGroup = AccordionGroup;
|
|
337
383
|
const AccordionItem = (0, _core.injectIcon)(_core.AccordionItem, _native.Icon);
|
|
338
|
-
exports.AccordionItem = AccordionItem;
|
|
384
|
+
exports.AccordionItem = AccordionItem;
|
|
385
|
+
const TabView = (0, _core.injectIcon)(_core.TabView, _native.Icon);
|
|
386
|
+
exports.TabView = TabView;
|
|
387
|
+
const SwipeableView = (0, _core.injectIcon)(_core.SwipeableView, _native.Icon);
|
|
388
|
+
exports.SwipeableView = SwipeableView;
|
package/lib/module/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon } from "@draftbit/native";
|
|
2
2
|
export { AudioPlayer, Icon, LinearGradient, WebView } from "@draftbit/native";
|
|
3
|
-
export { Avatar,
|
|
4
|
-
|
|
3
|
+
export { Avatar, Center, Circle, CircleImage, Container, CheckboxGroup, DefaultTheme, Divider, Provider, RadioButtonFieldGroup, RadioButtonGroup, Row, ScreenContainer, Spacer, Square, Stack, Surface, SVG, Switch, SwitchRow, NumberInput, ThemeProvider, Touchable, Pressable, withTheme, useAuthState, DeckSwiper, DeckSwiperCard, Shadow, TabViewItem, Markdown, BottomSheet, YoutubePlayer, Table, TableRow, TableCell, SwipeableViewButton, SwipeableViewSwipeHandler, /* Deprecated, needs fixing */
|
|
4
|
+
ProgressBar, ProgressCircle, RowHeadlineImageCaption, ActionSheet, ActionSheetItem, ActionSheetCancel, Swiper, SwiperItem } from "@draftbit/core";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Components with Injected Dependencies
|
|
@@ -10,23 +10,18 @@ CardBlock, CardInline, ProgressBar, ProgressCircle, RowHeadlineImageCaption, Act
|
|
|
10
10
|
* is snack / expo / react-native
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { injectIcon, AvatarEdit as BaseAvatarEdit, Banner as BaseBanner, Button as BaseDeprecatedButton, ButtonSolid as BaseButtonSolid, ButtonOutline as BaseButtonOutline, Card as BaseCard, Link as BaseLink,
|
|
13
|
+
import { injectIcon, AvatarEdit as BaseAvatarEdit, Banner as BaseBanner, Button as BaseDeprecatedButton, ButtonSolid as BaseButtonSolid, ButtonOutline as BaseButtonOutline, Card as BaseCard, Link as BaseLink, Checkbox as BaseCheckbox, CheckboxRow as BaseCheckboxRow, DatePicker as BaseDatePicker, FAB as BaseFab, FieldSearchBarFull as BaseFieldSearchBarFull, IconButton as BaseIconButton, Picker as BasePicker, StarRating as BaseStarRating, TextField as BaseTextField, RadioButton as BaseRadioButton, RadioButtonRow as BaseRadioButtonRow, Stepper as BaseStepper, ToggleButton as BaseToggleButton, RowBodyIcon as BaseRowBodyIcon, RowHeadlineImageIcon as BaseRowHeadlineImageIcon, Slider as BaseSlider, AccordionGroup as BaseAccordionGroup, AccordionItem as BaseAccordionItem, TabView as BaseTabView, SwipeableView as BaseSwipeableView } from "@draftbit/core";
|
|
14
14
|
export const AvatarEdit = injectIcon(BaseAvatarEdit, Icon);
|
|
15
15
|
export const Banner = injectIcon(BaseBanner, Icon);
|
|
16
16
|
export const Button = injectIcon(BaseDeprecatedButton, Icon);
|
|
17
17
|
export const ButtonOutline = injectIcon(BaseButtonOutline, Icon);
|
|
18
18
|
export const ButtonSolid = injectIcon(BaseButtonSolid, Icon);
|
|
19
19
|
export const Card = injectIcon(BaseCard, Icon);
|
|
20
|
-
export const CardContainer = injectIcon(BaseCardContainer, Icon);
|
|
21
|
-
export const CardContainerRating = injectIcon(BaseCardContainerRating, Icon);
|
|
22
20
|
export const Checkbox = injectIcon(BaseCheckbox, Icon);
|
|
23
21
|
export const CheckboxRow = injectIcon(BaseCheckboxRow, Icon);
|
|
24
22
|
export const DatePicker = injectIcon(BaseDatePicker, Icon);
|
|
25
23
|
export const FAB = injectIcon(BaseFab, Icon);
|
|
26
24
|
export const FieldSearchBarFull = injectIcon(BaseFieldSearchBarFull, Icon);
|
|
27
|
-
export const HeaderLarge = injectIcon(BaseHeaderLarge, Icon);
|
|
28
|
-
export const HeaderMedium = injectIcon(BaseHeaderMedium, Icon);
|
|
29
|
-
export const HeaderOverline = injectIcon(BaseHeaderOverline, Icon);
|
|
30
25
|
export const IconButton = injectIcon(BaseIconButton, Icon);
|
|
31
26
|
export const Link = injectIcon(BaseLink, Icon);
|
|
32
27
|
export const Picker = injectIcon(BasePicker, Icon);
|
|
@@ -40,4 +35,6 @@ export const TextField = injectIcon(BaseTextField, Icon);
|
|
|
40
35
|
export const ToggleButton = injectIcon(BaseToggleButton, Icon);
|
|
41
36
|
export const Slider = injectIcon(BaseSlider, Icon);
|
|
42
37
|
export const AccordionGroup = injectIcon(BaseAccordionGroup, Icon);
|
|
43
|
-
export const AccordionItem = injectIcon(BaseAccordionItem, Icon);
|
|
38
|
+
export const AccordionItem = injectIcon(BaseAccordionItem, Icon);
|
|
39
|
+
export const TabView = injectIcon(BaseTabView, Icon);
|
|
40
|
+
export const SwipeableView = injectIcon(BaseSwipeableView, Icon);
|