@hero-design/rn 8.52.0 → 8.52.2-rc2.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +26 -0
- package/es/index.js +399 -709
- package/lib/index.js +397 -708
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -4
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +0 -2
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +0 -2
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +32 -21
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +0 -21
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -10
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -10
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -16
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -32
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -7
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/Carousel/CardCarousel.tsx +1 -5
- package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +92 -174
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +0 -4
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +0 -1
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1 -803
- package/src/components/Carousel/__tests__/index.spec.tsx +37 -47
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -8
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/Checkbox/index.tsx +1 -13
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -2
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -15
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +0 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +309 -329
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +0 -12
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Error/index.tsx +3 -20
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/FAB/ActionGroup/index.tsx +1 -14
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -9
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +0 -5
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +0 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -2
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +0 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/SectionHeading/__tests__/index.spec.tsx +0 -1
- package/src/components/SectionHeading/index.tsx +32 -57
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +128 -42
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +96 -35
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -1
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -24
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -4
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -5
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +0 -4
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +0 -1
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -10
- package/src/components/Tag/index.tsx +0 -12
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -21
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +309 -330
- package/src/components/Toast/StyledToast.tsx +7 -9
- package/src/components/Toast/Toast.tsx +1 -4
- package/src/components/Toast/ToastContainer.tsx +2 -6
- package/src/components/Toast/ToastContext.ts +2 -5
- package/src/components/Toast/ToastProvider.tsx +2 -19
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +12 -15
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -7
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +6 -14
- package/src/components/Toast/types.ts +1 -5
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +0 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +0 -8
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +0 -16
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +0 -19
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +0 -10
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +0 -8
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +0 -11
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +0 -20
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +0 -20
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +0 -23
- package/src/index.ts +0 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -112
- package/src/theme/components/badge.ts +1 -28
- package/src/theme/components/button.ts +0 -24
- package/src/theme/components/cardCarousel.ts +1 -8
- package/src/theme/components/carousel.ts +1 -28
- package/src/theme/components/empty.ts +1 -23
- package/src/theme/components/error.ts +1 -32
- package/src/theme/components/fab.ts +2 -13
- package/src/theme/components/pinInput.ts +0 -32
- package/src/theme/components/success.ts +1 -23
- package/src/theme/components/tag.ts +1 -28
- package/src/theme/components/textInput.ts +0 -5
- package/src/theme/getTheme.ts +18 -21
- package/src/types.ts +0 -2
- package/types/components/Carousel/StyledCardCarousel.d.ts +1 -7
- package/types/components/Checkbox/index.d.ts +1 -6
- package/types/components/Error/index.d.ts +3 -9
- package/types/components/FAB/ActionGroup/index.d.ts +0 -5
- package/types/components/SectionHeading/index.d.ts +1 -11
- package/types/components/Tag/index.d.ts +1 -6
- package/types/components/Toast/StyledToast.d.ts +0 -2
- package/types/components/Toast/ToastContext.d.ts +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toast/types.d.ts +1 -5
- package/types/index.d.ts +1 -2
- package/types/theme/components/badge.d.ts +0 -24
- package/types/theme/components/button.d.ts +0 -20
- package/types/theme/components/cardCarousel.d.ts +0 -10
- package/types/theme/components/carousel.d.ts +0 -24
- package/types/theme/components/empty.d.ts +0 -19
- package/types/theme/components/error.d.ts +0 -27
- package/types/theme/components/fab.d.ts +8 -19
- package/types/theme/components/pinInput.d.ts +0 -27
- package/types/theme/components/success.d.ts +0 -19
- package/types/theme/components/tag.d.ts +0 -24
- package/types/theme/components/textInput.d.ts +0 -5
- package/types/theme/getTheme.d.ts +18 -20
- package/types/types.d.ts +1 -2
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +0 -60
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -413
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +0 -97
- package/src/components/BottomNavigation/index.tsx +0 -166
- package/src/theme/components/bottomNavigation.ts +0 -27
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
- package/types/components/BottomNavigation/index.d.ts +0 -45
- package/types/theme/components/bottomNavigation.d.ts +0 -23
|
@@ -29,7 +29,6 @@ exports[`StyledTitle has body intent style 1`] = `
|
|
|
29
29
|
</Text>
|
|
30
30
|
<View
|
|
31
31
|
pointerEvents="box-none"
|
|
32
|
-
position="bottom"
|
|
33
32
|
style={
|
|
34
33
|
[
|
|
35
34
|
{
|
|
@@ -79,7 +78,6 @@ exports[`StyledTitle has danger intent style 1`] = `
|
|
|
79
78
|
</Text>
|
|
80
79
|
<View
|
|
81
80
|
pointerEvents="box-none"
|
|
82
|
-
position="bottom"
|
|
83
81
|
style={
|
|
84
82
|
[
|
|
85
83
|
{
|
|
@@ -129,7 +127,6 @@ exports[`StyledTitle has h1 level and neutral typeface style 1`] = `
|
|
|
129
127
|
</Text>
|
|
130
128
|
<View
|
|
131
129
|
pointerEvents="box-none"
|
|
132
|
-
position="bottom"
|
|
133
130
|
style={
|
|
134
131
|
[
|
|
135
132
|
{
|
|
@@ -179,7 +176,6 @@ exports[`StyledTitle has h1 level and playful typeface style 1`] = `
|
|
|
179
176
|
</Text>
|
|
180
177
|
<View
|
|
181
178
|
pointerEvents="box-none"
|
|
182
|
-
position="bottom"
|
|
183
179
|
style={
|
|
184
180
|
[
|
|
185
181
|
{
|
|
@@ -229,7 +225,6 @@ exports[`StyledTitle has h2 level and neutral typeface style 1`] = `
|
|
|
229
225
|
</Text>
|
|
230
226
|
<View
|
|
231
227
|
pointerEvents="box-none"
|
|
232
|
-
position="bottom"
|
|
233
228
|
style={
|
|
234
229
|
[
|
|
235
230
|
{
|
|
@@ -279,7 +274,6 @@ exports[`StyledTitle has h2 level and playful typeface style 1`] = `
|
|
|
279
274
|
</Text>
|
|
280
275
|
<View
|
|
281
276
|
pointerEvents="box-none"
|
|
282
|
-
position="bottom"
|
|
283
277
|
style={
|
|
284
278
|
[
|
|
285
279
|
{
|
|
@@ -329,7 +323,6 @@ exports[`StyledTitle has h3 level and neutral typeface style 1`] = `
|
|
|
329
323
|
</Text>
|
|
330
324
|
<View
|
|
331
325
|
pointerEvents="box-none"
|
|
332
|
-
position="bottom"
|
|
333
326
|
style={
|
|
334
327
|
[
|
|
335
328
|
{
|
|
@@ -379,7 +372,6 @@ exports[`StyledTitle has h3 level and playful typeface style 1`] = `
|
|
|
379
372
|
</Text>
|
|
380
373
|
<View
|
|
381
374
|
pointerEvents="box-none"
|
|
382
|
-
position="bottom"
|
|
383
375
|
style={
|
|
384
376
|
[
|
|
385
377
|
{
|
|
@@ -429,7 +421,6 @@ exports[`StyledTitle has h4 level and neutral typeface style 1`] = `
|
|
|
429
421
|
</Text>
|
|
430
422
|
<View
|
|
431
423
|
pointerEvents="box-none"
|
|
432
|
-
position="bottom"
|
|
433
424
|
style={
|
|
434
425
|
[
|
|
435
426
|
{
|
|
@@ -479,7 +470,6 @@ exports[`StyledTitle has h4 level and playful typeface style 1`] = `
|
|
|
479
470
|
</Text>
|
|
480
471
|
<View
|
|
481
472
|
pointerEvents="box-none"
|
|
482
|
-
position="bottom"
|
|
483
473
|
style={
|
|
484
474
|
[
|
|
485
475
|
{
|
|
@@ -529,7 +519,6 @@ exports[`StyledTitle has h5 level and neutral typeface style 1`] = `
|
|
|
529
519
|
</Text>
|
|
530
520
|
<View
|
|
531
521
|
pointerEvents="box-none"
|
|
532
|
-
position="bottom"
|
|
533
522
|
style={
|
|
534
523
|
[
|
|
535
524
|
{
|
|
@@ -579,7 +568,6 @@ exports[`StyledTitle has h5 level and playful typeface style 1`] = `
|
|
|
579
568
|
</Text>
|
|
580
569
|
<View
|
|
581
570
|
pointerEvents="box-none"
|
|
582
|
-
position="bottom"
|
|
583
571
|
style={
|
|
584
572
|
[
|
|
585
573
|
{
|
|
@@ -629,7 +617,6 @@ exports[`StyledTitle has h6 level and neutral typeface style 1`] = `
|
|
|
629
617
|
</Text>
|
|
630
618
|
<View
|
|
631
619
|
pointerEvents="box-none"
|
|
632
|
-
position="bottom"
|
|
633
620
|
style={
|
|
634
621
|
[
|
|
635
622
|
{
|
|
@@ -679,7 +666,6 @@ exports[`StyledTitle has h6 level and playful typeface style 1`] = `
|
|
|
679
666
|
</Text>
|
|
680
667
|
<View
|
|
681
668
|
pointerEvents="box-none"
|
|
682
|
-
position="bottom"
|
|
683
669
|
style={
|
|
684
670
|
[
|
|
685
671
|
{
|
|
@@ -729,7 +715,6 @@ exports[`StyledTitle has info intent style 1`] = `
|
|
|
729
715
|
</Text>
|
|
730
716
|
<View
|
|
731
717
|
pointerEvents="box-none"
|
|
732
|
-
position="bottom"
|
|
733
718
|
style={
|
|
734
719
|
[
|
|
735
720
|
{
|
|
@@ -779,7 +764,6 @@ exports[`StyledTitle has inverted intent style 1`] = `
|
|
|
779
764
|
</Text>
|
|
780
765
|
<View
|
|
781
766
|
pointerEvents="box-none"
|
|
782
|
-
position="bottom"
|
|
783
767
|
style={
|
|
784
768
|
[
|
|
785
769
|
{
|
|
@@ -829,7 +813,6 @@ exports[`StyledTitle has primary intent style 1`] = `
|
|
|
829
813
|
</Text>
|
|
830
814
|
<View
|
|
831
815
|
pointerEvents="box-none"
|
|
832
|
-
position="bottom"
|
|
833
816
|
style={
|
|
834
817
|
[
|
|
835
818
|
{
|
|
@@ -879,7 +862,6 @@ exports[`StyledTitle has subdued intent style 1`] = `
|
|
|
879
862
|
</Text>
|
|
880
863
|
<View
|
|
881
864
|
pointerEvents="box-none"
|
|
882
|
-
position="bottom"
|
|
883
865
|
style={
|
|
884
866
|
[
|
|
885
867
|
{
|
|
@@ -929,7 +911,6 @@ exports[`StyledTitle has success intent style 1`] = `
|
|
|
929
911
|
</Text>
|
|
930
912
|
<View
|
|
931
913
|
pointerEvents="box-none"
|
|
932
|
-
position="bottom"
|
|
933
914
|
style={
|
|
934
915
|
[
|
|
935
916
|
{
|
|
@@ -979,7 +960,6 @@ exports[`StyledTitle has warning intent style 1`] = `
|
|
|
979
960
|
</Text>
|
|
980
961
|
<View
|
|
981
962
|
pointerEvents="box-none"
|
|
982
|
-
position="bottom"
|
|
983
963
|
style={
|
|
984
964
|
[
|
|
985
965
|
{
|
|
@@ -30,7 +30,6 @@ exports[`Title has archived intent style 1`] = `
|
|
|
30
30
|
</Text>
|
|
31
31
|
<View
|
|
32
32
|
pointerEvents="box-none"
|
|
33
|
-
position="bottom"
|
|
34
33
|
style={
|
|
35
34
|
[
|
|
36
35
|
{
|
|
@@ -81,7 +80,6 @@ exports[`Title has body intent style 1`] = `
|
|
|
81
80
|
</Text>
|
|
82
81
|
<View
|
|
83
82
|
pointerEvents="box-none"
|
|
84
|
-
position="bottom"
|
|
85
83
|
style={
|
|
86
84
|
[
|
|
87
85
|
{
|
|
@@ -132,7 +130,6 @@ exports[`Title has danger intent style 1`] = `
|
|
|
132
130
|
</Text>
|
|
133
131
|
<View
|
|
134
132
|
pointerEvents="box-none"
|
|
135
|
-
position="bottom"
|
|
136
133
|
style={
|
|
137
134
|
[
|
|
138
135
|
{
|
|
@@ -183,7 +180,6 @@ exports[`Title has disabled intent style 1`] = `
|
|
|
183
180
|
</Text>
|
|
184
181
|
<View
|
|
185
182
|
pointerEvents="box-none"
|
|
186
|
-
position="bottom"
|
|
187
183
|
style={
|
|
188
184
|
[
|
|
189
185
|
{
|
|
@@ -234,7 +230,6 @@ exports[`Title has h1 level and neutral typeface style 1`] = `
|
|
|
234
230
|
</Text>
|
|
235
231
|
<View
|
|
236
232
|
pointerEvents="box-none"
|
|
237
|
-
position="bottom"
|
|
238
233
|
style={
|
|
239
234
|
[
|
|
240
235
|
{
|
|
@@ -285,7 +280,6 @@ exports[`Title has h1 level and playful typeface style 1`] = `
|
|
|
285
280
|
</Text>
|
|
286
281
|
<View
|
|
287
282
|
pointerEvents="box-none"
|
|
288
|
-
position="bottom"
|
|
289
283
|
style={
|
|
290
284
|
[
|
|
291
285
|
{
|
|
@@ -336,7 +330,6 @@ exports[`Title has h2 level and neutral typeface style 1`] = `
|
|
|
336
330
|
</Text>
|
|
337
331
|
<View
|
|
338
332
|
pointerEvents="box-none"
|
|
339
|
-
position="bottom"
|
|
340
333
|
style={
|
|
341
334
|
[
|
|
342
335
|
{
|
|
@@ -387,7 +380,6 @@ exports[`Title has h2 level and playful typeface style 1`] = `
|
|
|
387
380
|
</Text>
|
|
388
381
|
<View
|
|
389
382
|
pointerEvents="box-none"
|
|
390
|
-
position="bottom"
|
|
391
383
|
style={
|
|
392
384
|
[
|
|
393
385
|
{
|
|
@@ -438,7 +430,6 @@ exports[`Title has h3 level and neutral typeface style 1`] = `
|
|
|
438
430
|
</Text>
|
|
439
431
|
<View
|
|
440
432
|
pointerEvents="box-none"
|
|
441
|
-
position="bottom"
|
|
442
433
|
style={
|
|
443
434
|
[
|
|
444
435
|
{
|
|
@@ -489,7 +480,6 @@ exports[`Title has h3 level and playful typeface style 1`] = `
|
|
|
489
480
|
</Text>
|
|
490
481
|
<View
|
|
491
482
|
pointerEvents="box-none"
|
|
492
|
-
position="bottom"
|
|
493
483
|
style={
|
|
494
484
|
[
|
|
495
485
|
{
|
|
@@ -540,7 +530,6 @@ exports[`Title has h4 level and neutral typeface style 1`] = `
|
|
|
540
530
|
</Text>
|
|
541
531
|
<View
|
|
542
532
|
pointerEvents="box-none"
|
|
543
|
-
position="bottom"
|
|
544
533
|
style={
|
|
545
534
|
[
|
|
546
535
|
{
|
|
@@ -591,7 +580,6 @@ exports[`Title has h4 level and playful typeface style 1`] = `
|
|
|
591
580
|
</Text>
|
|
592
581
|
<View
|
|
593
582
|
pointerEvents="box-none"
|
|
594
|
-
position="bottom"
|
|
595
583
|
style={
|
|
596
584
|
[
|
|
597
585
|
{
|
|
@@ -642,7 +630,6 @@ exports[`Title has h5 level and neutral typeface style 1`] = `
|
|
|
642
630
|
</Text>
|
|
643
631
|
<View
|
|
644
632
|
pointerEvents="box-none"
|
|
645
|
-
position="bottom"
|
|
646
633
|
style={
|
|
647
634
|
[
|
|
648
635
|
{
|
|
@@ -693,7 +680,6 @@ exports[`Title has h5 level and playful typeface style 1`] = `
|
|
|
693
680
|
</Text>
|
|
694
681
|
<View
|
|
695
682
|
pointerEvents="box-none"
|
|
696
|
-
position="bottom"
|
|
697
683
|
style={
|
|
698
684
|
[
|
|
699
685
|
{
|
|
@@ -744,7 +730,6 @@ exports[`Title has h6 level and neutral typeface style 1`] = `
|
|
|
744
730
|
</Text>
|
|
745
731
|
<View
|
|
746
732
|
pointerEvents="box-none"
|
|
747
|
-
position="bottom"
|
|
748
733
|
style={
|
|
749
734
|
[
|
|
750
735
|
{
|
|
@@ -795,7 +780,6 @@ exports[`Title has h6 level and playful typeface style 1`] = `
|
|
|
795
780
|
</Text>
|
|
796
781
|
<View
|
|
797
782
|
pointerEvents="box-none"
|
|
798
|
-
position="bottom"
|
|
799
783
|
style={
|
|
800
784
|
[
|
|
801
785
|
{
|
|
@@ -846,7 +830,6 @@ exports[`Title has info intent style 1`] = `
|
|
|
846
830
|
</Text>
|
|
847
831
|
<View
|
|
848
832
|
pointerEvents="box-none"
|
|
849
|
-
position="bottom"
|
|
850
833
|
style={
|
|
851
834
|
[
|
|
852
835
|
{
|
|
@@ -897,7 +880,6 @@ exports[`Title has inverted intent style 1`] = `
|
|
|
897
880
|
</Text>
|
|
898
881
|
<View
|
|
899
882
|
pointerEvents="box-none"
|
|
900
|
-
position="bottom"
|
|
901
883
|
style={
|
|
902
884
|
[
|
|
903
885
|
{
|
|
@@ -948,7 +930,6 @@ exports[`Title has primary intent style 1`] = `
|
|
|
948
930
|
</Text>
|
|
949
931
|
<View
|
|
950
932
|
pointerEvents="box-none"
|
|
951
|
-
position="bottom"
|
|
952
933
|
style={
|
|
953
934
|
[
|
|
954
935
|
{
|
|
@@ -999,7 +980,6 @@ exports[`Title has secondary intent style 1`] = `
|
|
|
999
980
|
</Text>
|
|
1000
981
|
<View
|
|
1001
982
|
pointerEvents="box-none"
|
|
1002
|
-
position="bottom"
|
|
1003
983
|
style={
|
|
1004
984
|
[
|
|
1005
985
|
{
|
|
@@ -1050,7 +1030,6 @@ exports[`Title has subdued intent style 1`] = `
|
|
|
1050
1030
|
</Text>
|
|
1051
1031
|
<View
|
|
1052
1032
|
pointerEvents="box-none"
|
|
1053
|
-
position="bottom"
|
|
1054
1033
|
style={
|
|
1055
1034
|
[
|
|
1056
1035
|
{
|
|
@@ -1101,7 +1080,6 @@ exports[`Title has success intent style 1`] = `
|
|
|
1101
1080
|
</Text>
|
|
1102
1081
|
<View
|
|
1103
1082
|
pointerEvents="box-none"
|
|
1104
|
-
position="bottom"
|
|
1105
1083
|
style={
|
|
1106
1084
|
[
|
|
1107
1085
|
{
|
|
@@ -1152,7 +1130,6 @@ exports[`Title has warning intent style 1`] = `
|
|
|
1152
1130
|
</Text>
|
|
1153
1131
|
<View
|
|
1154
1132
|
pointerEvents="box-none"
|
|
1155
|
-
position="bottom"
|
|
1156
1133
|
style={
|
|
1157
1134
|
[
|
|
1158
1135
|
{
|
package/src/index.ts
CHANGED
|
@@ -18,7 +18,6 @@ import Alert from './components/Alert';
|
|
|
18
18
|
import Attachment from './components/Attachment';
|
|
19
19
|
import Avatar, { useAvatarColors } from './components/Avatar';
|
|
20
20
|
import Badge from './components/Badge';
|
|
21
|
-
import BottomNavigation from './components/BottomNavigation';
|
|
22
21
|
import BottomSheet from './components/BottomSheet';
|
|
23
22
|
import Box from './components/Box';
|
|
24
23
|
import Button from './components/Button';
|
|
@@ -83,7 +82,6 @@ export {
|
|
|
83
82
|
Avatar,
|
|
84
83
|
useAvatarColors,
|
|
85
84
|
Badge,
|
|
86
|
-
BottomNavigation,
|
|
87
85
|
BottomSheet,
|
|
88
86
|
Box,
|
|
89
87
|
Button,
|
|
@@ -116,15 +116,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
116
116
|
"text": "#ffffff",
|
|
117
117
|
"warning": "#ac5d00",
|
|
118
118
|
},
|
|
119
|
-
"fontSizes": {
|
|
120
|
-
"default": 12,
|
|
121
|
-
},
|
|
122
|
-
"fonts": {
|
|
123
|
-
"default": "BeVietnamPro-SemiBold",
|
|
124
|
-
},
|
|
125
|
-
"lineHeights": {
|
|
126
|
-
"default": 16,
|
|
127
|
-
},
|
|
128
119
|
"sizes": {
|
|
129
120
|
"height": 20,
|
|
130
121
|
"minWidth": 20,
|
|
@@ -137,27 +128,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
137
128
|
"statusPositionTop": -2,
|
|
138
129
|
},
|
|
139
130
|
},
|
|
140
|
-
"bottomNavigation": {
|
|
141
|
-
"colors": {
|
|
142
|
-
"background": "#ffffff",
|
|
143
|
-
"shadow": "#401960",
|
|
144
|
-
},
|
|
145
|
-
"shadows": {
|
|
146
|
-
"elevation": 10,
|
|
147
|
-
"offset": {
|
|
148
|
-
"height": 3,
|
|
149
|
-
"width": 0,
|
|
150
|
-
},
|
|
151
|
-
"opacity": 0.27,
|
|
152
|
-
"radius": 4.65,
|
|
153
|
-
},
|
|
154
|
-
"sizes": {
|
|
155
|
-
"height": 72,
|
|
156
|
-
},
|
|
157
|
-
"space": {
|
|
158
|
-
"titleMarginTop": 4,
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
131
|
"bottomSheet": {
|
|
162
132
|
"colors": {
|
|
163
133
|
"backdrop": "#000000",
|
|
@@ -214,15 +184,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
214
184
|
"textLoadingBackground": "#ece8ef",
|
|
215
185
|
"utilityBackground": "#ffffff",
|
|
216
186
|
},
|
|
217
|
-
"fontSize": {
|
|
218
|
-
"default": 18,
|
|
219
|
-
"textVariant": 16,
|
|
220
|
-
"utility": 16,
|
|
221
|
-
},
|
|
222
|
-
"fonts": {
|
|
223
|
-
"default": "BeVietnamPro-SemiBold",
|
|
224
|
-
"utility": "BeVietnamPro-Regular",
|
|
225
|
-
},
|
|
226
187
|
"lineHeights": {
|
|
227
188
|
"titleOfTextVariant": 22,
|
|
228
189
|
},
|
|
@@ -291,16 +252,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
291
252
|
"radii": {
|
|
292
253
|
"card": 8,
|
|
293
254
|
},
|
|
294
|
-
"shadows": {
|
|
295
|
-
"color": "#001f23",
|
|
296
|
-
"elevation": 3,
|
|
297
|
-
"offset": {
|
|
298
|
-
"height": 2,
|
|
299
|
-
"width": 0,
|
|
300
|
-
},
|
|
301
|
-
"opacity": 0.12,
|
|
302
|
-
"radius": 4,
|
|
303
|
-
},
|
|
304
255
|
"space": {
|
|
305
256
|
"carouselItemSpacing": 8,
|
|
306
257
|
"contentContainerPaddingHorizontal": 24,
|
|
@@ -308,15 +259,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
308
259
|
},
|
|
309
260
|
},
|
|
310
261
|
"carousel": {
|
|
311
|
-
"fontSizes": {
|
|
312
|
-
"heading": 32,
|
|
313
|
-
},
|
|
314
|
-
"fonts": {
|
|
315
|
-
"heading": "RebondGrotesque-SemiBold",
|
|
316
|
-
},
|
|
317
|
-
"lineHeights": {
|
|
318
|
-
"heading": 44,
|
|
319
|
-
},
|
|
320
262
|
"space": {
|
|
321
263
|
"footerMarginBottom": 24,
|
|
322
264
|
"footerPaddingHorizontal": 24,
|
|
@@ -450,14 +392,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
450
392
|
"subduedText": "#4d6265",
|
|
451
393
|
"text": "#001f23",
|
|
452
394
|
},
|
|
453
|
-
"fontSizes": {
|
|
454
|
-
"description": 18,
|
|
455
|
-
"title": 24,
|
|
456
|
-
},
|
|
457
|
-
"fonts": {
|
|
458
|
-
"description": "RebondGrotesque",
|
|
459
|
-
"title": "RebondGrotesque-SemiBold",
|
|
460
|
-
},
|
|
461
395
|
"sizes": {
|
|
462
396
|
"image": 168,
|
|
463
397
|
},
|
|
@@ -474,18 +408,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
474
408
|
"inPageBackground": "#f6f6f7",
|
|
475
409
|
"title": "#001f23",
|
|
476
410
|
},
|
|
477
|
-
"fontSizes": {
|
|
478
|
-
"description": 18,
|
|
479
|
-
"title": 24,
|
|
480
|
-
},
|
|
481
|
-
"fonts": {
|
|
482
|
-
"description": "RebondGrotesque",
|
|
483
|
-
"title": "RebondGrotesque-SemiBold",
|
|
484
|
-
},
|
|
485
|
-
"lineHeight": {
|
|
486
|
-
"description": 26,
|
|
487
|
-
"title": 32,
|
|
488
|
-
},
|
|
489
411
|
"sizes": {
|
|
490
412
|
"image": 176,
|
|
491
413
|
},
|
|
@@ -652,18 +574,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
652
574
|
"error": "#cb300a",
|
|
653
575
|
"mask": "#001f23",
|
|
654
576
|
},
|
|
655
|
-
"fontSizes": {
|
|
656
|
-
"cellText": 28,
|
|
657
|
-
"errorMessage": 12,
|
|
658
|
-
},
|
|
659
|
-
"fonts": {
|
|
660
|
-
"cellText": "BeVietnamPro-SemiBold",
|
|
661
|
-
"errorMessage": "BeVietnamPro-Regular",
|
|
662
|
-
},
|
|
663
|
-
"lineHeights": {
|
|
664
|
-
"cellText": 36,
|
|
665
|
-
"errorMessage": 12,
|
|
666
|
-
},
|
|
667
577
|
"radii": {
|
|
668
578
|
"cell": 8,
|
|
669
579
|
"mask": 999,
|
|
@@ -856,14 +766,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
856
766
|
"inPageBackground": "#f6f6f7",
|
|
857
767
|
"title": "#001f23",
|
|
858
768
|
},
|
|
859
|
-
"fontSizes": {
|
|
860
|
-
"description": 18,
|
|
861
|
-
"title": 24,
|
|
862
|
-
},
|
|
863
|
-
"fonts": {
|
|
864
|
-
"description": "RebondGrotesque",
|
|
865
|
-
"title": "RebondGrotesque-SemiBold",
|
|
866
|
-
},
|
|
867
769
|
"sizes": {
|
|
868
770
|
"image": 176,
|
|
869
771
|
},
|
|
@@ -975,15 +877,6 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
975
877
|
"warning": "#ac5d00",
|
|
976
878
|
"warningBackground": "#fff6eb",
|
|
977
879
|
},
|
|
978
|
-
"fontSizes": {
|
|
979
|
-
"default": 12,
|
|
980
|
-
},
|
|
981
|
-
"fonts": {
|
|
982
|
-
"default": "BeVietnamPro-SemiBold",
|
|
983
|
-
},
|
|
984
|
-
"lineHeights": {
|
|
985
|
-
"default": 16,
|
|
986
|
-
},
|
|
987
880
|
"radii": {
|
|
988
881
|
"default": 4,
|
|
989
882
|
},
|
|
@@ -1041,12 +934,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1041
934
|
"text": "#001f23",
|
|
1042
935
|
},
|
|
1043
936
|
"fontSizes": {
|
|
1044
|
-
"asteriskLabel": 16,
|
|
1045
|
-
"error": 12,
|
|
1046
|
-
"labelInsideTextInput": 16,
|
|
1047
|
-
"maxLength": 12,
|
|
1048
937
|
"text": 16,
|
|
1049
|
-
"topLabel": 12,
|
|
1050
938
|
},
|
|
1051
939
|
"fonts": {
|
|
1052
940
|
"text": "BeVietnamPro-Regular",
|
|
@@ -11,18 +11,6 @@ const getBadgeTheme = (theme: GlobalTheme) => {
|
|
|
11
11
|
text: theme.colors.onDarkGlobalSurface,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const fonts = {
|
|
15
|
-
default: theme.fonts.neutral.semiBold,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const fontSizes = {
|
|
19
|
-
default: theme.fontSizes.small,
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const lineHeights = {
|
|
23
|
-
default: theme.lineHeights.small,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
14
|
const sizes = {
|
|
27
15
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
28
16
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -36,22 +24,7 @@ const getBadgeTheme = (theme: GlobalTheme) => {
|
|
|
36
24
|
statusPositionRight: -theme.space.xxsmall,
|
|
37
25
|
};
|
|
38
26
|
|
|
39
|
-
return { colors,
|
|
27
|
+
return { colors, sizes, space };
|
|
40
28
|
};
|
|
41
29
|
|
|
42
|
-
type GetBadgeThemeReturnType = ReturnType<typeof getBadgeTheme>;
|
|
43
|
-
export interface BadgeThemeType extends GetBadgeThemeReturnType {
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated will be removed in v9
|
|
46
|
-
* */
|
|
47
|
-
fonts: GetBadgeThemeReturnType['fonts'];
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated will be removed in v9
|
|
50
|
-
* */
|
|
51
|
-
fontSizes: GetBadgeThemeReturnType['fontSizes'];
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated will be removed in v9
|
|
54
|
-
* */
|
|
55
|
-
lineHeights: GetBadgeThemeReturnType['lineHeights'];
|
|
56
|
-
}
|
|
57
30
|
export default getBadgeTheme;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { GlobalTheme } from '../global';
|
|
2
2
|
|
|
3
3
|
const getButtonTheme = (theme: GlobalTheme) => {
|
|
4
|
-
const fonts = {
|
|
5
|
-
default: theme.fonts.neutral.semiBold,
|
|
6
|
-
utility: theme.fonts.neutral.regular,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const fontSize = {
|
|
10
|
-
default: theme.fontSizes.xlarge,
|
|
11
|
-
utility: theme.fontSizes.large,
|
|
12
|
-
textVariant: theme.fontSizes.large,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
4
|
const borderWidth = {
|
|
16
5
|
default: theme.space.xxsmall,
|
|
17
6
|
};
|
|
@@ -64,8 +53,6 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
64
53
|
return {
|
|
65
54
|
lineHeights,
|
|
66
55
|
borderWidth,
|
|
67
|
-
fonts,
|
|
68
|
-
fontSize,
|
|
69
56
|
sizes,
|
|
70
57
|
radii,
|
|
71
58
|
colors,
|
|
@@ -73,15 +60,4 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
73
60
|
};
|
|
74
61
|
};
|
|
75
62
|
|
|
76
|
-
type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
|
|
77
|
-
export interface ButtonThemeType extends GetButtonThemeReturnType {
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated will be removed in v9
|
|
80
|
-
* */
|
|
81
|
-
fonts: GetButtonThemeReturnType['fonts'];
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated will be removed in v9
|
|
84
|
-
* */
|
|
85
|
-
fontSize: GetButtonThemeReturnType['fontSize'];
|
|
86
|
-
}
|
|
87
63
|
export default getButtonTheme;
|
|
@@ -10,19 +10,12 @@ const getCardCarouselTheme = (theme: GlobalTheme) => {
|
|
|
10
10
|
const colors = {
|
|
11
11
|
carouselItemBackground: theme.colors.defaultSurface,
|
|
12
12
|
};
|
|
13
|
-
const shadows = {
|
|
14
|
-
color: theme.shadows.default.shadowColor,
|
|
15
|
-
offset: theme.shadows.default.shadowOffset,
|
|
16
|
-
opacity: theme.shadows.default.shadowOpacity,
|
|
17
|
-
radius: theme.shadows.default.shadowRadius,
|
|
18
|
-
elevation: theme.shadows.default.elevation,
|
|
19
|
-
};
|
|
20
13
|
|
|
21
14
|
const radii = {
|
|
22
15
|
card: theme.radii.medium,
|
|
23
16
|
};
|
|
24
17
|
|
|
25
|
-
return {
|
|
18
|
+
return { colors, space, radii };
|
|
26
19
|
};
|
|
27
20
|
|
|
28
21
|
export default getCardCarouselTheme;
|
|
@@ -12,34 +12,7 @@ const getCarouselTheme = (theme: GlobalTheme) => {
|
|
|
12
12
|
pageControlWrapperHeight: scale(48),
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
heading: theme.fontSizes['xxxxxlarge'],
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const fonts = {
|
|
20
|
-
heading: theme.fonts.playful.semiBold,
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const lineHeights = {
|
|
24
|
-
heading: theme.lineHeights['6xlarge'],
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return { space, fonts, fontSizes, lineHeights };
|
|
15
|
+
return { space };
|
|
28
16
|
};
|
|
29
17
|
|
|
30
|
-
type GetCarouselThemeReturnType = ReturnType<typeof getCarouselTheme>;
|
|
31
|
-
export interface CarouselThemeType extends GetCarouselThemeReturnType {
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated will be removed in v9
|
|
34
|
-
* */
|
|
35
|
-
fonts: GetCarouselThemeReturnType['fonts'];
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated will be removed in v9
|
|
38
|
-
* */
|
|
39
|
-
fontSizes: GetCarouselThemeReturnType['fontSizes'];
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated will be removed in v9
|
|
42
|
-
* */
|
|
43
|
-
lineHeights: GetCarouselThemeReturnType['lineHeights'];
|
|
44
|
-
}
|
|
45
18
|
export default getCarouselTheme;
|
|
@@ -18,29 +18,7 @@ const getEmptyTheme = (theme: GlobalTheme) => {
|
|
|
18
18
|
invertedSubduedText: theme.colors.onDarkGlobalSurface,
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
title: theme.fontSizes.xxxlarge,
|
|
23
|
-
description: theme.fontSizes.xlarge,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const fonts = {
|
|
27
|
-
title: theme.fonts.playful.semiBold,
|
|
28
|
-
description: theme.fonts.playful.regular,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return { fontSizes, colors, sizes, space, fonts };
|
|
21
|
+
return { colors, sizes, space };
|
|
32
22
|
};
|
|
33
23
|
|
|
34
|
-
type GetEmptyThemeReturnType = ReturnType<typeof getEmptyTheme>;
|
|
35
|
-
export interface EmptyThemeType extends GetEmptyThemeReturnType {
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated will be removed in v9
|
|
38
|
-
* */
|
|
39
|
-
fonts: GetEmptyThemeReturnType['fonts'];
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated will be removed in v9
|
|
42
|
-
* */
|
|
43
|
-
fontSizes: GetEmptyThemeReturnType['fontSizes'];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
24
|
export default getEmptyTheme;
|