@lumen-stack/react 0.12.4 → 0.12.5
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +50 -21
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -209,7 +209,9 @@
|
|
|
209
209
|
display: inline-flex;
|
|
210
210
|
align-items: center;
|
|
211
211
|
justify-content: center;
|
|
212
|
-
gap
|
|
212
|
+
/* 0 at rest so the collapsed label adds no gap that would shove the grip
|
|
213
|
+
off-centre; restored to 6px only once the label is revealed (below). */
|
|
214
|
+
gap: 0;
|
|
213
215
|
background: var(--lumen-accent);
|
|
214
216
|
color: var(--lumen-accent-fg);
|
|
215
217
|
border: 0;
|
|
@@ -217,17 +219,23 @@
|
|
|
217
219
|
font: inherit;
|
|
218
220
|
font-size: var(--lumen-fs-13);
|
|
219
221
|
font-weight: 500;
|
|
220
|
-
|
|
222
|
+
/* A soft ambient shadow to ground the tab + a faint brand glow to lift it.
|
|
223
|
+
The glow tracks --lumen-accent (color-mix) so it follows a host's custom
|
|
224
|
+
accent. Near-symmetric so it reads on every edge. */
|
|
225
|
+
box-shadow:
|
|
226
|
+
0 2px 10px rgb(0 0 0 / 0.30),
|
|
227
|
+
0 0 18px color-mix(in oklab, var(--lumen-accent) 32%, transparent);
|
|
221
228
|
transition:
|
|
222
229
|
transform var(--lumen-dur) var(--lumen-ease),
|
|
223
230
|
padding var(--lumen-dur) var(--lumen-ease),
|
|
231
|
+
box-shadow var(--lumen-dur) var(--lumen-ease),
|
|
224
232
|
opacity var(--lumen-dur-fast) ease;
|
|
225
233
|
user-select: none;
|
|
226
234
|
-webkit-tap-highlight-color: transparent;
|
|
227
235
|
}
|
|
228
236
|
.lumen-notch-handle {
|
|
229
237
|
display: block;
|
|
230
|
-
background: rgb(255 255 255 / 0.
|
|
238
|
+
background: rgb(255 255 255 / 0.7);
|
|
231
239
|
border-radius: 999px;
|
|
232
240
|
}
|
|
233
241
|
.lumen-notch-label {
|
|
@@ -235,56 +243,77 @@
|
|
|
235
243
|
align-items: center;
|
|
236
244
|
gap: 6px;
|
|
237
245
|
white-space: nowrap;
|
|
246
|
+
/* Collapse on BOTH axes at rest so the resting tab is symmetric and the grip
|
|
247
|
+
sits dead-centre. max-width alone hid the text but the label's main-axis
|
|
248
|
+
size still inflated the tab — its line-box height on top/bottom, its
|
|
249
|
+
vertical-text length on left/right — centering the grip in a secretly-tall
|
|
250
|
+
tab (and on the column edges, pushing it to the top). The min-*: 0 is
|
|
251
|
+
required: a flex item's automatic minimum size otherwise refuses to shrink
|
|
252
|
+
below its content, so max-*: 0 would have no effect. */
|
|
253
|
+
min-width: 0;
|
|
254
|
+
min-height: 0;
|
|
238
255
|
max-width: 0;
|
|
256
|
+
max-height: 0;
|
|
239
257
|
overflow: hidden;
|
|
240
258
|
opacity: 0;
|
|
241
259
|
transition:
|
|
242
260
|
max-width var(--lumen-dur) var(--lumen-ease),
|
|
261
|
+
max-height var(--lumen-dur) var(--lumen-ease),
|
|
243
262
|
opacity var(--lumen-dur-fast) ease;
|
|
244
263
|
}
|
|
245
264
|
.lumen-notch-expanded .lumen-notch-label,
|
|
246
265
|
.lumen-notch:hover .lumen-notch-label,
|
|
247
266
|
.lumen-notch:focus-visible .lumen-notch-label {
|
|
248
267
|
max-width: 12rem;
|
|
268
|
+
max-height: 12rem;
|
|
249
269
|
opacity: 1;
|
|
250
270
|
}
|
|
271
|
+
/* On reveal: restore the handle↔label gap and lift the glow a touch. */
|
|
272
|
+
.lumen-notch-expanded,
|
|
273
|
+
.lumen-notch:hover,
|
|
274
|
+
.lumen-notch:focus-visible {
|
|
275
|
+
gap: 6px;
|
|
276
|
+
box-shadow:
|
|
277
|
+
0 3px 14px rgb(0 0 0 / 0.34),
|
|
278
|
+
0 0 26px color-mix(in oklab, var(--lumen-accent) 52%, transparent);
|
|
279
|
+
}
|
|
251
280
|
.lumen-notch-top {
|
|
252
281
|
top: 0;
|
|
253
282
|
left: 50%;
|
|
254
|
-
transform: translate(-50%,
|
|
255
|
-
padding:
|
|
283
|
+
transform: translate(-50%, 0);
|
|
284
|
+
padding: 6px 14px;
|
|
256
285
|
border-radius: 0 0 999px 999px;
|
|
257
286
|
}
|
|
258
|
-
.lumen-notch-top .lumen-notch-handle { width:
|
|
287
|
+
.lumen-notch-top .lumen-notch-handle { width: 28px; height: 3px; }
|
|
259
288
|
.lumen-notch-top.lumen-notch-expanded,
|
|
260
289
|
.lumen-notch-top:hover,
|
|
261
290
|
.lumen-notch-top:focus-visible {
|
|
262
291
|
transform: translate(-50%, 0);
|
|
263
|
-
padding:
|
|
292
|
+
padding: 8px 16px;
|
|
264
293
|
}
|
|
265
294
|
.lumen-notch-bottom {
|
|
266
295
|
bottom: 0;
|
|
267
296
|
left: 50%;
|
|
268
|
-
transform: translate(-50%,
|
|
269
|
-
padding:
|
|
297
|
+
transform: translate(-50%, 0);
|
|
298
|
+
padding: 6px 14px;
|
|
270
299
|
border-radius: 999px 999px 0 0;
|
|
271
300
|
}
|
|
272
|
-
.lumen-notch-bottom .lumen-notch-handle { width:
|
|
301
|
+
.lumen-notch-bottom .lumen-notch-handle { width: 28px; height: 3px; }
|
|
273
302
|
.lumen-notch-bottom.lumen-notch-expanded,
|
|
274
303
|
.lumen-notch-bottom:hover,
|
|
275
304
|
.lumen-notch-bottom:focus-visible {
|
|
276
305
|
transform: translate(-50%, 0);
|
|
277
|
-
padding:
|
|
306
|
+
padding: 8px 16px;
|
|
278
307
|
}
|
|
279
308
|
.lumen-notch-right {
|
|
280
309
|
right: 0;
|
|
281
310
|
top: 50%;
|
|
282
|
-
transform: translate(
|
|
283
|
-
padding: 14px
|
|
311
|
+
transform: translate(0, -50%);
|
|
312
|
+
padding: 14px 6px;
|
|
284
313
|
border-radius: 999px 0 0 999px;
|
|
285
314
|
flex-direction: column;
|
|
286
315
|
}
|
|
287
|
-
.lumen-notch-right .lumen-notch-handle { width:
|
|
316
|
+
.lumen-notch-right .lumen-notch-handle { width: 3px; height: 28px; }
|
|
288
317
|
.lumen-notch-right .lumen-notch-label {
|
|
289
318
|
writing-mode: vertical-rl;
|
|
290
319
|
transform: rotate(180deg);
|
|
@@ -293,23 +322,23 @@
|
|
|
293
322
|
.lumen-notch-right:hover,
|
|
294
323
|
.lumen-notch-right:focus-visible {
|
|
295
324
|
transform: translate(0, -50%);
|
|
296
|
-
padding: 16px
|
|
325
|
+
padding: 16px 8px;
|
|
297
326
|
}
|
|
298
327
|
.lumen-notch-left {
|
|
299
328
|
left: 0;
|
|
300
329
|
top: 50%;
|
|
301
|
-
transform: translate(
|
|
302
|
-
padding: 14px
|
|
330
|
+
transform: translate(0, -50%);
|
|
331
|
+
padding: 14px 6px;
|
|
303
332
|
border-radius: 0 999px 999px 0;
|
|
304
333
|
flex-direction: column;
|
|
305
334
|
}
|
|
306
|
-
.lumen-notch-left .lumen-notch-handle { width:
|
|
335
|
+
.lumen-notch-left .lumen-notch-handle { width: 3px; height: 28px; }
|
|
307
336
|
.lumen-notch-left .lumen-notch-label { writing-mode: vertical-rl; }
|
|
308
337
|
.lumen-notch-left.lumen-notch-expanded,
|
|
309
338
|
.lumen-notch-left:hover,
|
|
310
339
|
.lumen-notch-left:focus-visible {
|
|
311
340
|
transform: translate(0, -50%);
|
|
312
|
-
padding: 16px
|
|
341
|
+
padding: 16px 8px;
|
|
313
342
|
}
|
|
314
343
|
|
|
315
344
|
/* ─── Modal shell ────────────────────────────────────────────────── */
|
|
@@ -394,8 +423,8 @@
|
|
|
394
423
|
}
|
|
395
424
|
.lumen-modal-grabber::before {
|
|
396
425
|
content: "";
|
|
397
|
-
width:
|
|
398
|
-
height:
|
|
426
|
+
width: 32px;
|
|
427
|
+
height: 3px;
|
|
399
428
|
border-radius: 999px;
|
|
400
429
|
background: var(--lumen-border-strong);
|
|
401
430
|
}
|