@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.mjs
CHANGED
|
@@ -195,6 +195,8 @@ var styles4 = StyleSheet.create({
|
|
|
195
195
|
borderWidth: BORDER_WIDTH
|
|
196
196
|
},
|
|
197
197
|
segment: {
|
|
198
|
+
minHeight: MIN_TARGET_PX,
|
|
199
|
+
justifyContent: "center",
|
|
198
200
|
paddingHorizontal: SEGMENT_PAD_H,
|
|
199
201
|
paddingVertical: SEGMENT_PAD_V,
|
|
200
202
|
borderRadius: SEGMENT_RADIUS
|
|
@@ -1130,9 +1132,16 @@ var styles9 = StyleSheet.create({
|
|
|
1130
1132
|
},
|
|
1131
1133
|
title: { fontSize: TITLE_FONT_SIZE, fontWeight: "700", marginBottom: TITLE_MARGIN_BOTTOM },
|
|
1132
1134
|
message: { fontSize: MESSAGE_FONT_SIZE, marginBottom: MESSAGE_MARGIN_BOTTOM },
|
|
1133
|
-
cta: {
|
|
1135
|
+
cta: {
|
|
1136
|
+
minHeight: MIN_TARGET_PX,
|
|
1137
|
+
paddingVertical: BUTTON_PADDING_V,
|
|
1138
|
+
borderRadius: BUTTON_BORDER_RADIUS,
|
|
1139
|
+
alignItems: "center",
|
|
1140
|
+
justifyContent: "center",
|
|
1141
|
+
marginBottom: CTA_MARGIN_BOTTOM
|
|
1142
|
+
},
|
|
1134
1143
|
ctaText: { fontSize: BUTTON_FONT_SIZE, fontWeight: "700" },
|
|
1135
|
-
dismiss: { alignItems: "center", paddingVertical: BUTTON_PADDING_V },
|
|
1144
|
+
dismiss: { minHeight: MIN_TARGET_PX, alignItems: "center", justifyContent: "center", paddingVertical: BUTTON_PADDING_V },
|
|
1136
1145
|
dismissText: { fontSize: DISMISS_FONT_SIZE }
|
|
1137
1146
|
});
|
|
1138
1147
|
var UpgradePrompt = ({
|
|
@@ -1562,6 +1571,8 @@ var styles14 = StyleSheet.create({
|
|
|
1562
1571
|
flexDirection: "row",
|
|
1563
1572
|
alignItems: "center",
|
|
1564
1573
|
justifyContent: "space-between",
|
|
1574
|
+
// Hit box floor on the pressable header box itself (mobile-first.md); padding alone gave 35px.
|
|
1575
|
+
minHeight: MIN_TARGET_PX,
|
|
1565
1576
|
paddingHorizontal: HEADER_PADDING_H,
|
|
1566
1577
|
paddingVertical: HEADER_PADDING_V
|
|
1567
1578
|
},
|
|
@@ -1939,7 +1950,13 @@ var styles16 = StyleSheet.create({
|
|
|
1939
1950
|
fontWeight: "600",
|
|
1940
1951
|
paddingHorizontal: ACTION_PADDING_H,
|
|
1941
1952
|
paddingVertical: ACTION_PADDING_V,
|
|
1942
|
-
borderRadius: ACTION_RADIUS
|
|
1953
|
+
borderRadius: ACTION_RADIUS,
|
|
1954
|
+
// 44x44 hit box on the rendered box (it measured 40x20). `lineHeight` = the floor keeps the
|
|
1955
|
+
// label vertically centred without wrapping the Text in another element.
|
|
1956
|
+
minHeight: MIN_TARGET_PX,
|
|
1957
|
+
minWidth: MIN_TARGET_PX,
|
|
1958
|
+
lineHeight: MIN_TARGET_PX,
|
|
1959
|
+
textAlign: "center"
|
|
1943
1960
|
}
|
|
1944
1961
|
});
|
|
1945
1962
|
var TONE_STEP = "500";
|