@streamplace/components 0.7.9 → 0.7.13
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/dist/assets/emoji-data.json +19371 -0
- package/dist/components/chat/chat-box.js +19 -2
- package/dist/components/chat/chat-message.js +12 -4
- package/dist/components/chat/chat.js +15 -4
- package/dist/components/chat/mod-view.js +15 -8
- package/dist/components/dashboard/chat-panel.js +38 -0
- package/dist/components/dashboard/header.js +80 -0
- package/dist/components/dashboard/index.js +14 -0
- package/dist/components/dashboard/information-widget.js +234 -0
- package/dist/components/dashboard/mod-actions.js +71 -0
- package/dist/components/dashboard/problems.js +74 -0
- package/dist/components/mobile-player/ui/viewer-context-menu.js +15 -6
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/dropdown.js +20 -1
- package/dist/components/ui/index.js +2 -0
- package/dist/components/ui/info-box.js +31 -0
- package/dist/components/ui/info-row.js +23 -0
- package/dist/components/ui/toast.js +43 -0
- package/dist/index.js +3 -1
- package/dist/lib/theme/atoms.js +66 -45
- package/dist/lib/theme/tokens.js +285 -12
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/37be0eec +0 -0
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/56540125 +0 -0
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/67b1eb60 +0 -0
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/7c275f90 +0 -0
- package/package.json +2 -2
- package/src/assets/emoji-data.json +19371 -0
- package/src/components/chat/chat-box.tsx +19 -1
- package/src/components/chat/chat-message.tsx +22 -14
- package/src/components/chat/chat.tsx +21 -6
- package/src/components/chat/mod-view.tsx +24 -6
- package/src/components/dashboard/chat-panel.tsx +80 -0
- package/src/components/dashboard/header.tsx +170 -0
- package/src/components/dashboard/index.tsx +5 -0
- package/src/components/dashboard/information-widget.tsx +526 -0
- package/src/components/dashboard/mod-actions.tsx +133 -0
- package/src/components/dashboard/problems.tsx +151 -0
- package/src/components/mobile-player/ui/viewer-context-menu.tsx +67 -38
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/dropdown.tsx +38 -3
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/info-box.tsx +60 -0
- package/src/components/ui/info-row.tsx +48 -0
- package/src/components/ui/toast.tsx +110 -0
- package/src/index.tsx +3 -0
- package/src/lib/theme/atoms.ts +97 -43
- package/src/lib/theme/tokens.ts +285 -12
- package/tsconfig.tsbuildinfo +1 -1
package/src/lib/theme/atoms.ts
CHANGED
|
@@ -107,15 +107,53 @@ export const layout = {
|
|
|
107
107
|
spaceEvenly: {
|
|
108
108
|
justifyContent: "space-evenly" as const,
|
|
109
109
|
},
|
|
110
|
+
direction: pairify(
|
|
111
|
+
{
|
|
112
|
+
row: "row",
|
|
113
|
+
column: "column",
|
|
114
|
+
"row-reverse": "row-reverse",
|
|
115
|
+
"column-reverse": "column-reverse",
|
|
116
|
+
},
|
|
117
|
+
"flexDirection",
|
|
118
|
+
),
|
|
119
|
+
justify: pairify(
|
|
120
|
+
{
|
|
121
|
+
start: "flex-start",
|
|
122
|
+
end: "flex-end",
|
|
123
|
+
center: "center",
|
|
124
|
+
between: "space-between",
|
|
125
|
+
around: "space-around",
|
|
126
|
+
evenly: "space-evenly",
|
|
127
|
+
},
|
|
128
|
+
"justifyContent",
|
|
129
|
+
),
|
|
130
|
+
align: pairify(
|
|
131
|
+
{
|
|
132
|
+
start: "flex-start",
|
|
133
|
+
end: "flex-end",
|
|
134
|
+
center: "center",
|
|
135
|
+
stretch: "stretch",
|
|
136
|
+
baseline: "baseline",
|
|
137
|
+
},
|
|
138
|
+
"alignItems",
|
|
139
|
+
),
|
|
140
|
+
wrap: pairify(
|
|
141
|
+
{
|
|
142
|
+
wrap: "wrap",
|
|
143
|
+
nowrap: "nowrap",
|
|
144
|
+
reverse: "wrap-reverse",
|
|
145
|
+
},
|
|
146
|
+
"flexWrap",
|
|
147
|
+
),
|
|
110
148
|
},
|
|
111
|
-
position:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
position: "relative" as const,
|
|
149
|
+
position: pairify(
|
|
150
|
+
{
|
|
151
|
+
absolute: "absolute",
|
|
152
|
+
relative: "relative",
|
|
153
|
+
static: "static",
|
|
117
154
|
},
|
|
118
|
-
|
|
155
|
+
"position",
|
|
156
|
+
),
|
|
119
157
|
};
|
|
120
158
|
|
|
121
159
|
// Enhanced border utilities with pairified colors and widths
|
|
@@ -129,11 +167,14 @@ export const borders = {
|
|
|
129
167
|
"borderWidth",
|
|
130
168
|
),
|
|
131
169
|
|
|
132
|
-
style:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
170
|
+
style: pairify(
|
|
171
|
+
{
|
|
172
|
+
solid: "solid",
|
|
173
|
+
dashed: "dashed",
|
|
174
|
+
dotted: "dotted",
|
|
175
|
+
},
|
|
176
|
+
"borderStyle",
|
|
177
|
+
),
|
|
137
178
|
|
|
138
179
|
// Pairified color borders
|
|
139
180
|
color: pairify(rawColors, "borderColor"),
|
|
@@ -347,20 +388,26 @@ export const zIndex = pairify(
|
|
|
347
388
|
);
|
|
348
389
|
|
|
349
390
|
// Overflow utilities
|
|
350
|
-
export const overflow =
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
391
|
+
export const overflow = pairify(
|
|
392
|
+
{
|
|
393
|
+
visible: "visible",
|
|
394
|
+
hidden: "hidden",
|
|
395
|
+
scroll: "scroll",
|
|
396
|
+
},
|
|
397
|
+
"overflow",
|
|
398
|
+
);
|
|
355
399
|
|
|
356
400
|
// Text alignment utilities
|
|
357
|
-
export const textAlign =
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
401
|
+
export const textAlign = pairify(
|
|
402
|
+
{
|
|
403
|
+
left: "left",
|
|
404
|
+
center: "center",
|
|
405
|
+
right: "right",
|
|
406
|
+
justify: "justify",
|
|
407
|
+
auto: "auto",
|
|
408
|
+
},
|
|
409
|
+
"textAlign",
|
|
410
|
+
);
|
|
364
411
|
|
|
365
412
|
// Font weight utilities
|
|
366
413
|
export const fontWeight = pairify(
|
|
@@ -433,30 +480,37 @@ export const letterSpacing = pairify(
|
|
|
433
480
|
);
|
|
434
481
|
|
|
435
482
|
// Text transform utilities
|
|
436
|
-
export const textTransform =
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
483
|
+
export const textTransform = pairify(
|
|
484
|
+
{
|
|
485
|
+
uppercase: "uppercase",
|
|
486
|
+
lowercase: "lowercase",
|
|
487
|
+
capitalize: "capitalize",
|
|
488
|
+
none: "none",
|
|
489
|
+
},
|
|
490
|
+
"textTransform",
|
|
491
|
+
);
|
|
442
492
|
|
|
443
493
|
// Text decoration utilities
|
|
444
|
-
export const textDecoration =
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
494
|
+
export const textDecoration = pairify(
|
|
495
|
+
{
|
|
496
|
+
none: "none",
|
|
497
|
+
underline: "underline",
|
|
498
|
+
lineThrough: "line-through",
|
|
499
|
+
underlineLineThrough: "underline line-through",
|
|
450
500
|
},
|
|
451
|
-
|
|
501
|
+
"textDecorationLine",
|
|
502
|
+
);
|
|
452
503
|
|
|
453
504
|
// Text align vertical utilities (React Native specific)
|
|
454
|
-
export const textAlignVertical =
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
505
|
+
export const textAlignVertical = pairify(
|
|
506
|
+
{
|
|
507
|
+
auto: "auto",
|
|
508
|
+
top: "top",
|
|
509
|
+
bottom: "bottom",
|
|
510
|
+
center: "center",
|
|
511
|
+
},
|
|
512
|
+
"textAlignVertical",
|
|
513
|
+
);
|
|
460
514
|
|
|
461
515
|
// Transform utilities
|
|
462
516
|
export const transforms = {
|
package/src/lib/theme/tokens.ts
CHANGED
|
@@ -19,19 +19,292 @@ export const colors = {
|
|
|
19
19
|
950: "#172554",
|
|
20
20
|
},
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// Tailwind default palettes:
|
|
23
|
+
slate: {
|
|
24
|
+
50: "#f8fafc",
|
|
25
|
+
100: "#f1f5f9",
|
|
26
|
+
200: "#e2e8f0",
|
|
27
|
+
300: "#cbd5e1",
|
|
28
|
+
400: "#94a3b8",
|
|
29
|
+
500: "#64748b",
|
|
30
|
+
600: "#475569",
|
|
31
|
+
700: "#334155",
|
|
32
|
+
800: "#1e293b",
|
|
33
|
+
900: "#0f172a",
|
|
34
|
+
950: "#020617",
|
|
35
|
+
},
|
|
23
36
|
gray: {
|
|
37
|
+
50: "#f9fafb",
|
|
38
|
+
100: "#f3f4f6",
|
|
39
|
+
200: "#e5e7eb",
|
|
40
|
+
300: "#d1d5db",
|
|
41
|
+
400: "#9ca3af",
|
|
42
|
+
500: "#6b7280",
|
|
43
|
+
600: "#4b5563",
|
|
44
|
+
700: "#374151",
|
|
45
|
+
800: "#1f2937",
|
|
46
|
+
900: "#111827",
|
|
47
|
+
950: "#030712",
|
|
48
|
+
},
|
|
49
|
+
zinc: {
|
|
24
50
|
50: "#fafafa",
|
|
25
|
-
100: "#
|
|
26
|
-
200: "#
|
|
27
|
-
300: "#
|
|
28
|
-
400: "#
|
|
29
|
-
500: "#
|
|
30
|
-
600: "#
|
|
31
|
-
700: "#
|
|
32
|
-
800: "#
|
|
33
|
-
900: "#
|
|
34
|
-
950: "#
|
|
51
|
+
100: "#f4f4f5",
|
|
52
|
+
200: "#e4e4e7",
|
|
53
|
+
300: "#d4d4d8",
|
|
54
|
+
400: "#a1a1aa",
|
|
55
|
+
500: "#71717a",
|
|
56
|
+
600: "#52525b",
|
|
57
|
+
700: "#3f3f46",
|
|
58
|
+
800: "#27272a",
|
|
59
|
+
900: "#18181b",
|
|
60
|
+
950: "#09090b",
|
|
61
|
+
},
|
|
62
|
+
neutral: {
|
|
63
|
+
50: "#fafaf9",
|
|
64
|
+
100: "#f5f5f4",
|
|
65
|
+
200: "#e7e5e4",
|
|
66
|
+
300: "#d6d3d1",
|
|
67
|
+
400: "#a8a29e",
|
|
68
|
+
500: "#78716c",
|
|
69
|
+
600: "#57534e",
|
|
70
|
+
700: "#44403c",
|
|
71
|
+
800: "#292524",
|
|
72
|
+
900: "#1c1917",
|
|
73
|
+
950: "#0c0a09",
|
|
74
|
+
},
|
|
75
|
+
stone: {
|
|
76
|
+
50: "#fafaf9",
|
|
77
|
+
100: "#f5f5f4",
|
|
78
|
+
200: "#e7e5e4",
|
|
79
|
+
300: "#d6d3d1",
|
|
80
|
+
400: "#a8a29e",
|
|
81
|
+
500: "#78716c",
|
|
82
|
+
600: "#57534e",
|
|
83
|
+
700: "#44403c",
|
|
84
|
+
800: "#292524",
|
|
85
|
+
900: "#1c1917",
|
|
86
|
+
950: "#0c0a09",
|
|
87
|
+
},
|
|
88
|
+
red: {
|
|
89
|
+
50: "#fef2f2",
|
|
90
|
+
100: "#fee2e2",
|
|
91
|
+
200: "#fecaca",
|
|
92
|
+
300: "#fca5a5",
|
|
93
|
+
400: "#f87171",
|
|
94
|
+
500: "#ef4444",
|
|
95
|
+
600: "#dc2626",
|
|
96
|
+
700: "#b91c1c",
|
|
97
|
+
800: "#991b1b",
|
|
98
|
+
900: "#7f1d1d",
|
|
99
|
+
950: "#450a0a",
|
|
100
|
+
},
|
|
101
|
+
orange: {
|
|
102
|
+
50: "#fff7ed",
|
|
103
|
+
100: "#ffedd5",
|
|
104
|
+
200: "#fed7aa",
|
|
105
|
+
300: "#fdba74",
|
|
106
|
+
400: "#fb923c",
|
|
107
|
+
500: "#f97316",
|
|
108
|
+
600: "#ea580c",
|
|
109
|
+
700: "#c2410c",
|
|
110
|
+
800: "#9a3412",
|
|
111
|
+
900: "#7c2d12",
|
|
112
|
+
950: "#431407",
|
|
113
|
+
},
|
|
114
|
+
amber: {
|
|
115
|
+
50: "#fffbeb",
|
|
116
|
+
100: "#fef3c7",
|
|
117
|
+
200: "#fde68a",
|
|
118
|
+
300: "#fcd34d",
|
|
119
|
+
400: "#fbbf24",
|
|
120
|
+
500: "#f59e0b",
|
|
121
|
+
600: "#d97706",
|
|
122
|
+
700: "#b45309",
|
|
123
|
+
800: "#92400e",
|
|
124
|
+
900: "#78350f",
|
|
125
|
+
950: "#451a03",
|
|
126
|
+
},
|
|
127
|
+
yellow: {
|
|
128
|
+
50: "#fefce8",
|
|
129
|
+
100: "#fef9c3",
|
|
130
|
+
200: "#fef08a",
|
|
131
|
+
300: "#fde047",
|
|
132
|
+
400: "#facc15",
|
|
133
|
+
500: "#eab308",
|
|
134
|
+
600: "#ca8a04",
|
|
135
|
+
700: "#a16207",
|
|
136
|
+
800: "#854d0e",
|
|
137
|
+
900: "#713f12",
|
|
138
|
+
950: "#422006",
|
|
139
|
+
},
|
|
140
|
+
lime: {
|
|
141
|
+
50: "#f7fee7",
|
|
142
|
+
100: "#ecfccb",
|
|
143
|
+
200: "#d9f99d",
|
|
144
|
+
300: "#bef264",
|
|
145
|
+
400: "#a3e635",
|
|
146
|
+
500: "#84cc16",
|
|
147
|
+
600: "#65a30d",
|
|
148
|
+
700: "#4d7c0f",
|
|
149
|
+
800: "#3f6212",
|
|
150
|
+
900: "#365314",
|
|
151
|
+
950: "#1a2e05",
|
|
152
|
+
},
|
|
153
|
+
green: {
|
|
154
|
+
50: "#f0fdf4",
|
|
155
|
+
100: "#dcfce7",
|
|
156
|
+
200: "#bbf7d0",
|
|
157
|
+
300: "#86efac",
|
|
158
|
+
400: "#4ade80",
|
|
159
|
+
500: "#22c55e",
|
|
160
|
+
600: "#16a34a",
|
|
161
|
+
700: "#15803d",
|
|
162
|
+
800: "#166534",
|
|
163
|
+
900: "#14532d",
|
|
164
|
+
950: "#052e16",
|
|
165
|
+
},
|
|
166
|
+
emerald: {
|
|
167
|
+
50: "#ecfdf5",
|
|
168
|
+
100: "#d1fae5",
|
|
169
|
+
200: "#a7f3d0",
|
|
170
|
+
300: "#6ee7b7",
|
|
171
|
+
400: "#34d399",
|
|
172
|
+
500: "#10b981",
|
|
173
|
+
600: "#059669",
|
|
174
|
+
700: "#047857",
|
|
175
|
+
800: "#065f46",
|
|
176
|
+
900: "#064e3b",
|
|
177
|
+
950: "#022c22",
|
|
178
|
+
},
|
|
179
|
+
teal: {
|
|
180
|
+
50: "#f0fdfa",
|
|
181
|
+
100: "#ccfbf1",
|
|
182
|
+
200: "#99f6e4",
|
|
183
|
+
300: "#5eead4",
|
|
184
|
+
400: "#2dd4bf",
|
|
185
|
+
500: "#14b8a6",
|
|
186
|
+
600: "#0d9488",
|
|
187
|
+
700: "#0f766e",
|
|
188
|
+
800: "#115e59",
|
|
189
|
+
900: "#134e4a",
|
|
190
|
+
950: "#042f2e",
|
|
191
|
+
},
|
|
192
|
+
cyan: {
|
|
193
|
+
50: "#ecfeff",
|
|
194
|
+
100: "#cffafe",
|
|
195
|
+
200: "#a5f3fc",
|
|
196
|
+
300: "#67e8f9",
|
|
197
|
+
400: "#22d3ee",
|
|
198
|
+
500: "#06b6d4",
|
|
199
|
+
600: "#0891b2",
|
|
200
|
+
700: "#0e7490",
|
|
201
|
+
800: "#155e75",
|
|
202
|
+
900: "#164e63",
|
|
203
|
+
950: "#083344",
|
|
204
|
+
},
|
|
205
|
+
sky: {
|
|
206
|
+
50: "#f0f9ff",
|
|
207
|
+
100: "#e0f2fe",
|
|
208
|
+
200: "#bae6fd",
|
|
209
|
+
300: "#7dd3fc",
|
|
210
|
+
400: "#38bdf8",
|
|
211
|
+
500: "#0ea5e9",
|
|
212
|
+
600: "#0284c7",
|
|
213
|
+
700: "#0369a1",
|
|
214
|
+
800: "#075985",
|
|
215
|
+
900: "#0c4a6e",
|
|
216
|
+
950: "#082f49",
|
|
217
|
+
},
|
|
218
|
+
blue: {
|
|
219
|
+
50: "#eff6ff",
|
|
220
|
+
100: "#dbeafe",
|
|
221
|
+
200: "#bfdbfe",
|
|
222
|
+
300: "#93c5fd",
|
|
223
|
+
400: "#60a5fa",
|
|
224
|
+
500: "#3b82f6",
|
|
225
|
+
600: "#2563eb",
|
|
226
|
+
700: "#1d4ed8",
|
|
227
|
+
800: "#1e40af",
|
|
228
|
+
900: "#1e3a8a",
|
|
229
|
+
950: "#172554",
|
|
230
|
+
},
|
|
231
|
+
indigo: {
|
|
232
|
+
50: "#eef2ff",
|
|
233
|
+
100: "#e0e7ff",
|
|
234
|
+
200: "#c7d2fe",
|
|
235
|
+
300: "#a5b4fc",
|
|
236
|
+
400: "#818cf8",
|
|
237
|
+
500: "#6366f1",
|
|
238
|
+
600: "#4f46e5",
|
|
239
|
+
700: "#4338ca",
|
|
240
|
+
800: "#3730a3",
|
|
241
|
+
900: "#312e81",
|
|
242
|
+
950: "#1e1b4b",
|
|
243
|
+
},
|
|
244
|
+
violet: {
|
|
245
|
+
50: "#f5f3ff",
|
|
246
|
+
100: "#ede9fe",
|
|
247
|
+
200: "#ddd6fe",
|
|
248
|
+
300: "#c4b5fd",
|
|
249
|
+
400: "#a78bfa",
|
|
250
|
+
500: "#8b5cf6",
|
|
251
|
+
600: "#7c3aed",
|
|
252
|
+
700: "#6d28d9",
|
|
253
|
+
800: "#5b21b6",
|
|
254
|
+
900: "#4c1d95",
|
|
255
|
+
950: "#2e1065",
|
|
256
|
+
},
|
|
257
|
+
purple: {
|
|
258
|
+
50: "#faf5ff",
|
|
259
|
+
100: "#f3e8ff",
|
|
260
|
+
200: "#e9d5ff",
|
|
261
|
+
300: "#d8b4fe",
|
|
262
|
+
400: "#c084fc",
|
|
263
|
+
500: "#a855f7",
|
|
264
|
+
600: "#9333ea",
|
|
265
|
+
700: "#7e22ce",
|
|
266
|
+
800: "#6b21a8",
|
|
267
|
+
900: "#581c87",
|
|
268
|
+
950: "#3b0764",
|
|
269
|
+
},
|
|
270
|
+
fuchsia: {
|
|
271
|
+
50: "#fdf4ff",
|
|
272
|
+
100: "#fae8ff",
|
|
273
|
+
200: "#f5d0fe",
|
|
274
|
+
300: "#f0abfc",
|
|
275
|
+
400: "#e879f9",
|
|
276
|
+
500: "#d946ef",
|
|
277
|
+
600: "#c026d3",
|
|
278
|
+
700: "#a21caf",
|
|
279
|
+
800: "#86198f",
|
|
280
|
+
900: "#701a75",
|
|
281
|
+
950: "#4a044e",
|
|
282
|
+
},
|
|
283
|
+
pink: {
|
|
284
|
+
50: "#fdf2f8",
|
|
285
|
+
100: "#fce7f3",
|
|
286
|
+
200: "#fbcfe8",
|
|
287
|
+
300: "#f9a8d4",
|
|
288
|
+
400: "#f472b6",
|
|
289
|
+
500: "#ec4899",
|
|
290
|
+
600: "#db2777",
|
|
291
|
+
700: "#be185d",
|
|
292
|
+
800: "#9d174d",
|
|
293
|
+
900: "#831843",
|
|
294
|
+
950: "#500724",
|
|
295
|
+
},
|
|
296
|
+
rose: {
|
|
297
|
+
50: "#fff1f2",
|
|
298
|
+
100: "#ffe4e6",
|
|
299
|
+
200: "#fecdd3",
|
|
300
|
+
300: "#fda4af",
|
|
301
|
+
400: "#fb7185",
|
|
302
|
+
500: "#f43f5e",
|
|
303
|
+
600: "#e11d48",
|
|
304
|
+
700: "#be123c",
|
|
305
|
+
800: "#9f1239",
|
|
306
|
+
900: "#881337",
|
|
307
|
+
950: "#4c0519",
|
|
35
308
|
},
|
|
36
309
|
|
|
37
310
|
// Semantic colors
|
|
@@ -154,7 +427,7 @@ export const spacing = {
|
|
|
154
427
|
|
|
155
428
|
export const borderRadius = {
|
|
156
429
|
none: 0,
|
|
157
|
-
sm:
|
|
430
|
+
sm: 3,
|
|
158
431
|
md: 8,
|
|
159
432
|
lg: 12,
|
|
160
433
|
xl: 16,
|