@still-void/ui 3.4.1 → 3.5.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 +8 -0
- package/README.md +1 -0
- package/dist/react/client/index.cjs +170 -55
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +43 -1
- package/dist/react/client/index.d.ts +43 -1
- package/dist/react/client/index.js +160 -55
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +4 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +94 -1
- package/dist/tailwind.css +1 -0
- package/dist/theme.css +21 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -667,7 +667,7 @@ body.sv-body {
|
|
|
667
667
|
width: 100%;
|
|
668
668
|
height: var(--sv-space-10);
|
|
669
669
|
padding: var(--sv-space-2) var(--sv-space-3);
|
|
670
|
-
border: 1px solid var(--sv-border);
|
|
670
|
+
border: 1px solid var(--sv-control-border);
|
|
671
671
|
border-radius: var(--sv-radius-sm);
|
|
672
672
|
background: var(--sv-surface);
|
|
673
673
|
color: var(--sv-text);
|
|
@@ -1347,6 +1347,98 @@ body.sv-body {
|
|
|
1347
1347
|
outline-offset: 2px;
|
|
1348
1348
|
}
|
|
1349
1349
|
|
|
1350
|
+
/* ---------- Bottom sheet ---------- */
|
|
1351
|
+
/* The mobile counterpart of Dialog: anchored to the bottom edge, full width,
|
|
1352
|
+
rounded only on top. Same surface/border language as .sv-dialog -- no shadow.
|
|
1353
|
+
Height is capped at 90dvh so the overlay stays visible and tappable; the
|
|
1354
|
+
content scrolls inside .sv-sheet__body. The bottom padding adds the device
|
|
1355
|
+
safe area so actions never sit under the home indicator. */
|
|
1356
|
+
.sv-sheet {
|
|
1357
|
+
position: fixed;
|
|
1358
|
+
left: 0;
|
|
1359
|
+
right: 0;
|
|
1360
|
+
bottom: 0;
|
|
1361
|
+
z-index: var(--sv-z-modal);
|
|
1362
|
+
display: flex;
|
|
1363
|
+
flex-direction: column;
|
|
1364
|
+
gap: var(--sv-space-4);
|
|
1365
|
+
max-height: 90dvh;
|
|
1366
|
+
padding: var(--sv-space-2) var(--sv-space-4) calc(var(--sv-space-4) + env(safe-area-inset-bottom, 0px));
|
|
1367
|
+
border: 1px solid var(--sv-border);
|
|
1368
|
+
border-bottom: none;
|
|
1369
|
+
border-radius: var(--sv-radius-xl) var(--sv-radius-xl) 0 0;
|
|
1370
|
+
background: var(--sv-surface);
|
|
1371
|
+
color: var(--sv-text);
|
|
1372
|
+
transform: translateY(var(--sv-sheet-drag, 0px));
|
|
1373
|
+
}
|
|
1374
|
+
.sv-sheet[data-state='open'] {
|
|
1375
|
+
animation: sv-sheet-in var(--sv-duration-base) var(--sv-ease-hover);
|
|
1376
|
+
}
|
|
1377
|
+
.sv-sheet[data-state='closed'] {
|
|
1378
|
+
animation: sv-sheet-out var(--sv-duration-base) var(--sv-ease-hover);
|
|
1379
|
+
}
|
|
1380
|
+
.sv-sheet[data-dragging='true'] {
|
|
1381
|
+
animation: none;
|
|
1382
|
+
user-select: none;
|
|
1383
|
+
}
|
|
1384
|
+
/* The grab area is 24px tall (WCAG 2.5.8 minimum target); the visible bar is the
|
|
1385
|
+
pseudo-element. touch-action: none keeps the page from scrolling mid-drag. */
|
|
1386
|
+
.sv-sheet__handle {
|
|
1387
|
+
display: flex;
|
|
1388
|
+
align-items: center;
|
|
1389
|
+
justify-content: center;
|
|
1390
|
+
align-self: stretch;
|
|
1391
|
+
flex: none;
|
|
1392
|
+
height: var(--sv-space-6);
|
|
1393
|
+
margin-inline: calc(var(--sv-space-4) * -1);
|
|
1394
|
+
}
|
|
1395
|
+
.sv-sheet__handle[data-draggable='true'] {
|
|
1396
|
+
touch-action: none;
|
|
1397
|
+
cursor: grab;
|
|
1398
|
+
}
|
|
1399
|
+
.sv-sheet__handle::before {
|
|
1400
|
+
content: '';
|
|
1401
|
+
width: var(--sv-space-10);
|
|
1402
|
+
height: var(--sv-space-1);
|
|
1403
|
+
border-radius: var(--sv-radius-full);
|
|
1404
|
+
background: var(--sv-control-border);
|
|
1405
|
+
}
|
|
1406
|
+
.sv-sheet__close {
|
|
1407
|
+
position: absolute;
|
|
1408
|
+
top: var(--sv-space-2);
|
|
1409
|
+
right: var(--sv-space-2);
|
|
1410
|
+
}
|
|
1411
|
+
.sv-sheet__header {
|
|
1412
|
+
display: flex;
|
|
1413
|
+
flex-direction: column;
|
|
1414
|
+
gap: var(--sv-space-1);
|
|
1415
|
+
padding-right: var(--sv-space-18);
|
|
1416
|
+
}
|
|
1417
|
+
.sv-sheet__body {
|
|
1418
|
+
flex: 1 1 auto;
|
|
1419
|
+
min-height: 0;
|
|
1420
|
+
overflow-y: auto;
|
|
1421
|
+
overscroll-behavior: contain;
|
|
1422
|
+
}
|
|
1423
|
+
.sv-sheet__footer {
|
|
1424
|
+
display: flex;
|
|
1425
|
+
flex-direction: row;
|
|
1426
|
+
justify-content: flex-end;
|
|
1427
|
+
gap: var(--sv-space-2);
|
|
1428
|
+
}
|
|
1429
|
+
.sv-sheet__title {
|
|
1430
|
+
font-family: var(--sv-font-display);
|
|
1431
|
+
font-size: var(--sv-text-lg);
|
|
1432
|
+
font-weight: 600;
|
|
1433
|
+
line-height: 1.2;
|
|
1434
|
+
color: var(--sv-text);
|
|
1435
|
+
}
|
|
1436
|
+
.sv-sheet__description {
|
|
1437
|
+
font-size: var(--sv-text-sm);
|
|
1438
|
+
line-height: 1.5;
|
|
1439
|
+
color: var(--sv-text-2);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1350
1442
|
/* ---------- Popovers ---------- */
|
|
1351
1443
|
/* One floating surface for the SelectContent, the DropdownMenuContent and the
|
|
1352
1444
|
TooltipContent. They were three near-identical utility strings before, which
|
|
@@ -2074,6 +2166,7 @@ body.sv-body {
|
|
|
2074
2166
|
all — the closed panel never has a chance to snap into view. */
|
|
2075
2167
|
.sv-overlay,
|
|
2076
2168
|
.sv-dialog,
|
|
2169
|
+
.sv-sheet,
|
|
2077
2170
|
.sv-pop,
|
|
2078
2171
|
.sv-app-sidebar,
|
|
2079
2172
|
.sv-toast {
|
package/dist/tailwind.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
--color-sv-surface-2: var(--sv-surface-2);
|
|
40
40
|
--color-sv-border: var(--sv-border);
|
|
41
41
|
--color-sv-border-strong: var(--sv-border-strong);
|
|
42
|
+
--color-sv-control-border: var(--sv-control-border);
|
|
42
43
|
--color-sv-text: var(--sv-text);
|
|
43
44
|
--color-sv-text-2: var(--sv-text-2);
|
|
44
45
|
--color-sv-text-3: var(--sv-text-3);
|
package/dist/theme.css
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
--sv-surface-2: #1c1c22;
|
|
23
23
|
--sv-border: rgba(255, 255, 255, 0.08);
|
|
24
24
|
--sv-border-strong: rgba(255, 255, 255, 0.14);
|
|
25
|
+
/* WCAG 1.4.11: ≥3:1 on every surface, for the edge of form controls. */
|
|
26
|
+
--sv-control-border: #6b6b76;
|
|
25
27
|
--sv-text: #ededf0;
|
|
26
28
|
--sv-text-2: #8b8b96;
|
|
27
29
|
/* WCAG AA fix: was #5a5a66 (~2.6:1 on surface) — text3 carries real copy, not decoration. */
|
|
@@ -114,6 +116,7 @@
|
|
|
114
116
|
--sv-surface-2: #f2f2ef;
|
|
115
117
|
--sv-border: rgba(0, 0, 0, 0.08);
|
|
116
118
|
--sv-border-strong: rgba(0, 0, 0, 0.14);
|
|
119
|
+
--sv-control-border: #85858e;
|
|
117
120
|
--sv-text: #16161b;
|
|
118
121
|
--sv-text-2: #5a5a66;
|
|
119
122
|
/* WCAG AA fix: was #8b8b96 (~3.1:1 on white). #6f6f78 (a first fix) cleared
|
|
@@ -236,6 +239,24 @@
|
|
|
236
239
|
a flat, non-recursive selector-body regex in the CSS contract tests, which
|
|
237
240
|
cannot handle a rule with nested braces — the same reason
|
|
238
241
|
`sv-skeleton-shimmer` above lives here instead of next to `.sv-skeleton`. */
|
|
242
|
+
/* Bottom sheet slide. `from`/`to` honour --sv-sheet-drag so a sheet released
|
|
243
|
+
mid-drag leaves from where the finger let go instead of snapping back. */
|
|
244
|
+
@keyframes sv-sheet-in {
|
|
245
|
+
from {
|
|
246
|
+
transform: translateY(100%);
|
|
247
|
+
}
|
|
248
|
+
to {
|
|
249
|
+
transform: translateY(var(--sv-sheet-drag, 0px));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
@keyframes sv-sheet-out {
|
|
253
|
+
from {
|
|
254
|
+
transform: translateY(var(--sv-sheet-drag, 0px));
|
|
255
|
+
}
|
|
256
|
+
to {
|
|
257
|
+
transform: translateY(100%);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
239
260
|
@keyframes sv-fade-in {
|
|
240
261
|
from {
|
|
241
262
|
opacity: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@still-void/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Still Void design system — React/Next.js design system with a server-safe entry and a client-only entry, built on shadcn/ui.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kalleo Pinheiro",
|