@hero-design/rn 8.85.0 → 8.86.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/CHANGELOG.md +6 -0
- package/es/index.js +108 -27
- package/lib/index.js +108 -27
- package/package.json +1 -1
- package/src/components/Button/Button.tsx +22 -6
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +8 -2
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +139 -1
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +408 -3
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/index.tsx +4 -1
- package/src/components/Button/StyledButton.tsx +95 -5
- package/src/components/Button/__tests__/Button.spec.tsx +12 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +10 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1240 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +630 -40
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -0
- package/src/theme/components/button.ts +5 -0
- package/stats/8.86.0/rn-stats.html +4842 -0
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +3 -3
- package/types/theme/components/button.d.ts +5 -0
|
@@ -16,12 +16,15 @@ describe('StyledButtonContainer', () => {
|
|
|
16
16
|
${'filled-primary'}
|
|
17
17
|
${'filled-secondary'}
|
|
18
18
|
${'filled-danger'}
|
|
19
|
+
${'filled-white'}
|
|
19
20
|
${'outlined-primary'}
|
|
20
21
|
${'outlined-secondary'}
|
|
21
22
|
${'outlined-danger'}
|
|
23
|
+
${'outlined-white'}
|
|
22
24
|
${'text-primary'}
|
|
23
25
|
${'text-secondary'}
|
|
24
26
|
${'text-danger'}
|
|
27
|
+
${'text-white'}
|
|
25
28
|
`('has $themeVariant style', ({ themeVariant }): void => {
|
|
26
29
|
const { toJSON } = renderWithTheme(
|
|
27
30
|
<StyledButtonContainer themeButtonVariant={themeVariant}>
|
|
@@ -67,12 +70,15 @@ describe('StyledButtonText', () => {
|
|
|
67
70
|
${'filled-primary'}
|
|
68
71
|
${'filled-secondary'}
|
|
69
72
|
${'filled-danger'}
|
|
73
|
+
${'filled-white'}
|
|
70
74
|
${'outlined-primary'}
|
|
71
75
|
${'outlined-secondary'}
|
|
72
76
|
${'outlined-danger'}
|
|
77
|
+
${'outlined-white'}
|
|
73
78
|
${'text-primary'}
|
|
74
79
|
${'text-secondary'}
|
|
75
80
|
${'text-danger'}
|
|
81
|
+
${'text-white'}
|
|
76
82
|
`('has $themeVariant style', ({ themeVariant }) => {
|
|
77
83
|
const { toJSON } = renderWithTheme(
|
|
78
84
|
<StyledButtonText themeButtonVariant={themeVariant}>
|
|
@@ -130,15 +136,19 @@ describe('StyledButtonIcon', () => {
|
|
|
130
136
|
${'filled-primary'} | ${undefined}
|
|
131
137
|
${'filled-secondary'} | ${undefined}
|
|
132
138
|
${'filled-danger'} | ${undefined}
|
|
139
|
+
${'filled-white'} | ${undefined}
|
|
133
140
|
${'outlined-primary'} | ${undefined}
|
|
134
141
|
${'outlined-secondary'} | ${undefined}
|
|
135
142
|
${'outlined-danger'} | ${undefined}
|
|
143
|
+
${'outlined-white'} | ${undefined}
|
|
136
144
|
${'text-primary'} | ${false}
|
|
137
145
|
${'text-secondary'} | ${false}
|
|
138
146
|
${'text-danger'} | ${false}
|
|
147
|
+
${'text-white'} | ${false}
|
|
139
148
|
${'text-primary'} | ${true}
|
|
140
149
|
${'text-secondary'} | ${true}
|
|
141
150
|
${'text-danger'} | ${true}
|
|
151
|
+
${'text-white'} | ${true}
|
|
142
152
|
`('has $themeVariant style', ({ themeVariant, themeIsPressed }) => {
|
|
143
153
|
const { toJSON } = renderWithTheme(
|
|
144
154
|
<StyledButtonIcon
|