@wix/web5-core 1.56.0 → 1.56.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/package.json +4 -3
- package/src/components/placement/PlacementResponseRenderer.css +269 -0
- package/src/components/ui/Disclaimer.css +35 -0
- package/src/components/ui/FeedbackBar.css +267 -0
- package/src/components/ui/PlacementLoader.css +101 -0
- package/src/components/ui/PromptEntryEmptyState.css +172 -0
- package/src/components/ui/SearchSection.css +538 -0
- package/src/components/ui/SectionSkeleton.css +109 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* SectionSkeleton — status-driven placeholder for a not-yet-streamed V3
|
|
2
|
+
section (DL #106). Self-contained: structure/sizing live here (NOT Tailwind
|
|
3
|
+
utilities) so the skeleton renders correctly regardless of whether the
|
|
4
|
+
consuming app's Tailwind scans this core package. Colors are tokenized; the
|
|
5
|
+
`shimmer` keyframe is defined globally in base-utilities.css. */
|
|
6
|
+
|
|
7
|
+
.w5-skeleton {
|
|
8
|
+
/* Decorative; never intercept clicks or text selection. */
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
padding-block: 4rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (min-width: 64rem) {
|
|
15
|
+
.w5-skeleton {
|
|
16
|
+
padding-block: 6rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.w5-skeleton__inner {
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: var(--container-section, 1080px);
|
|
23
|
+
margin-inline: auto;
|
|
24
|
+
padding-inline: 1.5rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 1.5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.w5-skeleton__grid {
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
33
|
+
gap: 1.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (min-width: 48rem) {
|
|
37
|
+
.w5-skeleton__grid {
|
|
38
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.w5-skeleton__card {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 0.75rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.w5-skeleton__lines {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 0.75rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* --- bar sizes --------------------------------------------------------------- */
|
|
55
|
+
.w5-skeleton__title {
|
|
56
|
+
height: 1.75rem;
|
|
57
|
+
width: 33%;
|
|
58
|
+
border-radius: 6px;
|
|
59
|
+
}
|
|
60
|
+
.w5-skeleton__media {
|
|
61
|
+
width: 100%;
|
|
62
|
+
aspect-ratio: 1 / 1;
|
|
63
|
+
border-radius: 12px;
|
|
64
|
+
}
|
|
65
|
+
.w5-skeleton__tile {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 6rem;
|
|
68
|
+
border-radius: 12px;
|
|
69
|
+
}
|
|
70
|
+
.w5-skeleton__row {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 2.5rem;
|
|
73
|
+
border-radius: 6px;
|
|
74
|
+
}
|
|
75
|
+
.w5-skeleton__line {
|
|
76
|
+
height: 1rem;
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
}
|
|
79
|
+
.w5-skeleton__line--lg {
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.w5-skeleton__line--md {
|
|
83
|
+
width: 80%;
|
|
84
|
+
}
|
|
85
|
+
.w5-skeleton__line--sm {
|
|
86
|
+
width: 60%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* --- shimmer treatment ------------------------------------------------------- */
|
|
90
|
+
.w5-skeleton__bar {
|
|
91
|
+
display: block;
|
|
92
|
+
/* Grey base with a lighter sheen swept across by the global `shimmer`
|
|
93
|
+
keyframe (pans background-position -200% → 200%). Both tones are tokens. */
|
|
94
|
+
background-color: var(--color-border);
|
|
95
|
+
background-image: linear-gradient(
|
|
96
|
+
90deg,
|
|
97
|
+
var(--color-border) 25%,
|
|
98
|
+
var(--color-muted) 37%,
|
|
99
|
+
var(--color-border) 63%
|
|
100
|
+
);
|
|
101
|
+
background-size: 200% 100%;
|
|
102
|
+
animation: shimmer 1.4s ease-in-out infinite;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-reduced-motion: reduce) {
|
|
106
|
+
.w5-skeleton__bar {
|
|
107
|
+
animation: none;
|
|
108
|
+
}
|
|
109
|
+
}
|