@hoddy-ui/next 2.5.77 → 2.5.78
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -315,7 +315,7 @@ var Typography = (0, import_react.forwardRef)(
|
|
|
315
315
|
const config2 = getConfig();
|
|
316
316
|
const customFontSizes = config2.TYPOGRAPHY?.fontSizes;
|
|
317
317
|
const baseFontSize = customFontSizes?.[variant] ?? DEFAULT_FONT_SIZES[variant];
|
|
318
|
-
const f = fontSize || baseFontSize;
|
|
318
|
+
const f = fontSize || style?.fontSize || baseFontSize;
|
|
319
319
|
const lh = lineHeight || f * 1.2;
|
|
320
320
|
const styles = import_react_native.StyleSheet.create({
|
|
321
321
|
text: {
|
|
@@ -411,6 +411,7 @@ var FlashMessage = () => {
|
|
|
411
411
|
opacity: opacity.value
|
|
412
412
|
};
|
|
413
413
|
});
|
|
414
|
+
const textColor = type === "default" ? "#fff" : colors2[type].text;
|
|
414
415
|
const styles = import_react_native_size_matters2.ScaledSheet.create({
|
|
415
416
|
root: {
|
|
416
417
|
position: "absolute",
|
|
@@ -419,7 +420,7 @@ var FlashMessage = () => {
|
|
|
419
420
|
left: 0,
|
|
420
421
|
paddingTop: top + 10,
|
|
421
422
|
paddingHorizontal: "15@ms",
|
|
422
|
-
backgroundColor: colors2[type].main,
|
|
423
|
+
backgroundColor: type === "default" ? "#444" : colors2[type].main,
|
|
423
424
|
width: "100%",
|
|
424
425
|
borderBottomLeftRadius: 10,
|
|
425
426
|
borderBottomRightRadius: 10,
|
|
@@ -443,10 +444,10 @@ var FlashMessage = () => {
|
|
|
443
444
|
variant: "h6",
|
|
444
445
|
fontWeight: 600,
|
|
445
446
|
gutterBottom: 3,
|
|
446
|
-
|
|
447
|
+
color: textColor
|
|
447
448
|
},
|
|
448
449
|
message?.title
|
|
449
|
-
), /* @__PURE__ */ import_react2.default.createElement(Typography_default, {
|
|
450
|
+
), /* @__PURE__ */ import_react2.default.createElement(Typography_default, { color: textColor }, message?.message)))), message?.actions?.map((cur, i) => /* @__PURE__ */ import_react2.default.createElement(
|
|
450
451
|
import_react_native2.TouchableOpacity,
|
|
451
452
|
{
|
|
452
453
|
key: i,
|