@vouched-id/ui 0.0.0-stage → 0.1.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/dist/Accordion.d.ts +8 -0
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/Accordion.js +20 -0
- package/dist/Accordion.js.map +1 -0
- package/dist/Alert.d.ts +12 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Alert.js +64 -0
- package/dist/Alert.js.map +1 -0
- package/dist/AlertDialog.d.ts +90 -0
- package/dist/AlertDialog.d.ts.map +1 -0
- package/dist/AlertDialog.js +148 -0
- package/dist/AlertDialog.js.map +1 -0
- package/dist/Avatar.d.ts +43 -0
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Avatar.js +29 -0
- package/dist/Avatar.js.map +1 -0
- package/dist/Badge.d.ts +31 -0
- package/dist/Badge.d.ts.map +1 -0
- package/dist/Badge.js +22 -0
- package/dist/Badge.js.map +1 -0
- package/dist/Banner.d.ts +57 -0
- package/dist/Banner.d.ts.map +1 -0
- package/dist/Banner.js +30 -0
- package/dist/Banner.js.map +1 -0
- package/dist/Button.d.ts +56 -0
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.js +106 -0
- package/dist/Button.js.map +1 -0
- package/dist/Card.d.ts +79 -0
- package/dist/Card.d.ts.map +1 -0
- package/dist/Card.js +50 -0
- package/dist/Card.js.map +1 -0
- package/dist/Chart.d.ts +63 -0
- package/dist/Chart.d.ts.map +1 -0
- package/dist/Chart.js +120 -0
- package/dist/Chart.js.map +1 -0
- package/dist/Checkbox.d.ts +4 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox.js +10 -0
- package/dist/Checkbox.js.map +1 -0
- package/dist/CodeBlock.d.ts +101 -0
- package/dist/CodeBlock.d.ts.map +1 -0
- package/dist/CodeBlock.js +99 -0
- package/dist/CodeBlock.js.map +1 -0
- package/dist/Collapsible.d.ts +6 -0
- package/dist/Collapsible.d.ts.map +1 -0
- package/dist/Collapsible.js +14 -0
- package/dist/Collapsible.js.map +1 -0
- package/dist/DataTable.d.ts +59 -0
- package/dist/DataTable.d.ts.map +1 -0
- package/dist/DataTable.js +162 -0
- package/dist/DataTable.js.map +1 -0
- package/dist/Dialog.d.ts +71 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.js +185 -0
- package/dist/Dialog.js.map +1 -0
- package/dist/DropdownMenu.d.ts +82 -0
- package/dist/DropdownMenu.d.ts.map +1 -0
- package/dist/DropdownMenu.js +111 -0
- package/dist/DropdownMenu.js.map +1 -0
- package/dist/EditorialHeading.d.ts +42 -0
- package/dist/EditorialHeading.d.ts.map +1 -0
- package/dist/EditorialHeading.js +36 -0
- package/dist/EditorialHeading.js.map +1 -0
- package/dist/EmptyState.d.ts +40 -0
- package/dist/EmptyState.d.ts.map +1 -0
- package/dist/EmptyState.js +7 -0
- package/dist/EmptyState.js.map +1 -0
- package/dist/Eyebrow.d.ts +27 -0
- package/dist/Eyebrow.d.ts.map +1 -0
- package/dist/Eyebrow.js +23 -0
- package/dist/Eyebrow.js.map +1 -0
- package/dist/Field.d.ts +33 -0
- package/dist/Field.d.ts.map +1 -0
- package/dist/Field.js +26 -0
- package/dist/Field.js.map +1 -0
- package/dist/HoverCard.d.ts +7 -0
- package/dist/HoverCard.d.ts.map +1 -0
- package/dist/HoverCard.js +17 -0
- package/dist/HoverCard.js.map +1 -0
- package/dist/Input.d.ts +20 -0
- package/dist/Input.d.ts.map +1 -0
- package/dist/Input.js +17 -0
- package/dist/Input.js.map +1 -0
- package/dist/InstallCommand.d.ts +48 -0
- package/dist/InstallCommand.d.ts.map +1 -0
- package/dist/InstallCommand.js +60 -0
- package/dist/InstallCommand.js.map +1 -0
- package/dist/Kbd.d.ts +23 -0
- package/dist/Kbd.d.ts.map +1 -0
- package/dist/Kbd.js +7 -0
- package/dist/Kbd.js.map +1 -0
- package/dist/Label.d.ts +5 -0
- package/dist/Label.d.ts.map +1 -0
- package/dist/Label.js +9 -0
- package/dist/Label.js.map +1 -0
- package/dist/Popover.d.ts +41 -0
- package/dist/Popover.d.ts.map +1 -0
- package/dist/Popover.js +27 -0
- package/dist/Popover.js.map +1 -0
- package/dist/Progress.d.ts +6 -0
- package/dist/Progress.d.ts.map +1 -0
- package/dist/Progress.js +9 -0
- package/dist/Progress.js.map +1 -0
- package/dist/RadioGroup.d.ts +5 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.js +15 -0
- package/dist/RadioGroup.js.map +1 -0
- package/dist/ScrollArea.d.ts +32 -0
- package/dist/ScrollArea.d.ts.map +1 -0
- package/dist/ScrollArea.js +13 -0
- package/dist/ScrollArea.js.map +1 -0
- package/dist/SegmentedControl.d.ts +37 -0
- package/dist/SegmentedControl.d.ts.map +1 -0
- package/dist/SegmentedControl.js +85 -0
- package/dist/SegmentedControl.js.map +1 -0
- package/dist/Select.d.ts +21 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/Select.js +52 -0
- package/dist/Select.js.map +1 -0
- package/dist/Separator.d.ts +4 -0
- package/dist/Separator.d.ts.map +1 -0
- package/dist/Separator.js +9 -0
- package/dist/Separator.js.map +1 -0
- package/dist/Sheet.d.ts +71 -0
- package/dist/Sheet.d.ts.map +1 -0
- package/dist/Sheet.js +173 -0
- package/dist/Sheet.js.map +1 -0
- package/dist/Skeleton.d.ts +26 -0
- package/dist/Skeleton.d.ts.map +1 -0
- package/dist/Skeleton.js +9 -0
- package/dist/Skeleton.js.map +1 -0
- package/dist/Slider.d.ts +5 -0
- package/dist/Slider.d.ts.map +1 -0
- package/dist/Slider.js +12 -0
- package/dist/Slider.js.map +1 -0
- package/dist/StatusDot.d.ts +29 -0
- package/dist/StatusDot.d.ts.map +1 -0
- package/dist/StatusDot.js +55 -0
- package/dist/StatusDot.js.map +1 -0
- package/dist/StatusText.d.ts +15 -0
- package/dist/StatusText.d.ts.map +1 -0
- package/dist/StatusText.js +49 -0
- package/dist/StatusText.js.map +1 -0
- package/dist/Switch.d.ts +47 -0
- package/dist/Switch.d.ts.map +1 -0
- package/dist/Switch.js +17 -0
- package/dist/Switch.js.map +1 -0
- package/dist/Table.d.ts +22 -0
- package/dist/Table.d.ts.map +1 -0
- package/dist/Table.js +42 -0
- package/dist/Table.js.map +1 -0
- package/dist/Tabs.d.ts +96 -0
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Tabs.js +319 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/Tag.d.ts +19 -0
- package/dist/Tag.d.ts.map +1 -0
- package/dist/Tag.js +50 -0
- package/dist/Tag.js.map +1 -0
- package/dist/Textarea.d.ts +32 -0
- package/dist/Textarea.d.ts.map +1 -0
- package/dist/Textarea.js +11 -0
- package/dist/Textarea.js.map +1 -0
- package/dist/Toast.d.ts +47 -0
- package/dist/Toast.d.ts.map +1 -0
- package/dist/Toast.js +110 -0
- package/dist/Toast.js.map +1 -0
- package/dist/ToggleGroup.d.ts +48 -0
- package/dist/ToggleGroup.d.ts.map +1 -0
- package/dist/ToggleGroup.js +27 -0
- package/dist/ToggleGroup.js.map +1 -0
- package/dist/Tooltip.d.ts +8 -0
- package/dist/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip.js +81 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/_code-copy-button.d.ts +9 -0
- package/dist/_code-copy-button.d.ts.map +1 -0
- package/dist/_code-copy-button.js +72 -0
- package/dist/_code-copy-button.js.map +1 -0
- package/dist/_code-syntax.d.ts +81 -0
- package/dist/_code-syntax.d.ts.map +1 -0
- package/dist/_code-syntax.js +293 -0
- package/dist/_code-syntax.js.map +1 -0
- package/dist/_status-icons.d.ts +22 -0
- package/dist/_status-icons.d.ts.map +1 -0
- package/dist/_status-icons.js +40 -0
- package/dist/_status-icons.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/format-numbers.d.ts +51 -0
- package/dist/lib/format-numbers.d.ts.map +1 -0
- package/dist/lib/format-numbers.js +158 -0
- package/dist/lib/format-numbers.js.map +1 -0
- package/dist/lib/utils.d.ts +20 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +23 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/public.d.ts +61 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +65 -0
- package/dist/public.js.map +1 -0
- package/dist/theme-scope.d.ts +55 -0
- package/dist/theme-scope.d.ts.map +1 -0
- package/dist/theme-scope.js +90 -0
- package/dist/theme-scope.js.map +1 -0
- package/dist/tokens.generated.d.ts +335 -0
- package/dist/tokens.generated.d.ts.map +1 -0
- package/dist/tokens.generated.js +349 -0
- package/dist/tokens.generated.js.map +1 -0
- package/package.json +100 -3
- package/styles/README.md +104 -0
- package/styles/base.css +301 -0
- package/styles/canvas.css +147 -0
- package/styles/colors_and_type.css +136 -0
- package/styles/component-contracts.css +471 -0
- package/styles/fonts.css +28 -0
- package/styles/package.css +6 -0
- package/styles/primitive-skins.css +104 -0
- package/styles/semantic-bindings.css +119 -0
- package/styles/shell.css +50 -0
- package/styles/source.css +4 -0
- package/styles/tailwind-bridge.css +255 -0
- package/styles/theme.css +14 -0
- package/styles/tokens.css +1281 -0
- package/README.md +0 -3
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* ==============================================================
|
|
2
|
+
Checkpoint Design System — Typographic Base
|
|
3
|
+
Mirrors `checkpoint-design-system/project/colors_and_type.css`
|
|
4
|
+
from the v5 SSOT bundle.
|
|
5
|
+
|
|
6
|
+
Role: gives the dashboard a single source of truth for
|
|
7
|
+
heading / body / chrome typography. Components below can still
|
|
8
|
+
override; this layer just establishes the baseline so the
|
|
9
|
+
"12 px floor in body, mono labels may go to 11 px" rule (Rule 07)
|
|
10
|
+
is enforced from one place.
|
|
11
|
+
|
|
12
|
+
Opt-in: the registry ships it beside theme.css, which does not
|
|
13
|
+
import it; a consumer that wants this type imports it after the
|
|
14
|
+
theme. The dashboard layouts and Ladle import it.
|
|
15
|
+
|
|
16
|
+
Scope: every selector is namespaced behind
|
|
17
|
+
`[data-theme*="checkpoint"]` so surfaces outside Checkpoint and other themes
|
|
18
|
+
stay untouched. v5's canonical file binds at the bare element
|
|
19
|
+
level (h1, body); the in-repo variant scopes those bindings to
|
|
20
|
+
the checkpoint theme so it doesn't leak.
|
|
21
|
+
|
|
22
|
+
Font loading: `--font-display` (Manrope) and `--font-ui`
|
|
23
|
+
(Inter Tight) are supplied by next/font in
|
|
24
|
+
`app/dashboard/(checkpoint)/layout.tsx`. `--font-mono`
|
|
25
|
+
(Geist Mono) is loaded at the app root. We do NOT @import a
|
|
26
|
+
Google Fonts URL here — next/font handles preloading,
|
|
27
|
+
self-hosting, and FOUT prevention.
|
|
28
|
+
============================================================== */
|
|
29
|
+
|
|
30
|
+
@layer base {
|
|
31
|
+
/* ============================================================
|
|
32
|
+
Root body font + OpenType feature settings + smoothing.
|
|
33
|
+
|
|
34
|
+
`ss01` is Inter's stylistic alternate #1 — swaps the geometric
|
|
35
|
+
"a" + "g" for the single-storey humanist forms the SSOT spec
|
|
36
|
+
uses. Mirrors the SSOT `body { font-feature-settings: "ss01" 1 }`
|
|
37
|
+
rule.
|
|
38
|
+
|
|
39
|
+
`font-smoothing: antialiased` (+ moz equivalent) is what makes
|
|
40
|
+
Manrope 400 read at the SSOT's intended weight on dark
|
|
41
|
+
backgrounds. Without it, macOS defaults to subpixel
|
|
42
|
+
antialiasing which thickens every glyph noticeably even when
|
|
43
|
+
the computed `font-weight` is identical. The `[data-theme=
|
|
44
|
+
'instrument']` block in Checkpoint's globals.css already sets this for v1
|
|
45
|
+
chrome; the checkpoint scope was missing it, which is why
|
|
46
|
+
dashboard h1s read heavier than the SSOT reference at the
|
|
47
|
+
same numeric weight.
|
|
48
|
+
|
|
49
|
+
Applied at the [data-theme] root so every descendant
|
|
50
|
+
(headings, body, chrome) inherits the same set without
|
|
51
|
+
per-component repetition.
|
|
52
|
+
============================================================ */
|
|
53
|
+
[data-theme*='checkpoint'] {
|
|
54
|
+
font-feature-settings: 'ss01' 1;
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
-moz-osx-font-smoothing: grayscale;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ============================================================
|
|
60
|
+
Tabular numerics — instrument feel
|
|
61
|
+
============================================================ */
|
|
62
|
+
[data-theme*='checkpoint'] .tnum,
|
|
63
|
+
[data-theme*='checkpoint'] table,
|
|
64
|
+
[data-theme*='checkpoint'] [data-tnum] {
|
|
65
|
+
font-variant-numeric: tabular-nums;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ============================================================
|
|
69
|
+
Headings — `--font-display` (Manrope), tight tracking.
|
|
70
|
+
The display class is the largest, thinnest, most-tracked
|
|
71
|
+
variant; h1/h2/h3 step down weight and size.
|
|
72
|
+
============================================================ */
|
|
73
|
+
[data-theme*='checkpoint'] :is(h1, .h1, h2, .h2, h3, .h3, .display, .title) {
|
|
74
|
+
font-family: var(--font-display);
|
|
75
|
+
letter-spacing: var(--tracking-tight);
|
|
76
|
+
margin: 0;
|
|
77
|
+
color: var(--fg-primary);
|
|
78
|
+
}
|
|
79
|
+
[data-theme*='checkpoint'] .display {
|
|
80
|
+
font-weight: var(--font-weight-thin);
|
|
81
|
+
font-size: var(--text-4xl);
|
|
82
|
+
letter-spacing: var(--tracking-display);
|
|
83
|
+
line-height: 1.02;
|
|
84
|
+
}
|
|
85
|
+
[data-theme*='checkpoint'] :is(h1, .h1) {
|
|
86
|
+
font-weight: var(--font-weight-regular);
|
|
87
|
+
font-size: var(--text-2xl);
|
|
88
|
+
letter-spacing: var(--tracking-h1);
|
|
89
|
+
line-height: 1.1;
|
|
90
|
+
}
|
|
91
|
+
[data-theme*='checkpoint'] :is(h2, .h2) {
|
|
92
|
+
font-weight: var(--font-weight-medium);
|
|
93
|
+
font-size: var(--text-xl);
|
|
94
|
+
line-height: 1.25;
|
|
95
|
+
}
|
|
96
|
+
[data-theme*='checkpoint'] :is(h3, .h3) {
|
|
97
|
+
font-weight: var(--font-weight-medium);
|
|
98
|
+
font-size: var(--text-lg);
|
|
99
|
+
line-height: 1.3;
|
|
100
|
+
}
|
|
101
|
+
[data-theme*='checkpoint'] .title {
|
|
102
|
+
font-weight: var(--font-weight-medium);
|
|
103
|
+
font-size: var(--text-base);
|
|
104
|
+
line-height: 1.3;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ============================================================
|
|
108
|
+
Body — paragraph defaults sit on `--fg-secondary` so the
|
|
109
|
+
primary type weight feels reserved for h1/h2/h3 and emphasized
|
|
110
|
+
spans. Components that want full-strength body color (data
|
|
111
|
+
rows, key facts) override with `color: var(--fg-primary)`.
|
|
112
|
+
============================================================ */
|
|
113
|
+
[data-theme*='checkpoint'] p {
|
|
114
|
+
margin: 0;
|
|
115
|
+
font-size: var(--text-base);
|
|
116
|
+
line-height: var(--text-base--line-height);
|
|
117
|
+
letter-spacing: var(--tracking-body);
|
|
118
|
+
color: var(--fg-secondary);
|
|
119
|
+
/* SSOT body is Inter Tight 400 — bumped from `--font-weight-book`
|
|
120
|
+
(450) so body reads slightly thinner per the v4 spec. */
|
|
121
|
+
font-weight: var(--font-weight-regular);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ============================================================
|
|
125
|
+
Eyebrow — small mono chrome label, tracked uppercase. The
|
|
126
|
+
"01 · ACTIVITY" or "LIVE FEED · SAMPLE" pattern.
|
|
127
|
+
============================================================ */
|
|
128
|
+
[data-theme*='checkpoint'] .eyebrow {
|
|
129
|
+
font-family: var(--font-mono);
|
|
130
|
+
font-size: var(--text-eyebrow);
|
|
131
|
+
font-weight: var(--font-weight-medium);
|
|
132
|
+
letter-spacing: var(--tracking-eyebrow);
|
|
133
|
+
text-transform: uppercase;
|
|
134
|
+
color: var(--fg-tertiary);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
/* Checkpoint component contracts
|
|
2
|
+
Canonical production treatments shared by the application, Ladle, and the
|
|
3
|
+
generated Checkpoint registry. Keep selectors compatible with the public
|
|
4
|
+
data-slot/data-variant contracts; a change here is a design-system visual
|
|
5
|
+
change and must pass the light/dark Ladle regression suite plus human
|
|
6
|
+
review of the resulting visual comparison.
|
|
7
|
+
|
|
8
|
+
These rules encode the intended production treatment for tabs, the data
|
|
9
|
+
table wrapper, forms, overlays, and feedback primitives. They were
|
|
10
|
+
migrated from the retired app/component-theme.css compatibility sheet.
|
|
11
|
+
Housing them alongside tokens.css makes the complete visual contract
|
|
12
|
+
distributable and removes the application route tree as a styling SSOT;
|
|
13
|
+
historical visual parity remains a separate reviewer decision.
|
|
14
|
+
|
|
15
|
+
Only design-system rules live here. A rule that styles bare elements
|
|
16
|
+
(Checkpoint's table treatment) or a product class belongs in the
|
|
17
|
+
product's own sheets (Checkpoint's styles/checkpoint/), which a consumer
|
|
18
|
+
of this package never receives.
|
|
19
|
+
========================================================================== */
|
|
20
|
+
|
|
21
|
+
/* 1. TOKENS
|
|
22
|
+
This sheet declares no custom properties. The names its rules read
|
|
23
|
+
live in the token layer: the tab, popover, tooltip-muted and
|
|
24
|
+
brand-wash names in semantic-bindings.css, the inline-code chip
|
|
25
|
+
(--code-bg, --code-text, --code-border) and the code-well ring in
|
|
26
|
+
tokens.css. Both sheets declare them on every theme
|
|
27
|
+
selector inside `@layer base`, so a nested [data-theme] scope resolves
|
|
28
|
+
them against its own theme.
|
|
29
|
+
========================================================================== */
|
|
30
|
+
|
|
31
|
+
/* 2. AVATAR STACK AND SKELETON
|
|
32
|
+
========================================================================== */
|
|
33
|
+
|
|
34
|
+
/* AvatarStack and Skeleton read this registry-shipped contract once per
|
|
35
|
+
application through stable markers, instead of a style node per mounted
|
|
36
|
+
instance. Skeleton keys on its own class. */
|
|
37
|
+
[data-slot='avatar-stack'] > *:not(:first-child) {
|
|
38
|
+
margin-left: -8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[data-slot='avatar-stack'] > * {
|
|
42
|
+
box-shadow: 0 0 0 2px var(--bg-canvas);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.checkpoint-skeleton {
|
|
46
|
+
background: linear-gradient(
|
|
47
|
+
90deg,
|
|
48
|
+
var(--surface-default) 0%,
|
|
49
|
+
var(--surface-strong) 50%,
|
|
50
|
+
var(--surface-default) 100%
|
|
51
|
+
);
|
|
52
|
+
background-size: 200% 100%;
|
|
53
|
+
animation: checkpoint-skel-shimmer var(--duration-shimmer) ease-in-out infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes checkpoint-skel-shimmer {
|
|
57
|
+
0% {
|
|
58
|
+
background-position: 200% 0;
|
|
59
|
+
}
|
|
60
|
+
100% {
|
|
61
|
+
background-position: -200% 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.checkpoint-skeleton {
|
|
67
|
+
animation: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* 3. TABS SYSTEM STYLES
|
|
72
|
+
========================================================================== */
|
|
73
|
+
|
|
74
|
+
/* The app-wide underline tab variant. `:not([data-no-underline='true'])`
|
|
75
|
+
lets individual `<Tabs hideUnderline>` instances opt out of the global
|
|
76
|
+
override while keeping every other consumer on the current styling.
|
|
77
|
+
The flag is threaded through React context from `src/Tabs.tsx`
|
|
78
|
+
so `TabsList` + `TabsTrigger` tag themselves when their root opts out. */
|
|
79
|
+
[data-slot='tabs-list']:not([data-no-underline='true']) {
|
|
80
|
+
all: unset !important;
|
|
81
|
+
display: inline-flex !important;
|
|
82
|
+
flex-direction: row !important;
|
|
83
|
+
align-items: flex-end !important;
|
|
84
|
+
gap: 4px !important;
|
|
85
|
+
width: fit-content !important;
|
|
86
|
+
min-width: 0 !important;
|
|
87
|
+
max-width: 100% !important;
|
|
88
|
+
overflow-x: auto !important;
|
|
89
|
+
overflow-y: hidden !important;
|
|
90
|
+
scrollbar-width: thin !important;
|
|
91
|
+
scrollbar-color: var(--border-strong) transparent !important;
|
|
92
|
+
position: relative !important;
|
|
93
|
+
margin-bottom: -1px !important;
|
|
94
|
+
z-index: 1 !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-slot='tabs-trigger']:not([data-no-underline='true']) {
|
|
98
|
+
all: unset !important;
|
|
99
|
+
display: inline-flex !important;
|
|
100
|
+
align-items: center !important;
|
|
101
|
+
justify-content: center !important;
|
|
102
|
+
cursor: pointer !important;
|
|
103
|
+
border-bottom: 2px solid transparent !important;
|
|
104
|
+
color: var(--tab-inactive-text) !important;
|
|
105
|
+
border-radius: 0 !important;
|
|
106
|
+
font-family: var(--font-ui, sans-serif) !important;
|
|
107
|
+
font-size: var(--tab-trigger-text) !important;
|
|
108
|
+
line-height: var(--spacing-6) !important;
|
|
109
|
+
font-weight: var(--font-weight-regular) !important;
|
|
110
|
+
letter-spacing: var(--tracking-body) !important;
|
|
111
|
+
padding: 12px 8px var(--tab-trigger-pad-bottom) 8px !important;
|
|
112
|
+
white-space: nowrap !important;
|
|
113
|
+
flex-shrink: 0 !important;
|
|
114
|
+
position: relative !important;
|
|
115
|
+
z-index: 1 !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-slot='tabs-trigger'][data-state='active']:not([data-no-underline='true']) {
|
|
119
|
+
border-bottom-color: var(--tab-active) !important;
|
|
120
|
+
color: var(--tab-active-text) !important;
|
|
121
|
+
font-weight: var(--font-weight-medium) !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Keyboard focus on a tab: a ring around the label, for the underlined Tabs
|
|
125
|
+
trigger and the animated tab bar alike. The selected tab's underline stays
|
|
126
|
+
visible below the ring. The tab list clips at its padding edge (overflow-x:
|
|
127
|
+
auto makes overflow-y hidden), so the ring stays inside the tab vertically;
|
|
128
|
+
the trigger's ring is inside it horizontally too, and the bar's reaches
|
|
129
|
+
var(--spacing-1) past the tab's sides, into the room the bar's inline
|
|
130
|
+
padding leaves at the list's ends (Tabs.tsx). The ring is the ::before box,
|
|
131
|
+
so the tab draws no outline of its own: the unset above removes the one
|
|
132
|
+
Tabs.tsx gives the trigger (focus-visible:outline-*), and the app's focus
|
|
133
|
+
outline would sit outside the tab. A mouse click draws no ring, because
|
|
134
|
+
:focus-visible does not match one. */
|
|
135
|
+
[data-slot='tabs-trigger']:not([data-no-underline='true']):focus-visible,
|
|
136
|
+
.cp-tabs > [role='tab']:focus-visible {
|
|
137
|
+
outline: none !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[data-slot='tabs-trigger']:not([data-no-underline='true']):focus-visible::before,
|
|
141
|
+
.cp-tabs > [role='tab']:focus-visible::before {
|
|
142
|
+
content: '' !important;
|
|
143
|
+
position: absolute !important;
|
|
144
|
+
border-radius: var(--radius-xs) !important;
|
|
145
|
+
outline: 2px solid var(--ring) !important;
|
|
146
|
+
pointer-events: none !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Each inset is the tab's padding less a 4px gap round the label's line box.
|
|
150
|
+
The trigger's padding is above; the bar's is 6px 2px 14px (Tabs.tsx). */
|
|
151
|
+
[data-slot='tabs-trigger']:not([data-no-underline='true']):focus-visible::before {
|
|
152
|
+
inset: var(--spacing-2) var(--spacing-1) calc(var(--tab-trigger-pad-bottom) - var(--spacing-1)) !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cp-tabs > [role='tab']:focus-visible::before {
|
|
156
|
+
inset: 2px -2px 10px !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Keep horizontal overflow discoverable despite the app-wide scrollbar reset. */
|
|
160
|
+
:is([data-slot='tabs-list'], .cp-tabs) {
|
|
161
|
+
scrollbar-width: thin !important;
|
|
162
|
+
scrollbar-color: var(--border-strong) transparent !important;
|
|
163
|
+
}
|
|
164
|
+
:is([data-slot='tabs-list'], .cp-tabs)::-webkit-scrollbar {
|
|
165
|
+
display: block;
|
|
166
|
+
width: 6px;
|
|
167
|
+
height: 6px;
|
|
168
|
+
}
|
|
169
|
+
:is([data-slot='tabs-list'], .cp-tabs)::-webkit-scrollbar-thumb {
|
|
170
|
+
background: var(--border-strong);
|
|
171
|
+
border-radius: var(--radius-full);
|
|
172
|
+
}
|
|
173
|
+
:is([data-slot='tabs-list'], .cp-tabs)::-webkit-scrollbar-track {
|
|
174
|
+
background: transparent;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 4. DATA TABLE
|
|
178
|
+
========================================================================== */
|
|
179
|
+
|
|
180
|
+
/* The bare table, th, td and row rules are Checkpoint's, in its
|
|
181
|
+
styles/checkpoint/tables.css. The Table primitive carries the same
|
|
182
|
+
values in its own classes, so a consumer's tables match Checkpoint's. */
|
|
183
|
+
[data-slot='data-table-wrapper'] {
|
|
184
|
+
border: none !important;
|
|
185
|
+
border-radius: 0 !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* 5. SELECT/DROPDOWN STYLES
|
|
189
|
+
========================================================================== */
|
|
190
|
+
|
|
191
|
+
[data-slot='select-trigger'] {
|
|
192
|
+
border-radius: var(--radius-md) !important;
|
|
193
|
+
border-color: var(--border-subtle) !important;
|
|
194
|
+
background-color: var(--card) !important;
|
|
195
|
+
box-shadow: var(--shadow-sm) !important;
|
|
196
|
+
height: 32px !important;
|
|
197
|
+
padding: 6px 12px !important;
|
|
198
|
+
gap: 8px !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[data-slot='select-trigger'] svg {
|
|
202
|
+
color: var(--fg-secondary) !important;
|
|
203
|
+
opacity: 1 !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-slot='select-content'] {
|
|
207
|
+
background-color: var(--card) !important;
|
|
208
|
+
color: var(--foreground) !important;
|
|
209
|
+
border-radius: var(--radius-md) !important;
|
|
210
|
+
border: 1px solid var(--border-subtle) !important;
|
|
211
|
+
box-shadow: var(--shadow-md) !important;
|
|
212
|
+
font-family: var(--font-ui, sans-serif) !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
[data-slot='select-item'] {
|
|
216
|
+
border-radius: var(--radius-sm) !important;
|
|
217
|
+
padding: 6px 8px !important;
|
|
218
|
+
font-size: var(--text-sm) !important;
|
|
219
|
+
line-height: var(--spacing-5) !important;
|
|
220
|
+
color: var(--foreground) !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-slot='select-item'][data-state='checked'],
|
|
224
|
+
[data-slot='select-item']:hover {
|
|
225
|
+
background-color: var(--surface-default) !important;
|
|
226
|
+
color: var(--foreground) !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
[data-slot='select-item'][data-state='checked'] svg {
|
|
230
|
+
color: var(--fg-secondary) !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* 6. DROPDOWN MENU STYLES
|
|
234
|
+
========================================================================== */
|
|
235
|
+
|
|
236
|
+
[data-slot='dropdown-menu-content'] {
|
|
237
|
+
background-color: var(--card) !important;
|
|
238
|
+
color: var(--foreground) !important;
|
|
239
|
+
border-radius: var(--radius-md) !important;
|
|
240
|
+
border: 1px solid var(--border-subtle) !important;
|
|
241
|
+
box-shadow: var(--shadow-md) !important;
|
|
242
|
+
padding: 4px !important;
|
|
243
|
+
font-family: var(--font-ui, sans-serif) !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
[data-slot='dropdown-menu-item'] {
|
|
247
|
+
border-radius: var(--radius-sm) !important;
|
|
248
|
+
padding: 6px 8px !important;
|
|
249
|
+
font-size: var(--text-sm) !important;
|
|
250
|
+
line-height: var(--spacing-5) !important;
|
|
251
|
+
color: var(--foreground) !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
[data-slot='dropdown-menu-item'][data-variant='destructive'] {
|
|
255
|
+
color: var(--deny-text) !important;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
[data-slot='dropdown-menu-item']:hover,
|
|
259
|
+
[data-slot='dropdown-menu-item'][data-state='open'] {
|
|
260
|
+
background-color: var(--surface-default) !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* 7. CARD STYLES
|
|
264
|
+
========================================================================== */
|
|
265
|
+
|
|
266
|
+
[data-slot='card'],
|
|
267
|
+
.card {
|
|
268
|
+
border-color: var(--border-subtle) !important;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Card content padding consistency:
|
|
272
|
+
- When CardContent is first child (no header), increase top padding
|
|
273
|
+
- When CardContent follows CardHeader, default padding is fine */
|
|
274
|
+
[data-slot='card'] > [data-slot='card-content']:first-child {
|
|
275
|
+
padding-top: 1.5rem; /* pt-6 to match card-header top padding */
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* When card has a border-b header, ensure content spacing is correct */
|
|
279
|
+
[data-slot='card-header'].border-b + [data-slot='card-content'] {
|
|
280
|
+
padding-top: 1.5rem; /* pt-6 after bordered header */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* 8. ALERT STYLES
|
|
284
|
+
========================================================================== */
|
|
285
|
+
|
|
286
|
+
[data-slot='alert'],
|
|
287
|
+
.alert {
|
|
288
|
+
border-color: var(--border-subtle) !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* 9. FORM ELEMENT STYLES
|
|
292
|
+
========================================================================== */
|
|
293
|
+
|
|
294
|
+
/* Wrapped in @layer base (mirrors the `code` rule below) so Tailwind utilities
|
|
295
|
+
in @layer utilities ALWAYS override: `bg-transparent`, `bg-[var(--surface-default)]`,
|
|
296
|
+
shadcn's `<Input>` className, etc. all need to win. Unlayered, the rule
|
|
297
|
+
would paint `var(--card)` behind `<input className="bg-transparent" />`
|
|
298
|
+
inside a parent-painted container (.search-box, the Checkpoint activity
|
|
299
|
+
SearchBar and rail inputs), drawing an inner rectangle.
|
|
300
|
+
|
|
301
|
+
The default applies to legacy/Bouncer inputs that don't carry their own
|
|
302
|
+
background utility; Checkpoint inputs that paint their own surface through
|
|
303
|
+
a utility or container win. */
|
|
304
|
+
@layer base {
|
|
305
|
+
input:not([type='checkbox']):not([type='radio']):not([type='color']):not(
|
|
306
|
+
[data-slot='command-input']
|
|
307
|
+
),
|
|
308
|
+
textarea,
|
|
309
|
+
select {
|
|
310
|
+
background-color: var(--card);
|
|
311
|
+
border-color: var(--input);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Color Input Specifics */
|
|
316
|
+
input[type='color'] {
|
|
317
|
+
border: none !important;
|
|
318
|
+
outline: none !important;
|
|
319
|
+
-webkit-appearance: none;
|
|
320
|
+
appearance: none;
|
|
321
|
+
background: none;
|
|
322
|
+
}
|
|
323
|
+
input[type='color']::-webkit-color-swatch-wrapper {
|
|
324
|
+
padding: 0;
|
|
325
|
+
border: none;
|
|
326
|
+
}
|
|
327
|
+
input[type='color']::-webkit-color-swatch {
|
|
328
|
+
border: none;
|
|
329
|
+
border-radius: inherit;
|
|
330
|
+
}
|
|
331
|
+
input[type='color']::-moz-color-swatch {
|
|
332
|
+
border: none;
|
|
333
|
+
border-radius: inherit;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* 10. TOOLTIP STYLES
|
|
337
|
+
========================================================================== */
|
|
338
|
+
|
|
339
|
+
[data-slot='tooltip-content'] {
|
|
340
|
+
background-color: var(--tooltip-bg) !important;
|
|
341
|
+
color: var(--tooltip-text) !important;
|
|
342
|
+
border: 1px solid var(--tooltip-border) !important;
|
|
343
|
+
border-radius: var(--radius-md) !important;
|
|
344
|
+
padding: 10px 14px !important;
|
|
345
|
+
box-shadow: var(--shadow-md) !important;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
[data-slot='tooltip-content'] .text-muted-foreground {
|
|
349
|
+
color: var(--tooltip-text-muted) !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
[data-slot='tooltip-arrow'] {
|
|
353
|
+
background-color: var(--tooltip-bg) !important;
|
|
354
|
+
fill: var(--tooltip-bg) !important;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* 11. POPOVER STYLES
|
|
358
|
+
========================================================================== */
|
|
359
|
+
|
|
360
|
+
[data-slot='popover-content'] {
|
|
361
|
+
background-color: var(--popover-bg) !important;
|
|
362
|
+
color: var(--popover-text) !important;
|
|
363
|
+
border: 1px solid var(--popover-border) !important;
|
|
364
|
+
border-radius: var(--radius-md) !important;
|
|
365
|
+
font-family: var(--font-ui, sans-serif) !important;
|
|
366
|
+
box-shadow: var(--shadow-md) !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
[data-slot='popover-content'] .text-muted-foreground {
|
|
370
|
+
color: var(--popover-text-muted) !important;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* Reset min-height for portal components */
|
|
374
|
+
[data-slot='popover-content'],
|
|
375
|
+
[data-slot='tooltip-content'] {
|
|
376
|
+
min-height: auto;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* 12. TOAST STYLES
|
|
380
|
+
========================================================================== */
|
|
381
|
+
|
|
382
|
+
[data-sonner-toast] {
|
|
383
|
+
background-color: var(--toast);
|
|
384
|
+
border: 1px solid var(--toast-border);
|
|
385
|
+
box-shadow: var(--shadow-lg);
|
|
386
|
+
border-radius: var(--radius-md);
|
|
387
|
+
padding: 16px;
|
|
388
|
+
gap: 12px;
|
|
389
|
+
color: var(--toast-foreground);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
[data-sonner-toast] [data-sonner-title] {
|
|
393
|
+
font-weight: var(--font-weight-medium);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
[data-sonner-toast] [data-sonner-description] {
|
|
397
|
+
color: var(--toast-description);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
[data-sonner-toast] [data-sonner-close-button] svg {
|
|
401
|
+
color: var(--toast-close);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/* 13. CODE STYLES
|
|
405
|
+
========================================================================== */
|
|
406
|
+
|
|
407
|
+
/* Inline code base style — uses --accent for visible contrast in both modes.
|
|
408
|
+
Wrapped in @layer base so Tailwind utilities (in @layer utilities) always
|
|
409
|
+
override these defaults — text-lg, px-4, rounded-lg, etc. will win. */
|
|
410
|
+
@layer base {
|
|
411
|
+
code:not(pre code) {
|
|
412
|
+
font-family: var(--font-mono);
|
|
413
|
+
background-color: var(--code-bg);
|
|
414
|
+
color: var(--code-text);
|
|
415
|
+
border: 1px solid var(--code-border);
|
|
416
|
+
padding: 0.125rem 0.375rem;
|
|
417
|
+
border-radius: var(--radius-sm);
|
|
418
|
+
font-size: var(--text-code);
|
|
419
|
+
font-weight: var(--font-weight-medium);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* Bare pres ride the --pre-well-* pair: the code well in dark, a pale well
|
|
424
|
+
on paper, where their text is light-theme text (tokens.css). */
|
|
425
|
+
pre {
|
|
426
|
+
background: var(--pre-well-bg);
|
|
427
|
+
border: 1px solid var(--pre-well-border);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* The DS CodeBlock / InstallCommand frame their own wells — the bare-`pre`
|
|
431
|
+
paint above (and the unlayered copy in Checkpoint's app/globals.css) must not
|
|
432
|
+
double-frame the inner pre. 0,1,1 specificity beats both 0,0,1 rules
|
|
433
|
+
regardless of sheet order. */
|
|
434
|
+
[data-slot='code-block'] pre,
|
|
435
|
+
[data-slot='install-command'] pre {
|
|
436
|
+
margin: 0;
|
|
437
|
+
border: 0;
|
|
438
|
+
background: transparent;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* CodeBlock's `maxHeight` body is a fixed-height clip, so it needs a VISIBLE
|
|
442
|
+
scrollbar: Checkpoint's app/globals.css hides them app-wide (`* { scrollbar-width: none }`
|
|
443
|
+
+ `*::-webkit-scrollbar { display: none }`), and a capped panel that silently
|
|
444
|
+
clips real content with no scrollbar and no other affordance just reads as
|
|
445
|
+
cut off. That is the bug #4436 fixed for the Detect install card's viewer via
|
|
446
|
+
the app sheet's `.visible-scrollbar`; stating it here instead keeps the DS
|
|
447
|
+
primitive self-contained, since registry consumers ship these sheets and not
|
|
448
|
+
globals.css. Deliberately scoped to the body slot: the header strip and the
|
|
449
|
+
install-command line never scroll vertically.
|
|
450
|
+
|
|
451
|
+
Must stay UNLAYERED to beat the global hide — an unlayered declaration always
|
|
452
|
+
wins over a layered one regardless of specificity, so a `@layer base` version
|
|
453
|
+
of this would lose to globals.css's unlayered `*` rule (the same trap #4436
|
|
454
|
+
documents). Only the capped case gets a scrollbar; an uncapped body never
|
|
455
|
+
overflows, so `overflow: auto` alone shows nothing either way. */
|
|
456
|
+
[data-slot='code-block-body'] {
|
|
457
|
+
scrollbar-width: thin; /* Firefox, and modern Chromium/Safari */
|
|
458
|
+
scrollbar-color: var(--border-strong) transparent;
|
|
459
|
+
}
|
|
460
|
+
[data-slot='code-block-body']::-webkit-scrollbar {
|
|
461
|
+
display: block; /* undo the global `*::-webkit-scrollbar { display: none }` */
|
|
462
|
+
width: 6px;
|
|
463
|
+
height: 6px;
|
|
464
|
+
}
|
|
465
|
+
[data-slot='code-block-body']::-webkit-scrollbar-thumb {
|
|
466
|
+
background: var(--border-strong);
|
|
467
|
+
border-radius: var(--radius-full);
|
|
468
|
+
}
|
|
469
|
+
[data-slot='code-block-body']::-webkit-scrollbar-track {
|
|
470
|
+
background: transparent;
|
|
471
|
+
}
|
package/styles/fonts.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* The faces the design system sets in, from Fontsource, and the font
|
|
2
|
+
variables the tokens read. An app can load the same families another way
|
|
3
|
+
(next/font, say) and leave this sheet out, as long as it sets the same
|
|
4
|
+
variables. The catalog loads them from apps/catalog/.ladle/fonts.ts, and
|
|
5
|
+
apps/catalog/tests/unit/ladle-fonts.test.ts holds that list and this one
|
|
6
|
+
to the same faces. The variables sit on :root, so the :root aliases in
|
|
7
|
+
tokens.css (`--font-mono` and friends) resolve to the same faces. */
|
|
8
|
+
@import '@fontsource-variable/geist-mono/wght.css';
|
|
9
|
+
@import '@fontsource-variable/geist/wght.css';
|
|
10
|
+
@import '@fontsource/instrument-serif/400.css';
|
|
11
|
+
@import '@fontsource/instrument-serif/400-italic.css';
|
|
12
|
+
@import '@fontsource/manrope/300.css';
|
|
13
|
+
@import '@fontsource/manrope/400.css';
|
|
14
|
+
@import '@fontsource/manrope/500.css';
|
|
15
|
+
@import '@fontsource/manrope/600.css';
|
|
16
|
+
@import '@fontsource/manrope/700.css';
|
|
17
|
+
@import '@fontsource/inter/300.css';
|
|
18
|
+
@import '@fontsource/inter/400.css';
|
|
19
|
+
@import '@fontsource/inter/500.css';
|
|
20
|
+
@import '@fontsource/inter/600.css';
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
--font-geist-mono: 'Geist Mono Variable', monospace;
|
|
24
|
+
--font-geist: 'Geist Variable', sans-serif;
|
|
25
|
+
--font-serif: 'Instrument Serif', serif;
|
|
26
|
+
--font-display: 'Manrope', sans-serif;
|
|
27
|
+
--font-ui: 'Inter', sans-serif;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* The theme as the npm package ships it (@vouched-id/ui/theme.css): the
|
|
2
|
+
theme, plus the compiled components as a Tailwind source. Import it once,
|
|
3
|
+
right after tailwindcss. A consumer that imports the sheets one by one
|
|
4
|
+
imports @vouched-id/ui/source.css with them. */
|
|
5
|
+
@import './source.css';
|
|
6
|
+
@import './theme.css';
|