@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.34.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.
|
|
24
|
+
"@hero-design/colors": "8.34.0",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
"@react-native-community/slider": "4.1.12",
|
|
32
32
|
"react": "18.0.0",
|
|
33
33
|
"react-native": "0.69.7",
|
|
34
|
-
"react-native-gesture-handler": "^1.10.3 | ~2.
|
|
34
|
+
"react-native-gesture-handler": "^1.10.3 | ~2.5.0",
|
|
35
35
|
"react-native-linear-gradient": "^2.6.2",
|
|
36
36
|
"react-native-pager-view": "^5.4.25",
|
|
37
|
+
"react-native-root-siblings": "^4.1.1",
|
|
37
38
|
"react-native-safe-area-context": "^3.0.2",
|
|
38
39
|
"react-native-vector-icons": "^9.1.0",
|
|
39
40
|
"react-native-webview": "^11.2.5"
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@babel/preset-typescript": "^7.17.12",
|
|
46
47
|
"@babel/runtime": "^7.18.9",
|
|
47
48
|
"@emotion/jest": "^11.9.3",
|
|
48
|
-
"@hero-design/eslint-plugin": "8.
|
|
49
|
+
"@hero-design/eslint-plugin": "8.34.0",
|
|
49
50
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
50
51
|
"@react-native-community/slider": "4.1.12",
|
|
51
52
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -61,13 +62,13 @@
|
|
|
61
62
|
"@types/react-native": "^0.67.7",
|
|
62
63
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
63
64
|
"babel-plugin-inline-import": "^3.0.0",
|
|
64
|
-
"eslint-config-hd": "8.
|
|
65
|
+
"eslint-config-hd": "8.34.0",
|
|
65
66
|
"eslint-plugin-import": "^2.27.5",
|
|
66
67
|
"jest": "^27.3.1",
|
|
67
|
-
"prettier-config-hd": "8.
|
|
68
|
+
"prettier-config-hd": "8.34.0",
|
|
68
69
|
"react": "18.0.0",
|
|
69
70
|
"react-native": "0.69.7",
|
|
70
|
-
"react-native-gesture-handler": "~2.
|
|
71
|
+
"react-native-gesture-handler": "~2.5.0",
|
|
71
72
|
"react-native-linear-gradient": "^2.6.2",
|
|
72
73
|
"react-native-pager-view": "^5.4.25",
|
|
73
74
|
"react-native-safe-area-context": "^3.0.2",
|
package/rollup.config.js
CHANGED
|
@@ -32,9 +32,7 @@ const AccordionItem = ({
|
|
|
32
32
|
<StyledItemWrapper themeVariant={variant} style={style} testID={testID}>
|
|
33
33
|
<StyledHeaderWrapper onPress={onPress}>
|
|
34
34
|
{typeof header === 'string' ? (
|
|
35
|
-
<Typography.
|
|
36
|
-
{header}
|
|
37
|
-
</Typography.Text>
|
|
35
|
+
<Typography.Body variant="regular-bold">{header}</Typography.Body>
|
|
38
36
|
) : (
|
|
39
37
|
header
|
|
40
38
|
)}
|
|
@@ -8,7 +8,7 @@ describe('AccordionItem', () => {
|
|
|
8
8
|
const wrapper = renderWithTheme(
|
|
9
9
|
<AccordionItem
|
|
10
10
|
header="Accordion header"
|
|
11
|
-
content={<Typography.
|
|
11
|
+
content={<Typography.Body>Accordion content</Typography.Body>}
|
|
12
12
|
/>
|
|
13
13
|
);
|
|
14
14
|
|
|
@@ -20,8 +20,8 @@ describe('AccordionItem', () => {
|
|
|
20
20
|
it('renders correctly when header is an element', () => {
|
|
21
21
|
const wrapper = renderWithTheme(
|
|
22
22
|
<AccordionItem
|
|
23
|
-
header={<Typography.
|
|
24
|
-
content={<Typography.
|
|
23
|
+
header={<Typography.Body>Accordion header</Typography.Body>}
|
|
24
|
+
content={<Typography.Body>Accordion content</Typography.Body>}
|
|
25
25
|
/>
|
|
26
26
|
);
|
|
27
27
|
|
|
@@ -34,7 +34,7 @@ describe('AccordionItem', () => {
|
|
|
34
34
|
const wrapper = renderWithTheme(
|
|
35
35
|
<AccordionItem
|
|
36
36
|
header="Accordion header"
|
|
37
|
-
content={<Typography.
|
|
37
|
+
content={<Typography.Body>Accordion content</Typography.Body>}
|
|
38
38
|
variant="card"
|
|
39
39
|
/>
|
|
40
40
|
);
|
|
@@ -46,7 +46,7 @@ describe('AccordionItem', () => {
|
|
|
46
46
|
const wrapper = renderWithTheme(
|
|
47
47
|
<AccordionItem
|
|
48
48
|
header="Accordion header"
|
|
49
|
-
content={<Typography.
|
|
49
|
+
content={<Typography.Body>Accordion content</Typography.Body>}
|
|
50
50
|
open
|
|
51
51
|
/>
|
|
52
52
|
);
|
|
@@ -40,17 +40,16 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
40
40
|
Object {
|
|
41
41
|
"color": "#001f23",
|
|
42
42
|
"fontFamily": "BeVietnamPro-Regular",
|
|
43
|
-
"fontSize":
|
|
44
|
-
"letterSpacing": 0.
|
|
45
|
-
"lineHeight":
|
|
43
|
+
"fontSize": 16,
|
|
44
|
+
"letterSpacing": 0.48,
|
|
45
|
+
"lineHeight": 24,
|
|
46
46
|
},
|
|
47
47
|
undefined,
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
|
-
themeFontSize="medium"
|
|
51
|
-
themeFontWeight="regular"
|
|
52
50
|
themeIntent="body"
|
|
53
51
|
themeTypeface="neutral"
|
|
52
|
+
themeVariant="regular"
|
|
54
53
|
>
|
|
55
54
|
Accordion header
|
|
56
55
|
</Text>
|
|
@@ -115,17 +114,16 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
115
114
|
Object {
|
|
116
115
|
"color": "#001f23",
|
|
117
116
|
"fontFamily": "BeVietnamPro-Regular",
|
|
118
|
-
"fontSize":
|
|
119
|
-
"letterSpacing": 0.
|
|
120
|
-
"lineHeight":
|
|
117
|
+
"fontSize": 16,
|
|
118
|
+
"letterSpacing": 0.48,
|
|
119
|
+
"lineHeight": 24,
|
|
121
120
|
},
|
|
122
121
|
undefined,
|
|
123
122
|
]
|
|
124
123
|
}
|
|
125
|
-
themeFontSize="medium"
|
|
126
|
-
themeFontWeight="regular"
|
|
127
124
|
themeIntent="body"
|
|
128
125
|
themeTypeface="neutral"
|
|
126
|
+
themeVariant="regular"
|
|
129
127
|
>
|
|
130
128
|
Accordion content
|
|
131
129
|
</Text>
|
|
@@ -176,16 +174,15 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
176
174
|
"color": "#001f23",
|
|
177
175
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
178
176
|
"fontSize": 16,
|
|
179
|
-
"letterSpacing": 0.
|
|
177
|
+
"letterSpacing": 0.24,
|
|
180
178
|
"lineHeight": 24,
|
|
181
179
|
},
|
|
182
180
|
undefined,
|
|
183
181
|
]
|
|
184
182
|
}
|
|
185
|
-
themeFontSize="large"
|
|
186
|
-
themeFontWeight="semi-bold"
|
|
187
183
|
themeIntent="body"
|
|
188
184
|
themeTypeface="neutral"
|
|
185
|
+
themeVariant="regular-bold"
|
|
189
186
|
>
|
|
190
187
|
Accordion header
|
|
191
188
|
</Text>
|
|
@@ -250,17 +247,16 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
250
247
|
Object {
|
|
251
248
|
"color": "#001f23",
|
|
252
249
|
"fontFamily": "BeVietnamPro-Regular",
|
|
253
|
-
"fontSize":
|
|
254
|
-
"letterSpacing": 0.
|
|
255
|
-
"lineHeight":
|
|
250
|
+
"fontSize": 16,
|
|
251
|
+
"letterSpacing": 0.48,
|
|
252
|
+
"lineHeight": 24,
|
|
256
253
|
},
|
|
257
254
|
undefined,
|
|
258
255
|
]
|
|
259
256
|
}
|
|
260
|
-
themeFontSize="medium"
|
|
261
|
-
themeFontWeight="regular"
|
|
262
257
|
themeIntent="body"
|
|
263
258
|
themeTypeface="neutral"
|
|
259
|
+
themeVariant="regular"
|
|
264
260
|
>
|
|
265
261
|
Accordion content
|
|
266
262
|
</Text>
|
|
@@ -311,16 +307,15 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
311
307
|
"color": "#001f23",
|
|
312
308
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
313
309
|
"fontSize": 16,
|
|
314
|
-
"letterSpacing": 0.
|
|
310
|
+
"letterSpacing": 0.24,
|
|
315
311
|
"lineHeight": 24,
|
|
316
312
|
},
|
|
317
313
|
undefined,
|
|
318
314
|
]
|
|
319
315
|
}
|
|
320
|
-
themeFontSize="large"
|
|
321
|
-
themeFontWeight="semi-bold"
|
|
322
316
|
themeIntent="body"
|
|
323
317
|
themeTypeface="neutral"
|
|
318
|
+
themeVariant="regular-bold"
|
|
324
319
|
>
|
|
325
320
|
Accordion header
|
|
326
321
|
</Text>
|
|
@@ -385,17 +380,16 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
385
380
|
Object {
|
|
386
381
|
"color": "#001f23",
|
|
387
382
|
"fontFamily": "BeVietnamPro-Regular",
|
|
388
|
-
"fontSize":
|
|
389
|
-
"letterSpacing": 0.
|
|
390
|
-
"lineHeight":
|
|
383
|
+
"fontSize": 16,
|
|
384
|
+
"letterSpacing": 0.48,
|
|
385
|
+
"lineHeight": 24,
|
|
391
386
|
},
|
|
392
387
|
undefined,
|
|
393
388
|
]
|
|
394
389
|
}
|
|
395
|
-
themeFontSize="medium"
|
|
396
|
-
themeFontWeight="regular"
|
|
397
390
|
themeIntent="body"
|
|
398
391
|
themeTypeface="neutral"
|
|
392
|
+
themeVariant="regular"
|
|
399
393
|
>
|
|
400
394
|
Accordion content
|
|
401
395
|
</Text>
|
|
@@ -446,16 +440,15 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
446
440
|
"color": "#001f23",
|
|
447
441
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
448
442
|
"fontSize": 16,
|
|
449
|
-
"letterSpacing": 0.
|
|
443
|
+
"letterSpacing": 0.24,
|
|
450
444
|
"lineHeight": 24,
|
|
451
445
|
},
|
|
452
446
|
undefined,
|
|
453
447
|
]
|
|
454
448
|
}
|
|
455
|
-
themeFontSize="large"
|
|
456
|
-
themeFontWeight="semi-bold"
|
|
457
449
|
themeIntent="body"
|
|
458
450
|
themeTypeface="neutral"
|
|
451
|
+
themeVariant="regular-bold"
|
|
459
452
|
>
|
|
460
453
|
Accordion header
|
|
461
454
|
</Text>
|
|
@@ -520,17 +513,16 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
520
513
|
Object {
|
|
521
514
|
"color": "#001f23",
|
|
522
515
|
"fontFamily": "BeVietnamPro-Regular",
|
|
523
|
-
"fontSize":
|
|
524
|
-
"letterSpacing": 0.
|
|
525
|
-
"lineHeight":
|
|
516
|
+
"fontSize": 16,
|
|
517
|
+
"letterSpacing": 0.48,
|
|
518
|
+
"lineHeight": 24,
|
|
526
519
|
},
|
|
527
520
|
undefined,
|
|
528
521
|
]
|
|
529
522
|
}
|
|
530
|
-
themeFontSize="medium"
|
|
531
|
-
themeFontWeight="regular"
|
|
532
523
|
themeIntent="body"
|
|
533
524
|
themeTypeface="neutral"
|
|
525
|
+
themeVariant="regular"
|
|
534
526
|
>
|
|
535
527
|
Accordion content
|
|
536
528
|
</Text>
|
|
@@ -49,16 +49,15 @@ exports[`Accordion allows fully controlled 1`] = `
|
|
|
49
49
|
"color": "#001f23",
|
|
50
50
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
51
51
|
"fontSize": 16,
|
|
52
|
-
"letterSpacing": 0.
|
|
52
|
+
"letterSpacing": 0.24,
|
|
53
53
|
"lineHeight": 24,
|
|
54
54
|
},
|
|
55
55
|
undefined,
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
|
-
themeFontSize="large"
|
|
59
|
-
themeFontWeight="semi-bold"
|
|
60
58
|
themeIntent="body"
|
|
61
59
|
themeTypeface="neutral"
|
|
60
|
+
themeVariant="regular-bold"
|
|
62
61
|
>
|
|
63
62
|
Accordion header 1
|
|
64
63
|
</Text>
|
|
@@ -123,17 +122,16 @@ exports[`Accordion allows fully controlled 1`] = `
|
|
|
123
122
|
Object {
|
|
124
123
|
"color": "#001f23",
|
|
125
124
|
"fontFamily": "BeVietnamPro-Regular",
|
|
126
|
-
"fontSize":
|
|
127
|
-
"letterSpacing": 0.
|
|
128
|
-
"lineHeight":
|
|
125
|
+
"fontSize": 16,
|
|
126
|
+
"letterSpacing": 0.48,
|
|
127
|
+
"lineHeight": 24,
|
|
129
128
|
},
|
|
130
129
|
undefined,
|
|
131
130
|
]
|
|
132
131
|
}
|
|
133
|
-
themeFontSize="medium"
|
|
134
|
-
themeFontWeight="regular"
|
|
135
132
|
themeIntent="body"
|
|
136
133
|
themeTypeface="neutral"
|
|
134
|
+
themeVariant="regular"
|
|
137
135
|
>
|
|
138
136
|
Accordion content 1
|
|
139
137
|
</Text>
|
|
@@ -181,16 +179,15 @@ exports[`Accordion allows fully controlled 1`] = `
|
|
|
181
179
|
"color": "#001f23",
|
|
182
180
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
183
181
|
"fontSize": 16,
|
|
184
|
-
"letterSpacing": 0.
|
|
182
|
+
"letterSpacing": 0.24,
|
|
185
183
|
"lineHeight": 24,
|
|
186
184
|
},
|
|
187
185
|
undefined,
|
|
188
186
|
]
|
|
189
187
|
}
|
|
190
|
-
themeFontSize="large"
|
|
191
|
-
themeFontWeight="semi-bold"
|
|
192
188
|
themeIntent="body"
|
|
193
189
|
themeTypeface="neutral"
|
|
190
|
+
themeVariant="regular-bold"
|
|
194
191
|
>
|
|
195
192
|
Accordion header 2
|
|
196
193
|
</Text>
|
|
@@ -255,17 +252,16 @@ exports[`Accordion allows fully controlled 1`] = `
|
|
|
255
252
|
Object {
|
|
256
253
|
"color": "#001f23",
|
|
257
254
|
"fontFamily": "BeVietnamPro-Regular",
|
|
258
|
-
"fontSize":
|
|
259
|
-
"letterSpacing": 0.
|
|
260
|
-
"lineHeight":
|
|
255
|
+
"fontSize": 16,
|
|
256
|
+
"letterSpacing": 0.48,
|
|
257
|
+
"lineHeight": 24,
|
|
261
258
|
},
|
|
262
259
|
undefined,
|
|
263
260
|
]
|
|
264
261
|
}
|
|
265
|
-
themeFontSize="medium"
|
|
266
|
-
themeFontWeight="regular"
|
|
267
262
|
themeIntent="body"
|
|
268
263
|
themeTypeface="neutral"
|
|
264
|
+
themeVariant="regular"
|
|
269
265
|
>
|
|
270
266
|
Accordion content 2
|
|
271
267
|
</Text>
|
|
@@ -325,16 +321,15 @@ exports[`Accordion renders correctly 1`] = `
|
|
|
325
321
|
"color": "#001f23",
|
|
326
322
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
327
323
|
"fontSize": 16,
|
|
328
|
-
"letterSpacing": 0.
|
|
324
|
+
"letterSpacing": 0.24,
|
|
329
325
|
"lineHeight": 24,
|
|
330
326
|
},
|
|
331
327
|
undefined,
|
|
332
328
|
]
|
|
333
329
|
}
|
|
334
|
-
themeFontSize="large"
|
|
335
|
-
themeFontWeight="semi-bold"
|
|
336
330
|
themeIntent="body"
|
|
337
331
|
themeTypeface="neutral"
|
|
332
|
+
themeVariant="regular-bold"
|
|
338
333
|
>
|
|
339
334
|
Accordion header 1
|
|
340
335
|
</Text>
|
|
@@ -399,17 +394,16 @@ exports[`Accordion renders correctly 1`] = `
|
|
|
399
394
|
Object {
|
|
400
395
|
"color": "#001f23",
|
|
401
396
|
"fontFamily": "BeVietnamPro-Regular",
|
|
402
|
-
"fontSize":
|
|
403
|
-
"letterSpacing": 0.
|
|
404
|
-
"lineHeight":
|
|
397
|
+
"fontSize": 16,
|
|
398
|
+
"letterSpacing": 0.48,
|
|
399
|
+
"lineHeight": 24,
|
|
405
400
|
},
|
|
406
401
|
undefined,
|
|
407
402
|
]
|
|
408
403
|
}
|
|
409
|
-
themeFontSize="medium"
|
|
410
|
-
themeFontWeight="regular"
|
|
411
404
|
themeIntent="body"
|
|
412
405
|
themeTypeface="neutral"
|
|
406
|
+
themeVariant="regular"
|
|
413
407
|
>
|
|
414
408
|
Accordion content 1
|
|
415
409
|
</Text>
|
|
@@ -457,16 +451,15 @@ exports[`Accordion renders correctly 1`] = `
|
|
|
457
451
|
"color": "#001f23",
|
|
458
452
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
459
453
|
"fontSize": 16,
|
|
460
|
-
"letterSpacing": 0.
|
|
454
|
+
"letterSpacing": 0.24,
|
|
461
455
|
"lineHeight": 24,
|
|
462
456
|
},
|
|
463
457
|
undefined,
|
|
464
458
|
]
|
|
465
459
|
}
|
|
466
|
-
themeFontSize="large"
|
|
467
|
-
themeFontWeight="semi-bold"
|
|
468
460
|
themeIntent="body"
|
|
469
461
|
themeTypeface="neutral"
|
|
462
|
+
themeVariant="regular-bold"
|
|
470
463
|
>
|
|
471
464
|
Accordion header 2
|
|
472
465
|
</Text>
|
|
@@ -531,17 +524,16 @@ exports[`Accordion renders correctly 1`] = `
|
|
|
531
524
|
Object {
|
|
532
525
|
"color": "#001f23",
|
|
533
526
|
"fontFamily": "BeVietnamPro-Regular",
|
|
534
|
-
"fontSize":
|
|
535
|
-
"letterSpacing": 0.
|
|
536
|
-
"lineHeight":
|
|
527
|
+
"fontSize": 16,
|
|
528
|
+
"letterSpacing": 0.48,
|
|
529
|
+
"lineHeight": 24,
|
|
537
530
|
},
|
|
538
531
|
undefined,
|
|
539
532
|
]
|
|
540
533
|
}
|
|
541
|
-
themeFontSize="medium"
|
|
542
|
-
themeFontWeight="regular"
|
|
543
534
|
themeIntent="body"
|
|
544
535
|
themeTypeface="neutral"
|
|
536
|
+
themeVariant="regular"
|
|
545
537
|
>
|
|
546
538
|
Accordion content 2
|
|
547
539
|
</Text>
|
|
@@ -601,16 +593,15 @@ exports[`Accordion renders correctly when variant is card 1`] = `
|
|
|
601
593
|
"color": "#001f23",
|
|
602
594
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
603
595
|
"fontSize": 16,
|
|
604
|
-
"letterSpacing": 0.
|
|
596
|
+
"letterSpacing": 0.24,
|
|
605
597
|
"lineHeight": 24,
|
|
606
598
|
},
|
|
607
599
|
undefined,
|
|
608
600
|
]
|
|
609
601
|
}
|
|
610
|
-
themeFontSize="large"
|
|
611
|
-
themeFontWeight="semi-bold"
|
|
612
602
|
themeIntent="body"
|
|
613
603
|
themeTypeface="neutral"
|
|
604
|
+
themeVariant="regular-bold"
|
|
614
605
|
>
|
|
615
606
|
Accordion header 1
|
|
616
607
|
</Text>
|
|
@@ -675,17 +666,16 @@ exports[`Accordion renders correctly when variant is card 1`] = `
|
|
|
675
666
|
Object {
|
|
676
667
|
"color": "#001f23",
|
|
677
668
|
"fontFamily": "BeVietnamPro-Regular",
|
|
678
|
-
"fontSize":
|
|
679
|
-
"letterSpacing": 0.
|
|
680
|
-
"lineHeight":
|
|
669
|
+
"fontSize": 16,
|
|
670
|
+
"letterSpacing": 0.48,
|
|
671
|
+
"lineHeight": 24,
|
|
681
672
|
},
|
|
682
673
|
undefined,
|
|
683
674
|
]
|
|
684
675
|
}
|
|
685
|
-
themeFontSize="medium"
|
|
686
|
-
themeFontWeight="regular"
|
|
687
676
|
themeIntent="body"
|
|
688
677
|
themeTypeface="neutral"
|
|
678
|
+
themeVariant="regular"
|
|
689
679
|
>
|
|
690
680
|
Accordion content 1
|
|
691
681
|
</Text>
|
|
@@ -744,16 +734,15 @@ exports[`Accordion renders correctly when variant is card 1`] = `
|
|
|
744
734
|
"color": "#001f23",
|
|
745
735
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
746
736
|
"fontSize": 16,
|
|
747
|
-
"letterSpacing": 0.
|
|
737
|
+
"letterSpacing": 0.24,
|
|
748
738
|
"lineHeight": 24,
|
|
749
739
|
},
|
|
750
740
|
undefined,
|
|
751
741
|
]
|
|
752
742
|
}
|
|
753
|
-
themeFontSize="large"
|
|
754
|
-
themeFontWeight="semi-bold"
|
|
755
743
|
themeIntent="body"
|
|
756
744
|
themeTypeface="neutral"
|
|
745
|
+
themeVariant="regular-bold"
|
|
757
746
|
>
|
|
758
747
|
Accordion header 2
|
|
759
748
|
</Text>
|
|
@@ -818,17 +807,16 @@ exports[`Accordion renders correctly when variant is card 1`] = `
|
|
|
818
807
|
Object {
|
|
819
808
|
"color": "#001f23",
|
|
820
809
|
"fontFamily": "BeVietnamPro-Regular",
|
|
821
|
-
"fontSize":
|
|
822
|
-
"letterSpacing": 0.
|
|
823
|
-
"lineHeight":
|
|
810
|
+
"fontSize": 16,
|
|
811
|
+
"letterSpacing": 0.48,
|
|
812
|
+
"lineHeight": 24,
|
|
824
813
|
},
|
|
825
814
|
undefined,
|
|
826
815
|
]
|
|
827
816
|
}
|
|
828
|
-
themeFontSize="medium"
|
|
829
|
-
themeFontWeight="regular"
|
|
830
817
|
themeIntent="body"
|
|
831
818
|
themeTypeface="neutral"
|
|
819
|
+
themeVariant="regular"
|
|
832
820
|
>
|
|
833
821
|
Accordion content 2
|
|
834
822
|
</Text>
|
|
@@ -9,12 +9,12 @@ const AccordionExample = (props: Omit<AccordionProps<string>, 'items'>) => (
|
|
|
9
9
|
items={[
|
|
10
10
|
{
|
|
11
11
|
header: 'Accordion header 1',
|
|
12
|
-
content: <Typography.
|
|
12
|
+
content: <Typography.Body>Accordion content 1</Typography.Body>,
|
|
13
13
|
key: 'acc1',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
header: 'Accordion header 2',
|
|
17
|
-
content: <Typography.
|
|
17
|
+
content: <Typography.Body>Accordion content 2</Typography.Body>,
|
|
18
18
|
key: 'acc2',
|
|
19
19
|
},
|
|
20
20
|
]}
|