@proulr/sdui-components 0.1.38 → 0.1.41

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proulr/sdui-components",
3
- "version": "0.1.38",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "main": "./src/renderer/index.ts",
6
6
  "types": "./src/renderer/index.ts",
@@ -40,3 +40,8 @@ export {
40
40
  isAppIconName,
41
41
  type AppIconName,
42
42
  } from './app-icon-names';
43
+ export {
44
+ STORY_TEXT_BACKGROUND_OPTIONS,
45
+ resolveStoryTextBackgroundOption,
46
+ type StoryTextBackgroundOption,
47
+ } from './story-text-background-catalog';
@@ -0,0 +1,28 @@
1
+ export type StoryTextBackgroundOption = {
2
+ id: string;
3
+ backgroundColor: string;
4
+ textColor: string;
5
+ };
6
+
7
+ /** Fundos do composer de story em texto — fonte única de cores (sem hex nos apps). */
8
+ export const STORY_TEXT_BACKGROUND_OPTIONS: StoryTextBackgroundOption[] = [
9
+ { id: 'fuchsia', backgroundColor: '#D946EF', textColor: '#FFFFFF' },
10
+ { id: 'cyan', backgroundColor: '#00E5FF', textColor: '#001018' },
11
+ { id: 'rose', backgroundColor: '#FF2D55', textColor: '#FFFFFF' },
12
+ { id: 'violet', backgroundColor: '#7C3AED', textColor: '#FFFFFF' },
13
+ { id: 'amber', backgroundColor: '#F59E0B', textColor: '#1A1200' },
14
+ { id: 'lime', backgroundColor: '#84CC16', textColor: '#102000' },
15
+ { id: 'sky', backgroundColor: '#38BDF8', textColor: '#001018' },
16
+ { id: 'slate', backgroundColor: '#1E293B', textColor: '#FFFFFF' },
17
+ { id: 'black', backgroundColor: '#000000', textColor: '#FFFFFF' },
18
+ { id: 'white', backgroundColor: '#FFFFFF', textColor: '#111111' },
19
+ ];
20
+
21
+ export function resolveStoryTextBackgroundOption(
22
+ id: string,
23
+ ): StoryTextBackgroundOption {
24
+ return (
25
+ STORY_TEXT_BACKGROUND_OPTIONS.find((option) => option.id === id) ??
26
+ STORY_TEXT_BACKGROUND_OPTIONS[0]!
27
+ );
28
+ }
@@ -34,6 +34,28 @@ export const m3Colors = {
34
34
  online: '#34FF88',
35
35
  } as const;
36
36
 
37
+ /** Accent/soft por reação Flash (conteúdo) — fonte única, sem hex solto nos apps. */
38
+ export const flashReactionColors = {
39
+ flash: { accent: m3Colors.secondary, soft: m3Colors.secondaryContainer },
40
+ fire: { accent: m3Colors.primary, soft: m3Colors.primaryContainer },
41
+ heart: { accent: '#FF6B8A', soft: 'rgba(255,107,138,0.22)' },
42
+ eyes: { accent: '#40C4FF', soft: 'rgba(64,196,255,0.22)' },
43
+ wave: { accent: '#FFD740', soft: 'rgba(255,215,64,0.22)' },
44
+ chat: { accent: '#B388FF', soft: 'rgba(179,136,255,0.22)' },
45
+ } as const;
46
+
47
+ /** Paleta estável para nome de remetente em grupos (estilo WhatsApp/Telegram). */
48
+ export const chatGroupSenderPalette = [
49
+ m3Colors.primary,
50
+ m3Colors.secondary,
51
+ m3Colors.tertiary,
52
+ '#7C4DFF',
53
+ '#00BFA5',
54
+ '#FF6D00',
55
+ '#FF4081',
56
+ '#40C4FF',
57
+ ] as const;
58
+
37
59
  export const m3Shape = {
38
60
  cornerExtraSmall: 4,
39
61
  cornerSmall: 8,
@@ -76,6 +98,7 @@ export const colors = {
76
98
  onlineSoft: 'rgba(52,255,136,0.18)',
77
99
  danger: '#FF4444',
78
100
  dangerSoft: 'rgba(255,68,68,0.22)',
101
+ dangerSoft18: 'rgba(239,68,68,0.18)',
79
102
  overlay: 'rgba(0,0,0,0.78)',
80
103
  surfaceGlass: 'rgba(255,255,255,0.06)',
81
104
  /** Pílula / chrome sem BlurView — preto OLED. */
@@ -88,8 +111,40 @@ export const colors = {
88
111
  scrollbarThumb: 'rgba(255, 255, 255, 0.28)',
89
112
  scrollbarThumbHover: 'rgba(255, 255, 255, 0.45)',
90
113
  primary: '#D946EF',
114
+ primarySoft18: 'rgba(217,70,239,0.18)',
115
+ primarySoft35: 'rgba(217,70,239,0.35)',
91
116
  onSurface: '#FFFFFF',
92
117
  onSurfaceVariant: '#A3A3A3',
118
+ shadow: '#000',
119
+ whiteAlpha12: 'rgba(255,255,255,0.12)',
120
+ whiteAlpha16: 'rgba(255,255,255,0.16)',
121
+ whiteAlpha22: 'rgba(255,255,255,0.22)',
122
+ whiteAlpha28: 'rgba(255,255,255,0.28)',
123
+ whiteAlpha35: 'rgba(255,255,255,0.35)',
124
+ whiteAlpha38: 'rgba(255,255,255,0.38)',
125
+ whiteAlpha72: 'rgba(255,255,255,0.72)',
126
+ whiteAlpha78: 'rgba(255,255,255,0.78)',
127
+ whiteAlpha82: 'rgba(255,255,255,0.82)',
128
+ blackAlpha10: 'rgba(0,0,0,0.1)',
129
+ blackAlpha14: 'rgba(0,0,0,0.14)',
130
+ blackAlpha18: 'rgba(0,0,0,0.18)',
131
+ blackAlpha28: 'rgba(0,0,0,0.28)',
132
+ blackAlpha38: 'rgba(0,0,0,0.38)',
133
+ blackAlpha50: 'rgba(0,0,0,0.5)',
134
+ blackAlpha55: 'rgba(0,0,0,0.55)',
135
+ blackAlpha75: 'rgba(0,0,0,0.75)',
136
+ blackAlpha80: 'rgba(0,0,0,0.8)',
137
+ blackAlpha85: 'rgba(0,0,0,0.85)',
138
+ creamAlpha72: 'rgba(250,250,249,0.72)',
139
+ creamAlpha78: 'rgba(250,250,249,0.78)',
140
+ creamAlpha82: 'rgba(250,250,249,0.82)',
141
+ creamAlpha85: 'rgba(250,250,249,0.85)',
142
+ creamAlpha92: 'rgba(250,250,249,0.92)',
143
+ orangeSoft14: 'rgba(255,87,51,0.14)',
144
+ presenceOffline: 'rgba(163,163,163,0.45)',
145
+ presenceBorder: 'rgba(0,0,0,0.85)',
146
+ surfaceElevated82: 'rgba(28,28,30,0.82)',
147
+ surfaceElevated95: 'rgba(28,28,30,0.95)',
93
148
  } as const;
94
149
 
95
150
  export const spacing = {