fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC6

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.
@@ -0,0 +1,147 @@
1
+ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
+ import { Box as l, Typography as a } from "@mui/joy";
3
+ import { i as k, u as F, a as z, s as I } from "./Portal-BWqqFvVm.js";
4
+ import { R as v } from "./NotFoundSkeleton-BYJTzYJR.js";
5
+ const R = (e) => ({
6
+ // Main container with background overlay
7
+ mainContainer: {
8
+ display: "flex",
9
+ flexDirection: "column",
10
+ gap: "40px",
11
+ p: e.spacingScale.xl,
12
+ boxShadow: "md",
13
+ border: `${e.borderSize} solid ${e.borderColor}`,
14
+ overflow: "hidden",
15
+ backgroundImage: e.backgroundImage,
16
+ backgroundPosition: "center",
17
+ backgroundSize: "cover",
18
+ position: "relative",
19
+ borderRadius: e.mdBorderRadius,
20
+ minHeight: "250px",
21
+ "&::before": {
22
+ content: '""',
23
+ position: "absolute",
24
+ top: 0,
25
+ left: 0,
26
+ right: 0,
27
+ bottom: 0,
28
+ borderRadius: "inherit",
29
+ zIndex: 0,
30
+ background: e.imageBackgroundGradient
31
+ }
32
+ },
33
+ // Headline section wrapper
34
+ headlineSection: {
35
+ display: "flex",
36
+ justifyContent: "space-between",
37
+ flex: "1 0 0",
38
+ alignSelf: "stretch"
39
+ },
40
+ // Headline content container
41
+ headlineContent: {
42
+ display: "flex",
43
+ flexDirection: "column",
44
+ alignItems: "flex-start",
45
+ flex: "1 0 0",
46
+ gap: "16px"
47
+ },
48
+ // Headline content with z-index
49
+ headlineContentInner: {
50
+ zIndex: 10
51
+ },
52
+ // Headline typography
53
+ headlineText: {
54
+ fontWeight: 500,
55
+ lineHeight: "166%",
56
+ letterSpacing: "1px",
57
+ textAlign: { xs: "center", md: "left" },
58
+ color: e.secondaryColor,
59
+ opacity: "70%",
60
+ textTransform: "uppercase",
61
+ fontFamily: e.fontFamilySecondary,
62
+ fontSize: "0.75em"
63
+ },
64
+ // Content container
65
+ contentContainer: {
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ gap: e.spacingScale["3xs"]
69
+ },
70
+ // Title typography
71
+ titleText: {
72
+ fontWeight: 700,
73
+ lineHeight: "133%",
74
+ letterSpacing: "0px",
75
+ textAlign: { xs: "center", md: "left" },
76
+ fontSize: "1.5em",
77
+ color: e.darkTextColor,
78
+ fontFamily: e.fontFamilyPrimary
79
+ },
80
+ // Description typography
81
+ descriptionText: {
82
+ fontWeight: 400,
83
+ lineHeight: "140%",
84
+ letterSpacing: "0.15px",
85
+ fontSize: "1.25em",
86
+ textAlign: { xs: "center", md: "left" },
87
+ color: e.secondaryColor,
88
+ opacity: "70%",
89
+ fontFamily: e.fontFamilyPrimary
90
+ }
91
+ }), w = ({
92
+ entity: e,
93
+ headline: d,
94
+ backgroundImage: m,
95
+ imageBackgroundGradient: x,
96
+ children: h,
97
+ rulesDisplay: g
98
+ }) => {
99
+ var s;
100
+ const f = k(), n = F(), c = z(), o = ((s = e.branding) == null ? void 0 : s.colors) || null, y = (o == null ? void 0 : o.secondaryColor) || n.colorSchemes.dark.textSecondary, u = n.customFontFamily.light.primary, S = n.customFontFamily.light.secondary, b = n.customRadius.light.md, p = n.border.light.size, C = (o == null ? void 0 : o.borderColor) || n.colorSchemes.dark.secondaryContainer, T = n.colorSchemes.dark.textColor, t = R({
101
+ spacingScale: c,
102
+ brandingColors: o,
103
+ secondaryColor: y,
104
+ fontFamilyPrimary: u,
105
+ fontFamilySecondary: S,
106
+ mdBorderRadius: b,
107
+ borderSize: p,
108
+ borderColor: C,
109
+ darkTextColor: T,
110
+ backgroundImage: m,
111
+ imageBackgroundGradient: x,
112
+ isMobile: f
113
+ });
114
+ return /* @__PURE__ */ r(l, { sx: t.mainContainer, children: [
115
+ /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(l, { sx: t.headlineSection, children: /* @__PURE__ */ i(l, { sx: t.headlineContent, children: /* @__PURE__ */ r(l, { sx: t.headlineContentInner, children: [
116
+ /* @__PURE__ */ r(
117
+ l,
118
+ {
119
+ sx: {
120
+ display: "flex",
121
+ alignItems: "center",
122
+ gap: c["3xs"]
123
+ },
124
+ children: [
125
+ /* @__PURE__ */ i(a, { level: "body-sm", sx: t.headlineText, children: d }),
126
+ /* @__PURE__ */ i(
127
+ v,
128
+ {
129
+ rulesDisplay: g,
130
+ isOverlayVariant: !0,
131
+ rules: e.rules || ""
132
+ }
133
+ )
134
+ ]
135
+ }
136
+ ),
137
+ /* @__PURE__ */ r(l, { sx: t.contentContainer, children: [
138
+ /* @__PURE__ */ i(a, { level: "h4", sx: t.titleText, children: e.title }),
139
+ /* @__PURE__ */ i(a, { level: "body-lg", sx: t.descriptionText, children: I(e.description) })
140
+ ] })
141
+ ] }) }) }) }),
142
+ h
143
+ ] });
144
+ };
145
+ export {
146
+ w as O
147
+ };