@hero-design/rn 8.33.1 → 8.34.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/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +868 -655
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +871 -656
- package/package.json +8 -7
- package/rollup.config.js +1 -0
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CardCarousel.tsx +2 -0
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/Modal/ModalContentWrapper.tsx +112 -0
- package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +135 -0
- package/src/components/Modal/ModalPresenter/index.tsx +9 -0
- package/src/components/Modal/ModalProvider.tsx +8 -0
- package/src/components/Modal/__tests__/ModalContentWrapper.spec.tsx +25 -0
- package/src/components/Modal/__tests__/ModalPresenter.spec.tsx +57 -0
- package/src/components/Modal/__tests__/__snapshots__/ModalContentWrapper.spec.tsx.snap +35 -0
- package/src/components/Modal/__tests__/__snapshots__/ModalPresenter.spec.tsx.snap +55 -0
- package/src/components/Modal/__tests__/index.spec.tsx +50 -0
- package/src/components/Modal/index.tsx +121 -0
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/PinInput/index.tsx +2 -0
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +7 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/ToastContainer.tsx +2 -0
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/testUtils/setup.tsx +24 -0
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Modal/ModalContentWrapper.d.ts +16 -0
- package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +34 -0
- package/types/components/Modal/ModalPresenter/index.d.ts +3 -0
- package/types/components/Modal/ModalProvider.d.ts +5 -0
- package/types/components/Modal/index.d.ts +33 -0
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
|
@@ -412,7 +412,7 @@ exports[`StyledButtonIcon has outlined-danger style 1`] = `
|
|
|
412
412
|
Array [
|
|
413
413
|
Object {
|
|
414
414
|
"color": "#de350b",
|
|
415
|
-
"fontSize":
|
|
415
|
+
"fontSize": 20,
|
|
416
416
|
},
|
|
417
417
|
undefined,
|
|
418
418
|
],
|
|
@@ -435,7 +435,7 @@ exports[`StyledButtonIcon has outlined-primary style 1`] = `
|
|
|
435
435
|
Array [
|
|
436
436
|
Object {
|
|
437
437
|
"color": "#401960",
|
|
438
|
-
"fontSize":
|
|
438
|
+
"fontSize": 20,
|
|
439
439
|
},
|
|
440
440
|
undefined,
|
|
441
441
|
],
|
|
@@ -458,7 +458,7 @@ exports[`StyledButtonIcon has outlined-secondary style 1`] = `
|
|
|
458
458
|
Array [
|
|
459
459
|
Object {
|
|
460
460
|
"color": "#795e90",
|
|
461
|
-
"fontSize":
|
|
461
|
+
"fontSize": 20,
|
|
462
462
|
},
|
|
463
463
|
undefined,
|
|
464
464
|
],
|
|
@@ -481,7 +481,7 @@ exports[`StyledButtonIcon has text-danger style 1`] = `
|
|
|
481
481
|
Array [
|
|
482
482
|
Object {
|
|
483
483
|
"color": "#de350b",
|
|
484
|
-
"fontSize":
|
|
484
|
+
"fontSize": 20,
|
|
485
485
|
},
|
|
486
486
|
undefined,
|
|
487
487
|
],
|
|
@@ -504,7 +504,7 @@ exports[`StyledButtonIcon has text-primary style 1`] = `
|
|
|
504
504
|
Array [
|
|
505
505
|
Object {
|
|
506
506
|
"color": "#401960",
|
|
507
|
-
"fontSize":
|
|
507
|
+
"fontSize": 20,
|
|
508
508
|
},
|
|
509
509
|
undefined,
|
|
510
510
|
],
|
|
@@ -527,7 +527,7 @@ exports[`StyledButtonIcon has text-secondary style 1`] = `
|
|
|
527
527
|
Array [
|
|
528
528
|
Object {
|
|
529
529
|
"color": "#795e90",
|
|
530
|
-
"fontSize":
|
|
530
|
+
"fontSize": 20,
|
|
531
531
|
},
|
|
532
532
|
undefined,
|
|
533
533
|
],
|
|
@@ -597,27 +597,24 @@ exports[`StyledButtonText has filled-danger style 1`] = `
|
|
|
597
597
|
Object {
|
|
598
598
|
"color": "#001f23",
|
|
599
599
|
"fontFamily": "BeVietnamPro-Regular",
|
|
600
|
-
"fontSize":
|
|
601
|
-
"letterSpacing": 0
|
|
602
|
-
"lineHeight":
|
|
600
|
+
"fontSize": 42,
|
|
601
|
+
"letterSpacing": 0,
|
|
602
|
+
"lineHeight": 50,
|
|
603
603
|
},
|
|
604
604
|
Array [
|
|
605
605
|
Object {
|
|
606
606
|
"color": "#ffffff",
|
|
607
607
|
"flexShrink": 1,
|
|
608
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
609
|
-
"fontSize": 18,
|
|
610
608
|
"textAlign": "center",
|
|
611
609
|
},
|
|
612
610
|
undefined,
|
|
613
611
|
],
|
|
614
612
|
]
|
|
615
613
|
}
|
|
616
|
-
|
|
617
|
-
themeFontWeight="regular"
|
|
614
|
+
themeButtonVariant="filled-danger"
|
|
618
615
|
themeIntent="body"
|
|
616
|
+
themeLevel="h1"
|
|
619
617
|
themeTypeface="neutral"
|
|
620
|
-
themeVariant="filled-danger"
|
|
621
618
|
>
|
|
622
619
|
Example
|
|
623
620
|
</Text>
|
|
@@ -631,27 +628,24 @@ exports[`StyledButtonText has filled-primary style 1`] = `
|
|
|
631
628
|
Object {
|
|
632
629
|
"color": "#001f23",
|
|
633
630
|
"fontFamily": "BeVietnamPro-Regular",
|
|
634
|
-
"fontSize":
|
|
635
|
-
"letterSpacing": 0
|
|
636
|
-
"lineHeight":
|
|
631
|
+
"fontSize": 42,
|
|
632
|
+
"letterSpacing": 0,
|
|
633
|
+
"lineHeight": 50,
|
|
637
634
|
},
|
|
638
635
|
Array [
|
|
639
636
|
Object {
|
|
640
637
|
"color": "#ffffff",
|
|
641
638
|
"flexShrink": 1,
|
|
642
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
643
|
-
"fontSize": 18,
|
|
644
639
|
"textAlign": "center",
|
|
645
640
|
},
|
|
646
641
|
undefined,
|
|
647
642
|
],
|
|
648
643
|
]
|
|
649
644
|
}
|
|
650
|
-
|
|
651
|
-
themeFontWeight="regular"
|
|
645
|
+
themeButtonVariant="filled-primary"
|
|
652
646
|
themeIntent="body"
|
|
647
|
+
themeLevel="h1"
|
|
653
648
|
themeTypeface="neutral"
|
|
654
|
-
themeVariant="filled-primary"
|
|
655
649
|
>
|
|
656
650
|
Example
|
|
657
651
|
</Text>
|
|
@@ -665,27 +659,24 @@ exports[`StyledButtonText has filled-secondary style 1`] = `
|
|
|
665
659
|
Object {
|
|
666
660
|
"color": "#001f23",
|
|
667
661
|
"fontFamily": "BeVietnamPro-Regular",
|
|
668
|
-
"fontSize":
|
|
669
|
-
"letterSpacing": 0
|
|
670
|
-
"lineHeight":
|
|
662
|
+
"fontSize": 42,
|
|
663
|
+
"letterSpacing": 0,
|
|
664
|
+
"lineHeight": 50,
|
|
671
665
|
},
|
|
672
666
|
Array [
|
|
673
667
|
Object {
|
|
674
668
|
"color": "#ffffff",
|
|
675
669
|
"flexShrink": 1,
|
|
676
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
677
|
-
"fontSize": 18,
|
|
678
670
|
"textAlign": "center",
|
|
679
671
|
},
|
|
680
672
|
undefined,
|
|
681
673
|
],
|
|
682
674
|
]
|
|
683
675
|
}
|
|
684
|
-
|
|
685
|
-
themeFontWeight="regular"
|
|
676
|
+
themeButtonVariant="filled-secondary"
|
|
686
677
|
themeIntent="body"
|
|
678
|
+
themeLevel="h1"
|
|
687
679
|
themeTypeface="neutral"
|
|
688
|
-
themeVariant="filled-secondary"
|
|
689
680
|
>
|
|
690
681
|
Example
|
|
691
682
|
</Text>
|
|
@@ -699,27 +690,24 @@ exports[`StyledButtonText has outlined-danger style 1`] = `
|
|
|
699
690
|
Object {
|
|
700
691
|
"color": "#001f23",
|
|
701
692
|
"fontFamily": "BeVietnamPro-Regular",
|
|
702
|
-
"fontSize":
|
|
703
|
-
"letterSpacing": 0
|
|
704
|
-
"lineHeight":
|
|
693
|
+
"fontSize": 42,
|
|
694
|
+
"letterSpacing": 0,
|
|
695
|
+
"lineHeight": 50,
|
|
705
696
|
},
|
|
706
697
|
Array [
|
|
707
698
|
Object {
|
|
708
699
|
"color": "#de350b",
|
|
709
700
|
"flexShrink": 1,
|
|
710
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
711
|
-
"fontSize": 18,
|
|
712
701
|
"textAlign": "center",
|
|
713
702
|
},
|
|
714
703
|
undefined,
|
|
715
704
|
],
|
|
716
705
|
]
|
|
717
706
|
}
|
|
718
|
-
|
|
719
|
-
themeFontWeight="regular"
|
|
707
|
+
themeButtonVariant="outlined-danger"
|
|
720
708
|
themeIntent="body"
|
|
709
|
+
themeLevel="h1"
|
|
721
710
|
themeTypeface="neutral"
|
|
722
|
-
themeVariant="outlined-danger"
|
|
723
711
|
>
|
|
724
712
|
Example
|
|
725
713
|
</Text>
|
|
@@ -733,27 +721,24 @@ exports[`StyledButtonText has outlined-primary style 1`] = `
|
|
|
733
721
|
Object {
|
|
734
722
|
"color": "#001f23",
|
|
735
723
|
"fontFamily": "BeVietnamPro-Regular",
|
|
736
|
-
"fontSize":
|
|
737
|
-
"letterSpacing": 0
|
|
738
|
-
"lineHeight":
|
|
724
|
+
"fontSize": 42,
|
|
725
|
+
"letterSpacing": 0,
|
|
726
|
+
"lineHeight": 50,
|
|
739
727
|
},
|
|
740
728
|
Array [
|
|
741
729
|
Object {
|
|
742
730
|
"color": "#401960",
|
|
743
731
|
"flexShrink": 1,
|
|
744
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
745
|
-
"fontSize": 18,
|
|
746
732
|
"textAlign": "center",
|
|
747
733
|
},
|
|
748
734
|
undefined,
|
|
749
735
|
],
|
|
750
736
|
]
|
|
751
737
|
}
|
|
752
|
-
|
|
753
|
-
themeFontWeight="regular"
|
|
738
|
+
themeButtonVariant="outlined-primary"
|
|
754
739
|
themeIntent="body"
|
|
740
|
+
themeLevel="h1"
|
|
755
741
|
themeTypeface="neutral"
|
|
756
|
-
themeVariant="outlined-primary"
|
|
757
742
|
>
|
|
758
743
|
Example
|
|
759
744
|
</Text>
|
|
@@ -767,27 +752,24 @@ exports[`StyledButtonText has outlined-secondary style 1`] = `
|
|
|
767
752
|
Object {
|
|
768
753
|
"color": "#001f23",
|
|
769
754
|
"fontFamily": "BeVietnamPro-Regular",
|
|
770
|
-
"fontSize":
|
|
771
|
-
"letterSpacing": 0
|
|
772
|
-
"lineHeight":
|
|
755
|
+
"fontSize": 42,
|
|
756
|
+
"letterSpacing": 0,
|
|
757
|
+
"lineHeight": 50,
|
|
773
758
|
},
|
|
774
759
|
Array [
|
|
775
760
|
Object {
|
|
776
761
|
"color": "#795e90",
|
|
777
762
|
"flexShrink": 1,
|
|
778
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
779
|
-
"fontSize": 18,
|
|
780
763
|
"textAlign": "center",
|
|
781
764
|
},
|
|
782
765
|
undefined,
|
|
783
766
|
],
|
|
784
767
|
]
|
|
785
768
|
}
|
|
786
|
-
|
|
787
|
-
themeFontWeight="regular"
|
|
769
|
+
themeButtonVariant="outlined-secondary"
|
|
788
770
|
themeIntent="body"
|
|
771
|
+
themeLevel="h1"
|
|
789
772
|
themeTypeface="neutral"
|
|
790
|
-
themeVariant="outlined-secondary"
|
|
791
773
|
>
|
|
792
774
|
Example
|
|
793
775
|
</Text>
|
|
@@ -801,27 +783,24 @@ exports[`StyledButtonText has text-danger style 1`] = `
|
|
|
801
783
|
Object {
|
|
802
784
|
"color": "#001f23",
|
|
803
785
|
"fontFamily": "BeVietnamPro-Regular",
|
|
804
|
-
"fontSize":
|
|
805
|
-
"letterSpacing": 0
|
|
806
|
-
"lineHeight":
|
|
786
|
+
"fontSize": 42,
|
|
787
|
+
"letterSpacing": 0,
|
|
788
|
+
"lineHeight": 50,
|
|
807
789
|
},
|
|
808
790
|
Array [
|
|
809
791
|
Object {
|
|
810
792
|
"color": "#de350b",
|
|
811
793
|
"flexShrink": 1,
|
|
812
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
813
|
-
"fontSize": 16,
|
|
814
794
|
"textAlign": "center",
|
|
815
795
|
},
|
|
816
796
|
undefined,
|
|
817
797
|
],
|
|
818
798
|
]
|
|
819
799
|
}
|
|
820
|
-
|
|
821
|
-
themeFontWeight="regular"
|
|
800
|
+
themeButtonVariant="text-danger"
|
|
822
801
|
themeIntent="body"
|
|
802
|
+
themeLevel="h1"
|
|
823
803
|
themeTypeface="neutral"
|
|
824
|
-
themeVariant="text-danger"
|
|
825
804
|
>
|
|
826
805
|
Example
|
|
827
806
|
</Text>
|
|
@@ -835,27 +814,24 @@ exports[`StyledButtonText has text-primary style 1`] = `
|
|
|
835
814
|
Object {
|
|
836
815
|
"color": "#001f23",
|
|
837
816
|
"fontFamily": "BeVietnamPro-Regular",
|
|
838
|
-
"fontSize":
|
|
839
|
-
"letterSpacing": 0
|
|
840
|
-
"lineHeight":
|
|
817
|
+
"fontSize": 42,
|
|
818
|
+
"letterSpacing": 0,
|
|
819
|
+
"lineHeight": 50,
|
|
841
820
|
},
|
|
842
821
|
Array [
|
|
843
822
|
Object {
|
|
844
823
|
"color": "#401960",
|
|
845
824
|
"flexShrink": 1,
|
|
846
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
847
|
-
"fontSize": 16,
|
|
848
825
|
"textAlign": "center",
|
|
849
826
|
},
|
|
850
827
|
undefined,
|
|
851
828
|
],
|
|
852
829
|
]
|
|
853
830
|
}
|
|
854
|
-
|
|
855
|
-
themeFontWeight="regular"
|
|
831
|
+
themeButtonVariant="text-primary"
|
|
856
832
|
themeIntent="body"
|
|
833
|
+
themeLevel="h1"
|
|
857
834
|
themeTypeface="neutral"
|
|
858
|
-
themeVariant="text-primary"
|
|
859
835
|
>
|
|
860
836
|
Example
|
|
861
837
|
</Text>
|
|
@@ -869,27 +845,24 @@ exports[`StyledButtonText has text-secondary style 1`] = `
|
|
|
869
845
|
Object {
|
|
870
846
|
"color": "#001f23",
|
|
871
847
|
"fontFamily": "BeVietnamPro-Regular",
|
|
872
|
-
"fontSize":
|
|
873
|
-
"letterSpacing": 0
|
|
874
|
-
"lineHeight":
|
|
848
|
+
"fontSize": 42,
|
|
849
|
+
"letterSpacing": 0,
|
|
850
|
+
"lineHeight": 50,
|
|
875
851
|
},
|
|
876
852
|
Array [
|
|
877
853
|
Object {
|
|
878
854
|
"color": "#795e90",
|
|
879
855
|
"flexShrink": 1,
|
|
880
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
881
|
-
"fontSize": 16,
|
|
882
856
|
"textAlign": "center",
|
|
883
857
|
},
|
|
884
858
|
undefined,
|
|
885
859
|
],
|
|
886
860
|
]
|
|
887
861
|
}
|
|
888
|
-
|
|
889
|
-
themeFontWeight="regular"
|
|
862
|
+
themeButtonVariant="text-secondary"
|
|
890
863
|
themeIntent="body"
|
|
864
|
+
themeLevel="h1"
|
|
891
865
|
themeTypeface="neutral"
|
|
892
|
-
themeVariant="text-secondary"
|
|
893
866
|
>
|
|
894
867
|
Example
|
|
895
868
|
</Text>
|
|
@@ -904,27 +877,24 @@ exports[`StyledButtonText renders disabled correctly 1`] = `
|
|
|
904
877
|
Object {
|
|
905
878
|
"color": "#001f23",
|
|
906
879
|
"fontFamily": "BeVietnamPro-Regular",
|
|
907
|
-
"fontSize":
|
|
908
|
-
"letterSpacing": 0
|
|
909
|
-
"lineHeight":
|
|
880
|
+
"fontSize": 42,
|
|
881
|
+
"letterSpacing": 0,
|
|
882
|
+
"lineHeight": 50,
|
|
910
883
|
},
|
|
911
884
|
Array [
|
|
912
885
|
Object {
|
|
913
886
|
"color": "#ffffff",
|
|
914
887
|
"flexShrink": 1,
|
|
915
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
916
|
-
"fontSize": 18,
|
|
917
888
|
"textAlign": "center",
|
|
918
889
|
},
|
|
919
890
|
undefined,
|
|
920
891
|
],
|
|
921
892
|
]
|
|
922
893
|
}
|
|
923
|
-
|
|
924
|
-
themeFontWeight="regular"
|
|
894
|
+
themeButtonVariant="filled-primary"
|
|
925
895
|
themeIntent="body"
|
|
896
|
+
themeLevel="h1"
|
|
926
897
|
themeTypeface="neutral"
|
|
927
|
-
themeVariant="filled-primary"
|
|
928
898
|
>
|
|
929
899
|
Example
|
|
930
900
|
</Text>
|
|
@@ -35,9 +35,12 @@ const CalendarRowItem = ({
|
|
|
35
35
|
variant={getCellVariant(isSelected, isCurrent)}
|
|
36
36
|
onPress={onPress}
|
|
37
37
|
>
|
|
38
|
-
<Typography.
|
|
38
|
+
<Typography.Body
|
|
39
|
+
variant="small"
|
|
40
|
+
intent={isSelected ? 'inverted' : textIntent}
|
|
41
|
+
>
|
|
39
42
|
{date ? date.getDate() : ''}
|
|
40
|
-
</Typography.
|
|
43
|
+
</Typography.Body>
|
|
41
44
|
{marked ? (
|
|
42
45
|
<StyledMark
|
|
43
46
|
testID="calendar-date-mark"
|
|
@@ -49,16 +49,15 @@ exports[`CalendarRowItem renders correctly 1`] = `
|
|
|
49
49
|
"color": "#001f23",
|
|
50
50
|
"fontFamily": "BeVietnamPro-Regular",
|
|
51
51
|
"fontSize": 14,
|
|
52
|
-
"letterSpacing": 0.
|
|
52
|
+
"letterSpacing": 0.48,
|
|
53
53
|
"lineHeight": 22,
|
|
54
54
|
},
|
|
55
55
|
undefined,
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
|
-
themeFontSize="medium"
|
|
59
|
-
themeFontWeight="regular"
|
|
60
58
|
themeIntent="body"
|
|
61
59
|
themeTypeface="neutral"
|
|
60
|
+
themeVariant="small"
|
|
62
61
|
>
|
|
63
62
|
10
|
|
64
63
|
</Text>
|
|
@@ -132,16 +131,15 @@ exports[`CalendarRowItem renders correctly 2`] = `
|
|
|
132
131
|
"color": "#4d6265",
|
|
133
132
|
"fontFamily": "BeVietnamPro-Regular",
|
|
134
133
|
"fontSize": 14,
|
|
135
|
-
"letterSpacing": 0.
|
|
134
|
+
"letterSpacing": 0.48,
|
|
136
135
|
"lineHeight": 22,
|
|
137
136
|
},
|
|
138
137
|
undefined,
|
|
139
138
|
]
|
|
140
139
|
}
|
|
141
|
-
themeFontSize="medium"
|
|
142
|
-
themeFontWeight="regular"
|
|
143
140
|
themeIntent="subdued"
|
|
144
141
|
themeTypeface="neutral"
|
|
142
|
+
themeVariant="small"
|
|
145
143
|
>
|
|
146
144
|
10
|
|
147
145
|
</Text>
|
|
@@ -215,16 +213,15 @@ exports[`CalendarRowItem renders correctly when is current date 1`] = `
|
|
|
215
213
|
"color": "#ffffff",
|
|
216
214
|
"fontFamily": "BeVietnamPro-Regular",
|
|
217
215
|
"fontSize": 14,
|
|
218
|
-
"letterSpacing": 0.
|
|
216
|
+
"letterSpacing": 0.48,
|
|
219
217
|
"lineHeight": 22,
|
|
220
218
|
},
|
|
221
219
|
undefined,
|
|
222
220
|
]
|
|
223
221
|
}
|
|
224
|
-
themeFontSize="medium"
|
|
225
|
-
themeFontWeight="regular"
|
|
226
222
|
themeIntent="inverted"
|
|
227
223
|
themeTypeface="neutral"
|
|
224
|
+
themeVariant="small"
|
|
228
225
|
>
|
|
229
226
|
10
|
|
230
227
|
</Text>
|
|
@@ -298,16 +295,15 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
|
|
|
298
295
|
"color": "#ffffff",
|
|
299
296
|
"fontFamily": "BeVietnamPro-Regular",
|
|
300
297
|
"fontSize": 14,
|
|
301
|
-
"letterSpacing": 0.
|
|
298
|
+
"letterSpacing": 0.48,
|
|
302
299
|
"lineHeight": 22,
|
|
303
300
|
},
|
|
304
301
|
undefined,
|
|
305
302
|
]
|
|
306
303
|
}
|
|
307
|
-
themeFontSize="medium"
|
|
308
|
-
themeFontWeight="regular"
|
|
309
304
|
themeIntent="inverted"
|
|
310
305
|
themeTypeface="neutral"
|
|
306
|
+
themeVariant="small"
|
|
311
307
|
>
|
|
312
308
|
10
|
|
313
309
|
</Text>
|
|
@@ -381,16 +377,15 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
|
|
|
381
377
|
"color": "#ffffff",
|
|
382
378
|
"fontFamily": "BeVietnamPro-Regular",
|
|
383
379
|
"fontSize": 14,
|
|
384
|
-
"letterSpacing": 0.
|
|
380
|
+
"letterSpacing": 0.48,
|
|
385
381
|
"lineHeight": 22,
|
|
386
382
|
},
|
|
387
383
|
undefined,
|
|
388
384
|
]
|
|
389
385
|
}
|
|
390
|
-
themeFontSize="medium"
|
|
391
|
-
themeFontWeight="regular"
|
|
392
386
|
themeIntent="inverted"
|
|
393
387
|
themeTypeface="neutral"
|
|
388
|
+
themeVariant="small"
|
|
394
389
|
>
|
|
395
390
|
10
|
|
396
391
|
</Text>
|
|
@@ -165,7 +165,7 @@ const Calendar = ({
|
|
|
165
165
|
{DAYS_OF_WEEK.map((day) => (
|
|
166
166
|
<StyledCalendarRowItem key={day}>
|
|
167
167
|
<StyledCalendarDayNameCell>
|
|
168
|
-
<Typography.
|
|
168
|
+
<Typography.Body variant="small">{day}</Typography.Body>
|
|
169
169
|
</StyledCalendarDayNameCell>
|
|
170
170
|
</StyledCalendarRowItem>
|
|
171
171
|
))}
|
|
@@ -22,16 +22,15 @@ exports[`Card renders correctly when intent is archived 1`] = `
|
|
|
22
22
|
"color": "#001f23",
|
|
23
23
|
"fontFamily": "BeVietnamPro-Regular",
|
|
24
24
|
"fontSize": 14,
|
|
25
|
-
"letterSpacing": 0.
|
|
25
|
+
"letterSpacing": 0.48,
|
|
26
26
|
"lineHeight": 22,
|
|
27
27
|
},
|
|
28
28
|
undefined,
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
|
-
themeFontSize="medium"
|
|
32
|
-
themeFontWeight="regular"
|
|
33
31
|
themeIntent="body"
|
|
34
32
|
themeTypeface="neutral"
|
|
33
|
+
themeVariant="small"
|
|
35
34
|
>
|
|
36
35
|
Card Content
|
|
37
36
|
</Text>
|
|
@@ -60,16 +59,15 @@ exports[`Card renders correctly when intent is danger 1`] = `
|
|
|
60
59
|
"color": "#001f23",
|
|
61
60
|
"fontFamily": "BeVietnamPro-Regular",
|
|
62
61
|
"fontSize": 14,
|
|
63
|
-
"letterSpacing": 0.
|
|
62
|
+
"letterSpacing": 0.48,
|
|
64
63
|
"lineHeight": 22,
|
|
65
64
|
},
|
|
66
65
|
undefined,
|
|
67
66
|
]
|
|
68
67
|
}
|
|
69
|
-
themeFontSize="medium"
|
|
70
|
-
themeFontWeight="regular"
|
|
71
68
|
themeIntent="body"
|
|
72
69
|
themeTypeface="neutral"
|
|
70
|
+
themeVariant="small"
|
|
73
71
|
>
|
|
74
72
|
Card Content
|
|
75
73
|
</Text>
|
|
@@ -98,16 +96,15 @@ exports[`Card renders correctly when intent is info 1`] = `
|
|
|
98
96
|
"color": "#001f23",
|
|
99
97
|
"fontFamily": "BeVietnamPro-Regular",
|
|
100
98
|
"fontSize": 14,
|
|
101
|
-
"letterSpacing": 0.
|
|
99
|
+
"letterSpacing": 0.48,
|
|
102
100
|
"lineHeight": 22,
|
|
103
101
|
},
|
|
104
102
|
undefined,
|
|
105
103
|
]
|
|
106
104
|
}
|
|
107
|
-
themeFontSize="medium"
|
|
108
|
-
themeFontWeight="regular"
|
|
109
105
|
themeIntent="body"
|
|
110
106
|
themeTypeface="neutral"
|
|
107
|
+
themeVariant="small"
|
|
111
108
|
>
|
|
112
109
|
Card Content
|
|
113
110
|
</Text>
|
|
@@ -136,16 +133,15 @@ exports[`Card renders correctly when intent is primary 1`] = `
|
|
|
136
133
|
"color": "#001f23",
|
|
137
134
|
"fontFamily": "BeVietnamPro-Regular",
|
|
138
135
|
"fontSize": 14,
|
|
139
|
-
"letterSpacing": 0.
|
|
136
|
+
"letterSpacing": 0.48,
|
|
140
137
|
"lineHeight": 22,
|
|
141
138
|
},
|
|
142
139
|
undefined,
|
|
143
140
|
]
|
|
144
141
|
}
|
|
145
|
-
themeFontSize="medium"
|
|
146
|
-
themeFontWeight="regular"
|
|
147
142
|
themeIntent="body"
|
|
148
143
|
themeTypeface="neutral"
|
|
144
|
+
themeVariant="small"
|
|
149
145
|
>
|
|
150
146
|
Card Content
|
|
151
147
|
</Text>
|
|
@@ -174,16 +170,15 @@ exports[`Card renders correctly when intent is success 1`] = `
|
|
|
174
170
|
"color": "#001f23",
|
|
175
171
|
"fontFamily": "BeVietnamPro-Regular",
|
|
176
172
|
"fontSize": 14,
|
|
177
|
-
"letterSpacing": 0.
|
|
173
|
+
"letterSpacing": 0.48,
|
|
178
174
|
"lineHeight": 22,
|
|
179
175
|
},
|
|
180
176
|
undefined,
|
|
181
177
|
]
|
|
182
178
|
}
|
|
183
|
-
themeFontSize="medium"
|
|
184
|
-
themeFontWeight="regular"
|
|
185
179
|
themeIntent="body"
|
|
186
180
|
themeTypeface="neutral"
|
|
181
|
+
themeVariant="small"
|
|
187
182
|
>
|
|
188
183
|
Card Content
|
|
189
184
|
</Text>
|
|
@@ -210,16 +205,15 @@ exports[`Card renders correctly when intent is undefined 1`] = `
|
|
|
210
205
|
"color": "#001f23",
|
|
211
206
|
"fontFamily": "BeVietnamPro-Regular",
|
|
212
207
|
"fontSize": 14,
|
|
213
|
-
"letterSpacing": 0.
|
|
208
|
+
"letterSpacing": 0.48,
|
|
214
209
|
"lineHeight": 22,
|
|
215
210
|
},
|
|
216
211
|
undefined,
|
|
217
212
|
]
|
|
218
213
|
}
|
|
219
|
-
themeFontSize="medium"
|
|
220
|
-
themeFontWeight="regular"
|
|
221
214
|
themeIntent="body"
|
|
222
215
|
themeTypeface="neutral"
|
|
216
|
+
themeVariant="small"
|
|
223
217
|
>
|
|
224
218
|
Card Content
|
|
225
219
|
</Text>
|
|
@@ -28,7 +28,7 @@ describe('Card', () => {
|
|
|
28
28
|
`('renders correctly when intent is $intent', ({ intent }) => {
|
|
29
29
|
const { toJSON, getByText } = renderWithTheme(
|
|
30
30
|
<Card intent={intent}>
|
|
31
|
-
<Typography.
|
|
31
|
+
<Typography.Body variant="small">Card Content</Typography.Body>
|
|
32
32
|
</Card>
|
|
33
33
|
);
|
|
34
34
|
|
|
@@ -48,10 +48,10 @@ const CarouselItem = ({
|
|
|
48
48
|
width={width}
|
|
49
49
|
>
|
|
50
50
|
{content}
|
|
51
|
-
<StyledCarouselHeading>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
<StyledCarouselHeading level="h1" typeface="playful">
|
|
52
|
+
{heading}
|
|
53
|
+
</StyledCarouselHeading>
|
|
54
|
+
{body ? <Typography.Body>{body}</Typography.Body> : null}
|
|
55
55
|
</StyledCarouselContentWrapper>
|
|
56
56
|
</Box>
|
|
57
57
|
);
|
|
@@ -21,12 +21,9 @@ const StyledCarouselView = styled(View)(() => ({
|
|
|
21
21
|
justifyContent: 'space-between',
|
|
22
22
|
}));
|
|
23
23
|
|
|
24
|
-
const StyledCarouselHeading = styled(Typography.
|
|
24
|
+
const StyledCarouselHeading = styled(Typography.Title)(({ theme }) => ({
|
|
25
25
|
marginTop: theme.__hd__.carousel.space.headingMarginTop,
|
|
26
26
|
marginBottom: theme.__hd__.carousel.space.headingMarginBottom,
|
|
27
|
-
fontFamily: theme.__hd__.carousel.fonts.heading,
|
|
28
|
-
fontSize: theme.__hd__.carousel.fontSizes.heading,
|
|
29
|
-
lineHeight: theme.__hd__.carousel.lineHeights.heading,
|
|
30
27
|
}));
|
|
31
28
|
|
|
32
29
|
const StyledCarouselImage = styled(Image)(() => ({
|