@micha.bigler/ui-core-micha 4.35.0 → 4.35.1
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/CHANGELOG.md +6 -0
- package/README.md +2 -1
- package/dist/privacy/PublicFooter.js +13 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.35.1 - UCM-PRIV-6
|
|
4
|
+
|
|
5
|
+
`PublicFooter` is compact on phones: below the `sm` breakpoint the identity block (logo, tagline, copyright) is hidden,
|
|
6
|
+
the links sit in one centred, tightly spaced wrapping row (smaller type, 28 px rows), so the footer no longer takes
|
|
7
|
+
three tall rows. From `sm` up it stays one line. No API change.
|
|
8
|
+
|
|
3
9
|
## 4.35.0 - UCM-PRIV-6
|
|
4
10
|
|
|
5
11
|
Removal, released as a minor because no consumer imports the removed names and all consumers pin exact versions: the
|
package/README.md
CHANGED
|
@@ -33,7 +33,8 @@ const privacyApi = createPrivacyApi({}, { apiBase: '/api/privacy/', csrfUrl: '/a
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Place `PrivacyProvider` above the router content and render one `PrivacyBanner` in the app shell. Use `PublicFooter` as
|
|
36
|
-
the one compact line at the end of every page, public and authenticated, including login and registration
|
|
36
|
+
the one compact line at the end of every page, public and authenticated, including login and registration (on phones
|
|
37
|
+
the `brand` and `copyright` nodes are not shown, so never make the footer the only route to something they link); there are no
|
|
37
38
|
legal or privacy entries in headers or in the account menu. The account page (`privacyMode="central"`) shows the two
|
|
38
39
|
quick choices in its profile section. This keeps public legal links available without a provider. When an app has
|
|
39
40
|
optional purposes, the footer entry reopens the same banner with “Necessary only” and “Allow all”; either choice applies
|
|
@@ -28,21 +28,23 @@ export const PUBLIC_FOOTER_ROOT_SX = {
|
|
|
28
28
|
borderTop: 1,
|
|
29
29
|
borderColor: 'divider',
|
|
30
30
|
px: { xs: 2, sm: 4 },
|
|
31
|
-
py: 1,
|
|
31
|
+
py: { xs: 0.5, sm: 1 },
|
|
32
32
|
bgcolor: 'background.paper',
|
|
33
33
|
display: 'flex',
|
|
34
34
|
flexWrap: 'wrap',
|
|
35
35
|
alignItems: 'center',
|
|
36
|
-
justifyContent: 'space-between',
|
|
36
|
+
justifyContent: { xs: 'center', sm: 'space-between' },
|
|
37
37
|
columnGap: 3,
|
|
38
38
|
rowGap: 0,
|
|
39
39
|
};
|
|
40
|
+
// On a phone the identity (logo, tagline, copyright) is dropped: the header already carries the brand and the
|
|
41
|
+
// footer stays a compact row of links.
|
|
40
42
|
export const PUBLIC_FOOTER_IDENTITY_SX = {
|
|
41
|
-
display: 'flex',
|
|
43
|
+
display: { xs: 'none', sm: 'flex' },
|
|
42
44
|
alignItems: 'center',
|
|
43
45
|
gap: 1.25,
|
|
44
46
|
flexShrink: 0,
|
|
45
|
-
minHeight:
|
|
47
|
+
minHeight: 32,
|
|
46
48
|
};
|
|
47
49
|
export const PUBLIC_FOOTER_COPYRIGHT_SX = {
|
|
48
50
|
color: 'text.secondary',
|
|
@@ -52,19 +54,20 @@ export const PUBLIC_FOOTER_COPYRIGHT_SX = {
|
|
|
52
54
|
export const PUBLIC_FOOTER_NAV_SX = {
|
|
53
55
|
display: 'flex',
|
|
54
56
|
flexWrap: 'wrap',
|
|
55
|
-
justifyContent: 'flex-end',
|
|
57
|
+
justifyContent: { xs: 'center', sm: 'flex-end' },
|
|
56
58
|
alignItems: 'center',
|
|
57
|
-
columnGap: { xs:
|
|
59
|
+
columnGap: { xs: 1.5, sm: 2.75 },
|
|
58
60
|
rowGap: 0,
|
|
59
61
|
minWidth: 0,
|
|
62
|
+
width: { xs: '100%', sm: 'auto' },
|
|
60
63
|
};
|
|
61
64
|
export const PUBLIC_FOOTER_LEGAL_LINK_SX = {
|
|
62
65
|
display: 'inline-flex',
|
|
63
66
|
alignItems: 'center',
|
|
64
67
|
minWidth: 0,
|
|
65
|
-
minHeight: { xs:
|
|
68
|
+
minHeight: { xs: 28, sm: 32 },
|
|
66
69
|
color: 'text.secondary',
|
|
67
|
-
fontSize: '0.8125rem',
|
|
70
|
+
fontSize: { xs: '0.75rem', sm: '0.8125rem' },
|
|
68
71
|
lineHeight: 1.35,
|
|
69
72
|
overflowWrap: 'anywhere',
|
|
70
73
|
textDecoration: 'none',
|
|
@@ -77,10 +80,10 @@ export const PUBLIC_FOOTER_SETTINGS_LINK_SX = {
|
|
|
77
80
|
display: 'inline-flex',
|
|
78
81
|
alignItems: 'center',
|
|
79
82
|
gap: 0.75,
|
|
80
|
-
minHeight: { xs:
|
|
83
|
+
minHeight: { xs: 28, sm: 32 },
|
|
81
84
|
px: 0,
|
|
82
85
|
color: 'primary.main',
|
|
83
|
-
fontSize: '0.8125rem',
|
|
86
|
+
fontSize: { xs: '0.75rem', sm: '0.8125rem' },
|
|
84
87
|
textDecoration: 'none',
|
|
85
88
|
'&:hover': { textDecoration: 'underline' },
|
|
86
89
|
};
|