@sensiblestats/widget-react 0.26.2 → 0.28.0
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 +12 -0
- package/dist/index.cjs +154 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +154 -125
- package/dist/index.js.map +1 -1
- package/dist/styles.css +40 -34
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -89,10 +89,9 @@
|
|
|
89
89
|
/* entity cards */
|
|
90
90
|
.ss-w-cards { display: flex; flex-direction: column; gap: 8px; }
|
|
91
91
|
|
|
92
|
-
/*
|
|
93
|
-
.ss-w-ecard { display:
|
|
92
|
+
/* Entity card: identity header row over a horizontal stat strip */
|
|
93
|
+
.ss-w-ecard { display: flex; flex-direction: column; width: 100%; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; text-align: left; }
|
|
94
94
|
|
|
95
|
-
.ss-w-ecard-id { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 13px 10px; border-right: 1px solid var(--ss-w-line); background: linear-gradient(158deg, var(--ss-w-bubble), color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-bubble))); }
|
|
96
95
|
.ss-w-ecard-idtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
|
|
97
96
|
.ss-w-thumb { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #fff; background-color: var(--ss-w-nav); background-size: cover; background-position: center; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
|
|
98
97
|
.ss-w-thumb.ss-w-team { border-radius: 12px; }
|
|
@@ -102,27 +101,31 @@
|
|
|
102
101
|
|
|
103
102
|
/* bare card (no stat scopes): simple avatar + name row */
|
|
104
103
|
.ss-w-ecard-bare { display: flex; align-items: center; }
|
|
105
|
-
.ss-w-ecard-bare .ss-w-ecard-
|
|
106
|
-
|
|
107
|
-
.ss-w-ecard-
|
|
108
|
-
|
|
109
|
-
.ss-w-ecard-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.ss-w-ecard-
|
|
115
|
-
.ss-w-ecard-
|
|
116
|
-
.ss-w-ecard-
|
|
117
|
-
.ss-w-ecard-
|
|
104
|
+
.ss-w-ecard-bare .ss-w-ecard-hd { padding: 10px 12px; }
|
|
105
|
+
|
|
106
|
+
.ss-w-ecard-hd { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
|
|
107
|
+
.ss-w-ecard-hd .ss-w-thumb { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
|
|
108
|
+
.ss-w-ecard-hd .ss-w-thumb.ss-w-team { border-radius: 10px; }
|
|
109
|
+
.ss-w-ecard-meta { display: inline-flex; align-items: center; gap: 7px; flex: none; align-self: flex-start; margin-left: auto; }
|
|
110
|
+
.ss-w-ecard-meta .ss-w-ecard-season { margin: 0; }
|
|
111
|
+
|
|
112
|
+
/* scope tabs: reuse the underline pattern, relocated above the strip */
|
|
113
|
+
.ss-w-ecard-scopes { display: flex; align-items: stretch; gap: 2px; padding: 0 11px; border-top: 1px solid var(--ss-w-line); flex-wrap: wrap; }
|
|
114
|
+
.ss-w-ecard-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 7px 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
|
|
115
|
+
.ss-w-ecard-scope[aria-selected="true"] { color: var(--ss-w-ink); border-bottom-color: var(--ss-w-accent); }
|
|
116
|
+
.ss-w-ecard-scope .ss-w-ecard-crest { width: 14px; height: 14px; }
|
|
117
|
+
.ss-w-ecard-scopes + .ss-w-ecard-strip { border-top: none; }
|
|
118
|
+
|
|
118
119
|
.ss-w-ecard-crest { width: 15px; height: 15px; flex: none; display: block; border-radius: 4px; background-size: cover; background-position: center; }
|
|
119
120
|
.ss-w-ecard-season { flex: none; margin-left: auto; align-self: center; margin-bottom: 5px; font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 13%, var(--ss-w-panel)); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
|
|
120
|
-
.ss-w-ecard-tabs-static .ss-w-ecard-season { margin-bottom: 4px; }
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
.ss-w-ecard-
|
|
124
|
-
.ss-w-ecard-
|
|
125
|
-
.ss-w-ecard-
|
|
122
|
+
/* stat strip: 1px gap over a line-colored ground paints hairlines between cells, wrap-safe */
|
|
123
|
+
.ss-w-ecard-strip { display: grid; gap: 1px; background: var(--ss-w-line); border-top: 1px solid var(--ss-w-line); }
|
|
124
|
+
.ss-w-ecard-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 10px 4px 11px; background: var(--ss-w-panel); }
|
|
125
|
+
.ss-w-ecard-cval { height: 20px; display: flex; align-items: center; font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
|
|
126
|
+
.ss-w-ecard-cval .ss-w-form { width: 42px; }
|
|
127
|
+
.ss-w-ecard-clabel { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-w-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
128
|
+
|
|
126
129
|
.ss-w-form { justify-self: end; display: flex; height: 6px; width: 48px; border-radius: 4px; overflow: hidden; gap: 2px; }
|
|
127
130
|
.ss-w-form span { display: block; border-radius: 2px; }
|
|
128
131
|
.ss-w-form-w { background: var(--ss-w-pos); }
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
|
|
140
143
|
/* row 1: competition logo + name on the left, live badge + kickoff on the right */
|
|
141
144
|
.ss-w-bi-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); }
|
|
142
|
-
.ss-w-bi-header-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
|
|
145
|
+
.ss-w-bi-header-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12.5px; font-weight: 650; color: var(--ss-w-ink); }
|
|
143
146
|
.ss-w-bi-header-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
|
|
144
147
|
.ss-w-bi-comp { font-size: 10.5px; color: var(--ss-w-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
145
148
|
.ss-w-bi-kick { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); white-space: nowrap; flex: none; }
|
|
@@ -152,23 +155,26 @@
|
|
|
152
155
|
.ss-w-bi-crest { width: 24px; height: 24px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
|
|
153
156
|
.ss-w-bi-crest-mono { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 16%, var(--ss-w-panel)); }
|
|
154
157
|
|
|
155
|
-
/*
|
|
156
|
-
.ss-w-bi-body { display: flex; align-items: center; gap: 10px; }
|
|
157
|
-
.ss-w-bi-fixture { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12px; font-weight: 650; color: var(--ss-w-ink); }
|
|
158
|
+
/* header fixture atoms (team hero lives in .ss-w-bi-header-left; comp demotes to the meta) */
|
|
158
159
|
.ss-w-bi-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
159
160
|
.ss-w-bi-vs { font-size: 10px; font-weight: 600; color: var(--ss-w-faint); flex: none; }
|
|
160
161
|
.ss-w-bi-fixture-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
161
|
-
.ss-w-bi-
|
|
162
|
-
|
|
163
|
-
.ss-w-bi-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
.ss-w-bi-
|
|
167
|
-
.ss-w-bi-
|
|
168
|
-
.ss-w-bi-
|
|
162
|
+
.ss-w-bi-comp-meta { display: inline-flex; align-items: center; gap: 5px; flex: none; min-width: 0; }
|
|
163
|
+
/* shared crest-flanked team row, still consumed by MarketOddsCardList */
|
|
164
|
+
.ss-w-bi-fixture { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12px; font-weight: 650; color: var(--ss-w-ink); }
|
|
165
|
+
|
|
166
|
+
/* row 2: one action line -- market · selection (left, market ellipsises first), odds, slip button */
|
|
167
|
+
.ss-w-bi-action-row { display: flex; align-items: center; gap: 9px; }
|
|
168
|
+
.ss-w-bi-pick { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
|
|
169
|
+
.ss-w-bi-market { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
170
|
+
.ss-w-bi-pick-dot { flex: none; color: var(--ss-w-faint); font-weight: 700; }
|
|
171
|
+
.ss-w-bi-sel { flex: none; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); white-space: nowrap; }
|
|
169
172
|
.ss-w-bi-odds { flex: none; display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
|
|
170
|
-
.ss-w-bi-odds b { font-size:
|
|
173
|
+
.ss-w-bi-odds b { font-size: 20px; font-family: ui-monospace, monospace; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-accent); line-height: 1.05; }
|
|
171
174
|
.ss-w-bi-book { font-size: 9.5px; color: var(--ss-w-faint); }
|
|
175
|
+
.ss-w-bi-action-row .ss-w-slip { flex: none; }
|
|
176
|
+
/* let the slip toast size to its own text and anchor to the card's right edge, not the button width */
|
|
177
|
+
.ss-w-bi-action-row .ss-w-toast { left: auto; right: 0; width: max-content; max-width: 210px; white-space: normal; }
|
|
172
178
|
|
|
173
179
|
/* row 3: bar-chart glyph + reasoning prose + stats-expander chevron, in a subtle strip */
|
|
174
180
|
.ss-w-bi-reason { display: flex; align-items: flex-start; gap: 8px; background: var(--ss-w-bubble); border-radius: 10px; padding: 8px 10px; }
|