@vouched-id/ui 0.0.0-stage → 0.1.1
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/VouchedLogo.d.ts +31 -0
- package/dist/VouchedLogo.d.ts.map +1 -0
- package/dist/VouchedLogo.js +215 -0
- package/dist/VouchedLogo.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 +62 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +66 -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 +106 -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 +15 -0
- package/styles/tokens.css +1281 -0
- package/styles/vouched-logo.css +336 -0
- package/README.md +0 -3
|
@@ -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';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* The design system's skins for two primitives inside a Checkpoint theme
|
|
2
|
+
scope: the Avatar fallback colours and the Toast (Sonner) skin. theme.css
|
|
3
|
+
imports it, so every consumer gets them. Checkpoint loads it from its
|
|
4
|
+
styles/checkpoint/checkpoint.css, right after the opt-in radius doctrine
|
|
5
|
+
(shell.css), so the dashboard cascades these rules in the same place. */
|
|
6
|
+
|
|
7
|
+
@layer utilities {
|
|
8
|
+
/* ==============================================================
|
|
9
|
+
Avatars — fallback chrome only.
|
|
10
|
+
The square "identity tile" treatment (Instrument doctrine) applies
|
|
11
|
+
to the agent-tile CLASSES from the source design (`.nav-foot .who
|
|
12
|
+
.av`, `.av` in chat exchanges) — those never use the shared
|
|
13
|
+
primitive. The shared <Avatar> primitive is the PEOPLE avatar
|
|
14
|
+
(user menu, team tables, org switchers) and owns its rounded-full
|
|
15
|
+
geometry; the ui/avatar→checkpoint migration put every people
|
|
16
|
+
avatar on the primitive, so a data-slot radius override here
|
|
17
|
+
squared them all (reported as a regression 2026-07-13). Radius is
|
|
18
|
+
the primitive's; only fallback coloring is themed here.
|
|
19
|
+
============================================================== */
|
|
20
|
+
[data-theme*='checkpoint'] [data-slot='avatar-fallback'] {
|
|
21
|
+
background: var(--bg-surface);
|
|
22
|
+
border: 1px solid var(--accent-line);
|
|
23
|
+
color: var(--accent-text);
|
|
24
|
+
font-family: var(--font-mono);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ==============================================================
|
|
29
|
+
TOAST — Sonner override
|
|
30
|
+
Unlayered, like the [data-sonner-toast] rule in Checkpoint's app/globals.css.
|
|
31
|
+
Wins purely by specificity: (0,2,0) vs (0,1,0) — no !important,
|
|
32
|
+
no layer dependency, no chunk-order roulette.
|
|
33
|
+
============================================================== */
|
|
34
|
+
|
|
35
|
+
[data-theme*='checkpoint'] [data-sonner-toast] {
|
|
36
|
+
background-color: var(--bg-elevated);
|
|
37
|
+
border: 1px solid var(--border-default);
|
|
38
|
+
border-radius: var(--radius-md);
|
|
39
|
+
box-shadow: var(--shadow-md);
|
|
40
|
+
color: var(--fg-primary);
|
|
41
|
+
padding: 14px 16px;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
min-width: 280px;
|
|
44
|
+
max-width: 380px;
|
|
45
|
+
font-family: var(--font-ui);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Title — 14 px / 500 */
|
|
49
|
+
[data-theme*='checkpoint'] [data-sonner-toast] [data-title] {
|
|
50
|
+
font-size: var(--text-sm);
|
|
51
|
+
font-weight: var(--font-weight-medium);
|
|
52
|
+
color: var(--fg-primary);
|
|
53
|
+
line-height: 1.35;
|
|
54
|
+
margin-bottom: 2px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Description — 12.5 px / regular / secondary ink */
|
|
58
|
+
[data-theme*='checkpoint'] [data-sonner-toast] [data-description] {
|
|
59
|
+
font-size: var(--text-caption);
|
|
60
|
+
color: var(--fg-secondary);
|
|
61
|
+
line-height: var(--text-caption--line-height);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Icon slot — 18 × 18, slight top nudge to optically align with title */
|
|
65
|
+
[data-theme*='checkpoint'] [data-sonner-toast] [data-icon] {
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
width: 18px;
|
|
68
|
+
height: 18px;
|
|
69
|
+
margin-top: 1px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Status colour flows to the icon via currentColor on the svg */
|
|
73
|
+
[data-theme*='checkpoint'] [data-sonner-toast][data-type='success'] [data-icon] {
|
|
74
|
+
color: var(--allow-text);
|
|
75
|
+
}
|
|
76
|
+
[data-theme*='checkpoint'] [data-sonner-toast][data-type='error'] [data-icon] {
|
|
77
|
+
color: var(--deny-text);
|
|
78
|
+
}
|
|
79
|
+
[data-theme*='checkpoint'] [data-sonner-toast][data-type='warning'] [data-icon] {
|
|
80
|
+
color: var(--warn-text);
|
|
81
|
+
}
|
|
82
|
+
[data-theme*='checkpoint'] [data-sonner-toast][data-type='info'] [data-icon] {
|
|
83
|
+
color: var(--info-text);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Close button */
|
|
87
|
+
[data-theme*='checkpoint'] [data-sonner-toast] [data-close-button] {
|
|
88
|
+
background: transparent;
|
|
89
|
+
border: 0;
|
|
90
|
+
color: var(--fg-muted);
|
|
91
|
+
width: 20px;
|
|
92
|
+
height: 20px;
|
|
93
|
+
display: grid;
|
|
94
|
+
place-items: center;
|
|
95
|
+
border-radius: var(--radius-sm);
|
|
96
|
+
padding: 0;
|
|
97
|
+
transition:
|
|
98
|
+
color var(--duration-fast),
|
|
99
|
+
background var(--duration-fast);
|
|
100
|
+
}
|
|
101
|
+
[data-theme*='checkpoint'] [data-sonner-toast] [data-close-button]:hover {
|
|
102
|
+
color: var(--fg-primary);
|
|
103
|
+
background: var(--surface-default);
|
|
104
|
+
}
|