@hero-design/rn 7.17.0 → 7.18.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 +2 -2
- package/es/index.js +3712 -3473
- package/lib/index.js +3716 -3475
- package/package.json +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/BottomNavigation/index.tsx +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/UtilityButton/{styled.tsx → StyledUtilityButton.tsx} +2 -2
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Button/UtilityButton/index.tsx +5 -1
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +69 -69
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -12
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +99 -0
- package/src/components/Drawer/DragableDrawer/__tests__/helpers.spec.ts +39 -0
- package/src/components/Drawer/DragableDrawer/__tests__/index.spec.tsx +24 -0
- package/src/components/Drawer/DragableDrawer/helpers.ts +43 -0
- package/src/components/Drawer/DragableDrawer/index.tsx +205 -0
- package/src/components/Drawer/StyledDrawer.tsx +70 -26
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Drawer/index.tsx +4 -1
- package/src/components/Empty/StyledEmpty.tsx +4 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +4 -3
- package/src/components/Empty/index.tsx +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/List/ListItem.tsx +1 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Progress/ProgressCircle.tsx +25 -22
- package/src/components/Progress/StyledProgressCircle.tsx +33 -28
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -121
- package/src/components/Select/MultiSelect/index.tsx +1 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -94
- package/src/components/Select/SingleSelect/index.tsx +2 -6
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Tabs/ScrollableTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +8 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +85 -6
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +87 -8
- package/src/components/Tabs/__tests__/index.spec.tsx +8 -0
- package/src/components/Tabs/index.tsx +8 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +9 -9
- package/src/components/TextInput/StyledTextInput.tsx +1 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +100 -87
- package/src/components/TextInput/index.tsx +2 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +6 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +13 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
- package/src/index.ts +9 -1
- package/src/theme/ThemeProvider.ts +19 -0
- package/src/theme/ThemeSwitcher.tsx +27 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +161 -149
- package/src/theme/components/alert.ts +3 -3
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/button.ts +9 -8
- package/src/theme/components/card.ts +4 -4
- package/src/theme/components/drawer.ts +14 -2
- package/src/theme/components/empty.ts +3 -2
- package/src/theme/components/list.ts +4 -4
- package/src/theme/components/pinInput.ts +2 -2
- package/src/theme/components/progress.ts +5 -5
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/getTheme.ts +129 -0
- package/src/theme/global/colors/swag.ts +54 -0
- package/src/theme/global/colors/types.ts +45 -0
- package/src/theme/global/colors/work.ts +14 -0
- package/src/theme/global/index.ts +6 -2
- package/src/theme/index.ts +16 -143
- package/src/utils/scale.ts +4 -1
- package/types/components/Button/Button.d.ts +1 -0
- package/types/components/Button/UtilityButton/{styled.d.ts → StyledUtilityButton.d.ts} +0 -0
- package/types/components/Drawer/DragableDrawer/__tests__/helpers.spec.d.ts +1 -0
- package/types/components/Drawer/DragableDrawer/__tests__/index.spec.d.ts +1 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
- package/types/components/Drawer/StyledDrawer.d.ts +34 -4
- package/types/components/Drawer/index.d.ts +4 -2
- package/types/components/Empty/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
- package/types/index.d.ts +2 -2
- package/types/theme/ThemeProvider.d.ts +12 -0
- package/types/theme/ThemeSwitcher.d.ts +7 -0
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/drawer.d.ts +9 -0
- package/types/theme/components/empty.d.ts +3 -2
- package/types/theme/components/progress.d.ts +1 -2
- package/types/theme/getTheme.d.ts +74 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/{colors.d.ts → colors/types.d.ts} +4 -3
- package/types/theme/global/colors/work.d.ts +3 -0
- package/types/theme/global/index.d.ts +7 -2
- package/types/theme/index.d.ts +7 -84
- package/src/theme/global/colors.ts +0 -50
|
@@ -273,7 +273,7 @@ const TextInput = ({
|
|
|
273
273
|
</StyledTextInputContainer>
|
|
274
274
|
<StyledErrorAndHelpTextContainer>
|
|
275
275
|
<StyledErrorAndMaxLengthContainer>
|
|
276
|
-
{error && (
|
|
276
|
+
{!!error && (
|
|
277
277
|
<StyledErrorContainer>
|
|
278
278
|
<Icon
|
|
279
279
|
testID="input-error-icon"
|
|
@@ -291,7 +291,7 @@ const TextInput = ({
|
|
|
291
291
|
</StyledMaxLengthMessage>
|
|
292
292
|
)}
|
|
293
293
|
</StyledErrorAndMaxLengthContainer>
|
|
294
|
-
{helpText && <StyledHelperText>{helpText}</StyledHelperText>}
|
|
294
|
+
{!!helpText && <StyledHelperText>{helpText}</StyledHelperText>}
|
|
295
295
|
</StyledErrorAndHelpTextContainer>
|
|
296
296
|
</StyledContainer>
|
|
297
297
|
);
|
|
@@ -49,7 +49,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
49
49
|
style={
|
|
50
50
|
Array [
|
|
51
51
|
Object {
|
|
52
|
-
"borderColor": "#
|
|
52
|
+
"borderColor": "#001f23",
|
|
53
53
|
"borderRadius": 8,
|
|
54
54
|
"borderWidth": 1,
|
|
55
55
|
"bottom": 0,
|
|
@@ -84,7 +84,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
84
84
|
style={
|
|
85
85
|
Array [
|
|
86
86
|
Object {
|
|
87
|
-
"color": "#
|
|
87
|
+
"color": "#001f23",
|
|
88
88
|
"fontFamily": "BeVietnamPro-Regular",
|
|
89
89
|
"fontSize": 12,
|
|
90
90
|
"letterSpacing": 0.36,
|
|
@@ -92,7 +92,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
92
92
|
},
|
|
93
93
|
Array [
|
|
94
94
|
Object {
|
|
95
|
-
"color": "#
|
|
95
|
+
"color": "#001f23",
|
|
96
96
|
},
|
|
97
97
|
undefined,
|
|
98
98
|
],
|
|
@@ -115,6 +115,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
115
115
|
"alignSelf": "stretch",
|
|
116
116
|
"flexDirection": "row",
|
|
117
117
|
"flexGrow": 2,
|
|
118
|
+
"flexShrink": 1,
|
|
118
119
|
},
|
|
119
120
|
undefined,
|
|
120
121
|
]
|
|
@@ -140,7 +141,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
140
141
|
"textAlignVertical": "center",
|
|
141
142
|
},
|
|
142
143
|
Object {
|
|
143
|
-
"color": "#
|
|
144
|
+
"color": "#001f23",
|
|
144
145
|
},
|
|
145
146
|
]
|
|
146
147
|
}
|
|
@@ -153,7 +154,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
153
154
|
style={
|
|
154
155
|
Array [
|
|
155
156
|
Object {
|
|
156
|
-
"color": "#
|
|
157
|
+
"color": "#001f23",
|
|
157
158
|
"fontSize": 16,
|
|
158
159
|
},
|
|
159
160
|
undefined,
|
|
@@ -49,7 +49,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
49
49
|
style={
|
|
50
50
|
Array [
|
|
51
51
|
Object {
|
|
52
|
-
"borderColor": "#
|
|
52
|
+
"borderColor": "#001f23",
|
|
53
53
|
"borderRadius": 8,
|
|
54
54
|
"borderWidth": 1,
|
|
55
55
|
"bottom": 0,
|
|
@@ -84,7 +84,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
84
84
|
style={
|
|
85
85
|
Array [
|
|
86
86
|
Object {
|
|
87
|
-
"color": "#
|
|
87
|
+
"color": "#001f23",
|
|
88
88
|
"fontFamily": "BeVietnamPro-Regular",
|
|
89
89
|
"fontSize": 12,
|
|
90
90
|
"letterSpacing": 0.36,
|
|
@@ -92,7 +92,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
92
92
|
},
|
|
93
93
|
Array [
|
|
94
94
|
Object {
|
|
95
|
-
"color": "#
|
|
95
|
+
"color": "#001f23",
|
|
96
96
|
},
|
|
97
97
|
undefined,
|
|
98
98
|
],
|
|
@@ -115,6 +115,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
115
115
|
"alignSelf": "stretch",
|
|
116
116
|
"flexDirection": "row",
|
|
117
117
|
"flexGrow": 2,
|
|
118
|
+
"flexShrink": 1,
|
|
118
119
|
},
|
|
119
120
|
undefined,
|
|
120
121
|
]
|
|
@@ -140,7 +141,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
140
141
|
"textAlignVertical": "center",
|
|
141
142
|
},
|
|
142
143
|
Object {
|
|
143
|
-
"color": "#
|
|
144
|
+
"color": "#001f23",
|
|
144
145
|
},
|
|
145
146
|
]
|
|
146
147
|
}
|
|
@@ -153,7 +154,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
153
154
|
style={
|
|
154
155
|
Array [
|
|
155
156
|
Object {
|
|
156
|
-
"color": "#
|
|
157
|
+
"color": "#001f23",
|
|
157
158
|
"fontSize": 16,
|
|
158
159
|
},
|
|
159
160
|
undefined,
|
|
@@ -266,7 +267,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
266
267
|
onStartShouldSetResponder={[Function]}
|
|
267
268
|
style={
|
|
268
269
|
Object {
|
|
269
|
-
"backgroundColor": "#
|
|
270
|
+
"backgroundColor": "#001f23",
|
|
270
271
|
"bottom": 0,
|
|
271
272
|
"left": 0,
|
|
272
273
|
"opacity": 0.48,
|
|
@@ -288,7 +289,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
288
289
|
"borderTopRightRadius": 16,
|
|
289
290
|
"elevation": 10,
|
|
290
291
|
"maxHeight": "94%",
|
|
291
|
-
"shadowColor": "#
|
|
292
|
+
"shadowColor": "#001f23",
|
|
292
293
|
"shadowOffset": Object {
|
|
293
294
|
"height": 3,
|
|
294
295
|
"width": 0,
|
|
@@ -334,7 +335,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
334
335
|
style={
|
|
335
336
|
Array [
|
|
336
337
|
Object {
|
|
337
|
-
"color": "#
|
|
338
|
+
"color": "#001f23",
|
|
338
339
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
339
340
|
"fontSize": 16,
|
|
340
341
|
"letterSpacing": 0.48,
|
|
@@ -388,7 +389,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
388
389
|
style={
|
|
389
390
|
Array [
|
|
390
391
|
Object {
|
|
391
|
-
"color": "#
|
|
392
|
+
"color": "#001f23",
|
|
392
393
|
"fontSize": 20,
|
|
393
394
|
},
|
|
394
395
|
undefined,
|
|
@@ -404,7 +405,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
404
405
|
style={
|
|
405
406
|
Array [
|
|
406
407
|
Object {
|
|
407
|
-
"borderBottomColor": "#
|
|
408
|
+
"borderBottomColor": "#e8e9ea",
|
|
408
409
|
"borderBottomWidth": 1,
|
|
409
410
|
"maxWidth": "100%",
|
|
410
411
|
},
|
|
@@ -440,7 +441,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
440
441
|
style={
|
|
441
442
|
Array [
|
|
442
443
|
Object {
|
|
443
|
-
"borderBottomColor": "#
|
|
444
|
+
"borderBottomColor": "#e8e9ea",
|
|
444
445
|
"borderBottomWidth": 1,
|
|
445
446
|
"maxWidth": "100%",
|
|
446
447
|
},
|
|
@@ -485,7 +486,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
485
486
|
style={
|
|
486
487
|
Array [
|
|
487
488
|
Object {
|
|
488
|
-
"color": "#
|
|
489
|
+
"color": "#8505a2",
|
|
489
490
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
490
491
|
"fontSize": 16,
|
|
491
492
|
"letterSpacing": 0.48,
|
|
@@ -26,7 +26,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
26
26
|
style={
|
|
27
27
|
Array [
|
|
28
28
|
Object {
|
|
29
|
-
"borderColor": "#
|
|
29
|
+
"borderColor": "#e8e9ea",
|
|
30
30
|
"borderRightWidth": 0,
|
|
31
31
|
"flex": 1,
|
|
32
32
|
"flexDirection": "row",
|
|
@@ -53,7 +53,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
53
53
|
style={
|
|
54
54
|
Array [
|
|
55
55
|
Object {
|
|
56
|
-
"color": "#
|
|
56
|
+
"color": "#001f23",
|
|
57
57
|
"fontSize": 20,
|
|
58
58
|
},
|
|
59
59
|
undefined,
|
|
@@ -78,7 +78,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
78
78
|
style={
|
|
79
79
|
Array [
|
|
80
80
|
Object {
|
|
81
|
-
"color": "#
|
|
81
|
+
"color": "#001f23",
|
|
82
82
|
"fontFamily": "BeVietnamPro-Regular",
|
|
83
83
|
"fontSize": 14,
|
|
84
84
|
"letterSpacing": 0.42,
|
|
@@ -104,7 +104,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
104
104
|
nativeID="animatedComponent"
|
|
105
105
|
style={
|
|
106
106
|
Object {
|
|
107
|
-
"backgroundColor": "#
|
|
107
|
+
"backgroundColor": "#f46363",
|
|
108
108
|
"borderRadius": 0,
|
|
109
109
|
"flexDirection": "row",
|
|
110
110
|
"minHeight": 48,
|
|
@@ -124,7 +124,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
124
124
|
style={
|
|
125
125
|
Array [
|
|
126
126
|
Object {
|
|
127
|
-
"borderColor": "#
|
|
127
|
+
"borderColor": "#e8e9ea",
|
|
128
128
|
"borderRightWidth": 1,
|
|
129
129
|
"flex": 1,
|
|
130
130
|
"flexDirection": "row",
|
|
@@ -151,7 +151,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
151
151
|
style={
|
|
152
152
|
Array [
|
|
153
153
|
Object {
|
|
154
|
-
"color": "#
|
|
154
|
+
"color": "#001f23",
|
|
155
155
|
"fontSize": 20,
|
|
156
156
|
},
|
|
157
157
|
undefined,
|
|
@@ -176,7 +176,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
176
176
|
style={
|
|
177
177
|
Array [
|
|
178
178
|
Object {
|
|
179
|
-
"color": "#
|
|
179
|
+
"color": "#001f23",
|
|
180
180
|
"fontFamily": "BeVietnamPro-Regular",
|
|
181
181
|
"fontSize": 14,
|
|
182
182
|
"letterSpacing": 0.42,
|
|
@@ -218,7 +218,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Array [
|
|
220
220
|
Object {
|
|
221
|
-
"color": "#
|
|
221
|
+
"color": "#001f23",
|
|
222
222
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
223
223
|
"fontSize": 14,
|
|
224
224
|
"letterSpacing": 0.42,
|
|
@@ -263,7 +263,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
263
263
|
style={
|
|
264
264
|
Array [
|
|
265
265
|
Object {
|
|
266
|
-
"borderColor": "#
|
|
266
|
+
"borderColor": "#e8e9ea",
|
|
267
267
|
"borderRightWidth": 1,
|
|
268
268
|
"flex": 1,
|
|
269
269
|
"flexDirection": "row",
|
|
@@ -290,7 +290,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
290
290
|
style={
|
|
291
291
|
Array [
|
|
292
292
|
Object {
|
|
293
|
-
"color": "#
|
|
293
|
+
"color": "#001f23",
|
|
294
294
|
"fontSize": 20,
|
|
295
295
|
},
|
|
296
296
|
undefined,
|
|
@@ -315,7 +315,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
315
315
|
style={
|
|
316
316
|
Array [
|
|
317
317
|
Object {
|
|
318
|
-
"color": "#
|
|
318
|
+
"color": "#001f23",
|
|
319
319
|
"fontFamily": "BeVietnamPro-Regular",
|
|
320
320
|
"fontSize": 14,
|
|
321
321
|
"letterSpacing": 0.42,
|
|
@@ -357,7 +357,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
357
357
|
style={
|
|
358
358
|
Array [
|
|
359
359
|
Object {
|
|
360
|
-
"color": "#
|
|
360
|
+
"color": "#001f23",
|
|
361
361
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
362
362
|
"fontSize": 14,
|
|
363
363
|
"letterSpacing": 0.42,
|
|
@@ -382,7 +382,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
382
382
|
nativeID="animatedComponent"
|
|
383
383
|
style={
|
|
384
384
|
Object {
|
|
385
|
-
"backgroundColor": "#
|
|
385
|
+
"backgroundColor": "#5ace7d",
|
|
386
386
|
"borderRadius": 0,
|
|
387
387
|
"flexDirection": "row",
|
|
388
388
|
"minHeight": 48,
|
|
@@ -402,7 +402,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
402
402
|
style={
|
|
403
403
|
Array [
|
|
404
404
|
Object {
|
|
405
|
-
"borderColor": "#
|
|
405
|
+
"borderColor": "#e8e9ea",
|
|
406
406
|
"borderRightWidth": 1,
|
|
407
407
|
"flex": 1,
|
|
408
408
|
"flexDirection": "row",
|
|
@@ -429,7 +429,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
429
429
|
style={
|
|
430
430
|
Array [
|
|
431
431
|
Object {
|
|
432
|
-
"color": "#
|
|
432
|
+
"color": "#001f23",
|
|
433
433
|
"fontSize": 20,
|
|
434
434
|
},
|
|
435
435
|
undefined,
|
|
@@ -454,7 +454,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
454
454
|
style={
|
|
455
455
|
Array [
|
|
456
456
|
Object {
|
|
457
|
-
"color": "#
|
|
457
|
+
"color": "#001f23",
|
|
458
458
|
"fontFamily": "BeVietnamPro-Regular",
|
|
459
459
|
"fontSize": 14,
|
|
460
460
|
"letterSpacing": 0.42,
|
|
@@ -496,7 +496,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
496
496
|
style={
|
|
497
497
|
Array [
|
|
498
498
|
Object {
|
|
499
|
-
"color": "#
|
|
499
|
+
"color": "#001f23",
|
|
500
500
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
501
501
|
"fontSize": 14,
|
|
502
502
|
"letterSpacing": 0.42,
|
|
@@ -521,7 +521,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
521
521
|
nativeID="animatedComponent"
|
|
522
522
|
style={
|
|
523
523
|
Object {
|
|
524
|
-
"backgroundColor": "#
|
|
524
|
+
"backgroundColor": "#ffbe71",
|
|
525
525
|
"borderRadius": 0,
|
|
526
526
|
"flexDirection": "row",
|
|
527
527
|
"minHeight": 48,
|
|
@@ -541,7 +541,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
541
541
|
style={
|
|
542
542
|
Array [
|
|
543
543
|
Object {
|
|
544
|
-
"borderColor": "#
|
|
544
|
+
"borderColor": "#e8e9ea",
|
|
545
545
|
"borderRightWidth": 1,
|
|
546
546
|
"flex": 1,
|
|
547
547
|
"flexDirection": "row",
|
|
@@ -568,7 +568,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
568
568
|
style={
|
|
569
569
|
Array [
|
|
570
570
|
Object {
|
|
571
|
-
"color": "#
|
|
571
|
+
"color": "#001f23",
|
|
572
572
|
"fontSize": 20,
|
|
573
573
|
},
|
|
574
574
|
undefined,
|
|
@@ -593,7 +593,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
593
593
|
style={
|
|
594
594
|
Array [
|
|
595
595
|
Object {
|
|
596
|
-
"color": "#
|
|
596
|
+
"color": "#001f23",
|
|
597
597
|
"fontFamily": "BeVietnamPro-Regular",
|
|
598
598
|
"fontSize": 14,
|
|
599
599
|
"letterSpacing": 0.42,
|
|
@@ -635,7 +635,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
635
635
|
style={
|
|
636
636
|
Array [
|
|
637
637
|
Object {
|
|
638
|
-
"color": "#
|
|
638
|
+
"color": "#001f23",
|
|
639
639
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
640
640
|
"fontSize": 14,
|
|
641
641
|
"letterSpacing": 0.42,
|
|
@@ -41,7 +41,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
41
41
|
style={
|
|
42
42
|
Array [
|
|
43
43
|
Object {
|
|
44
|
-
"color": "#
|
|
44
|
+
"color": "#8505a2",
|
|
45
45
|
"fontSize": 24,
|
|
46
46
|
},
|
|
47
47
|
undefined,
|
|
@@ -55,7 +55,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
55
55
|
style={
|
|
56
56
|
Array [
|
|
57
57
|
Object {
|
|
58
|
-
"color": "#
|
|
58
|
+
"color": "#8505a2",
|
|
59
59
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
60
60
|
"fontSize": 12,
|
|
61
61
|
"letterSpacing": 0.36,
|
|
@@ -97,7 +97,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
97
97
|
style={
|
|
98
98
|
Array [
|
|
99
99
|
Object {
|
|
100
|
-
"color": "#
|
|
100
|
+
"color": "#8505a2",
|
|
101
101
|
"fontSize": 24,
|
|
102
102
|
},
|
|
103
103
|
undefined,
|
|
@@ -111,7 +111,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
111
111
|
style={
|
|
112
112
|
Array [
|
|
113
113
|
Object {
|
|
114
|
-
"color": "#
|
|
114
|
+
"color": "#8505a2",
|
|
115
115
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
116
116
|
"fontSize": 12,
|
|
117
117
|
"letterSpacing": 0.36,
|
|
@@ -171,7 +171,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
171
171
|
style={
|
|
172
172
|
Array [
|
|
173
173
|
Object {
|
|
174
|
-
"color": "#
|
|
174
|
+
"color": "#8505a2",
|
|
175
175
|
"fontSize": 24,
|
|
176
176
|
},
|
|
177
177
|
undefined,
|
|
@@ -185,7 +185,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
185
185
|
style={
|
|
186
186
|
Array [
|
|
187
187
|
Object {
|
|
188
|
-
"color": "#
|
|
188
|
+
"color": "#8505a2",
|
|
189
189
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
190
190
|
"fontSize": 12,
|
|
191
191
|
"letterSpacing": 0.36,
|
|
@@ -227,7 +227,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
227
227
|
style={
|
|
228
228
|
Array [
|
|
229
229
|
Object {
|
|
230
|
-
"color": "#
|
|
230
|
+
"color": "#8505a2",
|
|
231
231
|
"fontSize": 24,
|
|
232
232
|
},
|
|
233
233
|
undefined,
|
|
@@ -241,7 +241,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
241
241
|
style={
|
|
242
242
|
Array [
|
|
243
243
|
Object {
|
|
244
|
-
"color": "#
|
|
244
|
+
"color": "#8505a2",
|
|
245
245
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
246
246
|
"fontSize": 12,
|
|
247
247
|
"letterSpacing": 0.36,
|
|
@@ -301,7 +301,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
301
301
|
style={
|
|
302
302
|
Array [
|
|
303
303
|
Object {
|
|
304
|
-
"color": "#
|
|
304
|
+
"color": "#8505a2",
|
|
305
305
|
"fontSize": 24,
|
|
306
306
|
},
|
|
307
307
|
undefined,
|
|
@@ -315,7 +315,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
315
315
|
style={
|
|
316
316
|
Array [
|
|
317
317
|
Object {
|
|
318
|
-
"color": "#
|
|
318
|
+
"color": "#8505a2",
|
|
319
319
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
320
320
|
"fontSize": 12,
|
|
321
321
|
"letterSpacing": 0.36,
|
|
@@ -357,7 +357,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
357
357
|
style={
|
|
358
358
|
Array [
|
|
359
359
|
Object {
|
|
360
|
-
"color": "#
|
|
360
|
+
"color": "#8505a2",
|
|
361
361
|
"fontSize": 24,
|
|
362
362
|
},
|
|
363
363
|
undefined,
|
|
@@ -371,7 +371,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
371
371
|
style={
|
|
372
372
|
Array [
|
|
373
373
|
Object {
|
|
374
|
-
"color": "#
|
|
374
|
+
"color": "#8505a2",
|
|
375
375
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
376
376
|
"fontSize": 12,
|
|
377
377
|
"letterSpacing": 0.36,
|
|
@@ -27,7 +27,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
27
27
|
style={
|
|
28
28
|
Array [
|
|
29
29
|
Object {
|
|
30
|
-
"color": "#
|
|
30
|
+
"color": "#808f91",
|
|
31
31
|
"fontSize": 24,
|
|
32
32
|
},
|
|
33
33
|
undefined,
|
|
@@ -41,7 +41,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
41
41
|
style={
|
|
42
42
|
Array [
|
|
43
43
|
Object {
|
|
44
|
-
"color": "#
|
|
44
|
+
"color": "#808f91",
|
|
45
45
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
46
46
|
"fontSize": 12,
|
|
47
47
|
"letterSpacing": 0.36,
|
|
@@ -204,7 +204,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
204
204
|
style={
|
|
205
205
|
Array [
|
|
206
206
|
Object {
|
|
207
|
-
"color": "#
|
|
207
|
+
"color": "#8505a2",
|
|
208
208
|
"fontSize": 24,
|
|
209
209
|
},
|
|
210
210
|
undefined,
|
|
@@ -218,7 +218,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Array [
|
|
220
220
|
Object {
|
|
221
|
-
"color": "#
|
|
221
|
+
"color": "#8505a2",
|
|
222
222
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
223
223
|
"fontSize": 12,
|
|
224
224
|
"letterSpacing": 0.36,
|
|
@@ -263,7 +263,7 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
263
263
|
style={
|
|
264
264
|
Array [
|
|
265
265
|
Object {
|
|
266
|
-
"color": "#
|
|
266
|
+
"color": "#5ace7d",
|
|
267
267
|
"fontSize": 24,
|
|
268
268
|
},
|
|
269
269
|
undefined,
|
|
@@ -277,7 +277,7 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
277
277
|
style={
|
|
278
278
|
Array [
|
|
279
279
|
Object {
|
|
280
|
-
"color": "#
|
|
280
|
+
"color": "#5ace7d",
|
|
281
281
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
282
282
|
"fontSize": 12,
|
|
283
283
|
"letterSpacing": 0.36,
|
|
@@ -322,7 +322,7 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
|
322
322
|
style={
|
|
323
323
|
Array [
|
|
324
324
|
Object {
|
|
325
|
-
"color": "#
|
|
325
|
+
"color": "#ffbe71",
|
|
326
326
|
"fontSize": 24,
|
|
327
327
|
},
|
|
328
328
|
undefined,
|
|
@@ -336,7 +336,7 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
|
336
336
|
style={
|
|
337
337
|
Array [
|
|
338
338
|
Object {
|
|
339
|
-
"color": "#
|
|
339
|
+
"color": "#ffbe71",
|
|
340
340
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
341
341
|
"fontSize": 12,
|
|
342
342
|
"letterSpacing": 0.36,
|
|
@@ -5,7 +5,7 @@ exports[`StyledText has body intent style 1`] = `
|
|
|
5
5
|
style={
|
|
6
6
|
Array [
|
|
7
7
|
Object {
|
|
8
|
-
"color": "#
|
|
8
|
+
"color": "#001f23",
|
|
9
9
|
"fontFamily": "BeVietnamPro-Regular",
|
|
10
10
|
"fontSize": 14,
|
|
11
11
|
"letterSpacing": 0.42,
|
|
@@ -93,7 +93,7 @@ exports[`StyledText has large fontSize style 1`] = `
|
|
|
93
93
|
style={
|
|
94
94
|
Array [
|
|
95
95
|
Object {
|
|
96
|
-
"color": "#
|
|
96
|
+
"color": "#001f23",
|
|
97
97
|
"fontFamily": "BeVietnamPro-Regular",
|
|
98
98
|
"fontSize": 16,
|
|
99
99
|
"letterSpacing": 0.48,
|
|
@@ -115,7 +115,7 @@ exports[`StyledText has light fontWeight style 1`] = `
|
|
|
115
115
|
style={
|
|
116
116
|
Array [
|
|
117
117
|
Object {
|
|
118
|
-
"color": "#
|
|
118
|
+
"color": "#001f23",
|
|
119
119
|
"fontFamily": "BeVietnamPro-Light",
|
|
120
120
|
"fontSize": 14,
|
|
121
121
|
"letterSpacing": 0.42,
|
|
@@ -137,7 +137,7 @@ exports[`StyledText has medium fontSize style 1`] = `
|
|
|
137
137
|
style={
|
|
138
138
|
Array [
|
|
139
139
|
Object {
|
|
140
|
-
"color": "#
|
|
140
|
+
"color": "#001f23",
|
|
141
141
|
"fontFamily": "BeVietnamPro-Regular",
|
|
142
142
|
"fontSize": 14,
|
|
143
143
|
"letterSpacing": 0.42,
|
|
@@ -159,7 +159,7 @@ exports[`StyledText has primary intent style 1`] = `
|
|
|
159
159
|
style={
|
|
160
160
|
Array [
|
|
161
161
|
Object {
|
|
162
|
-
"color": "#
|
|
162
|
+
"color": "#8505a2",
|
|
163
163
|
"fontFamily": "BeVietnamPro-Regular",
|
|
164
164
|
"fontSize": 14,
|
|
165
165
|
"letterSpacing": 0.42,
|
|
@@ -181,7 +181,7 @@ exports[`StyledText has regular fontWeight style 1`] = `
|
|
|
181
181
|
style={
|
|
182
182
|
Array [
|
|
183
183
|
Object {
|
|
184
|
-
"color": "#
|
|
184
|
+
"color": "#001f23",
|
|
185
185
|
"fontFamily": "BeVietnamPro-Regular",
|
|
186
186
|
"fontSize": 14,
|
|
187
187
|
"letterSpacing": 0.42,
|
|
@@ -203,7 +203,7 @@ exports[`StyledText has semi-bold fontWeight style 1`] = `
|
|
|
203
203
|
style={
|
|
204
204
|
Array [
|
|
205
205
|
Object {
|
|
206
|
-
"color": "#
|
|
206
|
+
"color": "#001f23",
|
|
207
207
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
208
208
|
"fontSize": 14,
|
|
209
209
|
"letterSpacing": 0.42,
|
|
@@ -225,7 +225,7 @@ exports[`StyledText has small fontSize style 1`] = `
|
|
|
225
225
|
style={
|
|
226
226
|
Array [
|
|
227
227
|
Object {
|
|
228
|
-
"color": "#
|
|
228
|
+
"color": "#001f23",
|
|
229
229
|
"fontFamily": "BeVietnamPro-Regular",
|
|
230
230
|
"fontSize": 12,
|
|
231
231
|
"letterSpacing": 0.36,
|
|
@@ -247,7 +247,7 @@ exports[`StyledText has subdued intent style 1`] = `
|
|
|
247
247
|
style={
|
|
248
248
|
Array [
|
|
249
249
|
Object {
|
|
250
|
-
"color": "#
|
|
250
|
+
"color": "#808f91",
|
|
251
251
|
"fontFamily": "BeVietnamPro-Regular",
|
|
252
252
|
"fontSize": 14,
|
|
253
253
|
"letterSpacing": 0.42,
|
|
@@ -269,7 +269,7 @@ exports[`StyledText has success intent style 1`] = `
|
|
|
269
269
|
style={
|
|
270
270
|
Array [
|
|
271
271
|
Object {
|
|
272
|
-
"color": "#
|
|
272
|
+
"color": "#5ace7d",
|
|
273
273
|
"fontFamily": "BeVietnamPro-Regular",
|
|
274
274
|
"fontSize": 14,
|
|
275
275
|
"letterSpacing": 0.42,
|
|
@@ -291,7 +291,7 @@ exports[`StyledText has warning intent style 1`] = `
|
|
|
291
291
|
style={
|
|
292
292
|
Array [
|
|
293
293
|
Object {
|
|
294
|
-
"color": "#
|
|
294
|
+
"color": "#ffbe71",
|
|
295
295
|
"fontFamily": "BeVietnamPro-Regular",
|
|
296
296
|
"fontSize": 14,
|
|
297
297
|
"letterSpacing": 0.42,
|
|
@@ -313,7 +313,7 @@ exports[`StyledText has xlarge fontSize style 1`] = `
|
|
|
313
313
|
style={
|
|
314
314
|
Array [
|
|
315
315
|
Object {
|
|
316
|
-
"color": "#
|
|
316
|
+
"color": "#001f23",
|
|
317
317
|
"fontFamily": "BeVietnamPro-Regular",
|
|
318
318
|
"fontSize": 18,
|
|
319
319
|
"letterSpacing": 0.54,
|
|
@@ -335,7 +335,7 @@ exports[`StyledText has xxxxxlarge fontSize style 1`] = `
|
|
|
335
335
|
style={
|
|
336
336
|
Array [
|
|
337
337
|
Object {
|
|
338
|
-
"color": "#
|
|
338
|
+
"color": "#001f23",
|
|
339
339
|
"fontFamily": "BeVietnamPro-Regular",
|
|
340
340
|
"fontSize": 32,
|
|
341
341
|
"letterSpacing": 0.96,
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import theme, {
|
|
1
|
+
import theme, {
|
|
2
|
+
getTheme,
|
|
3
|
+
ThemeProvider,
|
|
4
|
+
useTheme,
|
|
5
|
+
swagSystemPalette,
|
|
6
|
+
workSystemPalette,
|
|
7
|
+
} from './theme';
|
|
2
8
|
import { scale } from './utils/scale';
|
|
3
9
|
|
|
4
10
|
import Accordion from './components/Accordion';
|
|
@@ -42,6 +48,8 @@ export {
|
|
|
42
48
|
useTheme,
|
|
43
49
|
scale,
|
|
44
50
|
ThemeProvider,
|
|
51
|
+
swagSystemPalette,
|
|
52
|
+
workSystemPalette,
|
|
45
53
|
Accordion,
|
|
46
54
|
Alert,
|
|
47
55
|
Avatar,
|