@proulr/sdui-components 0.1.41 → 0.1.44
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/package.json
CHANGED
|
Binary file
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import QRCode from 'react-native-qrcode-svg';
|
|
4
|
-
import
|
|
4
|
+
import brandMarkAsset from '../assets/proulr-brand-mark.png';
|
|
5
|
+
import { gradients, m3Colors, m3Shape, m3Type, spacing } from '../theme/proulr-theme';
|
|
5
6
|
import { resolveViewStyleProps } from '../theme/resolve-style-props';
|
|
6
7
|
import type { SduiBlockRenderProps } from './SduiPrimitiveBlocks';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Nametag de QR estilo "cartão de convite" (ref. Instagram): cartão claro
|
|
10
|
-
* (inverseSurface) com QR
|
|
11
|
+
* (inverseSurface) com QR customizado da marca — módulos no gradiente Proulr
|
|
12
|
+
* (roxo → fúcsia) e brand mark no centro (ECC alto para manter a leitura).
|
|
11
13
|
* Wire: `value` = conteúdo do QR, `size` em px, `label` = texto sob o código.
|
|
12
14
|
*/
|
|
13
15
|
export function SduiQrCodeBlock({ block }: SduiBlockRenderProps) {
|
|
@@ -24,8 +26,15 @@ export function SduiQrCodeBlock({ block }: SduiBlockRenderProps) {
|
|
|
24
26
|
<QRCode
|
|
25
27
|
value={value}
|
|
26
28
|
size={size}
|
|
27
|
-
color={m3Colors.inverseOnSurface}
|
|
28
29
|
backgroundColor={m3Colors.inverseSurface}
|
|
30
|
+
enableLinearGradient
|
|
31
|
+
linearGradient={[...gradients.brand]}
|
|
32
|
+
ecl="H"
|
|
33
|
+
logo={brandMarkAsset}
|
|
34
|
+
logoSize={Math.round(size * 0.22)}
|
|
35
|
+
logoBackgroundColor={m3Colors.inverseSurface}
|
|
36
|
+
logoMargin={Math.max(3, Math.round(size * 0.02))}
|
|
37
|
+
logoBorderRadius={m3Shape.cornerMedium}
|
|
29
38
|
/>
|
|
30
39
|
{label ? <Text style={styles.label}>{label}</Text> : null}
|
|
31
40
|
</View>
|
|
@@ -116,6 +116,7 @@ export const colors = {
|
|
|
116
116
|
onSurface: '#FFFFFF',
|
|
117
117
|
onSurfaceVariant: '#A3A3A3',
|
|
118
118
|
shadow: '#000',
|
|
119
|
+
whiteAlpha08: 'rgba(255,255,255,0.08)',
|
|
119
120
|
whiteAlpha12: 'rgba(255,255,255,0.12)',
|
|
120
121
|
whiteAlpha16: 'rgba(255,255,255,0.16)',
|
|
121
122
|
whiteAlpha22: 'rgba(255,255,255,0.22)',
|
|
@@ -125,16 +126,30 @@ export const colors = {
|
|
|
125
126
|
whiteAlpha72: 'rgba(255,255,255,0.72)',
|
|
126
127
|
whiteAlpha78: 'rgba(255,255,255,0.78)',
|
|
127
128
|
whiteAlpha82: 'rgba(255,255,255,0.82)',
|
|
129
|
+
whiteAlpha88: 'rgba(255,255,255,0.88)',
|
|
130
|
+
blackAlpha08: 'rgba(0,0,0,0.08)',
|
|
128
131
|
blackAlpha10: 'rgba(0,0,0,0.1)',
|
|
132
|
+
blackAlpha12: 'rgba(0,0,0,0.12)',
|
|
129
133
|
blackAlpha14: 'rgba(0,0,0,0.14)',
|
|
130
134
|
blackAlpha18: 'rgba(0,0,0,0.18)',
|
|
131
135
|
blackAlpha28: 'rgba(0,0,0,0.28)',
|
|
136
|
+
blackAlpha30: 'rgba(0,0,0,0.3)',
|
|
137
|
+
blackAlpha35: 'rgba(0,0,0,0.35)',
|
|
138
|
+
blackAlpha40: 'rgba(0,0,0,0.4)',
|
|
139
|
+
blackAlpha45: 'rgba(0,0,0,0.45)',
|
|
140
|
+
blackAlpha48: 'rgba(0,0,0,0.48)',
|
|
132
141
|
blackAlpha38: 'rgba(0,0,0,0.38)',
|
|
133
142
|
blackAlpha50: 'rgba(0,0,0,0.5)',
|
|
134
143
|
blackAlpha55: 'rgba(0,0,0,0.55)',
|
|
144
|
+
blackAlpha60: 'rgba(0,0,0,0.6)',
|
|
145
|
+
blackAlpha62: 'rgba(0,0,0,0.62)',
|
|
146
|
+
blackAlpha72: 'rgba(0,0,0,0.72)',
|
|
135
147
|
blackAlpha75: 'rgba(0,0,0,0.75)',
|
|
148
|
+
blackAlpha78: 'rgba(0,0,0,0.78)',
|
|
136
149
|
blackAlpha80: 'rgba(0,0,0,0.8)',
|
|
137
150
|
blackAlpha85: 'rgba(0,0,0,0.85)',
|
|
151
|
+
blackAlpha90: 'rgba(0,0,0,0.9)',
|
|
152
|
+
creamAlpha35: 'rgba(250,250,249,0.35)',
|
|
138
153
|
creamAlpha72: 'rgba(250,250,249,0.72)',
|
|
139
154
|
creamAlpha78: 'rgba(250,250,249,0.78)',
|
|
140
155
|
creamAlpha82: 'rgba(250,250,249,0.82)',
|
|
@@ -169,8 +184,12 @@ export const gradients = {
|
|
|
169
184
|
header: ['#2D0A35', '#D946EF'] as const,
|
|
170
185
|
headerGlow: ['rgba(217,70,239,0.20)', 'rgba(217,70,239,0)'] as const,
|
|
171
186
|
authHero: ['rgba(217,70,239,0.14)', 'rgba(0,229,255,0.06)', 'transparent'] as const,
|
|
187
|
+
authHeroWelcomeTop: [colors.blackAlpha62, colors.blackAlpha18, 'transparent'] as const,
|
|
188
|
+
authHeroWelcomeBottom: ['transparent', colors.blackAlpha12, colors.blackAlpha50] as const,
|
|
189
|
+
mediaHeroShade: ['transparent', colors.blackAlpha90] as const,
|
|
190
|
+
mediaBrowseShade: ['transparent', colors.blackAlpha78] as const,
|
|
172
191
|
neonBorder: [colors.headerEnd, colors.accent] as const,
|
|
173
|
-
videoControlsShade: ['transparent',
|
|
192
|
+
videoControlsShade: ['transparent', colors.blackAlpha72] as const,
|
|
174
193
|
chromeScrollFadeBottom: [
|
|
175
194
|
'transparent',
|
|
176
195
|
'rgba(0,0,0,0.22)',
|