@still-void/ui 3.5.1 → 3.6.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 +65 -0
- package/README.md +36 -0
- package/dist/css/app-shell.css +129 -0
- package/dist/css/base.css +27 -0
- package/dist/css/content.css +726 -0
- package/dist/css/controls.css +383 -0
- package/dist/css/data.css +190 -0
- package/dist/css/forms.css +318 -0
- package/dist/css/motion.css +49 -0
- package/dist/css/overlays.css +488 -0
- package/dist/css/toast.css +170 -0
- package/dist/react/_modules/behaviors/themeManager.js +10 -0
- package/dist/react/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/_modules/components/ui/alert.js +14 -0
- package/dist/react/_modules/components/ui/alert.js.map +1 -0
- package/dist/react/_modules/components/ui/badge.js +9 -0
- package/dist/react/_modules/components/ui/badge.js.map +1 -0
- package/dist/react/_modules/components/ui/button.js +9 -0
- package/dist/react/_modules/components/ui/button.js.map +1 -0
- package/dist/react/_modules/components/ui/card.js +19 -0
- package/dist/react/_modules/components/ui/card.js.map +1 -0
- package/dist/react/_modules/components/ui/chart.js +18 -0
- package/dist/react/_modules/components/ui/chart.js.map +1 -0
- package/dist/react/_modules/components/ui/checkbox.js +8 -0
- package/dist/react/_modules/components/ui/checkbox.js.map +1 -0
- package/dist/react/_modules/components/ui/field.js +9 -0
- package/dist/react/_modules/components/ui/field.js.map +1 -0
- package/dist/react/_modules/components/ui/file-input.js +10 -0
- package/dist/react/_modules/components/ui/file-input.js.map +1 -0
- package/dist/react/_modules/components/ui/icon-set.js +11 -0
- package/dist/react/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/_modules/components/ui/icon.js +9 -0
- package/dist/react/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/_modules/components/ui/input.js +10 -0
- package/dist/react/_modules/components/ui/input.js.map +1 -0
- package/dist/react/_modules/components/ui/native-select.js +10 -0
- package/dist/react/_modules/components/ui/native-select.js.map +1 -0
- package/dist/react/_modules/components/ui/pagination.js +23 -0
- package/dist/react/_modules/components/ui/pagination.js.map +1 -0
- package/dist/react/_modules/components/ui/progress.js +8 -0
- package/dist/react/_modules/components/ui/progress.js.map +1 -0
- package/dist/react/_modules/components/ui/radio-group.js +12 -0
- package/dist/react/_modules/components/ui/radio-group.js.map +1 -0
- package/dist/react/_modules/components/ui/separator.js +8 -0
- package/dist/react/_modules/components/ui/separator.js.map +1 -0
- package/dist/react/_modules/components/ui/slot.js +7 -0
- package/dist/react/_modules/components/ui/slot.js.map +1 -0
- package/dist/react/_modules/components/ui/table.js +23 -0
- package/dist/react/_modules/components/ui/table.js.map +1 -0
- package/dist/react/_modules/components/ui/text-link.js +10 -0
- package/dist/react/_modules/components/ui/text-link.js.map +1 -0
- package/dist/react/_modules/components/ui/textarea.js +10 -0
- package/dist/react/_modules/components/ui/textarea.js.map +1 -0
- package/dist/react/_modules/lib/safe-href.js +9 -0
- package/dist/react/_modules/lib/safe-href.js.map +1 -0
- package/dist/react/_modules/lib/utils.js +7 -0
- package/dist/react/_modules/lib/utils.js.map +1 -0
- package/dist/react/_modules/react/components/Article.js +17 -0
- package/dist/react/_modules/react/components/Article.js.map +1 -0
- package/dist/react/_modules/react/components/Content.js +30 -0
- package/dist/react/_modules/react/components/Content.js.map +1 -0
- package/dist/react/_modules/react/components/PageHeader.js +8 -0
- package/dist/react/_modules/react/components/PageHeader.js.map +1 -0
- package/dist/react/_modules/react/components/Shell.js +17 -0
- package/dist/react/_modules/react/components/Shell.js.map +1 -0
- package/dist/react/_modules/react/components/ThemeScript.js +9 -0
- package/dist/react/_modules/react/components/ThemeScript.js.map +1 -0
- package/dist/react/_modules/recipes/article.js +34 -0
- package/dist/react/_modules/recipes/article.js.map +1 -0
- package/dist/react/_modules/recipes/content.js +34 -0
- package/dist/react/_modules/recipes/content.js.map +1 -0
- package/dist/react/_modules/recipes/cx.js +7 -0
- package/dist/react/_modules/recipes/cx.js.map +1 -0
- package/dist/react/_modules/recipes/field.js +12 -0
- package/dist/react/_modules/recipes/field.js.map +1 -0
- package/dist/react/_modules/recipes/shell.js +18 -0
- package/dist/react/_modules/recipes/shell.js.map +1 -0
- package/dist/react/_modules/recipes/table.js +9 -0
- package/dist/react/_modules/recipes/table.js.map +1 -0
- package/dist/react/_modules/tokens/categories.js +12 -0
- package/dist/react/_modules/tokens/categories.js.map +1 -0
- package/dist/react/_modules/tokens/colors.js +23 -0
- package/dist/react/_modules/tokens/colors.js.map +1 -0
- package/dist/react/_modules/tokens/motion.js +9 -0
- package/dist/react/_modules/tokens/motion.js.map +1 -0
- package/dist/react/_modules/tokens/spacing.js +9 -0
- package/dist/react/_modules/tokens/spacing.js.map +1 -0
- package/dist/react/_modules/tokens/typography.js +15 -0
- package/dist/react/_modules/tokens/typography.js.map +1 -0
- package/dist/react/_modules/tokens/zIndex.js +7 -0
- package/dist/react/_modules/tokens/zIndex.js.map +1 -0
- package/dist/react/chunk-2QRW4J2C.js +29 -0
- package/dist/react/chunk-2QRW4J2C.js.map +1 -0
- package/dist/react/chunk-3BWBG3BR.js +82 -0
- package/dist/react/chunk-3BWBG3BR.js.map +1 -0
- package/dist/react/chunk-563PKHIJ.js +48 -0
- package/dist/react/chunk-563PKHIJ.js.map +1 -0
- package/dist/react/chunk-5RPXXOD7.js +50 -0
- package/dist/react/chunk-5RPXXOD7.js.map +1 -0
- package/dist/react/chunk-6PF2SFKH.js +54 -0
- package/dist/react/chunk-6PF2SFKH.js.map +1 -0
- package/dist/react/chunk-7JIE3YAY.js +109 -0
- package/dist/react/chunk-7JIE3YAY.js.map +1 -0
- package/dist/react/chunk-7ZVSFBDK.js +26 -0
- package/dist/react/chunk-7ZVSFBDK.js.map +1 -0
- package/dist/react/chunk-AVAJOAL5.js +10 -0
- package/dist/react/chunk-AVAJOAL5.js.map +1 -0
- package/dist/react/chunk-BXKXO6FU.js +34 -0
- package/dist/react/chunk-BXKXO6FU.js.map +1 -0
- package/dist/react/chunk-CN3PNEZL.js +80 -0
- package/dist/react/chunk-CN3PNEZL.js.map +1 -0
- package/dist/react/chunk-EHJDOUXR.js +144 -0
- package/dist/react/chunk-EHJDOUXR.js.map +1 -0
- package/dist/react/chunk-FX2E23UV.js +28 -0
- package/dist/react/chunk-FX2E23UV.js.map +1 -0
- package/dist/react/chunk-GYGMM6RW.js +20 -0
- package/dist/react/chunk-GYGMM6RW.js.map +1 -0
- package/dist/react/chunk-H7DEOO3V.js +29 -0
- package/dist/react/chunk-H7DEOO3V.js.map +1 -0
- package/dist/react/chunk-HD7O5FNH.js +39 -0
- package/dist/react/chunk-HD7O5FNH.js.map +1 -0
- package/dist/react/chunk-HYLCMS2U.js +28 -0
- package/dist/react/chunk-HYLCMS2U.js.map +1 -0
- package/dist/react/chunk-HYXG2WF4.js +73 -0
- package/dist/react/chunk-HYXG2WF4.js.map +1 -0
- package/dist/react/chunk-KQK7SZ3K.js +52 -0
- package/dist/react/chunk-KQK7SZ3K.js.map +1 -0
- package/dist/react/chunk-KQZBK3XX.js +24 -0
- package/dist/react/chunk-KQZBK3XX.js.map +1 -0
- package/dist/react/chunk-L6WPFLSD.js +39 -0
- package/dist/react/chunk-L6WPFLSD.js.map +1 -0
- package/dist/react/chunk-LOVNG6RF.js +9 -0
- package/dist/react/chunk-LOVNG6RF.js.map +1 -0
- package/dist/react/chunk-M5FFVQKK.js +41 -0
- package/dist/react/chunk-M5FFVQKK.js.map +1 -0
- package/dist/react/chunk-MZEFPODP.js +77 -0
- package/dist/react/chunk-MZEFPODP.js.map +1 -0
- package/dist/react/chunk-NJQN37EG.js +37 -0
- package/dist/react/chunk-NJQN37EG.js.map +1 -0
- package/dist/react/chunk-OEFJMV7G.js +144 -0
- package/dist/react/chunk-OEFJMV7G.js.map +1 -0
- package/dist/react/chunk-P4M4LEI2.js +62 -0
- package/dist/react/chunk-P4M4LEI2.js.map +1 -0
- package/dist/react/chunk-PGDHKADW.js +60 -0
- package/dist/react/chunk-PGDHKADW.js.map +1 -0
- package/dist/react/chunk-QTVPXQ43.js +29 -0
- package/dist/react/chunk-QTVPXQ43.js.map +1 -0
- package/dist/react/chunk-QVOZHMVF.js +14 -0
- package/dist/react/chunk-QVOZHMVF.js.map +1 -0
- package/dist/react/chunk-SJ2YK4NJ.js +27 -0
- package/dist/react/chunk-SJ2YK4NJ.js.map +1 -0
- package/dist/react/chunk-SSMGCYPH.js +79 -0
- package/dist/react/chunk-SSMGCYPH.js.map +1 -0
- package/dist/react/chunk-SUT4G3TE.js +29 -0
- package/dist/react/chunk-SUT4G3TE.js.map +1 -0
- package/dist/react/chunk-SVLIJGBZ.js +14 -0
- package/dist/react/chunk-SVLIJGBZ.js.map +1 -0
- package/dist/react/chunk-SY7EEIC3.js +100 -0
- package/dist/react/chunk-SY7EEIC3.js.map +1 -0
- package/dist/react/chunk-TI3OPDCN.js +25 -0
- package/dist/react/chunk-TI3OPDCN.js.map +1 -0
- package/dist/react/chunk-U6L6J73Y.js +27 -0
- package/dist/react/chunk-U6L6J73Y.js.map +1 -0
- package/dist/react/chunk-VD5O66DN.js +54 -0
- package/dist/react/chunk-VD5O66DN.js.map +1 -0
- package/dist/react/chunk-YDGOXO6Q.js +74 -0
- package/dist/react/chunk-YDGOXO6Q.js.map +1 -0
- package/dist/react/chunk-YTTFCX3E.js +16 -0
- package/dist/react/chunk-YTTFCX3E.js.map +1 -0
- package/dist/react/chunk-YXV3UEL5.js +27 -0
- package/dist/react/chunk-YXV3UEL5.js.map +1 -0
- package/dist/react/client/_modules/behaviors/clipboard.js +8 -0
- package/dist/react/client/_modules/behaviors/clipboard.js.map +1 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js +8 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js.map +1 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js +10 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js.map +1 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js +8 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js.map +1 -0
- package/dist/react/client/_modules/behaviors/themeManager.js +11 -0
- package/dist/react/client/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js +28 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js.map +1 -0
- package/dist/react/client/_modules/components/ui/combobox.js +13 -0
- package/dist/react/client/_modules/components/ui/combobox.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js +39 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon-set.js +12 -0
- package/dist/react/client/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon.js +10 -0
- package/dist/react/client/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js +8 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js.map +1 -0
- package/dist/react/client/_modules/components/ui/select.js +29 -0
- package/dist/react/client/_modules/components/ui/select.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tabs.js +15 -0
- package/dist/react/client/_modules/components/ui/tabs.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tooltip.js +15 -0
- package/dist/react/client/_modules/components/ui/tooltip.js.map +1 -0
- package/dist/react/client/_modules/lib/utils.js +8 -0
- package/dist/react/client/_modules/lib/utils.js.map +1 -0
- package/dist/react/client/_modules/react/client/CopyButton.js +11 -0
- package/dist/react/client/_modules/react/client/CopyButton.js.map +1 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js +14 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js.map +1 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js +26 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js +14 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js +12 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js +14 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js.map +1 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js +14 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/hooks.js +17 -0
- package/dist/react/client/_modules/react/client/hooks.js.map +1 -0
- package/dist/react/client/_modules/react/client/shadcn.js +160 -0
- package/dist/react/client/_modules/react/client/shadcn.js.map +1 -0
- package/dist/react/client/_modules/recipes/article.js +35 -0
- package/dist/react/client/_modules/recipes/article.js.map +1 -0
- package/dist/react/client/_modules/recipes/cx.js +8 -0
- package/dist/react/client/_modules/recipes/cx.js.map +1 -0
- package/dist/react/client/_modules/recipes/field.js +13 -0
- package/dist/react/client/_modules/recipes/field.js.map +1 -0
- package/dist/react/client/_modules/tokens/colors.js +24 -0
- package/dist/react/client/_modules/tokens/colors.js.map +1 -0
- package/dist/react/client/chunk-3MVZ2ES4.js +83 -0
- package/dist/react/client/chunk-3MVZ2ES4.js.map +1 -0
- package/dist/react/client/chunk-7AU2DPOL.js +35 -0
- package/dist/react/client/chunk-7AU2DPOL.js.map +1 -0
- package/dist/react/client/chunk-ABWCVXOO.js +11 -0
- package/dist/react/client/chunk-ABWCVXOO.js.map +1 -0
- package/dist/react/client/chunk-AEXJWMUV.js +52 -0
- package/dist/react/client/chunk-AEXJWMUV.js.map +1 -0
- package/dist/react/client/chunk-CJQZ4BGO.js +125 -0
- package/dist/react/client/chunk-CJQZ4BGO.js.map +1 -0
- package/dist/react/client/chunk-CMMPIPNC.js +30 -0
- package/dist/react/client/chunk-CMMPIPNC.js.map +1 -0
- package/dist/react/client/chunk-CWA3N5RK.js +123 -0
- package/dist/react/client/chunk-CWA3N5RK.js.map +1 -0
- package/dist/react/client/chunk-ECOPTUZT.js +102 -0
- package/dist/react/client/chunk-ECOPTUZT.js.map +1 -0
- package/dist/react/client/chunk-GD7XJWKF.js +102 -0
- package/dist/react/client/chunk-GD7XJWKF.js.map +1 -0
- package/dist/react/client/chunk-JVVNV4DF.js +95 -0
- package/dist/react/client/chunk-JVVNV4DF.js.map +1 -0
- package/dist/react/client/chunk-LDOUB5IA.js +40 -0
- package/dist/react/client/chunk-LDOUB5IA.js.map +1 -0
- package/dist/react/client/chunk-M5QFSQYC.js +40 -0
- package/dist/react/client/chunk-M5QFSQYC.js.map +1 -0
- package/dist/react/client/chunk-MGR4F2BJ.js +67 -0
- package/dist/react/client/chunk-MGR4F2BJ.js.map +1 -0
- package/dist/react/client/chunk-MYTOL2RH.js +61 -0
- package/dist/react/client/chunk-MYTOL2RH.js.map +1 -0
- package/dist/react/client/chunk-N64GC5ZU.js +12 -0
- package/dist/react/client/chunk-N64GC5ZU.js.map +1 -0
- package/dist/react/client/chunk-NEAL74VV.js +130 -0
- package/dist/react/client/chunk-NEAL74VV.js.map +1 -0
- package/dist/react/client/chunk-OF6BMW2X.js +30 -0
- package/dist/react/client/chunk-OF6BMW2X.js.map +1 -0
- package/dist/react/client/chunk-OILITPDP.js +72 -0
- package/dist/react/client/chunk-OILITPDP.js.map +1 -0
- package/dist/react/client/chunk-OU4ACOFA.js +75 -0
- package/dist/react/client/chunk-OU4ACOFA.js.map +1 -0
- package/dist/react/client/chunk-OVMH25G3.js +23 -0
- package/dist/react/client/chunk-OVMH25G3.js.map +1 -0
- package/dist/react/client/chunk-P2UPL6Y3.js +205 -0
- package/dist/react/client/chunk-P2UPL6Y3.js.map +1 -0
- package/dist/react/client/chunk-PAOYY55O.js +41 -0
- package/dist/react/client/chunk-PAOYY55O.js.map +1 -0
- package/dist/react/client/chunk-PYG5NCEU.js +54 -0
- package/dist/react/client/chunk-PYG5NCEU.js.map +1 -0
- package/dist/react/client/chunk-RCZS37V5.js +239 -0
- package/dist/react/client/chunk-RCZS37V5.js.map +1 -0
- package/dist/react/client/chunk-RJFN4KXE.js +36 -0
- package/dist/react/client/chunk-RJFN4KXE.js.map +1 -0
- package/dist/react/client/chunk-RNMQZ6T2.js +62 -0
- package/dist/react/client/chunk-RNMQZ6T2.js.map +1 -0
- package/dist/react/client/chunk-TXL2US4Z.js +53 -0
- package/dist/react/client/chunk-TXL2US4Z.js.map +1 -0
- package/dist/react/client/chunk-U6FMZ32G.js +192 -0
- package/dist/react/client/chunk-U6FMZ32G.js.map +1 -0
- package/dist/react/client/chunk-WR7KQGBM.js +2 -0
- package/dist/react/client/chunk-WR7KQGBM.js.map +1 -0
- package/dist/react/client/chunk-XHL4YEVA.js +17 -0
- package/dist/react/client/chunk-XHL4YEVA.js.map +1 -0
- package/dist/react/client/index.cjs +400 -81
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +86 -5
- package/dist/react/client/index.d.ts +86 -5
- package/dist/react/client/index.js +141 -1426
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +368 -183
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +202 -23
- package/dist/react/index.d.ts +202 -23
- package/dist/react/index.js +206 -1231
- package/dist/react/index.js.map +1 -1
- package/dist/shadcn-overrides.css +27 -13
- package/dist/style.css +301 -19
- package/dist/theme.css +73 -24
- package/package.json +36 -6
package/dist/style.css
CHANGED
|
@@ -367,10 +367,13 @@ body.sv-body {
|
|
|
367
367
|
gap: var(--sv-space-4);
|
|
368
368
|
padding: var(--sv-space-16) 0 var(--sv-space-12);
|
|
369
369
|
}
|
|
370
|
+
/* DESIGN "Label" step: Manrope 600, 0.75rem, 0.08em tracking, uppercase — a
|
|
371
|
+
weight/tracking/case treatment, not a typeface change (Sparse-Display Rule). */
|
|
370
372
|
.sv-hero__eyebrow {
|
|
371
373
|
color: var(--sv-accent-ink);
|
|
372
|
-
font-family: var(--sv-font-
|
|
373
|
-
font-size: var(--sv-text-
|
|
374
|
+
font-family: var(--sv-font-body);
|
|
375
|
+
font-size: var(--sv-text-xs);
|
|
376
|
+
font-weight: 600;
|
|
374
377
|
letter-spacing: 0.08em;
|
|
375
378
|
text-transform: uppercase;
|
|
376
379
|
}
|
|
@@ -399,6 +402,79 @@ body.sv-body {
|
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
404
|
|
|
405
|
+
/* ---------- PageHeader ---------- */
|
|
406
|
+
/* Mobile first: title block and actions stack; side by side from 40rem. The
|
|
407
|
+
title row never wraps (a badge hopping lines when the web font swaps in
|
|
408
|
+
moves the whole page); a wide badge opts into `--stack` instead, which is
|
|
409
|
+
decided by viewport width only. */
|
|
410
|
+
.sv-page-header {
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
gap: var(--sv-space-4);
|
|
414
|
+
margin-bottom: var(--sv-space-6);
|
|
415
|
+
}
|
|
416
|
+
.sv-page-header__main {
|
|
417
|
+
min-width: 0;
|
|
418
|
+
}
|
|
419
|
+
.sv-page-header__leading {
|
|
420
|
+
margin-bottom: var(--sv-space-2);
|
|
421
|
+
}
|
|
422
|
+
.sv-page-header__title-row {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: var(--sv-space-3);
|
|
426
|
+
}
|
|
427
|
+
.sv-page-header__title-row--stack {
|
|
428
|
+
flex-direction: column;
|
|
429
|
+
align-items: flex-start;
|
|
430
|
+
gap: var(--sv-space-2);
|
|
431
|
+
}
|
|
432
|
+
.sv-page-header__title {
|
|
433
|
+
min-width: 0;
|
|
434
|
+
margin: 0;
|
|
435
|
+
color: var(--sv-text);
|
|
436
|
+
font-family: var(--sv-font-display);
|
|
437
|
+
font-size: var(--sv-text-2xl);
|
|
438
|
+
font-weight: 600;
|
|
439
|
+
letter-spacing: -0.02em;
|
|
440
|
+
line-height: 1.15;
|
|
441
|
+
overflow-wrap: anywhere;
|
|
442
|
+
}
|
|
443
|
+
.sv-page-header__badge {
|
|
444
|
+
display: flex;
|
|
445
|
+
flex-wrap: wrap;
|
|
446
|
+
align-items: center;
|
|
447
|
+
gap: var(--sv-space-2);
|
|
448
|
+
}
|
|
449
|
+
.sv-page-header__description {
|
|
450
|
+
max-width: 68ch;
|
|
451
|
+
margin-top: var(--sv-space-1);
|
|
452
|
+
color: var(--sv-text-2);
|
|
453
|
+
font-size: var(--sv-text-sm);
|
|
454
|
+
}
|
|
455
|
+
.sv-page-header__actions {
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-wrap: wrap;
|
|
458
|
+
align-items: center;
|
|
459
|
+
gap: var(--sv-space-2);
|
|
460
|
+
}
|
|
461
|
+
@media (width >= 40rem) {
|
|
462
|
+
.sv-page-header {
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
align-items: flex-end;
|
|
465
|
+
justify-content: space-between;
|
|
466
|
+
}
|
|
467
|
+
.sv-page-header__title-row--stack {
|
|
468
|
+
flex-direction: row;
|
|
469
|
+
align-items: center;
|
|
470
|
+
gap: var(--sv-space-3);
|
|
471
|
+
}
|
|
472
|
+
.sv-page-header__actions {
|
|
473
|
+
flex-shrink: 0;
|
|
474
|
+
justify-content: flex-end;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
402
478
|
/* ---------- Skeleton ---------- */
|
|
403
479
|
.sv-skeleton-line {
|
|
404
480
|
height: var(--sv-space-4);
|
|
@@ -657,6 +733,24 @@ body.sv-body {
|
|
|
657
733
|
font-style: italic;
|
|
658
734
|
}
|
|
659
735
|
|
|
736
|
+
/* ---------- Link ---------- */
|
|
737
|
+
/* Inline text link outside Prose (TextLink): accent ink, underline on hover.
|
|
738
|
+
Touch sizing lives with the other targets (Touch targets section). */
|
|
739
|
+
.sv-link {
|
|
740
|
+
color: var(--sv-accent-ink);
|
|
741
|
+
text-decoration: underline;
|
|
742
|
+
text-decoration-color: color-mix(in srgb, var(--sv-accent-ink) 40%, transparent);
|
|
743
|
+
text-underline-offset: 3px;
|
|
744
|
+
transition: text-decoration-color var(--sv-duration-fast) var(--sv-ease-hover);
|
|
745
|
+
}
|
|
746
|
+
.sv-link:hover {
|
|
747
|
+
text-decoration-color: currentColor;
|
|
748
|
+
}
|
|
749
|
+
.sv-link:focus-visible {
|
|
750
|
+
outline: 2px solid var(--sv-accent-ink);
|
|
751
|
+
outline-offset: 2px;
|
|
752
|
+
}
|
|
753
|
+
|
|
660
754
|
/* ---------- Forms ---------- */
|
|
661
755
|
/* Single source of truth for the field frame. Input, Textarea, NativeSelect
|
|
662
756
|
and FileInput all render .sv-field, so border, radius, surface, typography
|
|
@@ -707,6 +801,24 @@ body.sv-body {
|
|
|
707
801
|
.sv-field--select[multiple] {
|
|
708
802
|
height: auto;
|
|
709
803
|
}
|
|
804
|
+
/* Native date/time inputs carry their own intrinsic minimum width (over
|
|
805
|
+
100px in iOS Safari), which ignores `width: 100%` and overflows a grid cell
|
|
806
|
+
or the viewport. `min-width: 0` lets them shrink to the container. On iOS
|
|
807
|
+
(the only engine with -webkit-touch-callout) the native appearance is
|
|
808
|
+
dropped so the value aligns left like every other field. */
|
|
809
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
810
|
+
min-width: 0;
|
|
811
|
+
max-width: 100%;
|
|
812
|
+
}
|
|
813
|
+
@supports (-webkit-touch-callout: none) {
|
|
814
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
815
|
+
-webkit-appearance: none;
|
|
816
|
+
appearance: none;
|
|
817
|
+
}
|
|
818
|
+
.sv-field::-webkit-date-and-time-value {
|
|
819
|
+
text-align: start;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
710
822
|
.sv-field--file {
|
|
711
823
|
height: auto;
|
|
712
824
|
padding: var(--sv-space-1) var(--sv-space-2);
|
|
@@ -735,6 +847,46 @@ body.sv-body {
|
|
|
735
847
|
cursor: pointer;
|
|
736
848
|
}
|
|
737
849
|
|
|
850
|
+
/* Select trigger: a <button> sharing the .sv-field frame. Buttons centre
|
|
851
|
+
their text by default; a field reads from the start, with the chevron
|
|
852
|
+
pushed to the end and a long value truncated instead of wrapping. */
|
|
853
|
+
.sv-field--trigger {
|
|
854
|
+
display: flex;
|
|
855
|
+
align-items: center;
|
|
856
|
+
justify-content: space-between;
|
|
857
|
+
gap: var(--sv-space-2);
|
|
858
|
+
text-align: start;
|
|
859
|
+
cursor: pointer;
|
|
860
|
+
}
|
|
861
|
+
.sv-field--trigger > span:first-child {
|
|
862
|
+
min-width: 0;
|
|
863
|
+
overflow: hidden;
|
|
864
|
+
text-overflow: ellipsis;
|
|
865
|
+
white-space: nowrap;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* Field: label + control + description + error, stacked. */
|
|
869
|
+
.sv-form-field {
|
|
870
|
+
display: flex;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
gap: var(--sv-space-2);
|
|
873
|
+
min-width: 0;
|
|
874
|
+
}
|
|
875
|
+
.sv-form-field > .sv-field-message {
|
|
876
|
+
margin-top: 0;
|
|
877
|
+
}
|
|
878
|
+
.sv-label {
|
|
879
|
+
color: var(--sv-text);
|
|
880
|
+
font-family: var(--sv-font-body);
|
|
881
|
+
font-size: var(--sv-text-sm);
|
|
882
|
+
font-weight: 500;
|
|
883
|
+
line-height: 1.4;
|
|
884
|
+
}
|
|
885
|
+
.sv-label__required {
|
|
886
|
+
margin-inline-start: var(--sv-space-1);
|
|
887
|
+
color: var(--sv-danger-ink);
|
|
888
|
+
}
|
|
889
|
+
|
|
738
890
|
/* Helper/error text sat under a field, associated via aria-describedby. */
|
|
739
891
|
.sv-field-message {
|
|
740
892
|
display: block;
|
|
@@ -959,11 +1111,11 @@ body.sv-body {
|
|
|
959
1111
|
}
|
|
960
1112
|
|
|
961
1113
|
.sv-btn--destructive {
|
|
962
|
-
background: var(--sv-danger);
|
|
1114
|
+
background: var(--sv-danger-ink);
|
|
963
1115
|
color: var(--sv-bg);
|
|
964
1116
|
}
|
|
965
1117
|
.sv-btn--destructive:hover {
|
|
966
|
-
background: color-mix(in srgb, var(--sv-danger) 90%,
|
|
1118
|
+
background: color-mix(in srgb, var(--sv-danger-ink) 90%, var(--sv-text));
|
|
967
1119
|
}
|
|
968
1120
|
|
|
969
1121
|
.sv-btn--outline {
|
|
@@ -1006,7 +1158,7 @@ body.sv-body {
|
|
|
1006
1158
|
color: var(--sv-bg);
|
|
1007
1159
|
}
|
|
1008
1160
|
.sv-btn--accent:hover {
|
|
1009
|
-
background: color-mix(in srgb, var(--sv-accent-ink) 90%,
|
|
1161
|
+
background: color-mix(in srgb, var(--sv-accent-ink) 90%, var(--sv-text));
|
|
1010
1162
|
}
|
|
1011
1163
|
|
|
1012
1164
|
.sv-btn--sm {
|
|
@@ -1060,6 +1212,45 @@ body.sv-body {
|
|
|
1060
1212
|
}
|
|
1061
1213
|
}
|
|
1062
1214
|
|
|
1215
|
+
/* WCAG 2.5.8 (AA) baseline at every width and pointer: every target this
|
|
1216
|
+
package draws is at least 24x24 CSS px, without changing the drawn icon or
|
|
1217
|
+
text. Up to 3.5.1 the logo measured 22px tall and the icon-only close
|
|
1218
|
+
buttons (Dialog, sidebar drawer, Toast) 16-24px. */
|
|
1219
|
+
.sv-logo,
|
|
1220
|
+
.sv-footer__link,
|
|
1221
|
+
.sv-link {
|
|
1222
|
+
min-height: var(--sv-space-6);
|
|
1223
|
+
}
|
|
1224
|
+
.sv-footer__link,
|
|
1225
|
+
.sv-link {
|
|
1226
|
+
display: inline-flex;
|
|
1227
|
+
align-items: center;
|
|
1228
|
+
}
|
|
1229
|
+
.sv-dialog__close,
|
|
1230
|
+
.sv-toast__close {
|
|
1231
|
+
min-width: var(--sv-space-6);
|
|
1232
|
+
min-height: var(--sv-space-6);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/* Same touch widening as above for the text targets: the logo, footer links
|
|
1236
|
+
and `.sv-link` reach 44px tall below 64rem or on a coarse pointer. */
|
|
1237
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1238
|
+
.sv-logo,
|
|
1239
|
+
.sv-footer__link,
|
|
1240
|
+
.sv-link {
|
|
1241
|
+
min-height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/* iOS Safari zooms the page when a focused field's font is below 16px, and
|
|
1246
|
+
--sv-text-base is 15px. Same narrow-or-touch scope as the other touch
|
|
1247
|
+
rules: fields render at 16px or more. */
|
|
1248
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1249
|
+
.sv-field {
|
|
1250
|
+
font-size: max(1rem, var(--sv-text-base));
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1063
1254
|
/* ---------- Card ---------- */
|
|
1064
1255
|
.sv-card {
|
|
1065
1256
|
border: 1px solid var(--sv-border);
|
|
@@ -1073,12 +1264,17 @@ body.sv-body {
|
|
|
1073
1264
|
gap: var(--sv-space-2);
|
|
1074
1265
|
padding: var(--sv-space-6);
|
|
1075
1266
|
}
|
|
1267
|
+
/* DESIGN "Title" step (same as PostCard): Sora 600, 1.375rem, line-height 1.3.
|
|
1268
|
+
Up to 3.5.1 this was Manrope at 1.75rem with line-height 1, so a title that
|
|
1269
|
+
wrapped had its lines touching. */
|
|
1076
1270
|
.sv-card__title {
|
|
1077
1271
|
margin: 0;
|
|
1078
|
-
font-
|
|
1272
|
+
font-family: var(--sv-font-display);
|
|
1273
|
+
font-size: var(--sv-text-xl);
|
|
1079
1274
|
font-weight: 600;
|
|
1080
|
-
line-height: 1;
|
|
1081
|
-
letter-spacing: -0.
|
|
1275
|
+
line-height: 1.3;
|
|
1276
|
+
letter-spacing: -0.02em;
|
|
1277
|
+
text-wrap: balance;
|
|
1082
1278
|
}
|
|
1083
1279
|
.sv-card__description {
|
|
1084
1280
|
margin: 0;
|
|
@@ -1184,21 +1380,23 @@ body.sv-body {
|
|
|
1184
1380
|
}
|
|
1185
1381
|
|
|
1186
1382
|
/* ---------- Badge ---------- */
|
|
1187
|
-
/*
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1383
|
+
/* Filled variants paint the *ink* step of their hue, never the surface step,
|
|
1384
|
+
under light text (`var(--sv-bg)`). The ink step is what makes a hue safe to
|
|
1385
|
+
pair with text: in dark mode `--sv-accent-ink`/`--sv-danger-ink` resolve to
|
|
1386
|
+
the very same values as `--sv-accent`/`--sv-danger` (so nothing changes
|
|
1387
|
+
there), and in light mode they are the darker per-hue steps that clear
|
|
1388
|
+
WCAG AA (≥4.5:1) against `--sv-bg`. Painting the surface step instead —
|
|
1389
|
+
what this rule did up to 3.5.1 — measured 1.79:1 (badge, cyan) and 2.93:1
|
|
1390
|
+
(destructive) in light mode: near-white text on a light fill. The default
|
|
1391
|
+
variant still follows [data-accent] (One-Accent Rule); `.sv-btn--accent`
|
|
1392
|
+
uses the same ink-fill pairing. Pairs are asserted in tests/contrast.test.ts. */
|
|
1195
1393
|
.sv-badge {
|
|
1196
1394
|
display: inline-flex;
|
|
1197
1395
|
align-items: center;
|
|
1198
1396
|
padding: var(--sv-space-1) var(--sv-space-2);
|
|
1199
1397
|
border: 1px solid transparent;
|
|
1200
1398
|
border-radius: var(--sv-radius-full);
|
|
1201
|
-
background: var(--sv-accent);
|
|
1399
|
+
background: var(--sv-accent-ink);
|
|
1202
1400
|
color: var(--sv-bg);
|
|
1203
1401
|
font-size: var(--sv-text-xs);
|
|
1204
1402
|
font-weight: 600;
|
|
@@ -1221,11 +1419,11 @@ body.sv-body {
|
|
|
1221
1419
|
}
|
|
1222
1420
|
|
|
1223
1421
|
.sv-badge--destructive {
|
|
1224
|
-
background: var(--sv-danger);
|
|
1422
|
+
background: var(--sv-danger-ink);
|
|
1225
1423
|
color: var(--sv-bg);
|
|
1226
1424
|
}
|
|
1227
1425
|
.sv-badge--destructive:hover {
|
|
1228
|
-
background: color-mix(in srgb, var(--sv-danger) 90%,
|
|
1426
|
+
background: color-mix(in srgb, var(--sv-danger-ink) 90%, var(--sv-text));
|
|
1229
1427
|
}
|
|
1230
1428
|
|
|
1231
1429
|
.sv-badge--outline {
|
|
@@ -1525,6 +1723,38 @@ body.sv-body {
|
|
|
1525
1723
|
height: var(--radix-select-trigger-height);
|
|
1526
1724
|
}
|
|
1527
1725
|
|
|
1726
|
+
/* Combobox: the list is in flow-positioned under the input (no portal), so it
|
|
1727
|
+
scrolls with its field; it reuses .sv-pop's surface and .sv-menu-item's rows. */
|
|
1728
|
+
.sv-combobox {
|
|
1729
|
+
position: relative;
|
|
1730
|
+
}
|
|
1731
|
+
.sv-combobox__list {
|
|
1732
|
+
position: absolute;
|
|
1733
|
+
inset-inline: 0;
|
|
1734
|
+
top: 100%;
|
|
1735
|
+
margin: var(--sv-space-1) 0 0;
|
|
1736
|
+
max-height: calc(var(--sv-space-16) * 4);
|
|
1737
|
+
overflow-y: auto;
|
|
1738
|
+
list-style: none;
|
|
1739
|
+
}
|
|
1740
|
+
.sv-combobox__list[hidden] {
|
|
1741
|
+
display: none;
|
|
1742
|
+
}
|
|
1743
|
+
.sv-combobox__option {
|
|
1744
|
+
flex-direction: column;
|
|
1745
|
+
align-items: flex-start;
|
|
1746
|
+
gap: 0;
|
|
1747
|
+
}
|
|
1748
|
+
.sv-combobox__description {
|
|
1749
|
+
color: var(--sv-text-2);
|
|
1750
|
+
font-size: var(--sv-text-sm);
|
|
1751
|
+
}
|
|
1752
|
+
.sv-combobox__status {
|
|
1753
|
+
margin-top: var(--sv-space-1);
|
|
1754
|
+
color: var(--sv-text-3);
|
|
1755
|
+
font-size: var(--sv-text-sm);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1528
1758
|
/* ---------- Tooltip ---------- */
|
|
1529
1759
|
/* Declares only what differs from .sv-pop: a tooltip floats above every other
|
|
1530
1760
|
layer, holds one line of text rather than a list, and needs no min-width. */
|
|
@@ -1861,6 +2091,44 @@ body.sv-body {
|
|
|
1861
2091
|
.sv-chart__bar {
|
|
1862
2092
|
shape-rendering: crispEdges;
|
|
1863
2093
|
}
|
|
2094
|
+
/* Point markers (ChartLine markers): filled with the series color, ringed in
|
|
2095
|
+
the page background so overlapping series stay distinguishable. */
|
|
2096
|
+
.sv-chart__marker {
|
|
2097
|
+
stroke: var(--sv-bg);
|
|
2098
|
+
stroke-width: 2;
|
|
2099
|
+
}
|
|
2100
|
+
/* Legend: an HTML list next to the SVG (not inside it), so it wraps, reads as
|
|
2101
|
+
a list to assistive tech and uses the body font. */
|
|
2102
|
+
.sv-chart-legend {
|
|
2103
|
+
display: flex;
|
|
2104
|
+
flex-wrap: wrap;
|
|
2105
|
+
gap: var(--sv-space-2) var(--sv-space-4);
|
|
2106
|
+
margin: var(--sv-space-3) 0 0;
|
|
2107
|
+
padding: 0;
|
|
2108
|
+
list-style: none;
|
|
2109
|
+
color: var(--sv-text-2);
|
|
2110
|
+
font-family: var(--sv-font-body);
|
|
2111
|
+
font-size: var(--sv-text-xs);
|
|
2112
|
+
}
|
|
2113
|
+
.sv-chart-legend__item {
|
|
2114
|
+
display: inline-flex;
|
|
2115
|
+
align-items: center;
|
|
2116
|
+
gap: var(--sv-space-2);
|
|
2117
|
+
}
|
|
2118
|
+
.sv-chart-legend__swatch {
|
|
2119
|
+
flex-shrink: 0;
|
|
2120
|
+
width: var(--sv-space-4);
|
|
2121
|
+
height: 0;
|
|
2122
|
+
border-top: 2px solid var(--sv-series-color, var(--sv-text-2));
|
|
2123
|
+
}
|
|
2124
|
+
.sv-chart-legend__swatch--dashed {
|
|
2125
|
+
border-top-style: dashed;
|
|
2126
|
+
}
|
|
2127
|
+
.sv-chart-legend__swatch--bar {
|
|
2128
|
+
height: var(--sv-space-2);
|
|
2129
|
+
border-top: none;
|
|
2130
|
+
background: var(--sv-series-color, var(--sv-text-2));
|
|
2131
|
+
}
|
|
1864
2132
|
|
|
1865
2133
|
/* ---------- App Sidebar ---------- */
|
|
1866
2134
|
/* R5-02, R5-03, R5-04: Sidebar de aplicação responsiva.
|
|
@@ -1889,6 +2157,20 @@ body.sv-body {
|
|
|
1889
2157
|
border-right: 1px solid var(--sv-border);
|
|
1890
2158
|
}
|
|
1891
2159
|
|
|
2160
|
+
/* CSS-first first paint (SSR). Before hydration SidebarProvider omits
|
|
2161
|
+
`data-mobile` and SidebarPanel renders the in-flow <aside>, so desktop
|
|
2162
|
+
paints with the sidebar already in place (no layout shift). Below the
|
|
2163
|
+
default breakpoint (1024px, SidebarProvider's default) this hides that
|
|
2164
|
+
<aside> until JS mounts the drawer instead. A custom `breakpoint` prop gets
|
|
2165
|
+
the equivalent rule from the provider itself (scoped by `data-breakpoint`).
|
|
2166
|
+
`collapsible="none"` stays in flow at every width, as after hydration. */
|
|
2167
|
+
@media (width < 1024px) {
|
|
2168
|
+
.sv-app-shell:not([data-mobile]):not([data-breakpoint]):not([data-collapsible='none'])
|
|
2169
|
+
.sv-app-sidebar {
|
|
2170
|
+
display: none;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
|
|
1892
2174
|
.sv-app-sidebar__drawer {
|
|
1893
2175
|
position: fixed;
|
|
1894
2176
|
inset: 0;
|
package/dist/theme.css
CHANGED
|
@@ -139,6 +139,43 @@
|
|
|
139
139
|
--sv-warning-ink: oklch(0.53 0.11 75);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/* Nested dark island: `data-theme="dark"` on any element inside a light page.
|
|
143
|
+
Repeats the dark color tokens, because `:root` alone only applies at the
|
|
144
|
+
root. The two `*-ink` groups are re-pointed explicitly: custom properties
|
|
145
|
+
inherit as *resolved* values, so without this the island would inherit the
|
|
146
|
+
light page's darkened inks. In dark mode every ink equals its surface color,
|
|
147
|
+
so `--sv-accent-ink: var(--sv-accent)` follows the page's active accent
|
|
148
|
+
without needing `data-accent` on the island. (A light island inside a dark
|
|
149
|
+
page also needs `data-accent` on the island, for the same reason.) */
|
|
150
|
+
[data-theme='dark'] {
|
|
151
|
+
--sv-bg: #0a0a0c;
|
|
152
|
+
--sv-bg-elev: #111114;
|
|
153
|
+
--sv-surface: #16161b;
|
|
154
|
+
--sv-surface-2: #1c1c22;
|
|
155
|
+
--sv-border: rgba(255, 255, 255, 0.08);
|
|
156
|
+
--sv-border-strong: rgba(255, 255, 255, 0.14);
|
|
157
|
+
--sv-control-border: #6b6b76;
|
|
158
|
+
--sv-text: #ededf0;
|
|
159
|
+
--sv-text-2: #8b8b96;
|
|
160
|
+
--sv-text-3: #83838f;
|
|
161
|
+
--sv-accent-cyan-ink: var(--sv-accent-cyan);
|
|
162
|
+
--sv-accent-violet-ink: var(--sv-accent-violet);
|
|
163
|
+
--sv-accent-mint-ink: var(--sv-accent-mint);
|
|
164
|
+
--sv-accent-amber-ink: var(--sv-accent-amber);
|
|
165
|
+
--sv-accent-ink: var(--sv-accent);
|
|
166
|
+
--sv-danger-ink: var(--sv-danger);
|
|
167
|
+
--sv-success-ink: var(--sv-success);
|
|
168
|
+
--sv-info-ink: var(--sv-info);
|
|
169
|
+
--sv-warning-ink: var(--sv-warning);
|
|
170
|
+
color-scheme: dark;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* An island also re-sets its text color: `color` inherits as the page's
|
|
174
|
+
resolved value, so island text would otherwise keep the outer theme's ink. */
|
|
175
|
+
[data-theme]:not(:root) {
|
|
176
|
+
color: var(--sv-text);
|
|
177
|
+
}
|
|
178
|
+
|
|
142
179
|
/* Accent switching is pure CSS — works in Server Components. */
|
|
143
180
|
[data-accent='cyan'] {
|
|
144
181
|
--sv-accent: var(--sv-accent-cyan);
|
|
@@ -169,30 +206,42 @@
|
|
|
169
206
|
============================================================ */
|
|
170
207
|
|
|
171
208
|
/* .sv-gradient-border — the system's visual signature.
|
|
172
|
-
Never replace with box-shadow.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
var(--sv-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
209
|
+
Never replace with box-shadow.
|
|
210
|
+
|
|
211
|
+
Lives in Tailwind's `components` layer (the statement below fixes the
|
|
212
|
+
standard v4 order even when this file loads before Tailwind), so a
|
|
213
|
+
utility on the same element — `rounded-md`, `bg-*` — wins over the
|
|
214
|
+
default radius/background instead of losing to unlayered CSS. Up to 3.5.1
|
|
215
|
+
it was unlayered and beat those utilities. Without Tailwind, the only
|
|
216
|
+
difference is that the app's own unlayered CSS on the same element now
|
|
217
|
+
wins too. */
|
|
218
|
+
@layer theme, base, components, utilities;
|
|
219
|
+
|
|
220
|
+
@layer components {
|
|
221
|
+
.sv-gradient-border {
|
|
222
|
+
position: relative;
|
|
223
|
+
background: var(--sv-surface);
|
|
224
|
+
border-radius: var(--sv-radius-lg);
|
|
225
|
+
}
|
|
226
|
+
.sv-gradient-border::before {
|
|
227
|
+
content: '';
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset: 0;
|
|
230
|
+
border-radius: inherit;
|
|
231
|
+
padding: 1px;
|
|
232
|
+
background: linear-gradient(
|
|
233
|
+
135deg,
|
|
234
|
+
var(--sv-accent) 0%,
|
|
235
|
+
transparent 40%,
|
|
236
|
+
transparent 60%,
|
|
237
|
+
var(--sv-border-strong) 100%
|
|
238
|
+
);
|
|
239
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
240
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
241
|
+
-webkit-mask-composite: xor;
|
|
242
|
+
mask-composite: exclude;
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
}
|
|
196
245
|
}
|
|
197
246
|
|
|
198
247
|
/* Cards have no shadow — hover lifts via border/transform only. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@still-void/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.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",
|
|
@@ -28,6 +28,13 @@
|
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
|
+
"devEngines": {
|
|
32
|
+
"runtime": {
|
|
33
|
+
"name": "node",
|
|
34
|
+
"version": ">=22",
|
|
35
|
+
"onFail": "warn"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
31
38
|
"packageManager": "npm@10.9.7",
|
|
32
39
|
"type": "module",
|
|
33
40
|
"sideEffects": [
|
|
@@ -58,6 +65,15 @@
|
|
|
58
65
|
"./style.css": "./dist/style.css",
|
|
59
66
|
"./tailwind.css": "./dist/tailwind.css",
|
|
60
67
|
"./shadcn-overrides.css": "./dist/shadcn-overrides.css",
|
|
68
|
+
"./css/base.css": "./dist/css/base.css",
|
|
69
|
+
"./css/content.css": "./dist/css/content.css",
|
|
70
|
+
"./css/forms.css": "./dist/css/forms.css",
|
|
71
|
+
"./css/controls.css": "./dist/css/controls.css",
|
|
72
|
+
"./css/overlays.css": "./dist/css/overlays.css",
|
|
73
|
+
"./css/data.css": "./dist/css/data.css",
|
|
74
|
+
"./css/app-shell.css": "./dist/css/app-shell.css",
|
|
75
|
+
"./css/toast.css": "./dist/css/toast.css",
|
|
76
|
+
"./css/motion.css": "./dist/css/motion.css",
|
|
61
77
|
"./package.json": "./package.json"
|
|
62
78
|
},
|
|
63
79
|
"typesVersions": {
|
|
@@ -75,19 +91,21 @@
|
|
|
75
91
|
"CHANGELOG.md"
|
|
76
92
|
],
|
|
77
93
|
"scripts": {
|
|
78
|
-
"build": "tsup && npm run build:css",
|
|
94
|
+
"build": "node scripts/clean-dist.mjs && tsup && npm run build:css",
|
|
79
95
|
"build:css": "node scripts/copy-css.mjs",
|
|
80
96
|
"dev": "tsup --watch",
|
|
81
97
|
"test": "vitest run",
|
|
82
98
|
"test:watch": "vitest",
|
|
83
99
|
"test:coverage": "vitest run --coverage",
|
|
84
100
|
"typecheck": "tsc --noEmit",
|
|
85
|
-
"lint
|
|
101
|
+
"lint": "eslint . --max-warnings 0",
|
|
102
|
+
"lint:package": "publint --strict && attw --pack . --exclude-entrypoints theme.css style.css tailwind.css shadcn-overrides.css css/base.css css/content.css css/forms.css css/controls.css css/overlays.css css/data.css css/app-shell.css css/toast.css css/motion.css",
|
|
86
103
|
"changeset": "changeset",
|
|
87
104
|
"version-packages": "changeset version && npm install --package-lock-only --ignore-scripts",
|
|
88
105
|
"release": "npm run build && changeset publish",
|
|
89
106
|
"storybook": "storybook dev -p 6006",
|
|
90
|
-
"build-storybook": "storybook build"
|
|
107
|
+
"build-storybook": "storybook build",
|
|
108
|
+
"check:treeshake": "node scripts/check-treeshake.mjs"
|
|
91
109
|
},
|
|
92
110
|
"peerDependencies": {
|
|
93
111
|
"react": ">=18",
|
|
@@ -103,16 +121,23 @@
|
|
|
103
121
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
104
122
|
"@changesets/changelog-github": "^0.7.0",
|
|
105
123
|
"@changesets/cli": "^2.31.1",
|
|
124
|
+
"@eslint/js": "^9.39.5",
|
|
106
125
|
"@storybook/addon-a11y": "^10.5.2",
|
|
107
126
|
"@storybook/addon-docs": "^10.5.2",
|
|
108
127
|
"@storybook/react-vite": "^10.5.2",
|
|
109
128
|
"@testing-library/jest-dom": "^6.9.1",
|
|
110
129
|
"@testing-library/react": "^16.3.2",
|
|
111
130
|
"@testing-library/user-event": "^14.6.1",
|
|
131
|
+
"@types/node": "^22.20.7",
|
|
112
132
|
"@types/react": "^19",
|
|
113
133
|
"@types/react-dom": "^19",
|
|
114
134
|
"@vitest/coverage-v8": "^4.1.10",
|
|
115
135
|
"autoprefixer": "^10.5.4",
|
|
136
|
+
"esbuild": "^0.28.2",
|
|
137
|
+
"eslint": "^9.39.5",
|
|
138
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
139
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
140
|
+
"globals": "^17.15.0",
|
|
116
141
|
"jsdom": "^29.1.1",
|
|
117
142
|
"postcss": "^8.5.26",
|
|
118
143
|
"publint": "^0.3.22",
|
|
@@ -123,6 +148,7 @@
|
|
|
123
148
|
"tailwindcss": "^4.3.3",
|
|
124
149
|
"tsup": "^8.3.5",
|
|
125
150
|
"typescript": "^5",
|
|
151
|
+
"typescript-eslint": "^8.74.0",
|
|
126
152
|
"vitest": "^4.1.10"
|
|
127
153
|
},
|
|
128
154
|
"dependencies": {
|
|
@@ -135,7 +161,11 @@
|
|
|
135
161
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
136
162
|
"@radix-ui/react-toast": "^1.2.23",
|
|
137
163
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
138
|
-
"clsx": "^2.1.1"
|
|
139
|
-
|
|
164
|
+
"clsx": "^2.1.1"
|
|
165
|
+
},
|
|
166
|
+
"overrides": {
|
|
167
|
+
"@joshwooding/vite-plugin-react-docgen-typescript": {
|
|
168
|
+
"glob": "^14.0.6"
|
|
169
|
+
}
|
|
140
170
|
}
|
|
141
171
|
}
|