@dloizides/ui-layout 1.27.0 → 1.28.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/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -201,6 +201,8 @@ var styles4 = reactNative.StyleSheet.create({
|
|
|
201
201
|
borderWidth: BORDER_WIDTH
|
|
202
202
|
},
|
|
203
203
|
segment: {
|
|
204
|
+
minHeight: MIN_TARGET_PX,
|
|
205
|
+
justifyContent: "center",
|
|
204
206
|
paddingHorizontal: SEGMENT_PAD_H,
|
|
205
207
|
paddingVertical: SEGMENT_PAD_V,
|
|
206
208
|
borderRadius: SEGMENT_RADIUS
|
|
@@ -1136,9 +1138,16 @@ var styles9 = reactNative.StyleSheet.create({
|
|
|
1136
1138
|
},
|
|
1137
1139
|
title: { fontSize: TITLE_FONT_SIZE, fontWeight: "700", marginBottom: TITLE_MARGIN_BOTTOM },
|
|
1138
1140
|
message: { fontSize: MESSAGE_FONT_SIZE, marginBottom: MESSAGE_MARGIN_BOTTOM },
|
|
1139
|
-
cta: {
|
|
1141
|
+
cta: {
|
|
1142
|
+
minHeight: MIN_TARGET_PX,
|
|
1143
|
+
paddingVertical: BUTTON_PADDING_V,
|
|
1144
|
+
borderRadius: BUTTON_BORDER_RADIUS,
|
|
1145
|
+
alignItems: "center",
|
|
1146
|
+
justifyContent: "center",
|
|
1147
|
+
marginBottom: CTA_MARGIN_BOTTOM
|
|
1148
|
+
},
|
|
1140
1149
|
ctaText: { fontSize: BUTTON_FONT_SIZE, fontWeight: "700" },
|
|
1141
|
-
dismiss: { alignItems: "center", paddingVertical: BUTTON_PADDING_V },
|
|
1150
|
+
dismiss: { minHeight: MIN_TARGET_PX, alignItems: "center", justifyContent: "center", paddingVertical: BUTTON_PADDING_V },
|
|
1142
1151
|
dismissText: { fontSize: DISMISS_FONT_SIZE }
|
|
1143
1152
|
});
|
|
1144
1153
|
var UpgradePrompt = ({
|
|
@@ -1568,6 +1577,8 @@ var styles14 = reactNative.StyleSheet.create({
|
|
|
1568
1577
|
flexDirection: "row",
|
|
1569
1578
|
alignItems: "center",
|
|
1570
1579
|
justifyContent: "space-between",
|
|
1580
|
+
// Hit box floor on the pressable header box itself (mobile-first.md); padding alone gave 35px.
|
|
1581
|
+
minHeight: MIN_TARGET_PX,
|
|
1571
1582
|
paddingHorizontal: HEADER_PADDING_H,
|
|
1572
1583
|
paddingVertical: HEADER_PADDING_V
|
|
1573
1584
|
},
|
|
@@ -1945,7 +1956,13 @@ var styles16 = reactNative.StyleSheet.create({
|
|
|
1945
1956
|
fontWeight: "600",
|
|
1946
1957
|
paddingHorizontal: ACTION_PADDING_H,
|
|
1947
1958
|
paddingVertical: ACTION_PADDING_V,
|
|
1948
|
-
borderRadius: ACTION_RADIUS
|
|
1959
|
+
borderRadius: ACTION_RADIUS,
|
|
1960
|
+
// 44x44 hit box on the rendered box (it measured 40x20). `lineHeight` = the floor keeps the
|
|
1961
|
+
// label vertically centred without wrapping the Text in another element.
|
|
1962
|
+
minHeight: MIN_TARGET_PX,
|
|
1963
|
+
minWidth: MIN_TARGET_PX,
|
|
1964
|
+
lineHeight: MIN_TARGET_PX,
|
|
1965
|
+
textAlign: "center"
|
|
1949
1966
|
}
|
|
1950
1967
|
});
|
|
1951
1968
|
var TONE_STEP = "500";
|