@hero-design/rn 8.97.0 → 8.98.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 +3 -3
- package/CHANGELOG.md +6 -0
- package/es/index.js +40 -10
- package/lib/index.js +40 -10
- package/package.json +1 -1
- package/src/components/Button/Button.tsx +16 -6
- package/src/components/Button/StyledButton.tsx +78 -29
- package/src/components/Button/__tests__/Button.spec.tsx +51 -36
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1873 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -1
- package/src/theme/components/button.ts +4 -1
- package/stats/8.98.0/rn-stats.html +4842 -0
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/StyledButton.d.ts +1 -0
- package/types/theme/components/button.d.ts +4 -1
|
@@ -643,6 +643,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
643
643
|
}
|
|
644
644
|
themeButtonVariant="text-primary"
|
|
645
645
|
themeIntent="body"
|
|
646
|
+
themeIsCompact={false}
|
|
646
647
|
themeIsPressed={false}
|
|
647
648
|
themeTypeface="neutral"
|
|
648
649
|
themeVariant="regular-bold"
|
|
@@ -1326,6 +1327,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
1326
1327
|
}
|
|
1327
1328
|
themeButtonVariant="text-primary"
|
|
1328
1329
|
themeIntent="body"
|
|
1330
|
+
themeIsCompact={false}
|
|
1329
1331
|
themeIsPressed={false}
|
|
1330
1332
|
themeTypeface="neutral"
|
|
1331
1333
|
themeVariant="regular-bold"
|
|
@@ -1516,6 +1516,7 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
1516
1516
|
}
|
|
1517
1517
|
themeButtonVariant="text-primary"
|
|
1518
1518
|
themeIntent="body"
|
|
1519
|
+
themeIsCompact={false}
|
|
1519
1520
|
themeIsPressed={false}
|
|
1520
1521
|
themeTypeface="neutral"
|
|
1521
1522
|
themeVariant="regular-bold"
|
|
@@ -3259,6 +3260,7 @@ exports[`rendering renders correct floating bottom sheet variant 1`] = `
|
|
|
3259
3260
|
}
|
|
3260
3261
|
themeButtonVariant="text-primary"
|
|
3261
3262
|
themeIntent="body"
|
|
3263
|
+
themeIsCompact={false}
|
|
3262
3264
|
themeIsPressed={false}
|
|
3263
3265
|
themeTypeface="neutral"
|
|
3264
3266
|
themeVariant="regular-bold"
|
|
@@ -5325,6 +5327,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
5325
5327
|
}
|
|
5326
5328
|
themeButtonVariant="text-primary"
|
|
5327
5329
|
themeIntent="body"
|
|
5330
|
+
themeIsCompact={false}
|
|
5328
5331
|
themeIsPressed={false}
|
|
5329
5332
|
themeTypeface="neutral"
|
|
5330
5333
|
themeVariant="regular-bold"
|
|
@@ -6983,6 +6986,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
6983
6986
|
}
|
|
6984
6987
|
themeButtonVariant="text-primary"
|
|
6985
6988
|
themeIntent="body"
|
|
6989
|
+
themeIsCompact={false}
|
|
6986
6990
|
themeIsPressed={false}
|
|
6987
6991
|
themeTypeface="neutral"
|
|
6988
6992
|
themeVariant="regular-bold"
|
|
@@ -8293,6 +8297,7 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
8293
8297
|
}
|
|
8294
8298
|
themeButtonVariant="text-primary"
|
|
8295
8299
|
themeIntent="body"
|
|
8300
|
+
themeIsCompact={false}
|
|
8296
8301
|
themeIsPressed={false}
|
|
8297
8302
|
themeTypeface="neutral"
|
|
8298
8303
|
themeVariant="regular-bold"
|
|
@@ -309,7 +309,10 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
309
309
|
"lineHeights": {
|
|
310
310
|
"buttonText": undefined,
|
|
311
311
|
"compactButtonText": undefined,
|
|
312
|
-
"titleOfTextVariant":
|
|
312
|
+
"titleOfTextVariant": {
|
|
313
|
+
"compact": 16,
|
|
314
|
+
"default": 22,
|
|
315
|
+
},
|
|
313
316
|
"utilityButtonText": undefined,
|
|
314
317
|
},
|
|
315
318
|
"radii": {
|
|
@@ -79,7 +79,10 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const lineHeights = {
|
|
82
|
-
titleOfTextVariant:
|
|
82
|
+
titleOfTextVariant: {
|
|
83
|
+
default: theme.lineHeights.medium,
|
|
84
|
+
compact: theme.lineHeights.small,
|
|
85
|
+
},
|
|
83
86
|
buttonText: Platform.select({
|
|
84
87
|
android: theme.lineHeights.medium + theme.space.xxsmall,
|
|
85
88
|
}),
|