@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
327 lines (326 loc) • 14.3 kB
JavaScript
export const SHEET_PAYWALL = {
id: "sheet_paywall",
default_locale: "en_US",
components_localizations: {
en_US: {
"5GWqi3MXpt": "Sheet",
E6CK5Xd1cE: "Sheet button",
},
},
components_config: {
base: {
background: {
type: "color",
value: {
light: {
type: "hex",
value: "#ffffffff",
},
},
},
stack: {
background: null,
background_color: null,
badge: null,
border: null,
components: [
{
action: {
destination: "sheet",
sheet: {
background: null,
background_blur: true,
id: "ByNqcHZCBa",
name: "",
position: "bottom",
size: {
height: {
type: "relative",
value: 0.5,
},
width: {
type: "fill",
value: null,
},
},
stack: {
background: {
type: "color",
value: {
light: {
type: "hex",
value: "#ddffddff",
},
},
},
background_color: null,
badge: null,
border: {
color: {
light: {
type: "hex",
value: "#00aa00ff",
},
},
width: 3,
},
components: [
{
background_color: null,
color: {
light: {
type: "hex",
value: "#000000",
},
},
font_name: null,
font_size: 32,
font_weight: "regular",
font_weight_int: 400,
horizontal_alignment: "leading",
id: "_SFE-Jfx2H",
margin: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
name: "",
padding: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
size: {
height: {
type: "fit",
value: null,
},
width: {
type: "fit",
value: null,
},
},
text_lid: "5GWqi3MXpt",
type: "text",
},
],
dimension: {
alignment: "center",
distribution: "center",
type: "vertical",
},
id: "vtyGD4yg8U",
margin: {
bottom: 0,
leading: 32,
top: 0,
trailing: 32,
},
name: "Sheet Content",
padding: {
bottom: 32,
leading: 32,
top: 32,
trailing: 32,
},
shadow: {
color: {
light: {
type: "hex",
value: "#ff000040",
},
},
radius: 16,
x: 0,
y: -8,
},
shape: {
corners: {
bottom_leading: 0,
bottom_trailing: 0,
top_leading: 32,
top_trailing: 32,
},
type: "rectangle",
},
size: {
height: {
type: "fill",
value: null,
},
width: {
type: "fill",
value: null,
},
},
spacing: 0,
type: "stack",
},
type: "sheet",
},
type: "navigate_to",
},
id: "dTnaiaphr5",
name: "",
stack: {
background: {
type: "color",
value: {
light: {
type: "hex",
value: "#ddffddff",
},
},
},
background_color: null,
badge: null,
border: {
color: {
light: {
type: "hex",
value: "#00aa00ff",
},
},
width: 1,
},
components: [
{
background_color: null,
color: {
light: {
type: "hex",
value: "#000000",
},
},
font_name: null,
font_size: 14,
font_weight: "regular",
font_weight_int: 400,
horizontal_alignment: "leading",
id: "o7XZa4SJLW",
margin: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
name: "",
padding: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
size: {
height: {
type: "fit",
value: null,
},
width: {
type: "fit",
value: null,
},
},
text_lid: "E6CK5Xd1cE",
type: "text",
},
],
dimension: {
alignment: "leading",
distribution: "start",
type: "vertical",
},
id: "el3qmQd6hR",
margin: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
name: "",
padding: {
bottom: 16,
leading: 16,
top: 16,
trailing: 16,
},
shadow: {
color: {
light: {
type: "hex",
value: "#ff000040",
},
},
radius: 16,
x: 8,
y: 8,
},
shape: {
corners: null,
type: "pill",
},
size: {
height: {
type: "fit",
value: null,
},
width: {
type: "fit",
value: null,
},
},
spacing: 0,
type: "stack",
},
transition: null,
type: "button",
},
],
dimension: {
alignment: "center",
distribution: "start",
type: "vertical",
},
id: "rocJhuHfiP",
margin: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
name: "Content",
padding: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
shadow: null,
shape: {
corners: {
bottom_leading: 0,
bottom_trailing: 0,
top_leading: 0,
top_trailing: 0,
},
type: "rectangle",
},
size: {
height: {
type: "fit",
value: null,
},
width: {
type: "fill",
value: null,
},
},
spacing: 16,
type: "stack",
},
sticky_footer: null,
},
},
};