@still-void/ui 3.5.0 → 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 +71 -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 +327 -25
- package/dist/theme.css +73 -24
- package/package.json +36 -6
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/* ---------- Forms ---------- */
|
|
2
|
+
/* Single source of truth for the field frame. Input, Textarea, NativeSelect
|
|
3
|
+
and FileInput all render .sv-field, so border, radius, surface, typography
|
|
4
|
+
and focus ring are defined once and follow [data-theme] with zero consumer
|
|
5
|
+
configuration. */
|
|
6
|
+
.sv-field {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: var(--sv-space-10);
|
|
10
|
+
padding: var(--sv-space-2) var(--sv-space-3);
|
|
11
|
+
border: 1px solid var(--sv-control-border);
|
|
12
|
+
border-radius: var(--sv-radius-sm);
|
|
13
|
+
background: var(--sv-surface);
|
|
14
|
+
color: var(--sv-text);
|
|
15
|
+
font-family: var(--sv-font-body);
|
|
16
|
+
font-size: var(--sv-text-base);
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
}
|
|
19
|
+
.sv-field::placeholder {
|
|
20
|
+
color: var(--sv-text-2);
|
|
21
|
+
}
|
|
22
|
+
/* Tailwind's ring-* is box-shadow based and its `accent` color is not declared
|
|
23
|
+
in this package's config, so fields had no visible focus at all. Outline is
|
|
24
|
+
the system's focus state — never box-shadow. */
|
|
25
|
+
.sv-field:focus-visible {
|
|
26
|
+
outline: 2px solid var(--sv-accent-ink);
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
.sv-field:disabled {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
opacity: 0.5;
|
|
32
|
+
}
|
|
33
|
+
/* Invalid state reads the native aria-invalid attribute, not a boolean prop
|
|
34
|
+
— Input/Textarea/NativeSelect/FileInput need no change to support it. */
|
|
35
|
+
.sv-field[aria-invalid='true'] {
|
|
36
|
+
border-color: var(--sv-danger-ink);
|
|
37
|
+
}
|
|
38
|
+
.sv-field[aria-invalid='true']:focus-visible {
|
|
39
|
+
outline-color: var(--sv-danger-ink);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sv-field--textarea {
|
|
43
|
+
height: auto;
|
|
44
|
+
min-height: calc(var(--sv-space-10) * 2);
|
|
45
|
+
resize: vertical;
|
|
46
|
+
}
|
|
47
|
+
/* A multi-select list box has to grow past the single-row field height. */
|
|
48
|
+
.sv-field--select[multiple] {
|
|
49
|
+
height: auto;
|
|
50
|
+
}
|
|
51
|
+
/* Native date/time inputs carry their own intrinsic minimum width (over
|
|
52
|
+
100px in iOS Safari), which ignores `width: 100%` and overflows a grid cell
|
|
53
|
+
or the viewport. `min-width: 0` lets them shrink to the container. On iOS
|
|
54
|
+
(the only engine with -webkit-touch-callout) the native appearance is
|
|
55
|
+
dropped so the value aligns left like every other field. */
|
|
56
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
57
|
+
min-width: 0;
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
}
|
|
60
|
+
@supports (-webkit-touch-callout: none) {
|
|
61
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
62
|
+
-webkit-appearance: none;
|
|
63
|
+
appearance: none;
|
|
64
|
+
}
|
|
65
|
+
.sv-field::-webkit-date-and-time-value {
|
|
66
|
+
text-align: start;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.sv-field--file {
|
|
70
|
+
height: auto;
|
|
71
|
+
padding: var(--sv-space-1) var(--sv-space-2);
|
|
72
|
+
}
|
|
73
|
+
/* Two rules, not one selector list: an unsupported pseudo-element in a group
|
|
74
|
+
invalidates the whole rule, so the standard and the -webkit- fallback are
|
|
75
|
+
declared separately. */
|
|
76
|
+
.sv-field--file::file-selector-button {
|
|
77
|
+
margin-inline-end: var(--sv-space-3);
|
|
78
|
+
padding: var(--sv-space-1) var(--sv-space-3);
|
|
79
|
+
border: 1px solid var(--sv-border);
|
|
80
|
+
border-radius: var(--sv-radius-sm);
|
|
81
|
+
background: var(--sv-surface-2);
|
|
82
|
+
color: var(--sv-text);
|
|
83
|
+
font: inherit;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.sv-field--file::-webkit-file-upload-button {
|
|
87
|
+
margin-inline-end: var(--sv-space-3);
|
|
88
|
+
padding: var(--sv-space-1) var(--sv-space-3);
|
|
89
|
+
border: 1px solid var(--sv-border);
|
|
90
|
+
border-radius: var(--sv-radius-sm);
|
|
91
|
+
background: var(--sv-surface-2);
|
|
92
|
+
color: var(--sv-text);
|
|
93
|
+
font: inherit;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Select trigger: a <button> sharing the .sv-field frame. Buttons centre
|
|
98
|
+
their text by default; a field reads from the start, with the chevron
|
|
99
|
+
pushed to the end and a long value truncated instead of wrapping. */
|
|
100
|
+
.sv-field--trigger {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
gap: var(--sv-space-2);
|
|
105
|
+
text-align: start;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
.sv-field--trigger > span:first-child {
|
|
109
|
+
min-width: 0;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Field: label + control + description + error, stacked. */
|
|
116
|
+
.sv-form-field {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: var(--sv-space-2);
|
|
120
|
+
min-width: 0;
|
|
121
|
+
}
|
|
122
|
+
.sv-form-field > .sv-field-message {
|
|
123
|
+
margin-top: 0;
|
|
124
|
+
}
|
|
125
|
+
.sv-label {
|
|
126
|
+
color: var(--sv-text);
|
|
127
|
+
font-family: var(--sv-font-body);
|
|
128
|
+
font-size: var(--sv-text-sm);
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
line-height: 1.4;
|
|
131
|
+
}
|
|
132
|
+
.sv-label__required {
|
|
133
|
+
margin-inline-start: var(--sv-space-1);
|
|
134
|
+
color: var(--sv-danger-ink);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Helper/error text sat under a field, associated via aria-describedby. */
|
|
138
|
+
.sv-field-message {
|
|
139
|
+
display: block;
|
|
140
|
+
margin-top: var(--sv-space-2);
|
|
141
|
+
color: var(--sv-text-2);
|
|
142
|
+
font-family: var(--sv-font-body);
|
|
143
|
+
font-size: var(--sv-text-sm);
|
|
144
|
+
line-height: 1.5;
|
|
145
|
+
}
|
|
146
|
+
.sv-field-message--error {
|
|
147
|
+
color: var(--sv-danger-ink);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* No appearance:none — the native check/radio chrome follows color-scheme
|
|
151
|
+
from theme.css, and accent-color tints it with the system accent. */
|
|
152
|
+
.sv-check,
|
|
153
|
+
.sv-radio {
|
|
154
|
+
width: var(--sv-space-4);
|
|
155
|
+
height: var(--sv-space-4);
|
|
156
|
+
accent-color: var(--sv-accent-ink);
|
|
157
|
+
margin: 0;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
.sv-check:focus-visible,
|
|
161
|
+
.sv-radio:focus-visible {
|
|
162
|
+
outline: 2px solid var(--sv-accent-ink);
|
|
163
|
+
outline-offset: 2px;
|
|
164
|
+
}
|
|
165
|
+
.sv-check:disabled,
|
|
166
|
+
.sv-radio:disabled {
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
opacity: 0.5;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.sv-choice {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: var(--sv-space-2);
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
color: var(--sv-text);
|
|
177
|
+
}
|
|
178
|
+
.sv-radio-group {
|
|
179
|
+
border: 0;
|
|
180
|
+
margin: 0;
|
|
181
|
+
padding: 0;
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
gap: var(--sv-space-2);
|
|
185
|
+
}
|
|
186
|
+
.sv-radio-group--horizontal {
|
|
187
|
+
flex-direction: row;
|
|
188
|
+
flex-wrap: wrap;
|
|
189
|
+
gap: var(--sv-space-4);
|
|
190
|
+
}
|
|
191
|
+
.sv-radio-group__legend {
|
|
192
|
+
padding: 0;
|
|
193
|
+
margin-bottom: var(--sv-space-2);
|
|
194
|
+
color: var(--sv-text-2);
|
|
195
|
+
font-size: var(--sv-text-sm);
|
|
196
|
+
}
|
|
197
|
+
/* Visually hidden, still announced. Never display:none or visibility:hidden —
|
|
198
|
+
both remove the element from the accessibility tree. */
|
|
199
|
+
.sv-sr-only {
|
|
200
|
+
position: absolute;
|
|
201
|
+
width: 1px;
|
|
202
|
+
height: 1px;
|
|
203
|
+
padding: 0;
|
|
204
|
+
margin: -1px;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
clip-path: inset(50%);
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
border: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* ---------- Table ---------- */
|
|
212
|
+
/* Presentational only — sorting, paging and selection are a data-table
|
|
213
|
+
concern with a different API surface. The header decoration here is the
|
|
214
|
+
one consumers were repeating by hand on every table screen. */
|
|
215
|
+
.sv-table-container {
|
|
216
|
+
width: 100%;
|
|
217
|
+
overflow-x: auto;
|
|
218
|
+
}
|
|
219
|
+
.sv-table {
|
|
220
|
+
width: 100%;
|
|
221
|
+
border-collapse: collapse;
|
|
222
|
+
caption-side: bottom;
|
|
223
|
+
font-size: var(--sv-text-sm);
|
|
224
|
+
color: var(--sv-text);
|
|
225
|
+
}
|
|
226
|
+
.sv-table__head {
|
|
227
|
+
background: var(--sv-bg);
|
|
228
|
+
}
|
|
229
|
+
.sv-table__th {
|
|
230
|
+
height: var(--sv-space-10);
|
|
231
|
+
padding: 0 var(--sv-space-3);
|
|
232
|
+
text-align: start;
|
|
233
|
+
font-size: var(--sv-text-xs);
|
|
234
|
+
text-transform: uppercase;
|
|
235
|
+
letter-spacing: 0.04em;
|
|
236
|
+
color: var(--sv-text-3);
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
border-bottom: 1px solid var(--sv-border);
|
|
239
|
+
}
|
|
240
|
+
.sv-table__td {
|
|
241
|
+
padding: var(--sv-space-3);
|
|
242
|
+
vertical-align: middle;
|
|
243
|
+
}
|
|
244
|
+
.sv-table__row {
|
|
245
|
+
border-bottom: 1px solid var(--sv-border);
|
|
246
|
+
transition: background var(--sv-duration-fast) var(--sv-ease-hover);
|
|
247
|
+
}
|
|
248
|
+
.sv-table__body .sv-table__row:last-child {
|
|
249
|
+
border-bottom: 0;
|
|
250
|
+
}
|
|
251
|
+
.sv-table__row:hover {
|
|
252
|
+
background: var(--sv-surface-2);
|
|
253
|
+
}
|
|
254
|
+
.sv-table__foot {
|
|
255
|
+
border-top: 1px solid var(--sv-border);
|
|
256
|
+
background: var(--sv-surface);
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
}
|
|
259
|
+
.sv-table__caption {
|
|
260
|
+
margin-top: var(--sv-space-4);
|
|
261
|
+
color: var(--sv-text-2);
|
|
262
|
+
font-size: var(--sv-text-sm);
|
|
263
|
+
}
|
|
264
|
+
/* Stacked mode (<Table stack>): below 40rem each row becomes a block and each
|
|
265
|
+
cell a label/value pair, the label read from data-label (<TableCell label>).
|
|
266
|
+
The head is hidden visually but stays in the accessibility tree. At 40rem and
|
|
267
|
+
up nothing here applies and the table renders exactly as above. */
|
|
268
|
+
@media (width < 40rem) {
|
|
269
|
+
.sv-table--stack .sv-table__head {
|
|
270
|
+
position: absolute;
|
|
271
|
+
width: 1px;
|
|
272
|
+
height: 1px;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
clip-path: inset(50%);
|
|
275
|
+
white-space: nowrap;
|
|
276
|
+
}
|
|
277
|
+
.sv-table--stack,
|
|
278
|
+
.sv-table--stack .sv-table__body,
|
|
279
|
+
.sv-table--stack .sv-table__foot {
|
|
280
|
+
display: block;
|
|
281
|
+
}
|
|
282
|
+
.sv-table--stack .sv-table__row {
|
|
283
|
+
display: block;
|
|
284
|
+
padding: var(--sv-space-2) 0;
|
|
285
|
+
}
|
|
286
|
+
/* A labelled cell is a two-column grid: the label (::before) in the first
|
|
287
|
+
column, every child of the cell in the second, one per row. The label is
|
|
288
|
+
in flow, so a label that wraps grows the cell instead of overlapping the
|
|
289
|
+
next one. !important on the geometry only: consumers put padding and
|
|
290
|
+
text-align utilities on cells for the desktop table, and utilities outrank
|
|
291
|
+
this package's layer. */
|
|
292
|
+
.sv-table--stack .sv-table__td {
|
|
293
|
+
display: block;
|
|
294
|
+
padding: var(--sv-space-1) var(--sv-space-3) !important;
|
|
295
|
+
text-align: start !important;
|
|
296
|
+
overflow-wrap: anywhere;
|
|
297
|
+
}
|
|
298
|
+
.sv-table--stack .sv-table__td[data-label] {
|
|
299
|
+
display: grid;
|
|
300
|
+
grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
|
|
301
|
+
column-gap: var(--sv-space-3);
|
|
302
|
+
align-items: baseline;
|
|
303
|
+
}
|
|
304
|
+
.sv-table--stack .sv-table__td[data-label] > * {
|
|
305
|
+
grid-column: 2;
|
|
306
|
+
}
|
|
307
|
+
.sv-table--stack .sv-table__td[data-label]::before {
|
|
308
|
+
content: attr(data-label);
|
|
309
|
+
grid-column: 1;
|
|
310
|
+
grid-row: 1;
|
|
311
|
+
font-size: var(--sv-text-xs);
|
|
312
|
+
text-transform: uppercase;
|
|
313
|
+
letter-spacing: 0.04em;
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
color: var(--sv-text-3);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* ---------- Reduced motion ---------- */
|
|
2
|
+
/* This block lives here, at the end of style.css, and not in theme.css, for a
|
|
3
|
+
cascade reason: `@media` adds no specificity, and README documents the
|
|
4
|
+
import order as theme.css then style.css. A `transition: none` written in
|
|
5
|
+
theme.css therefore loses to the base rule in this file — same specificity,
|
|
6
|
+
later document order — and the override silently never applies. Five classes
|
|
7
|
+
shipped in v2 exactly that way. tests/reduced-motion-contract.test.ts pins
|
|
8
|
+
the property: the reduce rule for a class must sit in the same sheet as its
|
|
9
|
+
base rule, and after it. */
|
|
10
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11
|
+
/* Hover and active colour fades across nav, pills, buttons, badges, table
|
|
12
|
+
rows and menu chrome are non-essential motion — instant is the
|
|
13
|
+
reduced-motion default. The reading progress bar is deliberately absent:
|
|
14
|
+
its transition tracks the user's own scroll input 1:1, so it is not
|
|
15
|
+
decoration. */
|
|
16
|
+
.sv-header__link,
|
|
17
|
+
.sv-footer__link,
|
|
18
|
+
.sv-pill--interactive,
|
|
19
|
+
.sv-code-block__copy,
|
|
20
|
+
.sv-toc__link,
|
|
21
|
+
.sv-table__row,
|
|
22
|
+
.sv-btn,
|
|
23
|
+
.sv-badge,
|
|
24
|
+
.sv-dialog__close,
|
|
25
|
+
.sv-menu-item,
|
|
26
|
+
.sv-tabs__trigger,
|
|
27
|
+
.sv-progress__indicator,
|
|
28
|
+
.sv-pagination__link {
|
|
29
|
+
transition: none;
|
|
30
|
+
}
|
|
31
|
+
/* AD-009 lets the portal family fade because open/closed carries state, but
|
|
32
|
+
the fade is still an enhancement — under reduced motion the panel simply
|
|
33
|
+
appears/disappears. `animation: none` (not `transition: none` — the fade
|
|
34
|
+
is driven by @keyframes so Presence's animationend-based unmount timing
|
|
35
|
+
detects it) means Presence sees no animation and unmounts on close the
|
|
36
|
+
same instant it would if the browser had no reduced-motion support at
|
|
37
|
+
all — the closed panel never has a chance to snap into view. */
|
|
38
|
+
.sv-overlay,
|
|
39
|
+
.sv-dialog,
|
|
40
|
+
.sv-sheet,
|
|
41
|
+
.sv-pop,
|
|
42
|
+
.sv-app-sidebar,
|
|
43
|
+
.sv-toast {
|
|
44
|
+
animation: none;
|
|
45
|
+
}
|
|
46
|
+
.sv-app-sidebar-trigger {
|
|
47
|
+
transition: none;
|
|
48
|
+
}
|
|
49
|
+
}
|