@pontive/pontkit-core 1.26.0 → 1.27.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/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/pont2/core/attrs.d.ts +22 -0
- package/dist/pont2/core/controllers/roving-focus.d.ts +38 -0
- package/dist/pont2/core/events.d.ts +28 -0
- package/dist/pont2/core/form-control.d.ts +70 -0
- package/dist/pont2/core/host-element.d.ts +129 -0
- package/dist/pont2/core/icons.d.ts +20 -0
- package/dist/pont2/core/ids.d.ts +6 -0
- package/dist/pont2/core/index.d.ts +8 -0
- package/dist/pont2/core/names.d.ts +78 -0
- package/dist/pont2/core/popup/anchored.d.ts +48 -0
- package/dist/pont2/core/popup/index.d.ts +5 -0
- package/dist/pont2/core/popup/list.d.ts +38 -0
- package/dist/pont2/core/popup/popup-content.d.ts +68 -0
- package/dist/pont2/core/popup/popup-root.d.ts +94 -0
- package/dist/pont2/core/popup/position.d.ts +73 -0
- package/dist/pont2/globals.css +109 -0
- package/dist/pont2/index.d.ts +44 -0
- package/dist/pont2/index.mjs +3805 -0
- package/dist/pont2/index.mjs.map +1 -0
- package/dist/pont2/kit/alert/alert.d.ts +62 -0
- package/dist/pont2/kit/aliases.d.ts +33 -0
- package/dist/pont2/kit/avatar/avatar.d.ts +52 -0
- package/dist/pont2/kit/index.d.ts +3 -0
- package/dist/pont2/kit/input-otp/input-otp.d.ts +52 -0
- package/dist/pont2/primitives/alert/alert.d.ts +49 -0
- package/dist/pont2/primitives/avatar/avatar.d.ts +89 -0
- package/dist/pont2/primitives/badge/badge.d.ts +30 -0
- package/dist/pont2/primitives/button/button.d.ts +113 -0
- package/dist/pont2/primitives/button-group/button-group.d.ts +55 -0
- package/dist/pont2/primitives/card/card.d.ts +63 -0
- package/dist/pont2/primitives/checkbox/checkbox.d.ts +54 -0
- package/dist/pont2/primitives/combobox/combobox.d.ts +213 -0
- package/dist/pont2/primitives/dropdown-menu/dropdown-menu.d.ts +267 -0
- package/dist/pont2/primitives/empty/empty.d.ts +60 -0
- package/dist/pont2/primitives/field/field.d.ts +146 -0
- package/dist/pont2/primitives/input/input.d.ts +47 -0
- package/dist/pont2/primitives/input-group/input-group.d.ts +97 -0
- package/dist/pont2/primitives/input-otp/input-otp.d.ts +121 -0
- package/dist/pont2/primitives/input-otp/otp.d.ts +22 -0
- package/dist/pont2/primitives/item/item.d.ts +100 -0
- package/dist/pont2/primitives/kbd/kbd.d.ts +29 -0
- package/dist/pont2/primitives/label/label.d.ts +37 -0
- package/dist/pont2/primitives/native-select/native-select.d.ts +59 -0
- package/dist/pont2/primitives/popover/popover.d.ts +85 -0
- package/dist/pont2/primitives/progress/progress.d.ts +80 -0
- package/dist/pont2/primitives/radio-group/radio-group.d.ts +93 -0
- package/dist/pont2/primitives/select/select.d.ts +184 -0
- package/dist/pont2/primitives/separator/separator.d.ts +34 -0
- package/dist/pont2/primitives/skeleton/skeleton.d.ts +18 -0
- package/dist/pont2/primitives/slider/slider-math.d.ts +42 -0
- package/dist/pont2/primitives/slider/slider.d.ts +85 -0
- package/dist/pont2/primitives/spinner/spinner.d.ts +29 -0
- package/dist/pont2/primitives/switch/switch.d.ts +55 -0
- package/dist/pont2/primitives/table/table.d.ts +55 -0
- package/dist/pont2/primitives/tabs/tabs.d.ts +126 -0
- package/dist/pont2/primitives/textarea/textarea.d.ts +41 -0
- package/dist/pont2/primitives/tooltip/tooltip.d.ts +69 -0
- package/dist/pont2/styles.css +4137 -0
- package/dist/pont2/with-legacy.css +10 -0
- package/package.json +16 -4
|
@@ -0,0 +1,4137 @@
|
|
|
1
|
+
/* @pontive/pontkit-core pont2 — generated by pont2/scripts/build-css.mjs */
|
|
2
|
+
/*
|
|
3
|
+
* pont2 stylesheet: `@pontive/pontkit-core/pont2/styles.css`.
|
|
4
|
+
*
|
|
5
|
+
* Cascade layers do for pont2 what `cn()` / tailwind-merge does for shadcn:
|
|
6
|
+
* a later layer beats an earlier one whatever the specificity, so
|
|
7
|
+
* reset < tokens < base < primitives < kit
|
|
8
|
+
* and ANY unlayered app CSS beats all of them (that is what consumers expect
|
|
9
|
+
* from `className`). The order is declared once, here, before anything else.
|
|
10
|
+
*
|
|
11
|
+
* `pont2.reset` is first and only used by the optional globals.css.
|
|
12
|
+
*
|
|
13
|
+
* Coexisting with an unlayered stylesheet that resets elements (Tailwind 3
|
|
14
|
+
* preflight, including the legacy pontkit `dist/styles.css`) needs one line
|
|
15
|
+
* in the app; see docs/08-parallel-constraints.md.
|
|
16
|
+
*/
|
|
17
|
+
@layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit;
|
|
18
|
+
|
|
19
|
+
/* ./tokens.css */
|
|
20
|
+
/*
|
|
21
|
+
* pont2 design tokens.
|
|
22
|
+
*
|
|
23
|
+
* Values are shadcn's current defaults: the "neutral" base colour and the
|
|
24
|
+
* Vega style (apps/v4/registry/themes.ts and styles/style-vega.css in
|
|
25
|
+
* shadcn-ui/ui). Names are shadcn's with the `--pont2-` prefix, so a shadcn
|
|
26
|
+
* theme (from ui.shadcn.com/themes or `shadcn create`) is ported by
|
|
27
|
+
* find-and-replace `--` → `--pont2-` (docs/03-styling.md, "Theming").
|
|
28
|
+
*
|
|
29
|
+
* Dark mode: shadcn's `.dark` class AND pontkit's `[data-theme="dark"]`, on
|
|
30
|
+
* any ancestor (usually <html>).
|
|
31
|
+
*
|
|
32
|
+
* In the tokens layer, so any unlayered `:root { --pont2-primary: … }` in the
|
|
33
|
+
* app wins without specificity games.
|
|
34
|
+
*/
|
|
35
|
+
@layer pont2.tokens {
|
|
36
|
+
:root {
|
|
37
|
+
/* Colour: semantic, exactly shadcn's set */
|
|
38
|
+
--pont2-background: oklch(1 0 0);
|
|
39
|
+
--pont2-foreground: oklch(0.145 0 0);
|
|
40
|
+
--pont2-card: oklch(1 0 0);
|
|
41
|
+
--pont2-card-foreground: oklch(0.145 0 0);
|
|
42
|
+
--pont2-popover: oklch(1 0 0);
|
|
43
|
+
--pont2-popover-foreground: oklch(0.145 0 0);
|
|
44
|
+
--pont2-primary: oklch(0.205 0 0);
|
|
45
|
+
--pont2-primary-foreground: oklch(0.985 0 0);
|
|
46
|
+
--pont2-secondary: oklch(0.97 0 0);
|
|
47
|
+
--pont2-secondary-foreground: oklch(0.205 0 0);
|
|
48
|
+
--pont2-muted: oklch(0.97 0 0);
|
|
49
|
+
--pont2-muted-foreground: oklch(0.556 0 0);
|
|
50
|
+
--pont2-accent: oklch(0.97 0 0);
|
|
51
|
+
--pont2-accent-foreground: oklch(0.205 0 0);
|
|
52
|
+
--pont2-destructive: oklch(0.577 0.245 27.325);
|
|
53
|
+
--pont2-border: oklch(0.922 0 0);
|
|
54
|
+
--pont2-input: oklch(0.922 0 0);
|
|
55
|
+
--pont2-ring: oklch(0.708 0 0);
|
|
56
|
+
--pont2-chart-1: oklch(0.87 0 0);
|
|
57
|
+
--pont2-chart-2: oklch(0.556 0 0);
|
|
58
|
+
--pont2-chart-3: oklch(0.439 0 0);
|
|
59
|
+
--pont2-chart-4: oklch(0.371 0 0);
|
|
60
|
+
|
|
61
|
+
/* Status colours: a pont2 ADDITION (shadcn has only destructive). Used by
|
|
62
|
+
kit composites (pont2-alert status="success|warning|info"); primitives
|
|
63
|
+
never read them. Tailwind palette steps: green-700, amber-600, blue-600. */
|
|
64
|
+
--pont2-success: oklch(0.527 0.154 150.069);
|
|
65
|
+
--pont2-warning: oklch(0.666 0.179 58.318);
|
|
66
|
+
--pont2-info: oklch(0.546 0.245 262.881);
|
|
67
|
+
--pont2-chart-5: oklch(0.269 0 0);
|
|
68
|
+
|
|
69
|
+
/* Radius: shadcn's scale, derived from one knob */
|
|
70
|
+
--pont2-radius: 0.625rem;
|
|
71
|
+
--pont2-radius-sm: calc(var(--pont2-radius) * 0.6);
|
|
72
|
+
--pont2-radius-md: calc(var(--pont2-radius) * 0.8);
|
|
73
|
+
--pont2-radius-lg: var(--pont2-radius);
|
|
74
|
+
--pont2-radius-xl: calc(var(--pont2-radius) * 1.4);
|
|
75
|
+
--pont2-radius-2xl: calc(var(--pont2-radius) * 1.8);
|
|
76
|
+
--pont2-radius-3xl: calc(var(--pont2-radius) * 2.2);
|
|
77
|
+
--pont2-radius-4xl: calc(var(--pont2-radius) * 2.6);
|
|
78
|
+
|
|
79
|
+
/* Typography: Tailwind v4 defaults that shadcn classes resolve to */
|
|
80
|
+
--pont2-font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
81
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
82
|
+
--pont2-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
83
|
+
"Courier New", monospace;
|
|
84
|
+
--pont2-text-xs: 0.75rem;
|
|
85
|
+
--pont2-text-xs--line-height: calc(1 / 0.75);
|
|
86
|
+
--pont2-text-sm: 0.875rem;
|
|
87
|
+
--pont2-text-sm--line-height: calc(1.25 / 0.875);
|
|
88
|
+
--pont2-text-base: 1rem;
|
|
89
|
+
--pont2-text-base--line-height: calc(1.5 / 1);
|
|
90
|
+
--pont2-text-lg: 1.125rem;
|
|
91
|
+
--pont2-text-lg--line-height: calc(1.75 / 1.125);
|
|
92
|
+
--pont2-font-weight-normal: 400;
|
|
93
|
+
--pont2-font-weight-medium: 500;
|
|
94
|
+
--pont2-font-weight-semibold: 600;
|
|
95
|
+
--pont2-leading-snug: 1.375;
|
|
96
|
+
--pont2-leading-normal: 1.5;
|
|
97
|
+
|
|
98
|
+
/* Elevation: Tailwind v4 shadow-* */
|
|
99
|
+
--pont2-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
100
|
+
--pont2-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
101
|
+
--pont2-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
102
|
+
--pont2-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
103
|
+
|
|
104
|
+
/* Motion: Tailwind v4 transition defaults */
|
|
105
|
+
--pont2-duration: 150ms;
|
|
106
|
+
--pont2-ease: cubic-bezier(0.4, 0, 0.2, 1);
|
|
107
|
+
--pont2-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
108
|
+
|
|
109
|
+
/* Focus ring: `focus-visible:ring-3 ring-ring/50` */
|
|
110
|
+
--pont2-ring-width: 3px;
|
|
111
|
+
|
|
112
|
+
color-scheme: light;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:root.dark,
|
|
116
|
+
:root[data-theme="dark"],
|
|
117
|
+
.dark,
|
|
118
|
+
[data-theme="dark"] {
|
|
119
|
+
--pont2-background: oklch(0.145 0 0);
|
|
120
|
+
--pont2-foreground: oklch(0.985 0 0);
|
|
121
|
+
--pont2-card: oklch(0.205 0 0);
|
|
122
|
+
--pont2-card-foreground: oklch(0.985 0 0);
|
|
123
|
+
--pont2-popover: oklch(0.205 0 0);
|
|
124
|
+
--pont2-popover-foreground: oklch(0.985 0 0);
|
|
125
|
+
--pont2-primary: oklch(0.922 0 0);
|
|
126
|
+
--pont2-primary-foreground: oklch(0.205 0 0);
|
|
127
|
+
--pont2-secondary: oklch(0.269 0 0);
|
|
128
|
+
--pont2-secondary-foreground: oklch(0.985 0 0);
|
|
129
|
+
--pont2-muted: oklch(0.269 0 0);
|
|
130
|
+
--pont2-muted-foreground: oklch(0.708 0 0);
|
|
131
|
+
--pont2-accent: oklch(0.269 0 0);
|
|
132
|
+
--pont2-accent-foreground: oklch(0.985 0 0);
|
|
133
|
+
--pont2-destructive: oklch(0.704 0.191 22.216);
|
|
134
|
+
--pont2-border: oklch(1 0 0 / 10%);
|
|
135
|
+
--pont2-input: oklch(1 0 0 / 15%);
|
|
136
|
+
--pont2-ring: oklch(0.556 0 0);
|
|
137
|
+
/* green-500, amber-400, blue-400 */
|
|
138
|
+
--pont2-success: oklch(0.723 0.219 149.579);
|
|
139
|
+
--pont2-warning: oklch(0.828 0.189 84.429);
|
|
140
|
+
--pont2-info: oklch(0.707 0.165 254.624);
|
|
141
|
+
color-scheme: dark;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ./base.css */
|
|
146
|
+
/*
|
|
147
|
+
* pont2 base: the machinery every component recipe shares.
|
|
148
|
+
*
|
|
149
|
+
* Nothing here styles the page. Components never rely on a global reset
|
|
150
|
+
* (shadcn relies on Tailwind preflight); every recipe states the box,
|
|
151
|
+
* border, font and margin it needs, so pont2 renders correctly with or
|
|
152
|
+
* without `globals.css`. See docs/03-styling.md, "Self-sufficient recipes".
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/*
|
|
156
|
+
* Box-shadow composition (how Tailwind composes `shadow-xs` + `ring-3`).
|
|
157
|
+
* A recipe sets `--pont2-shadow` and/or `--pont2-ring-shadow` and the
|
|
158
|
+
* shared declaration below combines them, so a focus ring never erases the
|
|
159
|
+
* elevation shadow. `inherits: false` stops a parent's ring leaking into
|
|
160
|
+
* children. @property is global; it cannot be layered and does not need to be.
|
|
161
|
+
*/
|
|
162
|
+
@property --pont2-shadow {
|
|
163
|
+
syntax: "*";
|
|
164
|
+
inherits: false;
|
|
165
|
+
initial-value: 0 0 #0000;
|
|
166
|
+
}
|
|
167
|
+
@property --pont2-ring-shadow {
|
|
168
|
+
syntax: "*";
|
|
169
|
+
inherits: false;
|
|
170
|
+
initial-value: 0 0 #0000;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@layer pont2.base {
|
|
174
|
+
/* Tier 3 shells: a tag for authors, no box, no role, never styled. */
|
|
175
|
+
[data-pont2-shell] {
|
|
176
|
+
display: contents;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* Before upgrade. An element that is not yet defined has not stamped its
|
|
181
|
+
* identity attribute, so every recipe selects `:is(pont2-x, [data-pont2-x])`:
|
|
182
|
+
* the tag styles the element from the first paint, the attribute styles
|
|
183
|
+
* subclasses and hand-written recipe markup. Children are already in their
|
|
184
|
+
* final place (host-as-root never moves nodes), so nothing jumps on upgrade.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/*
|
|
188
|
+
* `hidden` must keep working on pont2 hosts, whose recipes set `display`
|
|
189
|
+
* (an author-origin declaration beats the UA's `[hidden] { display: none }`).
|
|
190
|
+
* !important inside a layer only outranks normal declarations, which is
|
|
191
|
+
* exactly the UA's intent restored.
|
|
192
|
+
*/
|
|
193
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
194
|
+
display: none !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Screen-reader-only helper, Tailwind's `sr-only`. */
|
|
198
|
+
[data-pont2-sr-only] {
|
|
199
|
+
position: absolute;
|
|
200
|
+
width: 1px;
|
|
201
|
+
height: 1px;
|
|
202
|
+
padding: 0;
|
|
203
|
+
margin: -1px;
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
clip-path: inset(50%);
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
border-width: 0;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@layer pont2.base {
|
|
212
|
+
@keyframes pont2-spin {
|
|
213
|
+
to {
|
|
214
|
+
transform: rotate(360deg);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
@keyframes pont2-pulse {
|
|
218
|
+
50% {
|
|
219
|
+
opacity: 0.5;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* Primitives: pont2-prim-* (each file wraps itself in @layer pont2.primitives) */
|
|
225
|
+
/* ../primitives/button/button.css */
|
|
226
|
+
/*
|
|
227
|
+
* Button recipe. shadcn (Base UI, Vega):
|
|
228
|
+
* buttonVariants base + .cn-button + .cn-button-variant-* + .cn-button-size-*
|
|
229
|
+
*
|
|
230
|
+
* Tier 3: the recipe styles a NATIVE <button> or <a> carrying
|
|
231
|
+
* `data-pont2-button` (the identity), with `data-variant` / `data-size`.
|
|
232
|
+
* A missing data-variant / data-size means "default", so the minimal
|
|
233
|
+
* hand-written recipe is `<button data-pont2-button>`.
|
|
234
|
+
*/
|
|
235
|
+
@layer pont2.primitives {
|
|
236
|
+
[data-pont2-button] {
|
|
237
|
+
/* self-sufficient: what Tailwind preflight would have given a <button>/<a> */
|
|
238
|
+
box-sizing: border-box;
|
|
239
|
+
margin: 0;
|
|
240
|
+
font-family: inherit;
|
|
241
|
+
text-decoration: none;
|
|
242
|
+
cursor: default;
|
|
243
|
+
-webkit-appearance: none;
|
|
244
|
+
appearance: none;
|
|
245
|
+
|
|
246
|
+
/* buttonVariants base */
|
|
247
|
+
display: inline-flex;
|
|
248
|
+
flex-shrink: 0;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: center;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
user-select: none;
|
|
253
|
+
outline: none;
|
|
254
|
+
transition-property: all;
|
|
255
|
+
transition-duration: var(--pont2-duration);
|
|
256
|
+
transition-timing-function: var(--pont2-ease);
|
|
257
|
+
|
|
258
|
+
/* .cn-button */
|
|
259
|
+
border: 1px solid transparent;
|
|
260
|
+
border-radius: var(--pont2-radius-md);
|
|
261
|
+
background-clip: padding-box;
|
|
262
|
+
background-color: transparent;
|
|
263
|
+
color: inherit;
|
|
264
|
+
font-size: var(--pont2-text-sm);
|
|
265
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
266
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
267
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[data-pont2-button] svg {
|
|
271
|
+
pointer-events: none;
|
|
272
|
+
flex-shrink: 0;
|
|
273
|
+
}
|
|
274
|
+
[data-pont2-button] svg:not([class*="size-"]) {
|
|
275
|
+
width: 1rem;
|
|
276
|
+
height: 1rem;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
[data-pont2-button]:focus-visible {
|
|
280
|
+
border-color: var(--pont2-ring);
|
|
281
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[data-pont2-button][aria-invalid="true"] {
|
|
285
|
+
border-color: var(--pont2-destructive);
|
|
286
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
287
|
+
}
|
|
288
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][aria-invalid="true"] {
|
|
289
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
290
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
[data-pont2-button]:active:not([aria-haspopup]) {
|
|
294
|
+
translate: 0 1px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Base UI Button sets data-disabled; `focusableWhenDisabled` uses aria-disabled. */
|
|
298
|
+
[data-pont2-button]:disabled,
|
|
299
|
+
[data-pont2-button][data-disabled],
|
|
300
|
+
[data-pont2-button][aria-disabled="true"] {
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
opacity: 0.5;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ------------------------------------------------------------------ */
|
|
306
|
+
/* Variants */
|
|
307
|
+
/* ------------------------------------------------------------------ */
|
|
308
|
+
|
|
309
|
+
[data-pont2-button]:not([data-variant]),
|
|
310
|
+
[data-pont2-button][data-variant="default"] {
|
|
311
|
+
background-color: var(--pont2-primary);
|
|
312
|
+
color: var(--pont2-primary-foreground);
|
|
313
|
+
}
|
|
314
|
+
[data-pont2-button]:not([data-variant]):hover,
|
|
315
|
+
[data-pont2-button][data-variant="default"]:hover {
|
|
316
|
+
background-color: color-mix(in oklab, var(--pont2-primary) 80%, transparent);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
[data-pont2-button][data-variant="outline"] {
|
|
320
|
+
border-color: var(--pont2-border);
|
|
321
|
+
background-color: var(--pont2-background);
|
|
322
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
323
|
+
}
|
|
324
|
+
[data-pont2-button][data-variant="outline"]:hover,
|
|
325
|
+
[data-pont2-button][data-variant="outline"][aria-expanded="true"] {
|
|
326
|
+
background-color: var(--pont2-muted);
|
|
327
|
+
color: var(--pont2-foreground);
|
|
328
|
+
}
|
|
329
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="outline"] {
|
|
330
|
+
border-color: var(--pont2-input);
|
|
331
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
332
|
+
}
|
|
333
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="outline"]:hover {
|
|
334
|
+
background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
[data-pont2-button][data-variant="secondary"],
|
|
338
|
+
[data-pont2-button][data-variant="secondary"][aria-expanded="true"] {
|
|
339
|
+
background-color: var(--pont2-secondary);
|
|
340
|
+
color: var(--pont2-secondary-foreground);
|
|
341
|
+
}
|
|
342
|
+
[data-pont2-button][data-variant="secondary"]:hover {
|
|
343
|
+
background-color: color-mix(in oklch, var(--pont2-secondary), var(--pont2-foreground) 5%);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
[data-pont2-button][data-variant="ghost"]:hover,
|
|
347
|
+
[data-pont2-button][data-variant="ghost"][aria-expanded="true"] {
|
|
348
|
+
background-color: var(--pont2-muted);
|
|
349
|
+
color: var(--pont2-foreground);
|
|
350
|
+
}
|
|
351
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="ghost"]:hover {
|
|
352
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
[data-pont2-button][data-variant="destructive"] {
|
|
356
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
|
|
357
|
+
color: var(--pont2-destructive);
|
|
358
|
+
}
|
|
359
|
+
[data-pont2-button][data-variant="destructive"]:hover {
|
|
360
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
361
|
+
}
|
|
362
|
+
[data-pont2-button][data-variant="destructive"]:focus-visible {
|
|
363
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
364
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
365
|
+
}
|
|
366
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"] {
|
|
367
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
368
|
+
}
|
|
369
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"]:hover {
|
|
370
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 30%, transparent);
|
|
371
|
+
}
|
|
372
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"]:focus-visible {
|
|
373
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
[data-pont2-button][data-variant="link"] {
|
|
377
|
+
color: var(--pont2-primary);
|
|
378
|
+
text-underline-offset: 4px;
|
|
379
|
+
}
|
|
380
|
+
[data-pont2-button][data-variant="link"]:hover {
|
|
381
|
+
text-decoration-line: underline;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* ------------------------------------------------------------------ */
|
|
385
|
+
/* Sizes */
|
|
386
|
+
/* ------------------------------------------------------------------ */
|
|
387
|
+
|
|
388
|
+
[data-pont2-button]:not([data-size]),
|
|
389
|
+
[data-pont2-button][data-size="default"] {
|
|
390
|
+
height: 2.25rem;
|
|
391
|
+
gap: 0.375rem;
|
|
392
|
+
padding: 0 0.625rem;
|
|
393
|
+
}
|
|
394
|
+
[data-pont2-button]:not([data-size]):has([data-icon="inline-end"]),
|
|
395
|
+
[data-pont2-button][data-size="default"]:has([data-icon="inline-end"]) {
|
|
396
|
+
padding-right: 0.5rem;
|
|
397
|
+
}
|
|
398
|
+
[data-pont2-button]:not([data-size]):has([data-icon="inline-start"]),
|
|
399
|
+
[data-pont2-button][data-size="default"]:has([data-icon="inline-start"]) {
|
|
400
|
+
padding-left: 0.5rem;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
[data-pont2-button][data-size="xs"] {
|
|
404
|
+
height: 1.5rem;
|
|
405
|
+
gap: 0.25rem;
|
|
406
|
+
padding: 0 0.5rem;
|
|
407
|
+
border-radius: min(var(--pont2-radius-md), 8px);
|
|
408
|
+
font-size: var(--pont2-text-xs);
|
|
409
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
410
|
+
}
|
|
411
|
+
[data-pont2-button][data-size="xs"]:has([data-icon="inline-end"]) {
|
|
412
|
+
padding-right: 0.375rem;
|
|
413
|
+
}
|
|
414
|
+
[data-pont2-button][data-size="xs"]:has([data-icon="inline-start"]) {
|
|
415
|
+
padding-left: 0.375rem;
|
|
416
|
+
}
|
|
417
|
+
[data-pont2-button][data-size="xs"] svg:not([class*="size-"]),
|
|
418
|
+
[data-pont2-button][data-size="icon-xs"] svg:not([class*="size-"]) {
|
|
419
|
+
width: 0.75rem;
|
|
420
|
+
height: 0.75rem;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
[data-pont2-button][data-size="sm"] {
|
|
424
|
+
height: 2rem;
|
|
425
|
+
gap: 0.25rem;
|
|
426
|
+
padding: 0 0.625rem;
|
|
427
|
+
border-radius: min(var(--pont2-radius-md), 10px);
|
|
428
|
+
}
|
|
429
|
+
[data-pont2-button][data-size="sm"]:has([data-icon="inline-end"]) {
|
|
430
|
+
padding-right: 0.375rem;
|
|
431
|
+
}
|
|
432
|
+
[data-pont2-button][data-size="sm"]:has([data-icon="inline-start"]) {
|
|
433
|
+
padding-left: 0.375rem;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
[data-pont2-button][data-size="lg"] {
|
|
437
|
+
height: 2.5rem;
|
|
438
|
+
gap: 0.375rem;
|
|
439
|
+
padding: 0 0.625rem;
|
|
440
|
+
}
|
|
441
|
+
[data-pont2-button][data-size="lg"]:has([data-icon="inline-end"]) {
|
|
442
|
+
padding-right: 0.5rem;
|
|
443
|
+
}
|
|
444
|
+
[data-pont2-button][data-size="lg"]:has([data-icon="inline-start"]) {
|
|
445
|
+
padding-left: 0.5rem;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
[data-pont2-button][data-size^="icon"] {
|
|
449
|
+
padding: 0;
|
|
450
|
+
}
|
|
451
|
+
[data-pont2-button][data-size="icon-xs"] {
|
|
452
|
+
width: 1.5rem;
|
|
453
|
+
height: 1.5rem;
|
|
454
|
+
border-radius: min(var(--pont2-radius-md), 8px);
|
|
455
|
+
}
|
|
456
|
+
[data-pont2-button][data-size="icon-sm"] {
|
|
457
|
+
width: 2rem;
|
|
458
|
+
height: 2rem;
|
|
459
|
+
border-radius: min(var(--pont2-radius-md), 10px);
|
|
460
|
+
}
|
|
461
|
+
[data-pont2-button][data-size="icon"] {
|
|
462
|
+
width: 2.25rem;
|
|
463
|
+
height: 2.25rem;
|
|
464
|
+
}
|
|
465
|
+
[data-pont2-button][data-size="icon-lg"] {
|
|
466
|
+
width: 2.5rem;
|
|
467
|
+
height: 2.5rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* in-data-[slot=button-group]:rounded-md (ButtonGroup owns the joins) */
|
|
471
|
+
[data-slot="button-group"] [data-pont2-button]:is([data-size="xs"], [data-size="sm"], [data-size="icon-xs"], [data-size="icon-sm"]),
|
|
472
|
+
[data-slot="button-group"] [data-pont2-button]:is(:not([data-size]), [data-size="default"]) {
|
|
473
|
+
border-radius: var(--pont2-radius-md);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* ../primitives/separator/separator.css */
|
|
478
|
+
/*
|
|
479
|
+
* Separator. shadcn (Base UI): "shrink-0 bg-border data-horizontal:h-px
|
|
480
|
+
* data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch".
|
|
481
|
+
*
|
|
482
|
+
* `pont2-prim-separator` selects the not-yet-upgraded tag; `[data-pont2-separator]`
|
|
483
|
+
* selects the upgraded element, its subclasses and hand-written recipe
|
|
484
|
+
* markup (`<div role="separator" data-pont2-separator>`).
|
|
485
|
+
*/
|
|
486
|
+
@layer pont2.primitives {
|
|
487
|
+
:is(pont2-prim-separator, pont2-separator, [data-pont2-separator]) {
|
|
488
|
+
display: block;
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
box-sizing: border-box;
|
|
491
|
+
margin: 0;
|
|
492
|
+
border: 0;
|
|
493
|
+
background-color: var(--pont2-border);
|
|
494
|
+
height: 1px;
|
|
495
|
+
width: 100%;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
:is(pont2-prim-separator, pont2-separator, [data-pont2-separator]):is([data-orientation="vertical"], [orientation="vertical"]) {
|
|
499
|
+
width: 1px;
|
|
500
|
+
height: auto;
|
|
501
|
+
align-self: stretch;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* ../primitives/label/label.css */
|
|
506
|
+
/*
|
|
507
|
+
* Label. shadcn (Base UI, Vega):
|
|
508
|
+
* "flex items-center select-none group-data-[disabled=true]:pointer-events-none
|
|
509
|
+
* peer-disabled:cursor-not-allowed" + .cn-label
|
|
510
|
+
* "gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50
|
|
511
|
+
* peer-disabled:opacity-50"
|
|
512
|
+
*/
|
|
513
|
+
@layer pont2.primitives {
|
|
514
|
+
[data-pont2-label] {
|
|
515
|
+
box-sizing: border-box;
|
|
516
|
+
margin: 0;
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
gap: 0.5rem;
|
|
520
|
+
user-select: none;
|
|
521
|
+
font-size: var(--pont2-text-sm);
|
|
522
|
+
line-height: 1;
|
|
523
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* group-data-[disabled=true]: inside a disabled group (e.g. <pont2-prim-field data-disabled>) */
|
|
527
|
+
:is([data-disabled="true"], [data-disabled=""]) [data-pont2-label] {
|
|
528
|
+
pointer-events: none;
|
|
529
|
+
opacity: 0.5;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* peer-disabled: the label follows a disabled control (native or form-associated).
|
|
533
|
+
The second selector sees through a Tier 3 shell (<pont2-prim-label, pont2-label><label>): the shell
|
|
534
|
+
has no box, but it is still the DOM sibling. */
|
|
535
|
+
:is(:disabled, [data-disabled]) ~ [data-pont2-label],
|
|
536
|
+
:is(:disabled, [data-disabled]) ~ [data-pont2-shell] > [data-pont2-label] {
|
|
537
|
+
cursor: not-allowed;
|
|
538
|
+
opacity: 0.5;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* ../primitives/input/input.css */
|
|
543
|
+
/*
|
|
544
|
+
* Input. shadcn (Base UI, Vega):
|
|
545
|
+
* "w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent
|
|
546
|
+
* file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none
|
|
547
|
+
* disabled:cursor-not-allowed disabled:opacity-50" + .cn-input
|
|
548
|
+
*/
|
|
549
|
+
@layer pont2.primitives {
|
|
550
|
+
[data-pont2-input] {
|
|
551
|
+
box-sizing: border-box;
|
|
552
|
+
margin: 0;
|
|
553
|
+
font-family: inherit;
|
|
554
|
+
color: inherit;
|
|
555
|
+
-webkit-appearance: none;
|
|
556
|
+
appearance: none;
|
|
557
|
+
|
|
558
|
+
width: 100%;
|
|
559
|
+
min-width: 0;
|
|
560
|
+
height: 2.25rem;
|
|
561
|
+
padding: 0.25rem 0.625rem;
|
|
562
|
+
border: 1px solid var(--pont2-input);
|
|
563
|
+
border-radius: var(--pont2-radius-md);
|
|
564
|
+
background-color: transparent;
|
|
565
|
+
font-size: var(--pont2-text-base);
|
|
566
|
+
line-height: var(--pont2-text-base--line-height);
|
|
567
|
+
outline: none;
|
|
568
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
569
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
570
|
+
transition-property: color, box-shadow;
|
|
571
|
+
transition-duration: var(--pont2-duration);
|
|
572
|
+
transition-timing-function: var(--pont2-ease);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@media (width >= 48rem) {
|
|
576
|
+
[data-pont2-input] {
|
|
577
|
+
font-size: var(--pont2-text-sm);
|
|
578
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-input] {
|
|
583
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-pont2-input]::placeholder {
|
|
587
|
+
color: var(--pont2-muted-foreground);
|
|
588
|
+
opacity: 1;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
[data-pont2-input]::file-selector-button {
|
|
592
|
+
display: inline-flex;
|
|
593
|
+
height: 1.75rem;
|
|
594
|
+
border: 0;
|
|
595
|
+
background-color: transparent;
|
|
596
|
+
color: var(--pont2-foreground);
|
|
597
|
+
font: inherit;
|
|
598
|
+
font-size: var(--pont2-text-sm);
|
|
599
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
600
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
[data-pont2-input]:focus-visible {
|
|
604
|
+
border-color: var(--pont2-ring);
|
|
605
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
[data-pont2-input][aria-invalid="true"] {
|
|
609
|
+
border-color: var(--pont2-destructive);
|
|
610
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
611
|
+
}
|
|
612
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-input][aria-invalid="true"] {
|
|
613
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
614
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
[data-pont2-input]:disabled {
|
|
618
|
+
pointer-events: none;
|
|
619
|
+
cursor: not-allowed;
|
|
620
|
+
opacity: 0.5;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* ../primitives/textarea/textarea.css */
|
|
625
|
+
/*
|
|
626
|
+
* Textarea. shadcn (Base UI, Vega):
|
|
627
|
+
* "flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground
|
|
628
|
+
* disabled:cursor-not-allowed disabled:opacity-50" + .cn-textarea
|
|
629
|
+
*/
|
|
630
|
+
@layer pont2.primitives {
|
|
631
|
+
[data-pont2-textarea] {
|
|
632
|
+
box-sizing: border-box;
|
|
633
|
+
margin: 0;
|
|
634
|
+
font-family: inherit;
|
|
635
|
+
color: inherit;
|
|
636
|
+
resize: vertical;
|
|
637
|
+
|
|
638
|
+
display: flex;
|
|
639
|
+
field-sizing: content;
|
|
640
|
+
min-height: 4rem;
|
|
641
|
+
width: 100%;
|
|
642
|
+
padding: 0.5rem 0.625rem;
|
|
643
|
+
border: 1px solid var(--pont2-input);
|
|
644
|
+
border-radius: var(--pont2-radius-md);
|
|
645
|
+
background-color: transparent;
|
|
646
|
+
font-size: var(--pont2-text-base);
|
|
647
|
+
line-height: var(--pont2-text-base--line-height);
|
|
648
|
+
outline: none;
|
|
649
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
650
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
651
|
+
transition-property: color, box-shadow;
|
|
652
|
+
transition-duration: var(--pont2-duration);
|
|
653
|
+
transition-timing-function: var(--pont2-ease);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
@media (width >= 48rem) {
|
|
657
|
+
[data-pont2-textarea] {
|
|
658
|
+
font-size: var(--pont2-text-sm);
|
|
659
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-textarea] {
|
|
664
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
[data-pont2-textarea]::placeholder {
|
|
668
|
+
color: var(--pont2-muted-foreground);
|
|
669
|
+
opacity: 1;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
[data-pont2-textarea]:focus-visible {
|
|
673
|
+
border-color: var(--pont2-ring);
|
|
674
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
[data-pont2-textarea][aria-invalid="true"] {
|
|
678
|
+
border-color: var(--pont2-destructive);
|
|
679
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
680
|
+
}
|
|
681
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-textarea][aria-invalid="true"] {
|
|
682
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
683
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
[data-pont2-textarea]:disabled {
|
|
687
|
+
cursor: not-allowed;
|
|
688
|
+
opacity: 0.5;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/* ../primitives/checkbox/checkbox.css */
|
|
693
|
+
/*
|
|
694
|
+
* Checkbox. shadcn (Base UI, Vega):
|
|
695
|
+
* root: "peer relative shrink-0 outline-none after:absolute after:-inset-x-3
|
|
696
|
+
* after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50" + .cn-checkbox
|
|
697
|
+
* indicator: "grid place-content-center text-current transition-none" + .cn-checkbox-indicator
|
|
698
|
+
*
|
|
699
|
+
* The host is form-associated, so `:disabled` and `:invalid` match it like a
|
|
700
|
+
* native control. `aria-checked` lives in ElementInternals (not an attribute),
|
|
701
|
+
* so checked styles select Base UI's `[data-checked]`.
|
|
702
|
+
*/
|
|
703
|
+
@layer pont2.primitives {
|
|
704
|
+
:is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox]) {
|
|
705
|
+
box-sizing: border-box;
|
|
706
|
+
position: relative;
|
|
707
|
+
flex-shrink: 0;
|
|
708
|
+
display: flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
justify-content: center;
|
|
711
|
+
width: 1rem;
|
|
712
|
+
height: 1rem;
|
|
713
|
+
border: 1px solid var(--pont2-input);
|
|
714
|
+
border-radius: 4px;
|
|
715
|
+
outline: none;
|
|
716
|
+
color: inherit;
|
|
717
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
718
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
719
|
+
transition-property: box-shadow;
|
|
720
|
+
transition-duration: var(--pont2-duration);
|
|
721
|
+
transition-timing-function: var(--pont2-ease);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/* Enlarged hit area: after:absolute after:-inset-x-3 after:-inset-y-2 */
|
|
725
|
+
:is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox])::after {
|
|
726
|
+
content: "";
|
|
727
|
+
position: absolute;
|
|
728
|
+
inset: -0.5rem -0.75rem;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox]) {
|
|
732
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
[data-pont2-checkbox]:is([data-checked], [data-indeterminate]) {
|
|
736
|
+
background-color: var(--pont2-primary);
|
|
737
|
+
color: var(--pont2-primary-foreground);
|
|
738
|
+
border-color: var(--pont2-primary);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
[data-pont2-checkbox]:focus-visible {
|
|
742
|
+
border-color: var(--pont2-ring);
|
|
743
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
[data-pont2-checkbox][aria-invalid="true"] {
|
|
747
|
+
border-color: var(--pont2-destructive);
|
|
748
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
749
|
+
}
|
|
750
|
+
[data-pont2-checkbox][aria-invalid="true"]:is([data-checked], [data-indeterminate]) {
|
|
751
|
+
border-color: var(--pont2-primary);
|
|
752
|
+
}
|
|
753
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-checkbox][aria-invalid="true"] {
|
|
754
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
755
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
[data-pont2-checkbox]:is(:disabled, [data-disabled]) {
|
|
759
|
+
cursor: not-allowed;
|
|
760
|
+
opacity: 0.5;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/* group-has-disabled/field:opacity-50 */
|
|
764
|
+
[data-slot="field"]:has(:disabled) [data-pont2-checkbox] {
|
|
765
|
+
opacity: 0.5;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/* Inside a choice-card FieldLabel the label draws the focus ring instead. */
|
|
769
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox] {
|
|
770
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
771
|
+
}
|
|
772
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox]:not([data-checked]) {
|
|
773
|
+
border-color: var(--pont2-input);
|
|
774
|
+
}
|
|
775
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox][data-checked] {
|
|
776
|
+
border-color: var(--pont2-primary);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
[data-pont2-checkbox-indicator] {
|
|
780
|
+
display: grid;
|
|
781
|
+
place-content: center;
|
|
782
|
+
color: currentColor;
|
|
783
|
+
transition: none;
|
|
784
|
+
}
|
|
785
|
+
[data-pont2-checkbox-indicator] > svg {
|
|
786
|
+
width: 0.875rem;
|
|
787
|
+
height: 0.875rem;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/* ../primitives/badge/badge.css */
|
|
792
|
+
/*
|
|
793
|
+
* Badge. shadcn (Base UI, Vega):
|
|
794
|
+
* "inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap
|
|
795
|
+
* focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50
|
|
796
|
+
* aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&>svg]:pointer-events-none"
|
|
797
|
+
* + .cn-badge + .cn-badge-variant-*
|
|
798
|
+
*/
|
|
799
|
+
@layer pont2.primitives {
|
|
800
|
+
:is(pont2-prim-badge, pont2-badge, [data-pont2-badge]) {
|
|
801
|
+
box-sizing: border-box;
|
|
802
|
+
margin: 0;
|
|
803
|
+
font-family: inherit;
|
|
804
|
+
text-decoration: none;
|
|
805
|
+
|
|
806
|
+
display: inline-flex;
|
|
807
|
+
width: fit-content;
|
|
808
|
+
flex-shrink: 0;
|
|
809
|
+
align-items: center;
|
|
810
|
+
justify-content: center;
|
|
811
|
+
overflow: hidden;
|
|
812
|
+
white-space: nowrap;
|
|
813
|
+
height: 1.25rem;
|
|
814
|
+
gap: 0.25rem;
|
|
815
|
+
padding: 0.125rem 0.5rem;
|
|
816
|
+
border: 1px solid transparent;
|
|
817
|
+
border-radius: var(--pont2-radius-4xl);
|
|
818
|
+
font-size: var(--pont2-text-xs);
|
|
819
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
820
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
821
|
+
outline: none;
|
|
822
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
823
|
+
transition-property: all;
|
|
824
|
+
transition-duration: var(--pont2-duration);
|
|
825
|
+
transition-timing-function: var(--pont2-ease);
|
|
826
|
+
|
|
827
|
+
/* default variant (attribute may be missing before upgrade / in recipes) */
|
|
828
|
+
background-color: var(--pont2-primary);
|
|
829
|
+
color: var(--pont2-primary-foreground);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
:is(pont2-prim-badge, pont2-badge, [data-pont2-badge]) > svg {
|
|
833
|
+
pointer-events: none;
|
|
834
|
+
width: 0.75rem !important;
|
|
835
|
+
height: 0.75rem !important;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
:is(pont2-prim-badge, pont2-badge, [data-pont2-badge]):has([data-icon="inline-end"]) {
|
|
839
|
+
padding-right: 0.375rem;
|
|
840
|
+
}
|
|
841
|
+
:is(pont2-prim-badge, pont2-badge, [data-pont2-badge]):has([data-icon="inline-start"]) {
|
|
842
|
+
padding-left: 0.375rem;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
[data-pont2-badge]:focus-visible {
|
|
846
|
+
border-color: var(--pont2-ring);
|
|
847
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
848
|
+
}
|
|
849
|
+
[data-pont2-badge][aria-invalid="true"] {
|
|
850
|
+
border-color: var(--pont2-destructive);
|
|
851
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
a[data-pont2-badge]:is(:not([data-variant]), [data-variant="default"]):hover {
|
|
855
|
+
background-color: color-mix(in oklab, var(--pont2-primary) 80%, transparent);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
[data-pont2-badge][data-variant="secondary"] {
|
|
859
|
+
background-color: var(--pont2-secondary);
|
|
860
|
+
color: var(--pont2-secondary-foreground);
|
|
861
|
+
}
|
|
862
|
+
a[data-pont2-badge][data-variant="secondary"]:hover {
|
|
863
|
+
background-color: color-mix(in oklab, var(--pont2-secondary) 80%, transparent);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
[data-pont2-badge][data-variant="outline"] {
|
|
867
|
+
background-color: transparent;
|
|
868
|
+
border-color: var(--pont2-border);
|
|
869
|
+
color: var(--pont2-foreground);
|
|
870
|
+
}
|
|
871
|
+
a[data-pont2-badge][data-variant="outline"]:hover {
|
|
872
|
+
background-color: var(--pont2-muted);
|
|
873
|
+
color: var(--pont2-muted-foreground);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
[data-pont2-badge][data-variant="destructive"] {
|
|
877
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
|
|
878
|
+
color: var(--pont2-destructive);
|
|
879
|
+
}
|
|
880
|
+
a[data-pont2-badge][data-variant="destructive"]:hover {
|
|
881
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
882
|
+
}
|
|
883
|
+
[data-pont2-badge][data-variant="destructive"]:focus-visible {
|
|
884
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
885
|
+
}
|
|
886
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="destructive"] {
|
|
887
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
888
|
+
}
|
|
889
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="destructive"]:focus-visible {
|
|
890
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
[data-pont2-badge]:is([data-variant="ghost"], [data-variant="link"]) {
|
|
894
|
+
background-color: transparent;
|
|
895
|
+
color: inherit;
|
|
896
|
+
}
|
|
897
|
+
[data-pont2-badge][data-variant="ghost"]:hover {
|
|
898
|
+
background-color: var(--pont2-muted);
|
|
899
|
+
color: var(--pont2-muted-foreground);
|
|
900
|
+
}
|
|
901
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="ghost"]:hover {
|
|
902
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
[data-pont2-badge][data-variant="link"] {
|
|
906
|
+
color: var(--pont2-primary);
|
|
907
|
+
text-underline-offset: 4px;
|
|
908
|
+
}
|
|
909
|
+
[data-pont2-badge][data-variant="link"]:hover {
|
|
910
|
+
text-decoration-line: underline;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/* ../primitives/kbd/kbd.css */
|
|
915
|
+
/*
|
|
916
|
+
* Kbd. shadcn (Base UI, Vega):
|
|
917
|
+
* kbd: "pointer-events-none inline-flex items-center justify-center select-none" + .cn-kbd
|
|
918
|
+
* group: "inline-flex items-center" + .cn-kbd-group (gap-1)
|
|
919
|
+
*/
|
|
920
|
+
@layer pont2.primitives {
|
|
921
|
+
:is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
|
|
922
|
+
box-sizing: border-box;
|
|
923
|
+
margin: 0;
|
|
924
|
+
pointer-events: none;
|
|
925
|
+
display: inline-flex;
|
|
926
|
+
align-items: center;
|
|
927
|
+
justify-content: center;
|
|
928
|
+
user-select: none;
|
|
929
|
+
height: 1.25rem;
|
|
930
|
+
width: fit-content;
|
|
931
|
+
min-width: 1.25rem;
|
|
932
|
+
gap: 0.25rem;
|
|
933
|
+
padding: 0 0.25rem;
|
|
934
|
+
border-radius: var(--pont2-radius-sm);
|
|
935
|
+
background-color: var(--pont2-muted);
|
|
936
|
+
color: var(--pont2-muted-foreground);
|
|
937
|
+
font-family: var(--pont2-font-sans);
|
|
938
|
+
font-size: var(--pont2-text-xs);
|
|
939
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
940
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
:is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) svg:not([class*="size-"]) {
|
|
944
|
+
width: 0.75rem;
|
|
945
|
+
height: 0.75rem;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/* in-data-[slot=tooltip-content] */
|
|
949
|
+
[data-slot="tooltip-content"] :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
|
|
950
|
+
background-color: color-mix(in oklab, var(--pont2-background) 20%, transparent);
|
|
951
|
+
color: var(--pont2-background);
|
|
952
|
+
}
|
|
953
|
+
:where(.dark, [data-theme="dark"]) [data-slot="tooltip-content"] :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
|
|
954
|
+
background-color: color-mix(in oklab, var(--pont2-background) 10%, transparent);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
:is(pont2-prim-kbd-group, pont2-kbd-group, [data-pont2-kbd-group]) {
|
|
958
|
+
display: inline-flex;
|
|
959
|
+
align-items: center;
|
|
960
|
+
gap: 0.25rem;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* ../primitives/skeleton/skeleton.css */
|
|
965
|
+
/* Skeleton. shadcn (Base UI, Vega): "animate-pulse" + .cn-skeleton "bg-muted rounded-md" */
|
|
966
|
+
@layer pont2.primitives {
|
|
967
|
+
:is(pont2-prim-skeleton, pont2-skeleton, [data-pont2-skeleton]) {
|
|
968
|
+
display: block;
|
|
969
|
+
box-sizing: border-box;
|
|
970
|
+
background-color: var(--pont2-muted);
|
|
971
|
+
border-radius: var(--pont2-radius-md);
|
|
972
|
+
animation: pont2-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
@media (prefers-reduced-motion: reduce) {
|
|
976
|
+
:is(pont2-prim-skeleton, pont2-skeleton, [data-pont2-skeleton]) {
|
|
977
|
+
animation: none;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/* ../primitives/spinner/spinner.css */
|
|
983
|
+
/*
|
|
984
|
+
* Spinner. shadcn (Base UI): lucide Loader2Icon + "size-4 animate-spin".
|
|
985
|
+
* Drawn as a mask so the host stays the only node (see spinner.ts).
|
|
986
|
+
*/
|
|
987
|
+
@layer pont2.primitives {
|
|
988
|
+
:is(pont2-prim-spinner, pont2-spinner, [data-pont2-spinner]) {
|
|
989
|
+
/* Read through var() with a fallback (not declared here), so the icon can be set on any ancestor. */
|
|
990
|
+
--_pont2-spinner-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
|
|
991
|
+
display: inline-block;
|
|
992
|
+
flex-shrink: 0;
|
|
993
|
+
box-sizing: border-box;
|
|
994
|
+
width: 1rem;
|
|
995
|
+
height: 1rem;
|
|
996
|
+
background-color: currentColor;
|
|
997
|
+
-webkit-mask: var(--pont2-spinner-icon, var(--_pont2-spinner-default)) center / contain no-repeat;
|
|
998
|
+
mask: var(--pont2-spinner-icon, var(--_pont2-spinner-default)) center / contain no-repeat;
|
|
999
|
+
animation: pont2-spin 1s linear infinite;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/* --- structural (A) --- */
|
|
1004
|
+
/* ../primitives/alert/alert.css */
|
|
1005
|
+
/*
|
|
1006
|
+
* Alert. shadcn (Base UI, Vega):
|
|
1007
|
+
* alert: "group/alert relative w-full" + .cn-alert
|
|
1008
|
+
* "grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm
|
|
1009
|
+
* has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18
|
|
1010
|
+
* has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2
|
|
1011
|
+
* *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4"
|
|
1012
|
+
* default: "bg-card text-card-foreground"
|
|
1013
|
+
* destructive: "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90"
|
|
1014
|
+
* title: "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground"
|
|
1015
|
+
* description: "text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4" (+ link rules)
|
|
1016
|
+
* action: "absolute top-2.5 right-3"
|
|
1017
|
+
*/
|
|
1018
|
+
@layer pont2.primitives {
|
|
1019
|
+
:is(pont2-prim-alert, [data-pont2-alert]) {
|
|
1020
|
+
box-sizing: border-box;
|
|
1021
|
+
position: relative;
|
|
1022
|
+
display: grid;
|
|
1023
|
+
width: 100%;
|
|
1024
|
+
gap: 0.125rem;
|
|
1025
|
+
margin: 0;
|
|
1026
|
+
padding: 0.75rem 1rem;
|
|
1027
|
+
border: 1px solid var(--pont2-border);
|
|
1028
|
+
border-radius: var(--pont2-radius-lg);
|
|
1029
|
+
text-align: left;
|
|
1030
|
+
font-size: var(--pont2-text-sm);
|
|
1031
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1032
|
+
background-color: var(--pont2-card);
|
|
1033
|
+
color: var(--pont2-card-foreground);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
:is(pont2-prim-alert, [data-pont2-alert]):has([data-slot="alert-action"]) {
|
|
1037
|
+
padding-right: 4.5rem;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
:is(pont2-prim-alert, [data-pont2-alert]):has(> svg) {
|
|
1041
|
+
grid-template-columns: auto 1fr;
|
|
1042
|
+
column-gap: 0.625rem;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
:is(pont2-prim-alert, [data-pont2-alert]) > svg {
|
|
1046
|
+
grid-row: span 2 / span 2;
|
|
1047
|
+
translate: 0 0.125rem;
|
|
1048
|
+
color: currentColor;
|
|
1049
|
+
}
|
|
1050
|
+
:is(pont2-prim-alert, [data-pont2-alert]) > svg:not([class*="size-"]) {
|
|
1051
|
+
width: 1rem;
|
|
1052
|
+
height: 1rem;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
[data-pont2-alert][data-variant="destructive"] {
|
|
1056
|
+
background-color: var(--pont2-card);
|
|
1057
|
+
color: var(--pont2-destructive);
|
|
1058
|
+
}
|
|
1059
|
+
[data-pont2-alert][data-variant="destructive"] > [data-slot="alert-description"] {
|
|
1060
|
+
color: color-mix(in oklab, var(--pont2-destructive) 90%, transparent);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
:is(pont2-prim-alert-title, [data-pont2-alert-title]) {
|
|
1064
|
+
display: block;
|
|
1065
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1066
|
+
}
|
|
1067
|
+
:is(pont2-prim-alert, [data-pont2-alert]):has(> svg) :is(pont2-prim-alert-title, [data-pont2-alert-title]) {
|
|
1068
|
+
grid-column-start: 2;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
:is(pont2-prim-alert-description, [data-pont2-alert-description]) {
|
|
1072
|
+
display: block;
|
|
1073
|
+
color: var(--pont2-muted-foreground);
|
|
1074
|
+
font-size: var(--pont2-text-sm);
|
|
1075
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1076
|
+
text-wrap: balance;
|
|
1077
|
+
}
|
|
1078
|
+
@media (width >= 48rem) {
|
|
1079
|
+
:is(pont2-prim-alert-description, [data-pont2-alert-description]) {
|
|
1080
|
+
text-wrap: pretty;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
:is(pont2-prim-alert-description, [data-pont2-alert-description]) p {
|
|
1084
|
+
margin: 0;
|
|
1085
|
+
}
|
|
1086
|
+
:is(pont2-prim-alert-description, [data-pont2-alert-description]) p:not(:last-child) {
|
|
1087
|
+
margin-bottom: 1rem;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
:is(pont2-prim-alert-title, [data-pont2-alert-title], pont2-prim-alert-description, [data-pont2-alert-description]) a {
|
|
1091
|
+
color: inherit;
|
|
1092
|
+
text-decoration-line: underline;
|
|
1093
|
+
text-underline-offset: 3px;
|
|
1094
|
+
}
|
|
1095
|
+
:is(pont2-prim-alert-title, [data-pont2-alert-title], pont2-prim-alert-description, [data-pont2-alert-description]) a:hover {
|
|
1096
|
+
color: var(--pont2-foreground);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
:is(pont2-prim-alert-action, [data-pont2-alert-action]) {
|
|
1100
|
+
display: block;
|
|
1101
|
+
position: absolute;
|
|
1102
|
+
top: 0.625rem;
|
|
1103
|
+
right: 0.75rem;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/* ../primitives/avatar/avatar.css */
|
|
1108
|
+
/*
|
|
1109
|
+
* Avatar. shadcn (Base UI, Vega):
|
|
1110
|
+
* root: "group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border
|
|
1111
|
+
* after:border-border after:mix-blend-darken dark:after:mix-blend-lighten"
|
|
1112
|
+
* + "size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6"
|
|
1113
|
+
* image: "aspect-square size-full object-cover" + "rounded-full"
|
|
1114
|
+
* fallback: "flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs"
|
|
1115
|
+
* + "bg-muted text-muted-foreground rounded-full"
|
|
1116
|
+
* badge: "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full
|
|
1117
|
+
* bg-blend-color ring-2 select-none" + per-size sizes + "bg-primary text-primary-foreground ring-background"
|
|
1118
|
+
* group: "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background"
|
|
1119
|
+
* count: "relative flex shrink-0 items-center justify-center ring-2 ring-background"
|
|
1120
|
+
* + "bg-muted text-muted-foreground size-8 rounded-full text-sm" + group size variants
|
|
1121
|
+
*
|
|
1122
|
+
* Base UI mounts the <img> only once loaded and the fallback only until then.
|
|
1123
|
+
* pont2 keeps both in the DOM and swaps them on `data-image-loading-status`.
|
|
1124
|
+
*/
|
|
1125
|
+
@layer pont2.primitives {
|
|
1126
|
+
:is(pont2-prim-avatar, [data-pont2-avatar]) {
|
|
1127
|
+
box-sizing: border-box;
|
|
1128
|
+
position: relative;
|
|
1129
|
+
display: flex;
|
|
1130
|
+
flex-shrink: 0;
|
|
1131
|
+
width: 2rem;
|
|
1132
|
+
height: 2rem;
|
|
1133
|
+
border-radius: 9999px;
|
|
1134
|
+
user-select: none;
|
|
1135
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
1136
|
+
}
|
|
1137
|
+
:is(pont2-prim-avatar, [data-pont2-avatar])::after {
|
|
1138
|
+
content: "";
|
|
1139
|
+
position: absolute;
|
|
1140
|
+
inset: 0;
|
|
1141
|
+
box-sizing: border-box;
|
|
1142
|
+
border: 1px solid var(--pont2-border);
|
|
1143
|
+
border-radius: 9999px;
|
|
1144
|
+
mix-blend-mode: darken;
|
|
1145
|
+
pointer-events: none;
|
|
1146
|
+
}
|
|
1147
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-avatar, [data-pont2-avatar])::after {
|
|
1148
|
+
mix-blend-mode: lighten;
|
|
1149
|
+
}
|
|
1150
|
+
:is(pont2-prim-avatar, [data-pont2-avatar]):is([data-size="lg"], [size="lg"]) {
|
|
1151
|
+
width: 2.5rem;
|
|
1152
|
+
height: 2.5rem;
|
|
1153
|
+
}
|
|
1154
|
+
:is(pont2-prim-avatar, [data-pont2-avatar]):is([data-size="sm"], [size="sm"]) {
|
|
1155
|
+
width: 1.5rem;
|
|
1156
|
+
height: 1.5rem;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/* Image: the author's native <img>, shown only once loaded. */
|
|
1160
|
+
:is(pont2-prim-avatar, [data-pont2-avatar]) > img {
|
|
1161
|
+
display: none;
|
|
1162
|
+
box-sizing: border-box;
|
|
1163
|
+
aspect-ratio: 1 / 1;
|
|
1164
|
+
width: 100%;
|
|
1165
|
+
height: 100%;
|
|
1166
|
+
max-width: none;
|
|
1167
|
+
object-fit: cover;
|
|
1168
|
+
border-radius: 9999px;
|
|
1169
|
+
}
|
|
1170
|
+
[data-pont2-avatar][data-image-loading-status="loaded"] > img {
|
|
1171
|
+
display: block;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
:is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
|
|
1175
|
+
display: flex;
|
|
1176
|
+
align-items: center;
|
|
1177
|
+
justify-content: center;
|
|
1178
|
+
width: 100%;
|
|
1179
|
+
height: 100%;
|
|
1180
|
+
border-radius: 9999px;
|
|
1181
|
+
background-color: var(--pont2-muted);
|
|
1182
|
+
color: var(--pont2-muted-foreground);
|
|
1183
|
+
font-size: var(--pont2-text-sm);
|
|
1184
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1185
|
+
}
|
|
1186
|
+
[data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
|
|
1187
|
+
font-size: var(--pont2-text-xs);
|
|
1188
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
1189
|
+
}
|
|
1190
|
+
[data-pont2-avatar][data-image-loading-status="loaded"] :is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
|
|
1191
|
+
display: none;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
:is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
|
|
1195
|
+
box-sizing: border-box;
|
|
1196
|
+
position: absolute;
|
|
1197
|
+
right: 0;
|
|
1198
|
+
bottom: 0;
|
|
1199
|
+
z-index: 10;
|
|
1200
|
+
display: inline-flex;
|
|
1201
|
+
align-items: center;
|
|
1202
|
+
justify-content: center;
|
|
1203
|
+
width: 0.625rem;
|
|
1204
|
+
height: 0.625rem;
|
|
1205
|
+
border-radius: 9999px;
|
|
1206
|
+
background-blend-mode: color;
|
|
1207
|
+
background-color: var(--pont2-primary);
|
|
1208
|
+
color: var(--pont2-primary-foreground);
|
|
1209
|
+
user-select: none;
|
|
1210
|
+
box-shadow: 0 0 0 2px var(--pont2-background);
|
|
1211
|
+
}
|
|
1212
|
+
:is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) > svg {
|
|
1213
|
+
width: 0.5rem;
|
|
1214
|
+
height: 0.5rem;
|
|
1215
|
+
}
|
|
1216
|
+
[data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
|
|
1217
|
+
width: 0.5rem;
|
|
1218
|
+
height: 0.5rem;
|
|
1219
|
+
}
|
|
1220
|
+
[data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) > svg {
|
|
1221
|
+
display: none;
|
|
1222
|
+
}
|
|
1223
|
+
[data-pont2-avatar][data-size="lg"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
|
|
1224
|
+
width: 0.75rem;
|
|
1225
|
+
height: 0.75rem;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
:is(pont2-prim-avatar-group, [data-pont2-avatar-group]) {
|
|
1229
|
+
display: flex;
|
|
1230
|
+
}
|
|
1231
|
+
/* -space-x-2 (Tailwind v4: negative inline-end margin on all but the last child) */
|
|
1232
|
+
:is(pont2-prim-avatar-group, [data-pont2-avatar-group]) > :not(:last-child) {
|
|
1233
|
+
margin-inline-end: -0.5rem;
|
|
1234
|
+
}
|
|
1235
|
+
:is(pont2-prim-avatar-group, [data-pont2-avatar-group]) > [data-slot="avatar"] {
|
|
1236
|
+
--pont2-ring-shadow: 0 0 0 2px var(--pont2-background);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
:is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
|
|
1240
|
+
box-sizing: border-box;
|
|
1241
|
+
position: relative;
|
|
1242
|
+
display: flex;
|
|
1243
|
+
flex-shrink: 0;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: center;
|
|
1246
|
+
width: 2rem;
|
|
1247
|
+
height: 2rem;
|
|
1248
|
+
border-radius: 9999px;
|
|
1249
|
+
background-color: var(--pont2-muted);
|
|
1250
|
+
color: var(--pont2-muted-foreground);
|
|
1251
|
+
font-size: var(--pont2-text-sm);
|
|
1252
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1253
|
+
box-shadow: 0 0 0 2px var(--pont2-background);
|
|
1254
|
+
}
|
|
1255
|
+
:is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
|
|
1256
|
+
width: 1rem;
|
|
1257
|
+
height: 1rem;
|
|
1258
|
+
}
|
|
1259
|
+
[data-pont2-avatar-group]:has([data-size="lg"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
|
|
1260
|
+
width: 2.5rem;
|
|
1261
|
+
height: 2.5rem;
|
|
1262
|
+
}
|
|
1263
|
+
[data-pont2-avatar-group]:has([data-size="lg"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
|
|
1264
|
+
width: 1.25rem;
|
|
1265
|
+
height: 1.25rem;
|
|
1266
|
+
}
|
|
1267
|
+
[data-pont2-avatar-group]:has([data-size="sm"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
|
|
1268
|
+
width: 1.5rem;
|
|
1269
|
+
height: 1.5rem;
|
|
1270
|
+
}
|
|
1271
|
+
[data-pont2-avatar-group]:has([data-size="sm"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
|
|
1272
|
+
width: 0.75rem;
|
|
1273
|
+
height: 0.75rem;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
/* ../primitives/button-group/button-group.css */
|
|
1278
|
+
/*
|
|
1279
|
+
* ButtonGroup. shadcn (Base UI, Vega):
|
|
1280
|
+
* group: "flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10
|
|
1281
|
+
* [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1"
|
|
1282
|
+
* + "has-[>[data-slot=button-group]]:gap-2"
|
|
1283
|
+
* horizontal: "*:data-slot:rounded-r-none [&>[data-slot]~[data-slot]]:rounded-l-none
|
|
1284
|
+
* [&>[data-slot]~[data-slot]]:border-l-0" + last item "rounded-r-md!"
|
|
1285
|
+
* vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none
|
|
1286
|
+
* [&>[data-slot]~[data-slot]]:border-t-0" + last item "rounded-b-md!"
|
|
1287
|
+
* text: "flex items-center [&_svg]:pointer-events-none"
|
|
1288
|
+
* + "bg-muted gap-2 rounded-md border px-2.5 text-sm font-medium shadow-xs [&_svg:not([class*='size-'])]:size-4"
|
|
1289
|
+
* separator: Separator + "relative self-stretch data-horizontal:mx-px data-horizontal:w-auto
|
|
1290
|
+
* data-vertical:my-px data-vertical:h-auto" + "bg-input"
|
|
1291
|
+
*
|
|
1292
|
+
* "Item" = a direct child, or the native element inside a direct-child Tier 3
|
|
1293
|
+
* shell (display: contents). Nested button groups are spaced, not joined.
|
|
1294
|
+
*/
|
|
1295
|
+
@layer pont2.primitives {
|
|
1296
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) {
|
|
1297
|
+
box-sizing: border-box;
|
|
1298
|
+
display: flex;
|
|
1299
|
+
width: fit-content;
|
|
1300
|
+
align-items: stretch;
|
|
1301
|
+
}
|
|
1302
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]):has(> [data-slot="button-group"]) {
|
|
1303
|
+
gap: 0.5rem;
|
|
1304
|
+
}
|
|
1305
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) > :focus-visible,
|
|
1306
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) > [data-pont2-shell] > :focus-visible {
|
|
1307
|
+
position: relative;
|
|
1308
|
+
z-index: 10;
|
|
1309
|
+
}
|
|
1310
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) > [data-slot="select-trigger"]:not([class*="w-"]) {
|
|
1311
|
+
width: fit-content;
|
|
1312
|
+
}
|
|
1313
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) > input,
|
|
1314
|
+
:is(pont2-prim-button-group, [data-pont2-button-group]) > [data-pont2-shell] > input {
|
|
1315
|
+
flex: 1 1 0%;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/* ---- horizontal joins ---- */
|
|
1319
|
+
[data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
|
|
1320
|
+
> :not([data-pont2-shell]):not(:last-child),
|
|
1321
|
+
[data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
|
|
1322
|
+
> [data-pont2-shell]:not(:last-child) > * {
|
|
1323
|
+
border-top-right-radius: 0;
|
|
1324
|
+
border-bottom-right-radius: 0;
|
|
1325
|
+
}
|
|
1326
|
+
[data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
|
|
1327
|
+
> :not([data-pont2-shell]):not(:first-child),
|
|
1328
|
+
[data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
|
|
1329
|
+
> [data-pont2-shell]:not(:first-child) > * {
|
|
1330
|
+
border-top-left-radius: 0;
|
|
1331
|
+
border-bottom-left-radius: 0;
|
|
1332
|
+
border-left-width: 0;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/* ---- vertical joins ---- */
|
|
1336
|
+
[data-pont2-button-group][data-orientation="vertical"] {
|
|
1337
|
+
flex-direction: column;
|
|
1338
|
+
}
|
|
1339
|
+
[data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
|
|
1340
|
+
> :not([data-pont2-shell]):not(:last-child),
|
|
1341
|
+
[data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
|
|
1342
|
+
> [data-pont2-shell]:not(:last-child) > * {
|
|
1343
|
+
border-bottom-left-radius: 0;
|
|
1344
|
+
border-bottom-right-radius: 0;
|
|
1345
|
+
}
|
|
1346
|
+
[data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
|
|
1347
|
+
> :not([data-pont2-shell]):not(:first-child),
|
|
1348
|
+
[data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
|
|
1349
|
+
> [data-pont2-shell]:not(:first-child) > * {
|
|
1350
|
+
border-top-left-radius: 0;
|
|
1351
|
+
border-top-right-radius: 0;
|
|
1352
|
+
border-top-width: 0;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/* ---- separators are items too, but are never rounded or bordered ---- */
|
|
1356
|
+
:is(pont2-prim-button-group-separator, [data-pont2-button-group-separator]) {
|
|
1357
|
+
position: relative;
|
|
1358
|
+
align-self: stretch;
|
|
1359
|
+
background-color: var(--pont2-input);
|
|
1360
|
+
}
|
|
1361
|
+
[data-pont2-button-group-separator][data-orientation="vertical"] {
|
|
1362
|
+
height: auto;
|
|
1363
|
+
margin-block: 1px;
|
|
1364
|
+
}
|
|
1365
|
+
[data-pont2-button-group-separator][data-orientation="horizontal"] {
|
|
1366
|
+
width: auto;
|
|
1367
|
+
margin-inline: 1px;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/* ---- text ---- */
|
|
1371
|
+
:is(pont2-prim-button-group-text, [data-pont2-button-group-text]) {
|
|
1372
|
+
box-sizing: border-box;
|
|
1373
|
+
display: flex;
|
|
1374
|
+
align-items: center;
|
|
1375
|
+
gap: 0.5rem;
|
|
1376
|
+
margin: 0;
|
|
1377
|
+
padding: 0 0.625rem;
|
|
1378
|
+
border: 1px solid var(--pont2-border);
|
|
1379
|
+
border-radius: var(--pont2-radius-md);
|
|
1380
|
+
background-color: var(--pont2-muted);
|
|
1381
|
+
font-size: var(--pont2-text-sm);
|
|
1382
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1383
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1384
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
1385
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
1386
|
+
}
|
|
1387
|
+
:is(pont2-prim-button-group-text, [data-pont2-button-group-text]) svg {
|
|
1388
|
+
pointer-events: none;
|
|
1389
|
+
}
|
|
1390
|
+
:is(pont2-prim-button-group-text, [data-pont2-button-group-text]) svg:not([class*="size-"]) {
|
|
1391
|
+
width: 1rem;
|
|
1392
|
+
height: 1rem;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/* ../primitives/card/card.css */
|
|
1397
|
+
/*
|
|
1398
|
+
* Card. shadcn (Base UI, Vega):
|
|
1399
|
+
* card: "group/card flex flex-col" + .cn-card "ring-foreground/10 bg-card text-card-foreground
|
|
1400
|
+
* gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1
|
|
1401
|
+
* [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0
|
|
1402
|
+
* data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl
|
|
1403
|
+
* *:[img:last-child]:rounded-b-xl"
|
|
1404
|
+
* header: "group/card-header @container/card-header grid auto-rows-min items-start
|
|
1405
|
+
* has-data-[slot=card-action]:grid-cols-[1fr_auto]
|
|
1406
|
+
* has-data-[slot=card-description]:grid-rows-[auto_auto]"
|
|
1407
|
+
* + "gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing)"
|
|
1408
|
+
* title: "text-base leading-normal font-medium group-data-[size=sm]/card:text-sm"
|
|
1409
|
+
* description: "text-muted-foreground text-sm"
|
|
1410
|
+
* action: "col-start-2 row-span-2 row-start-1 self-start justify-self-end"
|
|
1411
|
+
* content: "px-(--card-spacing)"
|
|
1412
|
+
* footer: "flex items-center" + "rounded-b-xl px-(--card-spacing) [.border-t]:pt-(--card-spacing)"
|
|
1413
|
+
*
|
|
1414
|
+
* `[.border-b]` / `[.border-t]` are Tailwind class hooks in shadcn; pont2 keeps
|
|
1415
|
+
* them (`.border-b`) and also accepts `data-border` for non-Tailwind apps.
|
|
1416
|
+
*/
|
|
1417
|
+
@layer pont2.primitives {
|
|
1418
|
+
:is(pont2-prim-card, [data-pont2-card]) {
|
|
1419
|
+
--pont2-card-spacing: 1.5rem;
|
|
1420
|
+
box-sizing: border-box;
|
|
1421
|
+
display: flex;
|
|
1422
|
+
flex-direction: column;
|
|
1423
|
+
gap: var(--pont2-card-spacing);
|
|
1424
|
+
margin: 0;
|
|
1425
|
+
padding-block: var(--pont2-card-spacing);
|
|
1426
|
+
overflow: hidden;
|
|
1427
|
+
border-radius: var(--pont2-radius-xl);
|
|
1428
|
+
background-color: var(--pont2-card);
|
|
1429
|
+
color: var(--pont2-card-foreground);
|
|
1430
|
+
font-size: var(--pont2-text-sm);
|
|
1431
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1432
|
+
--pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
|
|
1433
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
1434
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
:is(pont2-prim-card, [data-pont2-card]):is([data-size="sm"], [size="sm"]) {
|
|
1438
|
+
--pont2-card-spacing: 1rem;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
:is(pont2-prim-card, [data-pont2-card]):has(> img:first-child) {
|
|
1442
|
+
padding-top: 0;
|
|
1443
|
+
}
|
|
1444
|
+
:is(pont2-prim-card, [data-pont2-card]) > img:first-child {
|
|
1445
|
+
border-top-left-radius: var(--pont2-radius-xl);
|
|
1446
|
+
border-top-right-radius: var(--pont2-radius-xl);
|
|
1447
|
+
}
|
|
1448
|
+
:is(pont2-prim-card, [data-pont2-card]) > img:last-child {
|
|
1449
|
+
border-bottom-left-radius: var(--pont2-radius-xl);
|
|
1450
|
+
border-bottom-right-radius: var(--pont2-radius-xl);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
:is(pont2-prim-card-header, [data-pont2-card-header]) {
|
|
1454
|
+
box-sizing: border-box;
|
|
1455
|
+
container-type: inline-size;
|
|
1456
|
+
display: grid;
|
|
1457
|
+
grid-auto-rows: min-content;
|
|
1458
|
+
align-items: start;
|
|
1459
|
+
gap: 0.25rem;
|
|
1460
|
+
padding-inline: var(--pont2-card-spacing);
|
|
1461
|
+
border-top-left-radius: var(--pont2-radius-xl);
|
|
1462
|
+
border-top-right-radius: var(--pont2-radius-xl);
|
|
1463
|
+
}
|
|
1464
|
+
:is(pont2-prim-card-header, [data-pont2-card-header]):has([data-slot="card-action"]) {
|
|
1465
|
+
grid-template-columns: 1fr auto;
|
|
1466
|
+
}
|
|
1467
|
+
:is(pont2-prim-card-header, [data-pont2-card-header]):has([data-slot="card-description"]) {
|
|
1468
|
+
grid-template-rows: auto auto;
|
|
1469
|
+
}
|
|
1470
|
+
:is(pont2-prim-card-header, [data-pont2-card-header]):is(.border-b, [data-border~="bottom"]) {
|
|
1471
|
+
padding-bottom: var(--pont2-card-spacing);
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
:is(pont2-prim-card-title, [data-pont2-card-title]) {
|
|
1475
|
+
display: block;
|
|
1476
|
+
font-size: var(--pont2-text-base);
|
|
1477
|
+
line-height: var(--pont2-leading-normal);
|
|
1478
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1479
|
+
}
|
|
1480
|
+
:is(pont2-prim-card, [data-pont2-card])[data-size="sm"] :is(pont2-prim-card-title, [data-pont2-card-title]) {
|
|
1481
|
+
font-size: var(--pont2-text-sm);
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
:is(pont2-prim-card-description, [data-pont2-card-description]) {
|
|
1485
|
+
display: block;
|
|
1486
|
+
color: var(--pont2-muted-foreground);
|
|
1487
|
+
font-size: var(--pont2-text-sm);
|
|
1488
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
:is(pont2-prim-card-action, [data-pont2-card-action]) {
|
|
1492
|
+
display: block;
|
|
1493
|
+
grid-column-start: 2;
|
|
1494
|
+
grid-row: 1 / span 2;
|
|
1495
|
+
align-self: start;
|
|
1496
|
+
justify-self: end;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
:is(pont2-prim-card-content, [data-pont2-card-content]) {
|
|
1500
|
+
display: block;
|
|
1501
|
+
padding-inline: var(--pont2-card-spacing);
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
:is(pont2-prim-card-footer, [data-pont2-card-footer]) {
|
|
1505
|
+
box-sizing: border-box;
|
|
1506
|
+
display: flex;
|
|
1507
|
+
align-items: center;
|
|
1508
|
+
padding-inline: var(--pont2-card-spacing);
|
|
1509
|
+
border-bottom-left-radius: var(--pont2-radius-xl);
|
|
1510
|
+
border-bottom-right-radius: var(--pont2-radius-xl);
|
|
1511
|
+
}
|
|
1512
|
+
:is(pont2-prim-card-footer, [data-pont2-card-footer]):is(.border-t, [data-border~="top"]) {
|
|
1513
|
+
padding-top: var(--pont2-card-spacing);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
/* `border-b` / `border-t` on header/footer, for apps without Tailwind */
|
|
1517
|
+
:is(pont2-prim-card-header, [data-pont2-card-header])[data-border~="bottom"] {
|
|
1518
|
+
border-bottom: 1px solid var(--pont2-border);
|
|
1519
|
+
}
|
|
1520
|
+
:is(pont2-prim-card-footer, [data-pont2-card-footer])[data-border~="top"] {
|
|
1521
|
+
border-top: 1px solid var(--pont2-border);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/* ../primitives/empty/empty.css */
|
|
1526
|
+
/*
|
|
1527
|
+
* Empty. shadcn (Base UI, Vega):
|
|
1528
|
+
* empty: "flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance"
|
|
1529
|
+
* + "gap-4 rounded-lg border-dashed p-12"
|
|
1530
|
+
* (border-dashed sets only the style: the border is 0 wide unless you add one, as in shadcn)
|
|
1531
|
+
* header: "flex max-w-sm flex-col items-center" + "gap-2"
|
|
1532
|
+
* media: "flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0" + "mb-2"
|
|
1533
|
+
* media icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg
|
|
1534
|
+
* [&_svg:not([class*='size-'])]:size-6"
|
|
1535
|
+
* title: "text-lg font-medium tracking-tight"
|
|
1536
|
+
* description: "text-muted-foreground text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
|
|
1537
|
+
* content: "flex w-full max-w-sm min-w-0 flex-col items-center text-balance" + "gap-4 text-sm"
|
|
1538
|
+
*/
|
|
1539
|
+
@layer pont2.primitives {
|
|
1540
|
+
:is(pont2-prim-empty, [data-pont2-empty]) {
|
|
1541
|
+
box-sizing: border-box;
|
|
1542
|
+
display: flex;
|
|
1543
|
+
flex: 1 1 0%;
|
|
1544
|
+
flex-direction: column;
|
|
1545
|
+
align-items: center;
|
|
1546
|
+
justify-content: center;
|
|
1547
|
+
gap: 1rem;
|
|
1548
|
+
width: 100%;
|
|
1549
|
+
min-width: 0;
|
|
1550
|
+
margin: 0;
|
|
1551
|
+
padding: 3rem;
|
|
1552
|
+
border: 0 dashed var(--pont2-border);
|
|
1553
|
+
border-radius: var(--pont2-radius-lg);
|
|
1554
|
+
text-align: center;
|
|
1555
|
+
text-wrap: balance;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
:is(pont2-prim-empty-header, [data-pont2-empty-header]) {
|
|
1559
|
+
display: flex;
|
|
1560
|
+
flex-direction: column;
|
|
1561
|
+
align-items: center;
|
|
1562
|
+
gap: 0.5rem;
|
|
1563
|
+
max-width: 24rem;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
:is(pont2-prim-empty-media, [data-pont2-empty-media]) {
|
|
1567
|
+
box-sizing: border-box;
|
|
1568
|
+
display: flex;
|
|
1569
|
+
flex-shrink: 0;
|
|
1570
|
+
align-items: center;
|
|
1571
|
+
justify-content: center;
|
|
1572
|
+
margin-bottom: 0.5rem;
|
|
1573
|
+
background-color: transparent;
|
|
1574
|
+
}
|
|
1575
|
+
:is(pont2-prim-empty-media, [data-pont2-empty-media]) svg {
|
|
1576
|
+
pointer-events: none;
|
|
1577
|
+
flex-shrink: 0;
|
|
1578
|
+
}
|
|
1579
|
+
[data-pont2-empty-media][data-variant="icon"] {
|
|
1580
|
+
width: 2.5rem;
|
|
1581
|
+
height: 2.5rem;
|
|
1582
|
+
border-radius: var(--pont2-radius-lg);
|
|
1583
|
+
background-color: var(--pont2-muted);
|
|
1584
|
+
color: var(--pont2-foreground);
|
|
1585
|
+
}
|
|
1586
|
+
[data-pont2-empty-media][data-variant="icon"] svg:not([class*="size-"]) {
|
|
1587
|
+
width: 1.5rem;
|
|
1588
|
+
height: 1.5rem;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
:is(pont2-prim-empty-title, [data-pont2-empty-title]) {
|
|
1592
|
+
display: block;
|
|
1593
|
+
font-size: var(--pont2-text-lg);
|
|
1594
|
+
line-height: var(--pont2-text-lg--line-height);
|
|
1595
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1596
|
+
letter-spacing: -0.025em;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
:is(pont2-prim-empty-description, [data-pont2-empty-description]) {
|
|
1600
|
+
display: block;
|
|
1601
|
+
color: var(--pont2-muted-foreground);
|
|
1602
|
+
font-size: var(--pont2-text-sm);
|
|
1603
|
+
line-height: 1.625;
|
|
1604
|
+
}
|
|
1605
|
+
:is(pont2-prim-empty-description, [data-pont2-empty-description]) > a {
|
|
1606
|
+
color: inherit;
|
|
1607
|
+
text-decoration-line: underline;
|
|
1608
|
+
text-underline-offset: 4px;
|
|
1609
|
+
}
|
|
1610
|
+
:is(pont2-prim-empty-description, [data-pont2-empty-description]) > a:hover {
|
|
1611
|
+
color: var(--pont2-primary);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
:is(pont2-prim-empty-content, [data-pont2-empty-content]) {
|
|
1615
|
+
display: flex;
|
|
1616
|
+
flex-direction: column;
|
|
1617
|
+
align-items: center;
|
|
1618
|
+
gap: 1rem;
|
|
1619
|
+
width: 100%;
|
|
1620
|
+
max-width: 24rem;
|
|
1621
|
+
min-width: 0;
|
|
1622
|
+
font-size: var(--pont2-text-sm);
|
|
1623
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1624
|
+
text-wrap: balance;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
/* ../primitives/field/field.css */
|
|
1629
|
+
/*
|
|
1630
|
+
* Field. shadcn (Base UI, Vega), per part:
|
|
1631
|
+
* field-set: "flex flex-col" + "gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3"
|
|
1632
|
+
* field-legend: "mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base"
|
|
1633
|
+
* field-group: "group/field-group @container/field-group flex w-full flex-col"
|
|
1634
|
+
* + "gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4"
|
|
1635
|
+
* field: "group/field flex w-full" + "data-[invalid=true]:text-destructive gap-3"
|
|
1636
|
+
* vertical: "flex-col *:w-full [&>.sr-only]:w-auto"
|
|
1637
|
+
* horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start
|
|
1638
|
+
* *:data-[slot=field-label]:flex-auto
|
|
1639
|
+
* has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
1640
|
+
* responsive: vertical below the field-group's @md (28rem) container width, horizontal above
|
|
1641
|
+
* field-content:"group/field-content flex flex-1 flex-col leading-snug" + "gap-1"
|
|
1642
|
+
* field-label: Label + "group/field-label peer/field-label flex w-fit has-[>[data-slot=field]]:w-full
|
|
1643
|
+
* has-[>[data-slot=field]]:flex-col" + .cn-field-label (choice-card styles)
|
|
1644
|
+
* field-title: "flex w-fit items-center" + "gap-2 leading-snug text-sm font-medium group-data-[disabled=true]/field:opacity-50"
|
|
1645
|
+
* description: "leading-normal font-normal group-has-data-horizontal/field:text-balance last:mt-0 nth-last-2:-mt-1
|
|
1646
|
+
* [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
|
|
1647
|
+
* + "text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5"
|
|
1648
|
+
* separator: "relative" + "-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2";
|
|
1649
|
+
* its Separator "absolute inset-0 top-1/2", its span "relative mx-auto block w-fit bg-background px-2 text-muted-foreground"
|
|
1650
|
+
* error: "font-normal" + "text-destructive text-sm"
|
|
1651
|
+
*
|
|
1652
|
+
* Roles/state: Base UI checkbox/radio expose role through internals, so
|
|
1653
|
+
* `[role=checkbox]` cannot match them; pont2 also matches their data-slot.
|
|
1654
|
+
* `data-disabled` / `data-invalid` accept shadcn's `="true"` and Base UI's presence form.
|
|
1655
|
+
*/
|
|
1656
|
+
@layer pont2.primitives {
|
|
1657
|
+
/* ---------------- FieldSet / FieldLegend (native) ---------------- */
|
|
1658
|
+
[data-pont2-field-set] {
|
|
1659
|
+
box-sizing: border-box;
|
|
1660
|
+
display: flex;
|
|
1661
|
+
flex-direction: column;
|
|
1662
|
+
gap: 1.5rem;
|
|
1663
|
+
min-inline-size: 0;
|
|
1664
|
+
margin: 0;
|
|
1665
|
+
padding: 0;
|
|
1666
|
+
border: 0;
|
|
1667
|
+
}
|
|
1668
|
+
[data-pont2-field-set]:has(> :is([data-slot="checkbox-group"], [data-slot="radio-group"])) {
|
|
1669
|
+
gap: 0.75rem;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
[data-pont2-field-legend] {
|
|
1673
|
+
margin: 0 0 0.75rem;
|
|
1674
|
+
padding: 0;
|
|
1675
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1676
|
+
font-size: var(--pont2-text-base);
|
|
1677
|
+
line-height: var(--pont2-text-base--line-height);
|
|
1678
|
+
}
|
|
1679
|
+
[data-pont2-field-legend][data-variant="label"] {
|
|
1680
|
+
font-size: var(--pont2-text-sm);
|
|
1681
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/* ---------------- FieldGroup ---------------- */
|
|
1685
|
+
:is(pont2-prim-field-group, [data-pont2-field-group]) {
|
|
1686
|
+
box-sizing: border-box;
|
|
1687
|
+
container-type: inline-size;
|
|
1688
|
+
container-name: field-group;
|
|
1689
|
+
display: flex;
|
|
1690
|
+
flex-direction: column;
|
|
1691
|
+
gap: 1.75rem;
|
|
1692
|
+
width: 100%;
|
|
1693
|
+
}
|
|
1694
|
+
:is(pont2-prim-field-group, [data-pont2-field-group])[data-slot="checkbox-group"] {
|
|
1695
|
+
gap: 0.75rem;
|
|
1696
|
+
}
|
|
1697
|
+
:is(pont2-prim-field-group, [data-pont2-field-group]) > [data-slot="field-group"] {
|
|
1698
|
+
gap: 1rem;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/* ---------------- Field ---------------- */
|
|
1702
|
+
:is(pont2-prim-field, [data-pont2-field]) {
|
|
1703
|
+
box-sizing: border-box;
|
|
1704
|
+
display: flex;
|
|
1705
|
+
flex-direction: column;
|
|
1706
|
+
gap: 0.75rem;
|
|
1707
|
+
width: 100%;
|
|
1708
|
+
}
|
|
1709
|
+
:is(pont2-prim-field, [data-pont2-field]):is([data-invalid]:not([data-invalid="false"])) {
|
|
1710
|
+
color: var(--pont2-destructive);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/* vertical (default) and responsive below @md */
|
|
1714
|
+
:is(pont2-prim-field, [data-pont2-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > * {
|
|
1715
|
+
width: 100%;
|
|
1716
|
+
}
|
|
1717
|
+
:is(pont2-prim-field, [data-pont2-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > :is(.sr-only, [data-pont2-sr-only]) {
|
|
1718
|
+
width: auto;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/* horizontal */
|
|
1722
|
+
[data-pont2-field][data-orientation="horizontal"] {
|
|
1723
|
+
flex-direction: row;
|
|
1724
|
+
align-items: center;
|
|
1725
|
+
}
|
|
1726
|
+
[data-pont2-field][data-orientation="horizontal"]:has(> [data-slot="field-content"]) {
|
|
1727
|
+
align-items: flex-start;
|
|
1728
|
+
}
|
|
1729
|
+
[data-pont2-field][data-orientation="horizontal"] > [data-slot="field-label"] {
|
|
1730
|
+
flex: 1 1 auto;
|
|
1731
|
+
}
|
|
1732
|
+
[data-pont2-field][data-orientation="horizontal"]:has(> [data-slot="field-content"])
|
|
1733
|
+
> :is([role="checkbox"], [role="radio"], [data-slot="checkbox"], [data-slot="radio-group-item"]) {
|
|
1734
|
+
margin-top: 1px;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
@container field-group (width >= 28rem) {
|
|
1738
|
+
[data-pont2-field][data-orientation="responsive"] {
|
|
1739
|
+
flex-direction: row;
|
|
1740
|
+
align-items: center;
|
|
1741
|
+
}
|
|
1742
|
+
[data-pont2-field][data-orientation="responsive"] > * {
|
|
1743
|
+
width: auto;
|
|
1744
|
+
}
|
|
1745
|
+
[data-pont2-field][data-orientation="responsive"]:has(> [data-slot="field-content"]) {
|
|
1746
|
+
align-items: flex-start;
|
|
1747
|
+
}
|
|
1748
|
+
[data-pont2-field][data-orientation="responsive"] > [data-slot="field-label"] {
|
|
1749
|
+
flex: 1 1 auto;
|
|
1750
|
+
}
|
|
1751
|
+
[data-pont2-field][data-orientation="responsive"]:has(> [data-slot="field-content"])
|
|
1752
|
+
> :is([role="checkbox"], [role="radio"], [data-slot="checkbox"], [data-slot="radio-group-item"]) {
|
|
1753
|
+
margin-top: 1px;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/* ---------------- FieldContent ---------------- */
|
|
1758
|
+
:is(pont2-prim-field-content, [data-pont2-field-content]) {
|
|
1759
|
+
display: flex;
|
|
1760
|
+
flex: 1 1 0%;
|
|
1761
|
+
flex-direction: column;
|
|
1762
|
+
gap: 0.25rem;
|
|
1763
|
+
line-height: var(--pont2-leading-snug);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/* ---------------- FieldLabel (native label; Label recipe applies too) ---------------- */
|
|
1767
|
+
[data-pont2-field-label] {
|
|
1768
|
+
display: flex;
|
|
1769
|
+
width: fit-content;
|
|
1770
|
+
gap: 0.5rem;
|
|
1771
|
+
line-height: var(--pont2-leading-snug);
|
|
1772
|
+
}
|
|
1773
|
+
[data-pont2-field][data-disabled]:not([data-disabled="false"]) [data-pont2-field-label],
|
|
1774
|
+
[data-pont2-field][data-disabled]:not([data-disabled="false"]) [data-pont2-field-title] {
|
|
1775
|
+
opacity: 0.5;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/* Choice card: a FieldLabel that wraps a whole Field */
|
|
1779
|
+
[data-pont2-field-label]:has(> [data-slot="field"]) {
|
|
1780
|
+
width: 100%;
|
|
1781
|
+
flex-direction: column;
|
|
1782
|
+
border: 1px solid var(--pont2-border);
|
|
1783
|
+
border-radius: var(--pont2-radius-md);
|
|
1784
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
1785
|
+
}
|
|
1786
|
+
[data-pont2-field-label]:has(> [data-slot="field"]):not(:has(:disabled, [data-disabled])):hover {
|
|
1787
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
1788
|
+
}
|
|
1789
|
+
[data-pont2-field-label]:has(> [data-slot="field"]):has(:focus-visible) {
|
|
1790
|
+
border-color: var(--pont2-ring);
|
|
1791
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
1792
|
+
}
|
|
1793
|
+
[data-pont2-field-label] > [data-slot="field"] {
|
|
1794
|
+
padding: 0.75rem;
|
|
1795
|
+
}
|
|
1796
|
+
[data-pont2-field-label]:has([data-checked]:not([data-checked="false"])) {
|
|
1797
|
+
background-color: color-mix(in oklab, var(--pont2-primary) 5%, transparent);
|
|
1798
|
+
border-color: color-mix(in oklab, var(--pont2-primary) 30%, transparent);
|
|
1799
|
+
}
|
|
1800
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-field-label]:has([data-checked]:not([data-checked="false"])) {
|
|
1801
|
+
background-color: color-mix(in oklab, var(--pont2-primary) 10%, transparent);
|
|
1802
|
+
border-color: color-mix(in oklab, var(--pont2-primary) 20%, transparent);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
/* ---------------- FieldTitle ---------------- */
|
|
1806
|
+
:is(pont2-prim-field-title, [data-pont2-field-title]) {
|
|
1807
|
+
display: flex;
|
|
1808
|
+
width: fit-content;
|
|
1809
|
+
align-items: center;
|
|
1810
|
+
gap: 0.5rem;
|
|
1811
|
+
font-size: var(--pont2-text-sm);
|
|
1812
|
+
line-height: var(--pont2-leading-snug);
|
|
1813
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
/* ---------------- FieldDescription ---------------- */
|
|
1817
|
+
:is(pont2-prim-field-description, [data-pont2-field-description]) {
|
|
1818
|
+
display: block;
|
|
1819
|
+
margin: 0;
|
|
1820
|
+
color: var(--pont2-muted-foreground);
|
|
1821
|
+
text-align: left;
|
|
1822
|
+
font-size: var(--pont2-text-sm);
|
|
1823
|
+
line-height: var(--pont2-leading-normal);
|
|
1824
|
+
font-weight: var(--pont2-font-weight-normal);
|
|
1825
|
+
}
|
|
1826
|
+
:is(pont2-prim-field-description, [data-pont2-field-description]):nth-last-child(2) {
|
|
1827
|
+
margin-top: -0.25rem;
|
|
1828
|
+
}
|
|
1829
|
+
:is(pont2-prim-field-description, [data-pont2-field-description]):last-child {
|
|
1830
|
+
margin-top: 0;
|
|
1831
|
+
}
|
|
1832
|
+
[data-variant="legend"] + :is(pont2-prim-field-description, [data-pont2-field-description]) {
|
|
1833
|
+
margin-top: -0.375rem;
|
|
1834
|
+
}
|
|
1835
|
+
[data-pont2-field]:is([data-orientation="horizontal"], [data-orientation="responsive"]) :is(pont2-prim-field-description, [data-pont2-field-description]) {
|
|
1836
|
+
text-wrap: balance;
|
|
1837
|
+
}
|
|
1838
|
+
:is(pont2-prim-field-description, [data-pont2-field-description]) > a {
|
|
1839
|
+
color: inherit;
|
|
1840
|
+
text-decoration-line: underline;
|
|
1841
|
+
text-underline-offset: 4px;
|
|
1842
|
+
}
|
|
1843
|
+
:is(pont2-prim-field-description, [data-pont2-field-description]) > a:hover {
|
|
1844
|
+
color: var(--pont2-primary);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/* ---------------- FieldSeparator ---------------- */
|
|
1848
|
+
:is(pont2-prim-field-separator, [data-pont2-field-separator]) {
|
|
1849
|
+
box-sizing: border-box;
|
|
1850
|
+
position: relative;
|
|
1851
|
+
display: flex;
|
|
1852
|
+
align-items: center;
|
|
1853
|
+
height: 1.25rem;
|
|
1854
|
+
margin-block: -0.5rem;
|
|
1855
|
+
color: var(--pont2-muted-foreground);
|
|
1856
|
+
font-size: var(--pont2-text-sm);
|
|
1857
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1858
|
+
white-space: nowrap;
|
|
1859
|
+
}
|
|
1860
|
+
:is(pont2-prim-field-separator, [data-pont2-field-separator])::before,
|
|
1861
|
+
:is(pont2-prim-field-separator, [data-pont2-field-separator])::after {
|
|
1862
|
+
content: "";
|
|
1863
|
+
flex: 1 1 0%;
|
|
1864
|
+
height: 1px;
|
|
1865
|
+
background-color: var(--pont2-border);
|
|
1866
|
+
}
|
|
1867
|
+
:is(pont2-prim-field-separator, [data-pont2-field-separator])[data-content="true"] {
|
|
1868
|
+
column-gap: 0.5rem;
|
|
1869
|
+
}
|
|
1870
|
+
:is(pont2-prim-field-separator, [data-pont2-field-separator]):not([data-content="true"])::after {
|
|
1871
|
+
display: none;
|
|
1872
|
+
}
|
|
1873
|
+
[data-slot="field-group"][data-variant="outline"] :is(pont2-prim-field-separator, [data-pont2-field-separator]) {
|
|
1874
|
+
margin-bottom: -0.5rem;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/* ---------------- FieldError ---------------- */
|
|
1878
|
+
:is(pont2-prim-field-error, [data-pont2-field-error]) {
|
|
1879
|
+
display: block;
|
|
1880
|
+
color: var(--pont2-destructive);
|
|
1881
|
+
font-size: var(--pont2-text-sm);
|
|
1882
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
1883
|
+
font-weight: var(--pont2-font-weight-normal);
|
|
1884
|
+
}
|
|
1885
|
+
:is(pont2-prim-field-error, [data-pont2-field-error]):empty {
|
|
1886
|
+
display: none;
|
|
1887
|
+
}
|
|
1888
|
+
:is(pont2-prim-field-error, [data-pont2-field-error]) > ul {
|
|
1889
|
+
display: flex;
|
|
1890
|
+
flex-direction: column;
|
|
1891
|
+
gap: 0.25rem;
|
|
1892
|
+
margin: 0 0 0 1rem;
|
|
1893
|
+
padding: 0;
|
|
1894
|
+
list-style: disc;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/* ../primitives/input-group/input-group.css */
|
|
1899
|
+
/*
|
|
1900
|
+
* InputGroup. shadcn (Base UI, Vega):
|
|
1901
|
+
* group: "group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto"
|
|
1902
|
+
* + .cn-input-group: "border-input dark:bg-input/30 h-9 rounded-md border shadow-xs transition-[color,box-shadow]
|
|
1903
|
+
* has-[[data-slot=input-group-control]:focus-visible]:border-ring …:ring-ring/50 …:ring-3
|
|
1904
|
+
* has-[[data-slot][aria-invalid=true]]:ring-destructive/20 …:border-destructive dark:…:ring-destructive/40 …:ring-3
|
|
1905
|
+
* in-data-[slot=combobox-content]:focus-within:border-inherit …:ring-0
|
|
1906
|
+
* has-[>[data-align=block-end|block-start]]:h-auto …:flex-col
|
|
1907
|
+
* has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3
|
|
1908
|
+
* has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5"
|
|
1909
|
+
* addon: "flex cursor-text items-center justify-center select-none" + "text-muted-foreground h-auto gap-2 py-1.5
|
|
1910
|
+
* text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)]
|
|
1911
|
+
* [&>svg:not([class*='size-'])]:size-4"
|
|
1912
|
+
* inline-start: "order-first" + "pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]"
|
|
1913
|
+
* inline-end: "order-last" + "pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]"
|
|
1914
|
+
* block-start: "order-first w-full justify-start" + "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2"
|
|
1915
|
+
* block-end: "order-last w-full justify-start" + "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
1916
|
+
* button: Button(ghost, xs) + "flex items-center shadow-none" + "gap-2 text-sm"
|
|
1917
|
+
* xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5"
|
|
1918
|
+
* icon-xs: "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0"
|
|
1919
|
+
* icon-sm: "size-8 p-0 has-[>svg]:p-0"
|
|
1920
|
+
* text: "flex items-center [&_svg]:pointer-events-none" + "text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
1921
|
+
* input: Input + "flex-1" + "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent"
|
|
1922
|
+
* textarea:Textarea + "flex-1 resize-none" + same + "py-2"
|
|
1923
|
+
*
|
|
1924
|
+
* shadcn's `>input` / `>button` child selectors also match through a Tier 3
|
|
1925
|
+
* shell (`> [data-pont2-shell] > input`), since a shell has no box.
|
|
1926
|
+
*/
|
|
1927
|
+
@layer pont2.primitives {
|
|
1928
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]) {
|
|
1929
|
+
box-sizing: border-box;
|
|
1930
|
+
position: relative;
|
|
1931
|
+
display: flex;
|
|
1932
|
+
align-items: center;
|
|
1933
|
+
width: 100%;
|
|
1934
|
+
min-width: 0;
|
|
1935
|
+
height: 2.25rem;
|
|
1936
|
+
margin: 0;
|
|
1937
|
+
border: 1px solid var(--pont2-input);
|
|
1938
|
+
border-radius: var(--pont2-radius-md);
|
|
1939
|
+
outline: none;
|
|
1940
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
1941
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
1942
|
+
transition-property: color, box-shadow;
|
|
1943
|
+
transition-duration: var(--pont2-duration);
|
|
1944
|
+
transition-timing-function: var(--pont2-ease);
|
|
1945
|
+
}
|
|
1946
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-input-group, [data-pont2-input-group]) {
|
|
1947
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot="input-group-control"]:focus-visible) {
|
|
1951
|
+
border-color: var(--pont2-ring);
|
|
1952
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
1953
|
+
}
|
|
1954
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot][aria-invalid="true"]) {
|
|
1955
|
+
border-color: var(--pont2-destructive);
|
|
1956
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
1957
|
+
}
|
|
1958
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot][aria-invalid="true"]) {
|
|
1959
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
1960
|
+
}
|
|
1961
|
+
[data-slot="combobox-content"] :is(pont2-prim-input-group, [data-pont2-input-group]):focus-within {
|
|
1962
|
+
border-color: inherit;
|
|
1963
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> textarea, > [data-pont2-shell] > textarea) {
|
|
1967
|
+
height: auto;
|
|
1968
|
+
}
|
|
1969
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"], > [data-align="block-end"]) {
|
|
1970
|
+
height: auto;
|
|
1971
|
+
flex-direction: column;
|
|
1972
|
+
}
|
|
1973
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-end"]) > input,
|
|
1974
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-end"]) > [data-pont2-shell] > input {
|
|
1975
|
+
padding-top: 0.75rem;
|
|
1976
|
+
}
|
|
1977
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"]) > input,
|
|
1978
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"]) > [data-pont2-shell] > input {
|
|
1979
|
+
padding-bottom: 0.75rem;
|
|
1980
|
+
}
|
|
1981
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-end"]) > input,
|
|
1982
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-end"]) > [data-pont2-shell] > input {
|
|
1983
|
+
padding-right: 0.375rem;
|
|
1984
|
+
}
|
|
1985
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-start"]) > input,
|
|
1986
|
+
:is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-start"]) > [data-pont2-shell] > input {
|
|
1987
|
+
padding-left: 0.375rem;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
/* ---------------- Addon ---------------- */
|
|
1991
|
+
:is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) {
|
|
1992
|
+
box-sizing: border-box;
|
|
1993
|
+
display: flex;
|
|
1994
|
+
align-items: center;
|
|
1995
|
+
justify-content: center;
|
|
1996
|
+
gap: 0.5rem;
|
|
1997
|
+
height: auto;
|
|
1998
|
+
padding-block: 0.375rem;
|
|
1999
|
+
cursor: text;
|
|
2000
|
+
user-select: none;
|
|
2001
|
+
color: var(--pont2-muted-foreground);
|
|
2002
|
+
font-size: var(--pont2-text-sm);
|
|
2003
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2004
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
2005
|
+
order: -9999;
|
|
2006
|
+
padding-left: 0.5rem;
|
|
2007
|
+
}
|
|
2008
|
+
[data-pont2-input-group]:is([data-disabled="true"], [data-disabled=""]) :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) {
|
|
2009
|
+
opacity: 0.5;
|
|
2010
|
+
}
|
|
2011
|
+
:is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) > :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
|
|
2012
|
+
border-radius: calc(var(--pont2-radius) - 5px);
|
|
2013
|
+
}
|
|
2014
|
+
:is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) > svg:not([class*="size-"]) {
|
|
2015
|
+
width: 1rem;
|
|
2016
|
+
height: 1rem;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
:is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]):has(> button, > [data-pont2-shell] > button):is(:not([data-align]), [data-align="inline-start"]) {
|
|
2020
|
+
margin-left: -0.25rem;
|
|
2021
|
+
}
|
|
2022
|
+
:is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]):has(> :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd])):is(:not([data-align]), [data-align="inline-start"]) {
|
|
2023
|
+
margin-left: -0.15rem;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
[data-pont2-input-group-addon][data-align="inline-end"] {
|
|
2027
|
+
order: 9999;
|
|
2028
|
+
padding-left: 0;
|
|
2029
|
+
padding-right: 0.5rem;
|
|
2030
|
+
}
|
|
2031
|
+
[data-pont2-input-group-addon][data-align="inline-end"]:has(> button, > [data-pont2-shell] > button) {
|
|
2032
|
+
margin-right: -0.25rem;
|
|
2033
|
+
}
|
|
2034
|
+
[data-pont2-input-group-addon][data-align="inline-end"]:has(> :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd])) {
|
|
2035
|
+
margin-right: -0.15rem;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
[data-pont2-input-group-addon]:is([data-align="block-start"], [data-align="block-end"]) {
|
|
2039
|
+
width: 100%;
|
|
2040
|
+
justify-content: flex-start;
|
|
2041
|
+
padding-inline: 0.625rem;
|
|
2042
|
+
}
|
|
2043
|
+
[data-pont2-input-group-addon][data-align="block-start"] {
|
|
2044
|
+
order: -9999;
|
|
2045
|
+
padding-top: 0.5rem;
|
|
2046
|
+
}
|
|
2047
|
+
[data-pont2-input-group-addon][data-align="block-start"]:is(.border-b, [data-border~="bottom"]) {
|
|
2048
|
+
padding-bottom: 0.5rem;
|
|
2049
|
+
}
|
|
2050
|
+
[data-pont2-input-group-addon][data-align="block-end"] {
|
|
2051
|
+
order: 9999;
|
|
2052
|
+
padding-bottom: 0.5rem;
|
|
2053
|
+
}
|
|
2054
|
+
[data-pont2-input-group-addon][data-align="block-end"]:is(.border-t, [data-border~="top"]) {
|
|
2055
|
+
padding-top: 0.5rem;
|
|
2056
|
+
}
|
|
2057
|
+
[data-pont2-input-group-addon][data-border~="bottom"] {
|
|
2058
|
+
border-bottom: 1px solid var(--pont2-border);
|
|
2059
|
+
}
|
|
2060
|
+
[data-pont2-input-group-addon][data-border~="top"] {
|
|
2061
|
+
border-top: 1px solid var(--pont2-border);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/* ---------------- Text ---------------- */
|
|
2065
|
+
:is(pont2-prim-input-group-text, [data-pont2-input-group-text]) {
|
|
2066
|
+
display: flex;
|
|
2067
|
+
align-items: center;
|
|
2068
|
+
gap: 0.5rem;
|
|
2069
|
+
color: var(--pont2-muted-foreground);
|
|
2070
|
+
font-size: var(--pont2-text-sm);
|
|
2071
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2072
|
+
}
|
|
2073
|
+
:is(pont2-prim-input-group-text, [data-pont2-input-group-text]) svg {
|
|
2074
|
+
pointer-events: none;
|
|
2075
|
+
}
|
|
2076
|
+
:is(pont2-prim-input-group-text, [data-pont2-input-group-text]) svg:not([class*="size-"]) {
|
|
2077
|
+
width: 1rem;
|
|
2078
|
+
height: 1rem;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/* ---------------- Controls ---------------- */
|
|
2082
|
+
[data-pont2-input-group-input],
|
|
2083
|
+
[data-pont2-input-group-textarea] {
|
|
2084
|
+
flex: 1 1 0%;
|
|
2085
|
+
border: 0;
|
|
2086
|
+
border-radius: 0;
|
|
2087
|
+
background-color: transparent;
|
|
2088
|
+
--pont2-shadow: 0 0 #0000;
|
|
2089
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
2090
|
+
}
|
|
2091
|
+
:where(.dark, [data-theme="dark"]) :is([data-pont2-input-group-input], [data-pont2-input-group-textarea]) {
|
|
2092
|
+
background-color: transparent;
|
|
2093
|
+
}
|
|
2094
|
+
:is([data-pont2-input-group-input], [data-pont2-input-group-textarea]):is(:focus-visible, [aria-invalid="true"]) {
|
|
2095
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
2096
|
+
}
|
|
2097
|
+
[data-pont2-input-group-textarea] {
|
|
2098
|
+
resize: none;
|
|
2099
|
+
padding-block: 0.5rem;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
/* ---------------- Button ---------------- */
|
|
2103
|
+
[data-pont2-input-group-button][data-pont2-button] {
|
|
2104
|
+
display: flex;
|
|
2105
|
+
align-items: center;
|
|
2106
|
+
gap: 0.5rem;
|
|
2107
|
+
--pont2-shadow: 0 0 #0000;
|
|
2108
|
+
font-size: var(--pont2-text-sm);
|
|
2109
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2110
|
+
}
|
|
2111
|
+
[data-pont2-input-group-button][data-size="xs"] {
|
|
2112
|
+
height: 1.5rem;
|
|
2113
|
+
gap: 0.25rem;
|
|
2114
|
+
padding: 0 0.375rem;
|
|
2115
|
+
border-radius: calc(var(--pont2-radius) - 5px);
|
|
2116
|
+
font-size: var(--pont2-text-sm);
|
|
2117
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2118
|
+
}
|
|
2119
|
+
[data-pont2-input-group-button][data-size="xs"] > svg:not([class*="size-"]) {
|
|
2120
|
+
width: 0.875rem;
|
|
2121
|
+
height: 0.875rem;
|
|
2122
|
+
}
|
|
2123
|
+
[data-pont2-input-group-button][data-size="icon-xs"] {
|
|
2124
|
+
width: 1.5rem;
|
|
2125
|
+
height: 1.5rem;
|
|
2126
|
+
padding: 0;
|
|
2127
|
+
border-radius: calc(var(--pont2-radius) - 5px);
|
|
2128
|
+
}
|
|
2129
|
+
[data-pont2-input-group-button][data-size="icon-sm"] {
|
|
2130
|
+
width: 2rem;
|
|
2131
|
+
height: 2rem;
|
|
2132
|
+
padding: 0;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
/* ../primitives/item/item.css */
|
|
2137
|
+
/*
|
|
2138
|
+
* Item. shadcn (Base UI, Vega):
|
|
2139
|
+
* group: "group/item-group flex w-full flex-col" + "gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2"
|
|
2140
|
+
* separator: Separator + "my-2"
|
|
2141
|
+
* item: "group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none
|
|
2142
|
+
* focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors"
|
|
2143
|
+
* + "[a]:hover:bg-muted rounded-md border text-sm"
|
|
2144
|
+
* variants: default "border-transparent" · outline "border-border" · muted "bg-muted/50 border-transparent"
|
|
2145
|
+
* sizes: default "gap-3.5 px-4 py-3.5" · sm "gap-2.5 px-3 py-2.5"
|
|
2146
|
+
* · xs "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
|
|
2147
|
+
* media: "flex shrink-0 items-center justify-center [&_svg]:pointer-events-none"
|
|
2148
|
+
* + "gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 …:self-start"
|
|
2149
|
+
* icon: "[&_svg:not([class*='size-'])]:size-4"
|
|
2150
|
+
* image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6
|
|
2151
|
+
* [&_img]:size-full [&_img]:object-cover"
|
|
2152
|
+
* content: "flex flex-1 flex-col [&+[data-slot=item-content]]:flex-none" + "gap-1 group-data-[size=xs]/item:gap-0"
|
|
2153
|
+
* title: "line-clamp-1 flex w-fit items-center" + "gap-2 text-sm leading-snug font-medium underline-offset-4"
|
|
2154
|
+
* description: "line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
|
|
2155
|
+
* + "text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs"
|
|
2156
|
+
* actions: "flex items-center" + "gap-2"
|
|
2157
|
+
* header/footer: "flex basis-full items-center justify-between" + "gap-2"
|
|
2158
|
+
*/
|
|
2159
|
+
@layer pont2.primitives {
|
|
2160
|
+
:is(pont2-prim-item-group, [data-pont2-item-group]) {
|
|
2161
|
+
display: flex;
|
|
2162
|
+
flex-direction: column;
|
|
2163
|
+
gap: 1rem;
|
|
2164
|
+
width: 100%;
|
|
2165
|
+
}
|
|
2166
|
+
:is(pont2-prim-item-group, [data-pont2-item-group]):has([data-size="sm"]) {
|
|
2167
|
+
gap: 0.625rem;
|
|
2168
|
+
}
|
|
2169
|
+
:is(pont2-prim-item-group, [data-pont2-item-group]):has([data-size="xs"]) {
|
|
2170
|
+
gap: 0.5rem;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
:is(pont2-prim-item-separator, [data-pont2-item-separator]) {
|
|
2174
|
+
margin-block: 0.5rem;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
:is(pont2-prim-item, [data-pont2-item]) {
|
|
2178
|
+
box-sizing: border-box;
|
|
2179
|
+
display: flex;
|
|
2180
|
+
flex-wrap: wrap;
|
|
2181
|
+
align-items: center;
|
|
2182
|
+
width: 100%;
|
|
2183
|
+
gap: 0.875rem;
|
|
2184
|
+
margin: 0;
|
|
2185
|
+
padding: 0.875rem 1rem;
|
|
2186
|
+
border: 1px solid transparent;
|
|
2187
|
+
border-radius: var(--pont2-radius-md);
|
|
2188
|
+
color: inherit;
|
|
2189
|
+
font-size: var(--pont2-text-sm);
|
|
2190
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2191
|
+
text-decoration: none;
|
|
2192
|
+
outline: none;
|
|
2193
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
2194
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
2195
|
+
transition-duration: 100ms;
|
|
2196
|
+
transition-timing-function: var(--pont2-ease);
|
|
2197
|
+
}
|
|
2198
|
+
[data-pont2-item]:focus-visible {
|
|
2199
|
+
border-color: var(--pont2-ring);
|
|
2200
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
2201
|
+
}
|
|
2202
|
+
a[data-pont2-item]:hover {
|
|
2203
|
+
background-color: var(--pont2-muted);
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
[data-pont2-item][data-variant="outline"] {
|
|
2207
|
+
border-color: var(--pont2-border);
|
|
2208
|
+
}
|
|
2209
|
+
[data-pont2-item][data-variant="muted"] {
|
|
2210
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
[data-pont2-item][data-size="sm"] {
|
|
2214
|
+
gap: 0.625rem;
|
|
2215
|
+
padding: 0.625rem 0.75rem;
|
|
2216
|
+
}
|
|
2217
|
+
[data-pont2-item][data-size="xs"] {
|
|
2218
|
+
gap: 0.5rem;
|
|
2219
|
+
padding: 0.5rem 0.625rem;
|
|
2220
|
+
}
|
|
2221
|
+
[data-slot="dropdown-menu-content"] [data-pont2-item][data-size="xs"] {
|
|
2222
|
+
padding: 0;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
:is(pont2-prim-item-media, [data-pont2-item-media]) {
|
|
2226
|
+
box-sizing: border-box;
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-shrink: 0;
|
|
2229
|
+
align-items: center;
|
|
2230
|
+
justify-content: center;
|
|
2231
|
+
gap: 0.5rem;
|
|
2232
|
+
}
|
|
2233
|
+
:is(pont2-prim-item-media, [data-pont2-item-media]) svg {
|
|
2234
|
+
pointer-events: none;
|
|
2235
|
+
}
|
|
2236
|
+
[data-pont2-item]:has([data-slot="item-description"]) :is(pont2-prim-item-media, [data-pont2-item-media]) {
|
|
2237
|
+
translate: 0 0.125rem;
|
|
2238
|
+
align-self: flex-start;
|
|
2239
|
+
}
|
|
2240
|
+
[data-pont2-item-media][data-variant="icon"] svg:not([class*="size-"]) {
|
|
2241
|
+
width: 1rem;
|
|
2242
|
+
height: 1rem;
|
|
2243
|
+
}
|
|
2244
|
+
[data-pont2-item-media][data-variant="image"] {
|
|
2245
|
+
width: 2.5rem;
|
|
2246
|
+
height: 2.5rem;
|
|
2247
|
+
overflow: hidden;
|
|
2248
|
+
border-radius: var(--pont2-radius-sm);
|
|
2249
|
+
}
|
|
2250
|
+
[data-pont2-item][data-size="sm"] [data-pont2-item-media][data-variant="image"] {
|
|
2251
|
+
width: 2rem;
|
|
2252
|
+
height: 2rem;
|
|
2253
|
+
}
|
|
2254
|
+
[data-pont2-item][data-size="xs"] [data-pont2-item-media][data-variant="image"] {
|
|
2255
|
+
width: 1.5rem;
|
|
2256
|
+
height: 1.5rem;
|
|
2257
|
+
}
|
|
2258
|
+
[data-pont2-item-media][data-variant="image"] img {
|
|
2259
|
+
display: block;
|
|
2260
|
+
width: 100%;
|
|
2261
|
+
height: 100%;
|
|
2262
|
+
max-width: none;
|
|
2263
|
+
object-fit: cover;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
:is(pont2-prim-item-content, [data-pont2-item-content]) {
|
|
2267
|
+
display: flex;
|
|
2268
|
+
flex: 1 1 0%;
|
|
2269
|
+
flex-direction: column;
|
|
2270
|
+
gap: 0.25rem;
|
|
2271
|
+
}
|
|
2272
|
+
:is(pont2-prim-item-content, [data-pont2-item-content]) + [data-slot="item-content"] {
|
|
2273
|
+
flex: none;
|
|
2274
|
+
}
|
|
2275
|
+
[data-pont2-item][data-size="xs"] :is(pont2-prim-item-content, [data-pont2-item-content]) {
|
|
2276
|
+
gap: 0;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
:is(pont2-prim-item-title, [data-pont2-item-title]) {
|
|
2280
|
+
display: flex;
|
|
2281
|
+
width: fit-content;
|
|
2282
|
+
align-items: center;
|
|
2283
|
+
gap: 0.5rem;
|
|
2284
|
+
overflow: hidden;
|
|
2285
|
+
-webkit-line-clamp: 1;
|
|
2286
|
+
-webkit-box-orient: vertical;
|
|
2287
|
+
font-size: var(--pont2-text-sm);
|
|
2288
|
+
line-height: var(--pont2-leading-snug);
|
|
2289
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
2290
|
+
text-underline-offset: 4px;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
:is(pont2-prim-item-description, [data-pont2-item-description]) {
|
|
2294
|
+
display: -webkit-box;
|
|
2295
|
+
overflow: hidden;
|
|
2296
|
+
-webkit-line-clamp: 2;
|
|
2297
|
+
-webkit-box-orient: vertical;
|
|
2298
|
+
margin: 0;
|
|
2299
|
+
color: var(--pont2-muted-foreground);
|
|
2300
|
+
text-align: left;
|
|
2301
|
+
font-size: var(--pont2-text-sm);
|
|
2302
|
+
line-height: var(--pont2-leading-normal);
|
|
2303
|
+
font-weight: var(--pont2-font-weight-normal);
|
|
2304
|
+
}
|
|
2305
|
+
[data-pont2-item][data-size="xs"] :is(pont2-prim-item-description, [data-pont2-item-description]) {
|
|
2306
|
+
font-size: var(--pont2-text-xs);
|
|
2307
|
+
}
|
|
2308
|
+
:is(pont2-prim-item-description, [data-pont2-item-description]) > a {
|
|
2309
|
+
color: inherit;
|
|
2310
|
+
text-decoration-line: underline;
|
|
2311
|
+
text-underline-offset: 4px;
|
|
2312
|
+
}
|
|
2313
|
+
:is(pont2-prim-item-description, [data-pont2-item-description]) > a:hover {
|
|
2314
|
+
color: var(--pont2-primary);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
:is(pont2-prim-item-actions, [data-pont2-item-actions]) {
|
|
2318
|
+
display: flex;
|
|
2319
|
+
align-items: center;
|
|
2320
|
+
gap: 0.5rem;
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
:is(pont2-prim-item-header, [data-pont2-item-header], pont2-prim-item-footer, [data-pont2-item-footer]) {
|
|
2324
|
+
display: flex;
|
|
2325
|
+
flex-basis: 100%;
|
|
2326
|
+
align-items: center;
|
|
2327
|
+
justify-content: space-between;
|
|
2328
|
+
gap: 0.5rem;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/* ../primitives/native-select/native-select.css */
|
|
2333
|
+
/*
|
|
2334
|
+
* NativeSelect. shadcn (Base UI, Vega):
|
|
2335
|
+
* wrapper: "group/native-select relative w-fit has-[select:disabled]:opacity-50"
|
|
2336
|
+
* select: "outline-none disabled:pointer-events-none disabled:cursor-not-allowed" + .cn-native-select
|
|
2337
|
+
* "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground
|
|
2338
|
+
* dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50
|
|
2339
|
+
* aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive
|
|
2340
|
+
* dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-md border
|
|
2341
|
+
* bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] select-none
|
|
2342
|
+
* focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8"
|
|
2343
|
+
* icon: "pointer-events-none absolute select-none" + "text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2"
|
|
2344
|
+
* (lucide ChevronDownIcon; pont2 draws it as the wrapper's ::after mask)
|
|
2345
|
+
* option / optgroup: "bg-[Canvas] text-[CanvasText]"
|
|
2346
|
+
*/
|
|
2347
|
+
@layer pont2.primitives {
|
|
2348
|
+
:is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper]) {
|
|
2349
|
+
box-sizing: border-box;
|
|
2350
|
+
position: relative;
|
|
2351
|
+
display: block;
|
|
2352
|
+
width: fit-content;
|
|
2353
|
+
}
|
|
2354
|
+
:is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper]):has(select:disabled) {
|
|
2355
|
+
opacity: 0.5;
|
|
2356
|
+
}
|
|
2357
|
+
:is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper])::after {
|
|
2358
|
+
--_pont2-native-select-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
2359
|
+
content: "";
|
|
2360
|
+
position: absolute;
|
|
2361
|
+
top: 50%;
|
|
2362
|
+
right: 0.625rem;
|
|
2363
|
+
width: 1rem;
|
|
2364
|
+
height: 1rem;
|
|
2365
|
+
translate: 0 -50%;
|
|
2366
|
+
pointer-events: none;
|
|
2367
|
+
user-select: none;
|
|
2368
|
+
background-color: var(--pont2-muted-foreground);
|
|
2369
|
+
-webkit-mask: var(--pont2-native-select-icon, var(--_pont2-native-select-default)) center / contain no-repeat;
|
|
2370
|
+
mask: var(--pont2-native-select-icon, var(--_pont2-native-select-default)) center / contain no-repeat;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
[data-pont2-native-select] {
|
|
2374
|
+
box-sizing: border-box;
|
|
2375
|
+
margin: 0;
|
|
2376
|
+
font-family: inherit;
|
|
2377
|
+
color: inherit;
|
|
2378
|
+
-webkit-appearance: none;
|
|
2379
|
+
appearance: none;
|
|
2380
|
+
|
|
2381
|
+
width: 100%;
|
|
2382
|
+
min-width: 0;
|
|
2383
|
+
height: 2.25rem;
|
|
2384
|
+
padding: 0.25rem 2rem 0.25rem 0.625rem;
|
|
2385
|
+
border: 1px solid var(--pont2-input);
|
|
2386
|
+
border-radius: var(--pont2-radius-md);
|
|
2387
|
+
background-color: transparent;
|
|
2388
|
+
font-size: var(--pont2-text-sm);
|
|
2389
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2390
|
+
user-select: none;
|
|
2391
|
+
outline: none;
|
|
2392
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
2393
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
2394
|
+
transition-property: color, box-shadow;
|
|
2395
|
+
transition-duration: var(--pont2-duration);
|
|
2396
|
+
transition-timing-function: var(--pont2-ease);
|
|
2397
|
+
}
|
|
2398
|
+
[data-pont2-native-select][data-size="sm"] {
|
|
2399
|
+
height: 2rem;
|
|
2400
|
+
}
|
|
2401
|
+
[data-pont2-native-select]::selection {
|
|
2402
|
+
background-color: var(--pont2-primary);
|
|
2403
|
+
color: var(--pont2-primary-foreground);
|
|
2404
|
+
}
|
|
2405
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-native-select] {
|
|
2406
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
2407
|
+
}
|
|
2408
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-native-select]:hover {
|
|
2409
|
+
background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
|
|
2410
|
+
}
|
|
2411
|
+
[data-pont2-native-select]:focus-visible {
|
|
2412
|
+
border-color: var(--pont2-ring);
|
|
2413
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
2414
|
+
}
|
|
2415
|
+
[data-pont2-native-select][aria-invalid="true"] {
|
|
2416
|
+
border-color: var(--pont2-destructive);
|
|
2417
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
2418
|
+
}
|
|
2419
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-native-select][aria-invalid="true"] {
|
|
2420
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
2421
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
2422
|
+
}
|
|
2423
|
+
[data-pont2-native-select]:disabled {
|
|
2424
|
+
pointer-events: none;
|
|
2425
|
+
cursor: not-allowed;
|
|
2426
|
+
}
|
|
2427
|
+
[data-pont2-native-select] :is(option, optgroup) {
|
|
2428
|
+
background-color: Canvas;
|
|
2429
|
+
color: CanvasText;
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
/* ../primitives/table/table.css */
|
|
2434
|
+
/*
|
|
2435
|
+
* Table. shadcn (Base UI, Vega):
|
|
2436
|
+
* container: "relative w-full overflow-x-auto"
|
|
2437
|
+
* table: "w-full caption-bottom text-sm"
|
|
2438
|
+
* header: "[&_tr]:border-b"
|
|
2439
|
+
* body: "[&_tr:last-child]:border-0"
|
|
2440
|
+
* footer: "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0"
|
|
2441
|
+
* row: "has-aria-expanded:bg-muted/50" + "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors"
|
|
2442
|
+
* (Base UI flavour also: "data-selected:bg-muted")
|
|
2443
|
+
* head: "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
2444
|
+
* cell: "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
2445
|
+
* caption: "text-muted-foreground mt-4 text-sm"
|
|
2446
|
+
*
|
|
2447
|
+
* Each part is selected two ways: structurally from the container
|
|
2448
|
+
* (`:is(pont2-prim-table, pont2-table) > table …`, works before upgrade / without JS) and by the
|
|
2449
|
+
* recipe attribute (`[data-pont2-table-row]`, works on any native table).
|
|
2450
|
+
* Checkbox cells also match pont2's form-associated checkbox, whose role lives
|
|
2451
|
+
* in ElementInternals and cannot be matched by `[role=checkbox]`.
|
|
2452
|
+
*/
|
|
2453
|
+
@layer pont2.primitives {
|
|
2454
|
+
:is(pont2-prim-table, pont2-table, [data-pont2-table-container]) {
|
|
2455
|
+
box-sizing: border-box;
|
|
2456
|
+
position: relative;
|
|
2457
|
+
display: block;
|
|
2458
|
+
width: 100%;
|
|
2459
|
+
overflow-x: auto;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
:is(:is(pont2-prim-table, pont2-table) > table, [data-pont2-table]) {
|
|
2463
|
+
width: 100%;
|
|
2464
|
+
caption-side: bottom;
|
|
2465
|
+
border-collapse: collapse;
|
|
2466
|
+
text-indent: 0;
|
|
2467
|
+
border-color: inherit;
|
|
2468
|
+
font-size: var(--pont2-text-sm);
|
|
2469
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
:is(:is(pont2-prim-table, pont2-table) > table > thead, [data-pont2-table-header]) tr {
|
|
2473
|
+
border-bottom: 1px solid var(--pont2-border);
|
|
2474
|
+
}
|
|
2475
|
+
:is(:is(pont2-prim-table, pont2-table) > table > tbody, [data-pont2-table-body]) tr:last-child {
|
|
2476
|
+
border: 0;
|
|
2477
|
+
}
|
|
2478
|
+
:is(:is(pont2-prim-table, pont2-table) > table > tfoot, [data-pont2-table-footer]) {
|
|
2479
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
2480
|
+
border-top: 1px solid var(--pont2-border);
|
|
2481
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
2482
|
+
}
|
|
2483
|
+
:is(:is(pont2-prim-table, pont2-table) > table > tfoot, [data-pont2-table-footer]) > tr:last-child {
|
|
2484
|
+
border-bottom-width: 0;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]) {
|
|
2488
|
+
border-bottom: 1px solid var(--pont2-border);
|
|
2489
|
+
transition-property: color, background-color, border-color;
|
|
2490
|
+
transition-duration: var(--pont2-duration);
|
|
2491
|
+
transition-timing-function: var(--pont2-ease);
|
|
2492
|
+
}
|
|
2493
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):hover,
|
|
2494
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):has([aria-expanded="true"]) {
|
|
2495
|
+
background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
|
|
2496
|
+
}
|
|
2497
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):is([data-state="selected"], [data-selected]:not([data-selected="false"])) {
|
|
2498
|
+
background-color: var(--pont2-muted);
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr > th, [data-pont2-table-head]) {
|
|
2502
|
+
height: 2.5rem;
|
|
2503
|
+
padding: 0 0.5rem;
|
|
2504
|
+
color: var(--pont2-foreground);
|
|
2505
|
+
text-align: left;
|
|
2506
|
+
vertical-align: middle;
|
|
2507
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
2508
|
+
white-space: nowrap;
|
|
2509
|
+
}
|
|
2510
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr > td, [data-pont2-table-cell]) {
|
|
2511
|
+
padding: 0.5rem;
|
|
2512
|
+
vertical-align: middle;
|
|
2513
|
+
white-space: nowrap;
|
|
2514
|
+
}
|
|
2515
|
+
:is(:is(pont2-prim-table, pont2-table) > table > * > tr > :is(th, td), [data-pont2-table-head], [data-pont2-table-cell]):has(
|
|
2516
|
+
[role="checkbox"],
|
|
2517
|
+
[data-slot="checkbox"]
|
|
2518
|
+
) {
|
|
2519
|
+
padding-right: 0;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
:is(:is(pont2-prim-table, pont2-table) > table > caption, [data-pont2-table-caption]) {
|
|
2523
|
+
margin-top: 1rem;
|
|
2524
|
+
color: var(--pont2-muted-foreground);
|
|
2525
|
+
font-size: var(--pont2-text-sm);
|
|
2526
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
/* --- end structural (A) --- */
|
|
2531
|
+
|
|
2532
|
+
/* --- widgets (B) --- */
|
|
2533
|
+
/* ../primitives/input-otp/input-otp.css */
|
|
2534
|
+
/*
|
|
2535
|
+
* InputOTP. shadcn (Base UI, Vega):
|
|
2536
|
+
* container: "flex items-center has-disabled:opacity-50" + .cn-input-otp (gap-2)
|
|
2537
|
+
* input: "disabled:cursor-not-allowed" (+ input-otp's own inline styles: absolutely
|
|
2538
|
+
* positioned over the slots, transparent text and caret)
|
|
2539
|
+
* group: "flex items-center" + .cn-input-otp-group (rounded-md, has-aria-invalid ring/border)
|
|
2540
|
+
* slot: "relative flex items-center justify-center data-[active=true]:z-10" + .cn-input-otp-slot
|
|
2541
|
+
* (dark:bg-input/30 border-input size-9 border-y border-r text-sm shadow-xs transition-all
|
|
2542
|
+
* first:rounded-l-md first:border-l last:rounded-r-md, active: border-ring ring-3 ring-ring/50,
|
|
2543
|
+
* aria-invalid: border-destructive, active+invalid ring-destructive/20)
|
|
2544
|
+
* caret: "pointer-events-none absolute inset-0 flex items-center justify-center"
|
|
2545
|
+
* caret line:.cn-input-otp-caret-line (animate-caret-blink bg-foreground h-4 w-px duration-1000)
|
|
2546
|
+
* separator: "flex items-center" + .cn-input-otp-separator (svg size-4)
|
|
2547
|
+
*
|
|
2548
|
+
* Slot invalid state: shadcn puts aria-invalid on each slot; pont2 also accepts it on the
|
|
2549
|
+
* InputOTP host, which mirrors it to the slots as data-invalid.
|
|
2550
|
+
*/
|
|
2551
|
+
@keyframes pont2-caret-blink {
|
|
2552
|
+
0%,
|
|
2553
|
+
70%,
|
|
2554
|
+
100% {
|
|
2555
|
+
opacity: 1;
|
|
2556
|
+
}
|
|
2557
|
+
20%,
|
|
2558
|
+
50% {
|
|
2559
|
+
opacity: 0;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
@layer pont2.primitives {
|
|
2564
|
+
:is(pont2-prim-input-otp, [data-pont2-input-otp]) {
|
|
2565
|
+
box-sizing: border-box;
|
|
2566
|
+
position: relative;
|
|
2567
|
+
display: flex;
|
|
2568
|
+
width: fit-content;
|
|
2569
|
+
align-items: center;
|
|
2570
|
+
gap: 0.5rem;
|
|
2571
|
+
cursor: text;
|
|
2572
|
+
user-select: none;
|
|
2573
|
+
}
|
|
2574
|
+
:is(pont2-prim-input-otp, [data-pont2-input-otp]):has(:disabled) {
|
|
2575
|
+
opacity: 0.5;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/* The real input, laid transparently over the slots (input-otp's inline styles). */
|
|
2579
|
+
[data-pont2-input-otp-input-wrapper] {
|
|
2580
|
+
position: absolute;
|
|
2581
|
+
inset: 0;
|
|
2582
|
+
z-index: 20;
|
|
2583
|
+
pointer-events: none;
|
|
2584
|
+
}
|
|
2585
|
+
[data-pont2-input-otp-input] {
|
|
2586
|
+
box-sizing: border-box;
|
|
2587
|
+
position: absolute;
|
|
2588
|
+
inset: 0;
|
|
2589
|
+
width: 100%;
|
|
2590
|
+
height: 100%;
|
|
2591
|
+
margin: 0;
|
|
2592
|
+
padding: 0;
|
|
2593
|
+
border: 0;
|
|
2594
|
+
outline: none;
|
|
2595
|
+
background: transparent;
|
|
2596
|
+
color: transparent;
|
|
2597
|
+
caret-color: transparent;
|
|
2598
|
+
font-family: monospace;
|
|
2599
|
+
font-size: 1px;
|
|
2600
|
+
letter-spacing: -0.5em;
|
|
2601
|
+
text-align: left;
|
|
2602
|
+
opacity: 1;
|
|
2603
|
+
pointer-events: all;
|
|
2604
|
+
-webkit-appearance: none;
|
|
2605
|
+
appearance: none;
|
|
2606
|
+
}
|
|
2607
|
+
[data-pont2-input-otp-input]::selection {
|
|
2608
|
+
background: transparent;
|
|
2609
|
+
}
|
|
2610
|
+
[data-pont2-input-otp-input]:disabled {
|
|
2611
|
+
cursor: not-allowed;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
:is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]) {
|
|
2615
|
+
box-sizing: border-box;
|
|
2616
|
+
display: flex;
|
|
2617
|
+
align-items: center;
|
|
2618
|
+
border-radius: var(--pont2-radius-md);
|
|
2619
|
+
}
|
|
2620
|
+
:is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]):has([aria-invalid="true"], [data-invalid]) {
|
|
2621
|
+
border-color: var(--pont2-destructive);
|
|
2622
|
+
box-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
2623
|
+
}
|
|
2624
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]):has([aria-invalid="true"], [data-invalid]) {
|
|
2625
|
+
box-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
:is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]) {
|
|
2629
|
+
box-sizing: border-box;
|
|
2630
|
+
position: relative;
|
|
2631
|
+
display: flex;
|
|
2632
|
+
align-items: center;
|
|
2633
|
+
justify-content: center;
|
|
2634
|
+
width: 2.25rem;
|
|
2635
|
+
height: 2.25rem;
|
|
2636
|
+
border-style: solid;
|
|
2637
|
+
border-color: var(--pont2-input);
|
|
2638
|
+
border-width: 1px 1px 1px 0;
|
|
2639
|
+
background-color: transparent;
|
|
2640
|
+
font-size: var(--pont2-text-sm);
|
|
2641
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2642
|
+
outline: none;
|
|
2643
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
2644
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
2645
|
+
transition-property: all;
|
|
2646
|
+
transition-duration: var(--pont2-duration);
|
|
2647
|
+
transition-timing-function: var(--pont2-ease);
|
|
2648
|
+
}
|
|
2649
|
+
:is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]):first-child {
|
|
2650
|
+
border-left-width: 1px;
|
|
2651
|
+
border-top-left-radius: var(--pont2-radius-md);
|
|
2652
|
+
border-bottom-left-radius: var(--pont2-radius-md);
|
|
2653
|
+
}
|
|
2654
|
+
:is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]):last-child {
|
|
2655
|
+
border-top-right-radius: var(--pont2-radius-md);
|
|
2656
|
+
border-bottom-right-radius: var(--pont2-radius-md);
|
|
2657
|
+
}
|
|
2658
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]) {
|
|
2659
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
[data-pont2-input-otp-slot][data-active="true"] {
|
|
2663
|
+
z-index: 10;
|
|
2664
|
+
border-color: var(--pont2-ring);
|
|
2665
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
2666
|
+
}
|
|
2667
|
+
[data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid]) {
|
|
2668
|
+
border-color: var(--pont2-destructive);
|
|
2669
|
+
}
|
|
2670
|
+
[data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid])[data-active="true"] {
|
|
2671
|
+
border-color: var(--pont2-destructive);
|
|
2672
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
2673
|
+
}
|
|
2674
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid])[data-active="true"] {
|
|
2675
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
[data-pont2-input-otp-caret] {
|
|
2679
|
+
pointer-events: none;
|
|
2680
|
+
position: absolute;
|
|
2681
|
+
inset: 0;
|
|
2682
|
+
display: flex;
|
|
2683
|
+
align-items: center;
|
|
2684
|
+
justify-content: center;
|
|
2685
|
+
}
|
|
2686
|
+
[data-pont2-input-otp-caret-line] {
|
|
2687
|
+
width: 1px;
|
|
2688
|
+
height: 1rem;
|
|
2689
|
+
background-color: var(--pont2-foreground);
|
|
2690
|
+
animation: pont2-caret-blink 1s ease-out infinite;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
:is(pont2-prim-input-otp-separator, [data-pont2-input-otp-separator]) {
|
|
2694
|
+
display: flex;
|
|
2695
|
+
align-items: center;
|
|
2696
|
+
}
|
|
2697
|
+
:is(pont2-prim-input-otp-separator, [data-pont2-input-otp-separator]) svg:not([class*="size-"]) {
|
|
2698
|
+
width: 1rem;
|
|
2699
|
+
height: 1rem;
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
/* ../primitives/progress/progress.css */
|
|
2704
|
+
/*
|
|
2705
|
+
* Progress. shadcn (Base UI, Vega):
|
|
2706
|
+
* root: "flex flex-wrap gap-3" (.cn-progress-root)
|
|
2707
|
+
* track: "relative flex w-full items-center overflow-x-hidden" + .cn-progress-track (bg-muted h-1.5 rounded-full)
|
|
2708
|
+
* indicator: "h-full transition-all" + .cn-progress-indicator (bg-primary)
|
|
2709
|
+
* label: .cn-progress-label (text-sm font-medium)
|
|
2710
|
+
* value: .cn-progress-value (text-muted-foreground ml-auto text-sm tabular-nums)
|
|
2711
|
+
*/
|
|
2712
|
+
@layer pont2.primitives {
|
|
2713
|
+
:is(pont2-prim-progress, [data-pont2-progress]) {
|
|
2714
|
+
box-sizing: border-box;
|
|
2715
|
+
display: flex;
|
|
2716
|
+
flex-wrap: wrap;
|
|
2717
|
+
gap: 0.75rem;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
[data-pont2-progress-track] {
|
|
2721
|
+
box-sizing: border-box;
|
|
2722
|
+
position: relative;
|
|
2723
|
+
display: flex;
|
|
2724
|
+
width: 100%;
|
|
2725
|
+
height: 0.375rem;
|
|
2726
|
+
align-items: center;
|
|
2727
|
+
overflow-x: hidden;
|
|
2728
|
+
border-radius: 9999px;
|
|
2729
|
+
background-color: var(--pont2-muted);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
[data-pont2-progress-indicator] {
|
|
2733
|
+
height: 100%;
|
|
2734
|
+
background-color: var(--pont2-primary);
|
|
2735
|
+
transition-property: all;
|
|
2736
|
+
transition-duration: var(--pont2-duration);
|
|
2737
|
+
transition-timing-function: var(--pont2-ease);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
:is(pont2-prim-progress-label, [data-pont2-progress-label]) {
|
|
2741
|
+
font-size: var(--pont2-text-sm);
|
|
2742
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2743
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
:is(pont2-prim-progress-value, [data-pont2-progress-value]) {
|
|
2747
|
+
margin-left: auto;
|
|
2748
|
+
color: var(--pont2-muted-foreground);
|
|
2749
|
+
font-size: var(--pont2-text-sm);
|
|
2750
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
2751
|
+
font-variant-numeric: tabular-nums;
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/* ../primitives/radio-group/radio-group.css */
|
|
2756
|
+
/*
|
|
2757
|
+
* RadioGroup. shadcn (Base UI, Vega):
|
|
2758
|
+
* group: "w-full" + .cn-radio-group "grid gap-3"
|
|
2759
|
+
* item: "group/radio-group-item peer relative aspect-square shrink-0 border outline-none
|
|
2760
|
+
* after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed
|
|
2761
|
+
* disabled:opacity-50" + .cn-radio-group-item
|
|
2762
|
+
* (border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground
|
|
2763
|
+
* data-checked:border-primary aria-invalid:… flex size-4 rounded-full focus-visible:ring-3 …)
|
|
2764
|
+
* indicator: .cn-radio-group-indicator "flex size-4 items-center justify-center"
|
|
2765
|
+
* icon: .cn-radio-group-indicator-icon "bg-primary-foreground absolute top-1/2 left-1/2 size-2
|
|
2766
|
+
* -translate-x-1/2 -translate-y-1/2 rounded-full"
|
|
2767
|
+
*/
|
|
2768
|
+
@layer pont2.primitives {
|
|
2769
|
+
:is(pont2-prim-radio-group, [data-pont2-radio-group]) {
|
|
2770
|
+
box-sizing: border-box;
|
|
2771
|
+
display: grid;
|
|
2772
|
+
gap: 0.75rem;
|
|
2773
|
+
width: 100%;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
:is(pont2-prim-radio-group-item, [data-pont2-radio-group-item]) {
|
|
2777
|
+
box-sizing: border-box;
|
|
2778
|
+
position: relative;
|
|
2779
|
+
display: flex;
|
|
2780
|
+
flex-shrink: 0;
|
|
2781
|
+
aspect-ratio: 1 / 1;
|
|
2782
|
+
width: 1rem;
|
|
2783
|
+
height: 1rem;
|
|
2784
|
+
border: 1px solid var(--pont2-input);
|
|
2785
|
+
border-radius: 9999px;
|
|
2786
|
+
outline: none;
|
|
2787
|
+
color: inherit;
|
|
2788
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
2789
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
:is(pont2-prim-radio-group-item, [data-pont2-radio-group-item])::after {
|
|
2793
|
+
content: "";
|
|
2794
|
+
position: absolute;
|
|
2795
|
+
inset: -0.5rem -0.75rem;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
:where(.dark, [data-theme="dark"]) :is(pont2-prim-radio-group-item, [data-pont2-radio-group-item]) {
|
|
2799
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
[data-pont2-radio-group-item][data-checked] {
|
|
2803
|
+
background-color: var(--pont2-primary);
|
|
2804
|
+
color: var(--pont2-primary-foreground);
|
|
2805
|
+
border-color: var(--pont2-primary);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
[data-pont2-radio-group-item]:focus-visible {
|
|
2809
|
+
border-color: var(--pont2-ring);
|
|
2810
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
/* aria-invalid may sit on the item or on the group */
|
|
2814
|
+
:is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item]) {
|
|
2815
|
+
border-color: var(--pont2-destructive);
|
|
2816
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
2817
|
+
}
|
|
2818
|
+
:is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item])[data-checked] {
|
|
2819
|
+
border-color: var(--pont2-primary);
|
|
2820
|
+
}
|
|
2821
|
+
:where(.dark, [data-theme="dark"]) :is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item]) {
|
|
2822
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
2823
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
[data-pont2-radio-group-item]:is(:disabled, [data-disabled]) {
|
|
2827
|
+
cursor: not-allowed;
|
|
2828
|
+
opacity: 0.5;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
/* Inside a choice-card FieldLabel the label draws the focus ring instead. */
|
|
2832
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item] {
|
|
2833
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
2834
|
+
}
|
|
2835
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item]:not([data-checked]) {
|
|
2836
|
+
border-color: var(--pont2-input);
|
|
2837
|
+
}
|
|
2838
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item][data-checked] {
|
|
2839
|
+
border-color: var(--pont2-primary);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
[data-pont2-radio-group-indicator] {
|
|
2843
|
+
display: flex;
|
|
2844
|
+
width: 1rem;
|
|
2845
|
+
height: 1rem;
|
|
2846
|
+
align-items: center;
|
|
2847
|
+
justify-content: center;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
[data-pont2-radio-group-indicator-icon] {
|
|
2851
|
+
position: absolute;
|
|
2852
|
+
top: 50%;
|
|
2853
|
+
left: 50%;
|
|
2854
|
+
width: 0.5rem;
|
|
2855
|
+
height: 0.5rem;
|
|
2856
|
+
translate: -50% -50%;
|
|
2857
|
+
border-radius: 9999px;
|
|
2858
|
+
background-color: var(--pont2-primary-foreground);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/* ../primitives/slider/slider.css */
|
|
2863
|
+
/*
|
|
2864
|
+
* Slider. shadcn (Base UI, Vega):
|
|
2865
|
+
* root: "data-horizontal:w-full data-vertical:h-full"
|
|
2866
|
+
* control: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50
|
|
2867
|
+
* data-vertical:h-full data-vertical:w-auto data-vertical:flex-col" + .cn-slider (data-vertical:min-h-40)
|
|
2868
|
+
* track: "relative grow overflow-hidden select-none" + .cn-slider-track
|
|
2869
|
+
* (bg-muted rounded-full data-horizontal:h-1.5 w-full, data-vertical:h-full w-1.5)
|
|
2870
|
+
* range: "select-none data-horizontal:h-full data-vertical:w-full" + .cn-slider-range (bg-primary)
|
|
2871
|
+
* thumb: "block shrink-0 select-none disabled:pointer-events-none disabled:opacity-50" + .cn-slider-thumb
|
|
2872
|
+
* (border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm
|
|
2873
|
+
* transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden)
|
|
2874
|
+
*
|
|
2875
|
+
* Base UI positions thumbs absolutely inside the control with thumbAlignment="edge";
|
|
2876
|
+
* `--_pont2-slider-thumb` is the thumb size those calculations use.
|
|
2877
|
+
*/
|
|
2878
|
+
@layer pont2.primitives {
|
|
2879
|
+
:is(pont2-prim-slider, pont2-slider, [data-pont2-slider]) {
|
|
2880
|
+
--_pont2-slider-thumb: 1rem;
|
|
2881
|
+
box-sizing: border-box;
|
|
2882
|
+
display: block;
|
|
2883
|
+
width: 100%;
|
|
2884
|
+
}
|
|
2885
|
+
:is(pont2-prim-slider, pont2-slider, [data-pont2-slider]):is([data-orientation="vertical"], [orientation="vertical"]) {
|
|
2886
|
+
display: inline-block;
|
|
2887
|
+
width: auto;
|
|
2888
|
+
height: 100%;
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
[data-pont2-slider-control] {
|
|
2892
|
+
box-sizing: border-box;
|
|
2893
|
+
position: relative;
|
|
2894
|
+
display: flex;
|
|
2895
|
+
width: 100%;
|
|
2896
|
+
min-height: var(--_pont2-slider-thumb);
|
|
2897
|
+
align-items: center;
|
|
2898
|
+
touch-action: none;
|
|
2899
|
+
user-select: none;
|
|
2900
|
+
}
|
|
2901
|
+
[data-pont2-slider-control][data-orientation="vertical"] {
|
|
2902
|
+
height: 100%;
|
|
2903
|
+
width: auto;
|
|
2904
|
+
min-width: var(--_pont2-slider-thumb);
|
|
2905
|
+
min-height: 10rem;
|
|
2906
|
+
flex-direction: column;
|
|
2907
|
+
justify-content: center;
|
|
2908
|
+
}
|
|
2909
|
+
[data-pont2-slider-control][data-disabled] {
|
|
2910
|
+
opacity: 0.5;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
[data-pont2-slider-track] {
|
|
2914
|
+
box-sizing: border-box;
|
|
2915
|
+
position: relative;
|
|
2916
|
+
flex-grow: 1;
|
|
2917
|
+
overflow: hidden;
|
|
2918
|
+
user-select: none;
|
|
2919
|
+
border-radius: 9999px;
|
|
2920
|
+
background-color: var(--pont2-muted);
|
|
2921
|
+
}
|
|
2922
|
+
[data-pont2-slider-track][data-orientation="horizontal"] {
|
|
2923
|
+
height: 0.375rem;
|
|
2924
|
+
width: 100%;
|
|
2925
|
+
}
|
|
2926
|
+
[data-pont2-slider-track][data-orientation="vertical"] {
|
|
2927
|
+
height: 100%;
|
|
2928
|
+
width: 0.375rem;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
[data-pont2-slider-range] {
|
|
2932
|
+
position: absolute;
|
|
2933
|
+
user-select: none;
|
|
2934
|
+
background-color: var(--pont2-primary);
|
|
2935
|
+
}
|
|
2936
|
+
[data-pont2-slider-range][data-orientation="horizontal"] {
|
|
2937
|
+
top: 0;
|
|
2938
|
+
height: 100%;
|
|
2939
|
+
}
|
|
2940
|
+
[data-pont2-slider-range][data-orientation="vertical"] {
|
|
2941
|
+
left: 0;
|
|
2942
|
+
width: 100%;
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
[data-pont2-slider-thumb] {
|
|
2946
|
+
box-sizing: border-box;
|
|
2947
|
+
position: absolute;
|
|
2948
|
+
display: block;
|
|
2949
|
+
flex-shrink: 0;
|
|
2950
|
+
user-select: none;
|
|
2951
|
+
width: var(--_pont2-slider-thumb);
|
|
2952
|
+
height: var(--_pont2-slider-thumb);
|
|
2953
|
+
border: 1px solid var(--pont2-primary);
|
|
2954
|
+
border-radius: 9999px;
|
|
2955
|
+
background-color: white;
|
|
2956
|
+
outline: none;
|
|
2957
|
+
--pont2-shadow: var(--pont2-shadow-sm);
|
|
2958
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
2959
|
+
transition-property: color, box-shadow;
|
|
2960
|
+
transition-duration: var(--pont2-duration);
|
|
2961
|
+
transition-timing-function: var(--pont2-ease);
|
|
2962
|
+
}
|
|
2963
|
+
[data-pont2-slider-thumb][data-orientation="horizontal"] {
|
|
2964
|
+
top: 50%;
|
|
2965
|
+
translate: 0 -50%;
|
|
2966
|
+
}
|
|
2967
|
+
[data-pont2-slider-thumb][data-orientation="vertical"] {
|
|
2968
|
+
left: 50%;
|
|
2969
|
+
translate: -50% 0;
|
|
2970
|
+
}
|
|
2971
|
+
[data-pont2-slider-thumb]:hover,
|
|
2972
|
+
[data-pont2-slider-thumb]:focus-visible {
|
|
2973
|
+
--pont2-ring-shadow: 0 0 0 4px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
2974
|
+
}
|
|
2975
|
+
/* `disabled:` in shadcn never matches the thumb div; the control's opacity covers it. */
|
|
2976
|
+
[data-pont2-slider-thumb][data-disabled] {
|
|
2977
|
+
pointer-events: none;
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
/* ../primitives/switch/switch.css */
|
|
2982
|
+
/*
|
|
2983
|
+
* Switch. shadcn (Base UI, Vega):
|
|
2984
|
+
* root: "peer group/switch relative inline-flex items-center transition-all outline-none
|
|
2985
|
+
* after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed
|
|
2986
|
+
* data-disabled:opacity-50" + .cn-switch
|
|
2987
|
+
* (data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80
|
|
2988
|
+
* shrink-0 rounded-full border border-transparent shadow-xs focus-visible:ring-3 …
|
|
2989
|
+
* data-[size=default]:h-[18.4px] w-[32px], data-[size=sm]:h-[14px] w-[24px])
|
|
2990
|
+
* thumb: "pointer-events-none block ring-0 transition-transform" + .cn-switch-thumb
|
|
2991
|
+
* (bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground
|
|
2992
|
+
* rounded-full size-4 | size-3, data-checked:translate-x-[calc(100%-2px)])
|
|
2993
|
+
*
|
|
2994
|
+
* The thumb's state attributes come from the root's render; `data-size` lives on
|
|
2995
|
+
* the root, so size rules select `[data-size] > thumb` (shadcn's group/switch).
|
|
2996
|
+
*/
|
|
2997
|
+
@layer pont2.primitives {
|
|
2998
|
+
:is(pont2-prim-switch, pont2-switch, [data-pont2-switch]) {
|
|
2999
|
+
box-sizing: border-box;
|
|
3000
|
+
position: relative;
|
|
3001
|
+
display: inline-flex;
|
|
3002
|
+
flex-shrink: 0;
|
|
3003
|
+
align-items: center;
|
|
3004
|
+
height: 18.4px;
|
|
3005
|
+
width: 32px;
|
|
3006
|
+
border: 1px solid transparent;
|
|
3007
|
+
border-radius: 9999px;
|
|
3008
|
+
background-color: var(--pont2-input);
|
|
3009
|
+
outline: none;
|
|
3010
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
3011
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3012
|
+
transition-property: all;
|
|
3013
|
+
transition-duration: var(--pont2-duration);
|
|
3014
|
+
transition-timing-function: var(--pont2-ease);
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
:is(pont2-prim-switch, pont2-switch, [data-pont2-switch])::after {
|
|
3018
|
+
content: "";
|
|
3019
|
+
position: absolute;
|
|
3020
|
+
inset: -0.5rem -0.75rem;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
:is(pont2-prim-switch, pont2-switch, [data-pont2-switch]):is([data-size="sm"], [size="sm"]) {
|
|
3024
|
+
height: 14px;
|
|
3025
|
+
width: 24px;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
[data-pont2-switch][data-checked] {
|
|
3029
|
+
background-color: var(--pont2-primary);
|
|
3030
|
+
}
|
|
3031
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-switch][data-unchecked] {
|
|
3032
|
+
background-color: color-mix(in oklab, var(--pont2-input) 80%, transparent);
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
[data-pont2-switch]:focus-visible {
|
|
3036
|
+
border-color: var(--pont2-ring);
|
|
3037
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
[data-pont2-switch][aria-invalid="true"] {
|
|
3041
|
+
border-color: var(--pont2-destructive);
|
|
3042
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
3043
|
+
}
|
|
3044
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-switch][aria-invalid="true"] {
|
|
3045
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
3046
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
[data-pont2-switch][data-disabled] {
|
|
3050
|
+
cursor: not-allowed;
|
|
3051
|
+
opacity: 0.5;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
/* Inside a choice-card FieldLabel the label draws the focus ring instead. */
|
|
3055
|
+
[data-slot="field-label"]:has(:focus-visible) [data-pont2-switch] {
|
|
3056
|
+
--pont2-ring-shadow: 0 0 #0000;
|
|
3057
|
+
border-color: transparent;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
[data-pont2-switch-thumb] {
|
|
3061
|
+
box-sizing: border-box;
|
|
3062
|
+
pointer-events: none;
|
|
3063
|
+
display: block;
|
|
3064
|
+
width: 1rem;
|
|
3065
|
+
height: 1rem;
|
|
3066
|
+
border-radius: 9999px;
|
|
3067
|
+
background-color: var(--pont2-background);
|
|
3068
|
+
translate: 0 0;
|
|
3069
|
+
transition-property: translate, transform;
|
|
3070
|
+
transition-duration: var(--pont2-duration);
|
|
3071
|
+
transition-timing-function: var(--pont2-ease);
|
|
3072
|
+
}
|
|
3073
|
+
[data-pont2-switch][data-size="sm"] > [data-pont2-switch-thumb] {
|
|
3074
|
+
width: 0.75rem;
|
|
3075
|
+
height: 0.75rem;
|
|
3076
|
+
}
|
|
3077
|
+
[data-pont2-switch-thumb][data-checked] {
|
|
3078
|
+
translate: calc(100% - 2px) 0;
|
|
3079
|
+
}
|
|
3080
|
+
:dir(rtl) > [data-pont2-switch-thumb][data-checked] {
|
|
3081
|
+
translate: calc(-100% + 2px) 0;
|
|
3082
|
+
}
|
|
3083
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-switch-thumb][data-unchecked] {
|
|
3084
|
+
background-color: var(--pont2-foreground);
|
|
3085
|
+
}
|
|
3086
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-switch-thumb][data-checked] {
|
|
3087
|
+
background-color: var(--pont2-primary-foreground);
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
/* ../primitives/tabs/tabs.css */
|
|
3092
|
+
/*
|
|
3093
|
+
* Tabs. shadcn (Base UI, Vega):
|
|
3094
|
+
* root: "group/tabs flex data-horizontal:flex-col" + .cn-tabs (gap-2)
|
|
3095
|
+
* list: "group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground
|
|
3096
|
+
* group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col"
|
|
3097
|
+
* default: bg-muted · line: gap-1 bg-transparent
|
|
3098
|
+
* + .cn-tabs-list (rounded-lg p-[3px] group-data-horizontal/tabs:h-9 data-[variant=line]:rounded-none)
|
|
3099
|
+
* trigger: "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap
|
|
3100
|
+
* text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start
|
|
3101
|
+
* hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50
|
|
3102
|
+
* focus-visible:outline-1 focus-visible:outline-ring disabled/aria-disabled:pointer-events-none opacity-50
|
|
3103
|
+
* dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
3104
|
+
* + line-variant overrides, data-active:bg-background text-foreground (dark: border-input bg-input/30),
|
|
3105
|
+
* + the line indicator drawn with ::after
|
|
3106
|
+
* + .cn-tabs-trigger (gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium
|
|
3107
|
+
* default-list active shadow-sm, svg size-4, inline icon padding)
|
|
3108
|
+
* content: "flex-1 outline-none" + .cn-tabs-content (text-sm)
|
|
3109
|
+
*
|
|
3110
|
+
* shadcn's group/tabs and group/tabs-list selectors become ancestor selectors on
|
|
3111
|
+
* the pont2 root / list hosts.
|
|
3112
|
+
*/
|
|
3113
|
+
@layer pont2.primitives {
|
|
3114
|
+
:is(pont2-prim-tabs, [data-pont2-tabs]) {
|
|
3115
|
+
box-sizing: border-box;
|
|
3116
|
+
display: flex;
|
|
3117
|
+
flex-direction: column;
|
|
3118
|
+
gap: 0.5rem;
|
|
3119
|
+
}
|
|
3120
|
+
:is(pont2-prim-tabs, [data-pont2-tabs]):is([data-orientation="vertical"], [orientation="vertical"]) {
|
|
3121
|
+
flex-direction: row;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
:is(pont2-prim-tabs-list, [data-pont2-tabs-list]) {
|
|
3125
|
+
box-sizing: border-box;
|
|
3126
|
+
display: inline-flex;
|
|
3127
|
+
width: fit-content;
|
|
3128
|
+
height: 2.25rem;
|
|
3129
|
+
align-items: center;
|
|
3130
|
+
justify-content: center;
|
|
3131
|
+
padding: 3px;
|
|
3132
|
+
border-radius: var(--pont2-radius-lg);
|
|
3133
|
+
background-color: var(--pont2-muted);
|
|
3134
|
+
color: var(--pont2-muted-foreground);
|
|
3135
|
+
}
|
|
3136
|
+
[data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-list] {
|
|
3137
|
+
height: fit-content;
|
|
3138
|
+
flex-direction: column;
|
|
3139
|
+
}
|
|
3140
|
+
[data-pont2-tabs-list][data-variant="line"] {
|
|
3141
|
+
gap: 0.25rem;
|
|
3142
|
+
background-color: transparent;
|
|
3143
|
+
border-radius: 0;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
:is(pont2-prim-tabs-trigger, [data-pont2-tabs-trigger]) {
|
|
3147
|
+
box-sizing: border-box;
|
|
3148
|
+
position: relative;
|
|
3149
|
+
display: inline-flex;
|
|
3150
|
+
flex: 1 1 0%;
|
|
3151
|
+
height: calc(100% - 1px);
|
|
3152
|
+
align-items: center;
|
|
3153
|
+
justify-content: center;
|
|
3154
|
+
gap: 0.375rem;
|
|
3155
|
+
padding: 0.25rem 0.5rem;
|
|
3156
|
+
white-space: nowrap;
|
|
3157
|
+
border: 1px solid transparent;
|
|
3158
|
+
border-radius: var(--pont2-radius-md);
|
|
3159
|
+
color: color-mix(in oklab, var(--pont2-foreground) 60%, transparent);
|
|
3160
|
+
font-size: var(--pont2-text-sm);
|
|
3161
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3162
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
3163
|
+
cursor: default;
|
|
3164
|
+
user-select: none;
|
|
3165
|
+
outline: none;
|
|
3166
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3167
|
+
transition-property: all;
|
|
3168
|
+
transition-duration: var(--pont2-duration);
|
|
3169
|
+
transition-timing-function: var(--pont2-ease);
|
|
3170
|
+
}
|
|
3171
|
+
[data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-trigger] {
|
|
3172
|
+
width: 100%;
|
|
3173
|
+
justify-content: flex-start;
|
|
3174
|
+
}
|
|
3175
|
+
[data-pont2-tabs-trigger]:hover {
|
|
3176
|
+
color: var(--pont2-foreground);
|
|
3177
|
+
}
|
|
3178
|
+
[data-pont2-tabs-trigger]:focus-visible {
|
|
3179
|
+
border-color: var(--pont2-ring);
|
|
3180
|
+
--pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
3181
|
+
outline: 1px solid var(--pont2-ring);
|
|
3182
|
+
}
|
|
3183
|
+
[data-pont2-tabs-trigger]:is([data-disabled], [aria-disabled="true"]) {
|
|
3184
|
+
pointer-events: none;
|
|
3185
|
+
opacity: 0.5;
|
|
3186
|
+
}
|
|
3187
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger] {
|
|
3188
|
+
color: var(--pont2-muted-foreground);
|
|
3189
|
+
}
|
|
3190
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger]:hover {
|
|
3191
|
+
color: var(--pont2-foreground);
|
|
3192
|
+
}
|
|
3193
|
+
[data-pont2-tabs-trigger] svg {
|
|
3194
|
+
pointer-events: none;
|
|
3195
|
+
flex-shrink: 0;
|
|
3196
|
+
}
|
|
3197
|
+
[data-pont2-tabs-trigger] svg:not([class*="size-"]) {
|
|
3198
|
+
width: 1rem;
|
|
3199
|
+
height: 1rem;
|
|
3200
|
+
}
|
|
3201
|
+
[data-pont2-tabs-trigger]:has([data-icon="inline-end"]) {
|
|
3202
|
+
padding-right: 0.375rem;
|
|
3203
|
+
}
|
|
3204
|
+
[data-pont2-tabs-trigger]:has([data-icon="inline-start"]) {
|
|
3205
|
+
padding-left: 0.375rem;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
/* data-active */
|
|
3209
|
+
[data-pont2-tabs-trigger][data-active] {
|
|
3210
|
+
background-color: var(--pont2-background);
|
|
3211
|
+
color: var(--pont2-foreground);
|
|
3212
|
+
}
|
|
3213
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger][data-active] {
|
|
3214
|
+
border-color: var(--pont2-input);
|
|
3215
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
3216
|
+
color: var(--pont2-foreground);
|
|
3217
|
+
}
|
|
3218
|
+
[data-pont2-tabs-list]:not([data-variant="line"]) > [data-pont2-tabs-trigger][data-active] {
|
|
3219
|
+
--pont2-shadow: var(--pont2-shadow-sm);
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
/* line variant */
|
|
3223
|
+
[data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger],
|
|
3224
|
+
[data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active] {
|
|
3225
|
+
background-color: transparent;
|
|
3226
|
+
--pont2-shadow: 0 0 #0000;
|
|
3227
|
+
}
|
|
3228
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active] {
|
|
3229
|
+
border-color: transparent;
|
|
3230
|
+
background-color: transparent;
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
/* the line indicator */
|
|
3234
|
+
[data-pont2-tabs-trigger]::after {
|
|
3235
|
+
content: "";
|
|
3236
|
+
position: absolute;
|
|
3237
|
+
background-color: var(--pont2-foreground);
|
|
3238
|
+
opacity: 0;
|
|
3239
|
+
transition: opacity var(--pont2-duration) var(--pont2-ease);
|
|
3240
|
+
}
|
|
3241
|
+
[data-pont2-tabs]:not([data-orientation="vertical"]) [data-pont2-tabs-trigger]::after {
|
|
3242
|
+
left: 0;
|
|
3243
|
+
right: 0;
|
|
3244
|
+
bottom: -5px;
|
|
3245
|
+
height: 0.125rem;
|
|
3246
|
+
}
|
|
3247
|
+
[data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-trigger]::after {
|
|
3248
|
+
top: 0;
|
|
3249
|
+
bottom: 0;
|
|
3250
|
+
right: -0.25rem;
|
|
3251
|
+
width: 0.125rem;
|
|
3252
|
+
}
|
|
3253
|
+
[data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active]::after {
|
|
3254
|
+
opacity: 1;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
:is(pont2-prim-tabs-content, [data-pont2-tabs-content]) {
|
|
3258
|
+
box-sizing: border-box;
|
|
3259
|
+
display: block;
|
|
3260
|
+
flex: 1 1 0%;
|
|
3261
|
+
outline: none;
|
|
3262
|
+
font-size: var(--pont2-text-sm);
|
|
3263
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
/* --- end widgets (B) --- */
|
|
3268
|
+
|
|
3269
|
+
/* --- overlays (C) --- */
|
|
3270
|
+
/* ../core/popup/popup.css */
|
|
3271
|
+
/*
|
|
3272
|
+
* Shared popup machinery (core/popup). Every popup surface carries
|
|
3273
|
+
* `data-pont2-popup` (PopupContent's identity); every root carries
|
|
3274
|
+
* `data-pont2-popup-root` (PopupRoot's identity).
|
|
3275
|
+
*
|
|
3276
|
+
* The enter/exit animations port tw-animate-css as used by shadcn:
|
|
3277
|
+
* data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95
|
|
3278
|
+
* data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95
|
|
3279
|
+
* data-[side=bottom]:slide-in-from-top-2 … duration-100
|
|
3280
|
+
* origin-(--transform-origin)
|
|
3281
|
+
* A component opts into the slide by setting the --pont2-enter-* variables;
|
|
3282
|
+
* the defaults below are exactly that shadcn recipe.
|
|
3283
|
+
*/
|
|
3284
|
+
@layer pont2.base {
|
|
3285
|
+
/* Coordinators (Base UI Root renders no element): no box, no role. */
|
|
3286
|
+
[data-pont2-popup-root] {
|
|
3287
|
+
display: contents;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
@keyframes pont2-popup-enter {
|
|
3291
|
+
from {
|
|
3292
|
+
opacity: var(--pont2-enter-opacity, 1);
|
|
3293
|
+
scale: var(--pont2-enter-scale, 1);
|
|
3294
|
+
translate: var(--pont2-enter-translate-x, 0) var(--pont2-enter-translate-y, 0);
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
@keyframes pont2-popup-exit {
|
|
3298
|
+
to {
|
|
3299
|
+
opacity: var(--pont2-exit-opacity, 1);
|
|
3300
|
+
scale: var(--pont2-exit-scale, 1);
|
|
3301
|
+
translate: var(--pont2-exit-translate-x, 0) var(--pont2-exit-translate-y, 0);
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
@layer pont2.primitives {
|
|
3307
|
+
[data-pont2-popup] {
|
|
3308
|
+
/* Undo the UA popover box (inset:0; margin:auto; border; padding; Canvas colours) */
|
|
3309
|
+
position: fixed;
|
|
3310
|
+
inset: auto;
|
|
3311
|
+
left: var(--pont2-popup-x, 0px);
|
|
3312
|
+
top: var(--pont2-popup-y, 0px);
|
|
3313
|
+
margin: 0;
|
|
3314
|
+
border: 0;
|
|
3315
|
+
padding: 0;
|
|
3316
|
+
box-sizing: border-box;
|
|
3317
|
+
overflow: visible;
|
|
3318
|
+
color: inherit;
|
|
3319
|
+
background: transparent;
|
|
3320
|
+
font-family: inherit;
|
|
3321
|
+
transform-origin: var(--pont2-transform-origin, center);
|
|
3322
|
+
|
|
3323
|
+
/* shadcn: fade-in-0 zoom-in-95 / fade-out-0 zoom-out-95, duration-100 */
|
|
3324
|
+
--pont2-enter-opacity: 0;
|
|
3325
|
+
--pont2-enter-scale: 0.95;
|
|
3326
|
+
--pont2-exit-opacity: 0;
|
|
3327
|
+
--pont2-exit-scale: 0.95;
|
|
3328
|
+
--pont2-popup-duration: 100ms;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
/* An author `display` must never reveal a closed popover. */
|
|
3332
|
+
[data-pont2-popup]:not(:popover-open) {
|
|
3333
|
+
display: none;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
/* data-[side=…]:slide-in-from-…-2 (logical sides: cn-*-content-logical) */
|
|
3337
|
+
[data-pont2-popup][data-side="bottom"] {
|
|
3338
|
+
--pont2-enter-translate-y: -0.5rem;
|
|
3339
|
+
}
|
|
3340
|
+
[data-pont2-popup][data-side="top"] {
|
|
3341
|
+
--pont2-enter-translate-y: 0.5rem;
|
|
3342
|
+
}
|
|
3343
|
+
[data-pont2-popup]:is([data-side="left"], [data-side="inline-start"]) {
|
|
3344
|
+
--pont2-enter-translate-x: 0.5rem;
|
|
3345
|
+
}
|
|
3346
|
+
[data-pont2-popup]:is([data-side="right"], [data-side="inline-end"]) {
|
|
3347
|
+
--pont2-enter-translate-x: -0.5rem;
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
[data-pont2-popup][data-open] {
|
|
3351
|
+
animation: pont2-popup-enter var(--pont2-popup-duration) var(--pont2-ease);
|
|
3352
|
+
}
|
|
3353
|
+
[data-pont2-popup][data-closed] {
|
|
3354
|
+
animation: pont2-popup-exit var(--pont2-popup-duration) var(--pont2-ease) forwards;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3358
|
+
[data-pont2-popup]:is([data-open], [data-closed]) {
|
|
3359
|
+
animation: none;
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
/* ../primitives/popover/popover.css */
|
|
3365
|
+
/*
|
|
3366
|
+
* Popover. shadcn (Base UI, Vega):
|
|
3367
|
+
* content: "z-50 w-72 origin-(--transform-origin) outline-hidden" + .cn-popover-content
|
|
3368
|
+
* "bg-popover text-popover-foreground flex flex-col gap-4 rounded-md p-4 text-sm
|
|
3369
|
+
* shadow-md ring-1 ring-foreground/10 duration-100" + enter/exit (core/popup/popup.css)
|
|
3370
|
+
* header: "flex flex-col gap-1 text-sm"; title: "font-medium";
|
|
3371
|
+
* description: "text-muted-foreground"
|
|
3372
|
+
*/
|
|
3373
|
+
@layer pont2.primitives {
|
|
3374
|
+
:is(pont2-prim-popover-content, [data-pont2-popover-content]) {
|
|
3375
|
+
display: flex;
|
|
3376
|
+
flex-direction: column;
|
|
3377
|
+
gap: 1rem;
|
|
3378
|
+
width: 18rem;
|
|
3379
|
+
padding: 1rem;
|
|
3380
|
+
border-radius: var(--pont2-radius-md);
|
|
3381
|
+
background-color: var(--pont2-popover);
|
|
3382
|
+
color: var(--pont2-popover-foreground);
|
|
3383
|
+
font-size: var(--pont2-text-sm);
|
|
3384
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3385
|
+
outline: none;
|
|
3386
|
+
--pont2-shadow: var(--pont2-shadow-md);
|
|
3387
|
+
--pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
|
|
3388
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
:is(pont2-prim-popover-header, [data-pont2-popover-header]) {
|
|
3392
|
+
display: flex;
|
|
3393
|
+
flex-direction: column;
|
|
3394
|
+
gap: 0.25rem;
|
|
3395
|
+
font-size: var(--pont2-text-sm);
|
|
3396
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
:is(pont2-prim-popover-title, [data-pont2-popover-title]) {
|
|
3400
|
+
display: block;
|
|
3401
|
+
margin: 0;
|
|
3402
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
:is(pont2-prim-popover-description, [data-pont2-popover-description]) {
|
|
3406
|
+
display: block;
|
|
3407
|
+
margin: 0;
|
|
3408
|
+
color: var(--pont2-muted-foreground);
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
/* ../primitives/dropdown-menu/dropdown-menu.css */
|
|
3413
|
+
/*
|
|
3414
|
+
* DropdownMenu. shadcn (Base UI, Vega). Enter/exit animation and popover
|
|
3415
|
+
* reset come from core/popup/popup.css ([data-pont2-popup]).
|
|
3416
|
+
*
|
|
3417
|
+
* The highlighted item has real focus, so shadcn's `focus:` variants port
|
|
3418
|
+
* as `:focus`; Base UI's `data-highlighted` is set too and selected alike.
|
|
3419
|
+
*/
|
|
3420
|
+
@layer pont2.primitives {
|
|
3421
|
+
/* content: "max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin)
|
|
3422
|
+
overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden"
|
|
3423
|
+
+ .cn-dropdown-menu-content "ring-foreground/10 bg-popover text-popover-foreground
|
|
3424
|
+
min-w-32 rounded-md p-1 shadow-md ring-1 duration-100" */
|
|
3425
|
+
:is(pont2-prim-dropdown-menu-content, [data-pont2-dropdown-menu-content]) {
|
|
3426
|
+
display: block;
|
|
3427
|
+
max-height: var(--pont2-available-height);
|
|
3428
|
+
width: var(--pont2-anchor-width);
|
|
3429
|
+
min-width: 8rem;
|
|
3430
|
+
overflow-x: hidden;
|
|
3431
|
+
overflow-y: auto;
|
|
3432
|
+
padding: 0.25rem;
|
|
3433
|
+
border-radius: var(--pont2-radius-md);
|
|
3434
|
+
background-color: var(--pont2-popover);
|
|
3435
|
+
color: var(--pont2-popover-foreground);
|
|
3436
|
+
outline: none;
|
|
3437
|
+
--pont2-shadow: var(--pont2-shadow-md);
|
|
3438
|
+
--pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
|
|
3439
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3440
|
+
}
|
|
3441
|
+
[data-pont2-dropdown-menu-content][data-closed] {
|
|
3442
|
+
overflow: hidden;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
/* sub content: "w-auto" + .cn-dropdown-menu-sub-content "min-w-[96px] shadow-lg" */
|
|
3446
|
+
:is(pont2-prim-dropdown-menu-sub-content, [data-pont2-dropdown-menu-sub-content]) {
|
|
3447
|
+
width: auto;
|
|
3448
|
+
min-width: 96px;
|
|
3449
|
+
--pont2-shadow: var(--pont2-shadow-lg);
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
/* Items: shared base ("relative flex cursor-default items-center outline-hidden select-none
|
|
3453
|
+
data-disabled:pointer-events-none data-disabled:opacity-50") + vega "gap-2 rounded-sm
|
|
3454
|
+
px-2 py-1.5 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4" */
|
|
3455
|
+
:is(pont2-prim-dropdown-menu-item, pont2-prim-dropdown-menu-checkbox-item, pont2-prim-dropdown-menu-radio-item,
|
|
3456
|
+
pont2-prim-dropdown-menu-sub-trigger, [data-pont2-menu-item]) {
|
|
3457
|
+
position: relative;
|
|
3458
|
+
display: flex;
|
|
3459
|
+
align-items: center;
|
|
3460
|
+
gap: 0.5rem;
|
|
3461
|
+
padding: 0.375rem 0.5rem;
|
|
3462
|
+
border-radius: var(--pont2-radius-sm);
|
|
3463
|
+
font-size: var(--pont2-text-sm);
|
|
3464
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3465
|
+
cursor: default;
|
|
3466
|
+
outline: none;
|
|
3467
|
+
user-select: none;
|
|
3468
|
+
}
|
|
3469
|
+
[data-pont2-menu-item] svg {
|
|
3470
|
+
pointer-events: none;
|
|
3471
|
+
flex-shrink: 0;
|
|
3472
|
+
}
|
|
3473
|
+
[data-pont2-menu-item] svg:not([class*="size-"]) {
|
|
3474
|
+
width: 1rem;
|
|
3475
|
+
height: 1rem;
|
|
3476
|
+
}
|
|
3477
|
+
[data-pont2-menu-item][data-inset] {
|
|
3478
|
+
padding-left: 2rem;
|
|
3479
|
+
}
|
|
3480
|
+
[data-pont2-menu-item][data-disabled] {
|
|
3481
|
+
pointer-events: none;
|
|
3482
|
+
opacity: 0.5;
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
/* focus:bg-accent focus:text-accent-foreground (+ not-destructive **:text-accent-foreground) */
|
|
3486
|
+
[data-pont2-menu-item]:is(:focus, [data-highlighted]),
|
|
3487
|
+
[data-pont2-dropdown-menu-sub-trigger][data-popup-open] {
|
|
3488
|
+
background-color: var(--pont2-accent);
|
|
3489
|
+
color: var(--pont2-accent-foreground);
|
|
3490
|
+
}
|
|
3491
|
+
[data-pont2-menu-item]:not([data-variant="destructive"]):is(:focus, [data-highlighted]) * {
|
|
3492
|
+
color: var(--pont2-accent-foreground);
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
/* variant=destructive */
|
|
3496
|
+
[data-pont2-dropdown-menu-item][data-variant="destructive"],
|
|
3497
|
+
[data-pont2-dropdown-menu-item][data-variant="destructive"] > svg {
|
|
3498
|
+
color: var(--pont2-destructive);
|
|
3499
|
+
}
|
|
3500
|
+
[data-pont2-dropdown-menu-item][data-variant="destructive"]:is(:focus, [data-highlighted]) {
|
|
3501
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
|
|
3502
|
+
color: var(--pont2-destructive);
|
|
3503
|
+
}
|
|
3504
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-dropdown-menu-item][data-variant="destructive"]:is(:focus, [data-highlighted]) {
|
|
3505
|
+
background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
/* checkbox / radio items: "py-1.5 pr-8 pl-2" with the indicator at right-2 */
|
|
3509
|
+
:is([data-pont2-dropdown-menu-checkbox-item], [data-pont2-dropdown-menu-radio-item]) {
|
|
3510
|
+
padding: 0.375rem 2rem 0.375rem 0.5rem;
|
|
3511
|
+
}
|
|
3512
|
+
:is([data-pont2-dropdown-menu-checkbox-item], [data-pont2-dropdown-menu-radio-item])[data-inset] {
|
|
3513
|
+
padding-left: 2rem;
|
|
3514
|
+
}
|
|
3515
|
+
/* .cn-dropdown-menu-item-indicator "pointer-events-none absolute right-2 flex items-center justify-center" */
|
|
3516
|
+
[data-pont2-dropdown-menu-item-indicator] {
|
|
3517
|
+
pointer-events: none;
|
|
3518
|
+
position: absolute;
|
|
3519
|
+
right: 0.5rem;
|
|
3520
|
+
display: flex;
|
|
3521
|
+
align-items: center;
|
|
3522
|
+
justify-content: center;
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
/* sub trigger chevron: "cn-rtl-flip ml-auto" */
|
|
3526
|
+
[data-pont2-dropdown-menu-sub-trigger] > svg[data-icon-name="chevron-right"] {
|
|
3527
|
+
margin-left: auto;
|
|
3528
|
+
}
|
|
3529
|
+
[dir="rtl"] [data-pont2-dropdown-menu-sub-trigger] > svg[data-icon-name="chevron-right"] {
|
|
3530
|
+
scale: -1 1;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
/* label: "text-muted-foreground px-2 py-1.5 text-xs font-medium data-inset:pl-8" */
|
|
3534
|
+
:is(pont2-prim-dropdown-menu-label, [data-pont2-dropdown-menu-label]) {
|
|
3535
|
+
display: block;
|
|
3536
|
+
padding: 0.375rem 0.5rem;
|
|
3537
|
+
color: var(--pont2-muted-foreground);
|
|
3538
|
+
font-size: var(--pont2-text-xs);
|
|
3539
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
3540
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
3541
|
+
}
|
|
3542
|
+
[data-pont2-dropdown-menu-label][data-inset] {
|
|
3543
|
+
padding-left: 2rem;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
:is(pont2-prim-dropdown-menu-group, pont2-prim-dropdown-menu-radio-group) {
|
|
3547
|
+
display: block;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
/* separator: is-a Separator; + "bg-border -mx-1 my-1 h-px" */
|
|
3551
|
+
[data-pont2-dropdown-menu-separator] {
|
|
3552
|
+
width: auto;
|
|
3553
|
+
margin: 0.25rem -0.25rem;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
/* shortcut: "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground
|
|
3557
|
+
ml-auto text-xs tracking-widest" */
|
|
3558
|
+
:is(pont2-prim-dropdown-menu-shortcut, [data-pont2-dropdown-menu-shortcut]) {
|
|
3559
|
+
margin-left: auto;
|
|
3560
|
+
color: var(--pont2-muted-foreground);
|
|
3561
|
+
font-size: var(--pont2-text-xs);
|
|
3562
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
3563
|
+
letter-spacing: 0.1em;
|
|
3564
|
+
}
|
|
3565
|
+
[data-pont2-menu-item]:focus [data-pont2-dropdown-menu-shortcut] {
|
|
3566
|
+
color: var(--pont2-accent-foreground);
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
/* ../primitives/select/select.css */
|
|
3571
|
+
/*
|
|
3572
|
+
* Select. shadcn (Base UI, Vega). Popover reset + enter/exit animation come
|
|
3573
|
+
* from core/popup/popup.css ([data-pont2-popup]).
|
|
3574
|
+
*/
|
|
3575
|
+
@layer pont2.primitives {
|
|
3576
|
+
/* trigger: "flex w-fit items-center justify-between whitespace-nowrap outline-none
|
|
3577
|
+
disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 …"
|
|
3578
|
+
+ .cn-select-trigger "border-input data-placeholder:text-muted-foreground dark:bg-input/30
|
|
3579
|
+
dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 … gap-1.5 rounded-md
|
|
3580
|
+
border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow]
|
|
3581
|
+
focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8" */
|
|
3582
|
+
[data-pont2-select-trigger] {
|
|
3583
|
+
box-sizing: border-box;
|
|
3584
|
+
margin: 0;
|
|
3585
|
+
font-family: inherit;
|
|
3586
|
+
color: inherit;
|
|
3587
|
+
-webkit-appearance: none;
|
|
3588
|
+
appearance: none;
|
|
3589
|
+
|
|
3590
|
+
display: flex;
|
|
3591
|
+
width: fit-content;
|
|
3592
|
+
align-items: center;
|
|
3593
|
+
justify-content: space-between;
|
|
3594
|
+
gap: 0.375rem;
|
|
3595
|
+
white-space: nowrap;
|
|
3596
|
+
height: 2.25rem;
|
|
3597
|
+
padding: 0.5rem 0.5rem 0.5rem 0.625rem;
|
|
3598
|
+
border: 1px solid var(--pont2-input);
|
|
3599
|
+
border-radius: var(--pont2-radius-md);
|
|
3600
|
+
background-color: transparent;
|
|
3601
|
+
font-size: var(--pont2-text-sm);
|
|
3602
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3603
|
+
outline: none;
|
|
3604
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
3605
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3606
|
+
transition-property: color, box-shadow;
|
|
3607
|
+
transition-duration: var(--pont2-duration);
|
|
3608
|
+
transition-timing-function: var(--pont2-ease);
|
|
3609
|
+
}
|
|
3610
|
+
[data-pont2-select-trigger][data-size="sm"] {
|
|
3611
|
+
height: 2rem;
|
|
3612
|
+
}
|
|
3613
|
+
[data-pont2-select-trigger][data-placeholder] {
|
|
3614
|
+
color: var(--pont2-muted-foreground);
|
|
3615
|
+
}
|
|
3616
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-select-trigger] {
|
|
3617
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
3618
|
+
}
|
|
3619
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-select-trigger]:hover {
|
|
3620
|
+
background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
|
|
3621
|
+
}
|
|
3622
|
+
[data-pont2-select-trigger]:focus-visible {
|
|
3623
|
+
border-color: var(--pont2-ring);
|
|
3624
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
3625
|
+
}
|
|
3626
|
+
[data-pont2-select-trigger][aria-invalid="true"] {
|
|
3627
|
+
border-color: var(--pont2-destructive);
|
|
3628
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
3629
|
+
}
|
|
3630
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-select-trigger][aria-invalid="true"] {
|
|
3631
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
3632
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
3633
|
+
}
|
|
3634
|
+
[data-pont2-select-trigger]:disabled {
|
|
3635
|
+
cursor: not-allowed;
|
|
3636
|
+
opacity: 0.5;
|
|
3637
|
+
}
|
|
3638
|
+
[data-pont2-select-trigger] svg {
|
|
3639
|
+
pointer-events: none;
|
|
3640
|
+
flex-shrink: 0;
|
|
3641
|
+
}
|
|
3642
|
+
[data-pont2-select-trigger] svg:not([class*="size-"]) {
|
|
3643
|
+
width: 1rem;
|
|
3644
|
+
height: 1rem;
|
|
3645
|
+
}
|
|
3646
|
+
/* .cn-select-trigger-icon "text-muted-foreground size-4" */
|
|
3647
|
+
[data-pont2-select-trigger] > svg[data-icon-name="chevron-down"] {
|
|
3648
|
+
color: var(--pont2-muted-foreground);
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
/* value: "flex flex-1 text-left" + line-clamp-1 items-center gap-1.5 */
|
|
3652
|
+
[data-pont2-select-value] {
|
|
3653
|
+
display: flex;
|
|
3654
|
+
flex: 1 1 0%;
|
|
3655
|
+
align-items: center;
|
|
3656
|
+
gap: 0.375rem;
|
|
3657
|
+
text-align: left;
|
|
3658
|
+
/* line-clamp-1 on a flex box: one line, clipped */
|
|
3659
|
+
overflow: hidden;
|
|
3660
|
+
white-space: nowrap;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
/* content: "relative isolate z-50 max-h-(--available-height) w-(--anchor-width)
|
|
3664
|
+
origin-(--transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none"
|
|
3665
|
+
+ .cn-select-content "bg-popover text-popover-foreground ring-foreground/10 min-w-36
|
|
3666
|
+
rounded-md shadow-md ring-1 duration-100" */
|
|
3667
|
+
:is(pont2-prim-select-content, [data-pont2-select-content]) {
|
|
3668
|
+
display: block;
|
|
3669
|
+
isolation: isolate;
|
|
3670
|
+
max-height: var(--pont2-available-height);
|
|
3671
|
+
width: var(--pont2-anchor-width);
|
|
3672
|
+
min-width: 9rem;
|
|
3673
|
+
overflow-x: hidden;
|
|
3674
|
+
overflow-y: auto;
|
|
3675
|
+
border-radius: var(--pont2-radius-md);
|
|
3676
|
+
background-color: var(--pont2-popover);
|
|
3677
|
+
color: var(--pont2-popover-foreground);
|
|
3678
|
+
outline: none;
|
|
3679
|
+
--pont2-shadow: var(--pont2-shadow-md);
|
|
3680
|
+
--pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
|
|
3681
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3682
|
+
}
|
|
3683
|
+
[data-pont2-select-content][data-align-trigger="true"] {
|
|
3684
|
+
animation: none;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
/* group: "scroll-my-1 p-1" */
|
|
3688
|
+
:is(pont2-prim-select-group, [data-pont2-select-group]) {
|
|
3689
|
+
display: block;
|
|
3690
|
+
padding: 0.25rem;
|
|
3691
|
+
scroll-margin-block: 0.25rem;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
/* label: "text-muted-foreground px-2 py-1.5 text-xs" */
|
|
3695
|
+
:is(pont2-prim-select-label, [data-pont2-select-label]) {
|
|
3696
|
+
display: block;
|
|
3697
|
+
padding: 0.375rem 0.5rem;
|
|
3698
|
+
color: var(--pont2-muted-foreground);
|
|
3699
|
+
font-size: var(--pont2-text-xs);
|
|
3700
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
/* item: "relative flex w-full cursor-default items-center outline-hidden select-none
|
|
3704
|
+
data-disabled:pointer-events-none data-disabled:opacity-50" + .cn-select-item
|
|
3705
|
+
"focus:bg-accent focus:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm"
|
|
3706
|
+
+ item text "whitespace-nowrap" */
|
|
3707
|
+
:is(pont2-prim-select-item, [data-pont2-select-item]) {
|
|
3708
|
+
position: relative;
|
|
3709
|
+
display: flex;
|
|
3710
|
+
width: 100%;
|
|
3711
|
+
box-sizing: border-box;
|
|
3712
|
+
align-items: center;
|
|
3713
|
+
gap: 0.5rem;
|
|
3714
|
+
padding: 0.375rem 2rem 0.375rem 0.5rem;
|
|
3715
|
+
border-radius: var(--pont2-radius-sm);
|
|
3716
|
+
font-size: var(--pont2-text-sm);
|
|
3717
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3718
|
+
white-space: nowrap;
|
|
3719
|
+
cursor: default;
|
|
3720
|
+
outline: none;
|
|
3721
|
+
user-select: none;
|
|
3722
|
+
}
|
|
3723
|
+
[data-pont2-select-item]:is(:focus, [data-highlighted]) {
|
|
3724
|
+
background-color: var(--pont2-accent);
|
|
3725
|
+
color: var(--pont2-accent-foreground);
|
|
3726
|
+
}
|
|
3727
|
+
[data-pont2-select-item]:is(:focus, [data-highlighted]) * {
|
|
3728
|
+
color: var(--pont2-accent-foreground);
|
|
3729
|
+
}
|
|
3730
|
+
[data-pont2-select-item][data-disabled] {
|
|
3731
|
+
pointer-events: none;
|
|
3732
|
+
opacity: 0.5;
|
|
3733
|
+
}
|
|
3734
|
+
[data-pont2-select-item] svg {
|
|
3735
|
+
pointer-events: none;
|
|
3736
|
+
flex-shrink: 0;
|
|
3737
|
+
}
|
|
3738
|
+
[data-pont2-select-item] svg:not([class*="size-"]) {
|
|
3739
|
+
width: 1rem;
|
|
3740
|
+
height: 1rem;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
/* indicator: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" */
|
|
3744
|
+
[data-pont2-select-item-indicator] {
|
|
3745
|
+
pointer-events: none;
|
|
3746
|
+
position: absolute;
|
|
3747
|
+
right: 0.5rem;
|
|
3748
|
+
display: flex;
|
|
3749
|
+
width: 1rem;
|
|
3750
|
+
height: 1rem;
|
|
3751
|
+
align-items: center;
|
|
3752
|
+
justify-content: center;
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
/* separator: is-a Separator + "-mx-1 my-1 pointer-events-none" */
|
|
3756
|
+
[data-pont2-select-separator] {
|
|
3757
|
+
width: auto;
|
|
3758
|
+
margin: 0.25rem -0.25rem;
|
|
3759
|
+
pointer-events: none;
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
/* ../primitives/combobox/combobox.css */
|
|
3764
|
+
/*
|
|
3765
|
+
* Combobox. shadcn (Base UI, Vega). Popover reset + enter/exit animation come
|
|
3766
|
+
* from core/popup/popup.css ([data-pont2-popup]).
|
|
3767
|
+
*/
|
|
3768
|
+
@layer pont2.primitives {
|
|
3769
|
+
/* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
|
|
3770
|
+
+ .cn-input-group "border-input dark:bg-input/30 has-[control:focus-visible]:border-ring
|
|
3771
|
+
has-[control:focus-visible]:ring-3 ring-ring/50 has-[[aria-invalid=true]]:border-destructive
|
|
3772
|
+
ring-destructive/20 h-9 rounded-md border shadow-xs transition-[color,box-shadow]"
|
|
3773
|
+
+ .cn-combobox-input "w-auto" */
|
|
3774
|
+
:is(pont2-prim-combobox-input, [data-pont2-combobox-input]) {
|
|
3775
|
+
position: relative;
|
|
3776
|
+
display: flex;
|
|
3777
|
+
box-sizing: border-box;
|
|
3778
|
+
width: auto;
|
|
3779
|
+
min-width: 0;
|
|
3780
|
+
height: 2.25rem;
|
|
3781
|
+
align-items: center;
|
|
3782
|
+
border: 1px solid var(--pont2-input);
|
|
3783
|
+
border-radius: var(--pont2-radius-md);
|
|
3784
|
+
outline: none;
|
|
3785
|
+
--pont2-shadow: var(--pont2-shadow-xs);
|
|
3786
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3787
|
+
transition-property: color, box-shadow;
|
|
3788
|
+
transition-duration: var(--pont2-duration);
|
|
3789
|
+
transition-timing-function: var(--pont2-ease);
|
|
3790
|
+
}
|
|
3791
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-combobox-input] {
|
|
3792
|
+
background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
|
|
3793
|
+
}
|
|
3794
|
+
[data-pont2-combobox-input]:has(> [data-slot="input-group-control"]:focus-visible) {
|
|
3795
|
+
border-color: var(--pont2-ring);
|
|
3796
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
|
|
3797
|
+
}
|
|
3798
|
+
[data-pont2-combobox-input]:has([aria-invalid="true"]) {
|
|
3799
|
+
border-color: var(--pont2-destructive);
|
|
3800
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
|
|
3801
|
+
}
|
|
3802
|
+
:where(.dark, [data-theme="dark"]) [data-pont2-combobox-input]:has([aria-invalid="true"]) {
|
|
3803
|
+
border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
|
|
3804
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
|
|
3805
|
+
}
|
|
3806
|
+
|
|
3807
|
+
/* InputGroupInput: Input base + "flex-1 rounded-none border-0 bg-transparent shadow-none ring-0"
|
|
3808
|
+
and the group's "has-[>[data-align=inline-end]]:[&>input]:pr-1.5" */
|
|
3809
|
+
[data-pont2-combobox-input-control] {
|
|
3810
|
+
box-sizing: border-box;
|
|
3811
|
+
margin: 0;
|
|
3812
|
+
flex: 1 1 0%;
|
|
3813
|
+
width: 100%;
|
|
3814
|
+
min-width: 0;
|
|
3815
|
+
height: 100%;
|
|
3816
|
+
padding: 0.25rem 0.375rem 0.25rem 0.625rem;
|
|
3817
|
+
border: 0;
|
|
3818
|
+
border-radius: 0;
|
|
3819
|
+
background: transparent;
|
|
3820
|
+
color: inherit;
|
|
3821
|
+
font-family: inherit;
|
|
3822
|
+
font-size: var(--pont2-text-base);
|
|
3823
|
+
line-height: var(--pont2-text-base--line-height);
|
|
3824
|
+
outline: none;
|
|
3825
|
+
box-shadow: none;
|
|
3826
|
+
}
|
|
3827
|
+
@media (width >= 48rem) {
|
|
3828
|
+
[data-pont2-combobox-input-control] {
|
|
3829
|
+
font-size: var(--pont2-text-sm);
|
|
3830
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
[data-pont2-combobox-input-control]::placeholder {
|
|
3834
|
+
color: var(--pont2-muted-foreground);
|
|
3835
|
+
opacity: 1;
|
|
3836
|
+
}
|
|
3837
|
+
[data-pont2-combobox-input-control]:disabled {
|
|
3838
|
+
cursor: not-allowed;
|
|
3839
|
+
opacity: 0.5;
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3842
|
+
/* InputGroupAddon align=inline-end: "flex cursor-text items-center justify-center select-none
|
|
3843
|
+
order-last text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium pr-2 has-[>button]:-mr-1" */
|
|
3844
|
+
[data-pont2-combobox-input-addon] {
|
|
3845
|
+
order: 9999;
|
|
3846
|
+
display: flex;
|
|
3847
|
+
align-items: center;
|
|
3848
|
+
justify-content: center;
|
|
3849
|
+
gap: 0.5rem;
|
|
3850
|
+
padding: 0.375rem 0.5rem 0.375rem 0;
|
|
3851
|
+
color: var(--pont2-muted-foreground);
|
|
3852
|
+
font-size: var(--pont2-text-sm);
|
|
3853
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3854
|
+
font-weight: var(--pont2-font-weight-medium);
|
|
3855
|
+
cursor: text;
|
|
3856
|
+
user-select: none;
|
|
3857
|
+
}
|
|
3858
|
+
[data-pont2-combobox-input-addon]:has(> button) {
|
|
3859
|
+
margin-right: -0.25rem;
|
|
3860
|
+
}
|
|
3861
|
+
/* InputGroupButton size=icon-xs: "size-6 rounded-[calc(var(--radius)-5px)] p-0 shadow-none" */
|
|
3862
|
+
[data-pont2-combobox-input-addon] > [data-pont2-button][data-size="icon-xs"] {
|
|
3863
|
+
width: 1.5rem;
|
|
3864
|
+
height: 1.5rem;
|
|
3865
|
+
padding: 0;
|
|
3866
|
+
border-radius: calc(var(--pont2-radius) - 5px);
|
|
3867
|
+
--pont2-shadow: 0 0 #0000;
|
|
3868
|
+
}
|
|
3869
|
+
/* .cn-combobox-trigger [&_svg]:size-4, .cn-combobox-trigger-icon text-muted-foreground */
|
|
3870
|
+
[data-pont2-combobox-input-addon] > [data-combobox-trigger] svg {
|
|
3871
|
+
width: 1rem;
|
|
3872
|
+
height: 1rem;
|
|
3873
|
+
color: var(--pont2-muted-foreground);
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
/* content: "relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width)
|
|
3877
|
+
min-w-[calc(var(--pont2-anchor-width)+--spacing(7))] origin-(--transform-origin)"
|
|
3878
|
+
+ .cn-combobox-content "bg-popover text-popover-foreground ring-foreground/10 overflow-hidden
|
|
3879
|
+
rounded-md shadow-md ring-1 duration-100".
|
|
3880
|
+
pont2 anchors to the whole input group (shadcn: the input, i.e. the group minus its
|
|
3881
|
+
~1.75rem addon), so the minimum width is the anchor width itself. */
|
|
3882
|
+
:is(pont2-prim-combobox-content, [data-pont2-combobox-content]) {
|
|
3883
|
+
display: block;
|
|
3884
|
+
max-height: var(--pont2-available-height);
|
|
3885
|
+
width: var(--pont2-anchor-width);
|
|
3886
|
+
max-width: var(--pont2-available-width);
|
|
3887
|
+
min-width: var(--pont2-anchor-width);
|
|
3888
|
+
overflow: hidden;
|
|
3889
|
+
border-radius: var(--pont2-radius-md);
|
|
3890
|
+
background-color: var(--pont2-popover);
|
|
3891
|
+
color: var(--pont2-popover-foreground);
|
|
3892
|
+
outline: none;
|
|
3893
|
+
--pont2-shadow: var(--pont2-shadow-md);
|
|
3894
|
+
--pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
|
|
3895
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
/* list: "overflow-y-auto overscroll-contain" + .cn-combobox-list "no-scrollbar
|
|
3899
|
+
max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--pont2-available-height)---spacing(9)))]
|
|
3900
|
+
scroll-py-1 overflow-y-auto p-1 data-empty:p-0" */
|
|
3901
|
+
:is(pont2-prim-combobox-list, [data-pont2-combobox-list]) {
|
|
3902
|
+
display: block;
|
|
3903
|
+
max-height: min(15.75rem, calc(var(--pont2-available-height, 100vh) - 2.25rem));
|
|
3904
|
+
overflow-y: auto;
|
|
3905
|
+
overscroll-behavior: contain;
|
|
3906
|
+
scroll-padding-block: 0.25rem;
|
|
3907
|
+
scrollbar-width: none;
|
|
3908
|
+
padding: 0.25rem;
|
|
3909
|
+
}
|
|
3910
|
+
[data-pont2-combobox-list]::-webkit-scrollbar {
|
|
3911
|
+
display: none;
|
|
3912
|
+
}
|
|
3913
|
+
[data-pont2-combobox-list][data-empty] {
|
|
3914
|
+
padding: 0;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
/* item: "relative flex w-full cursor-default items-center outline-hidden select-none
|
|
3918
|
+
data-disabled:pointer-events-none data-disabled:opacity-50" + .cn-combobox-item
|
|
3919
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground gap-2 rounded-sm
|
|
3920
|
+
py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4" */
|
|
3921
|
+
:is(pont2-prim-combobox-item, [data-pont2-combobox-item]) {
|
|
3922
|
+
position: relative;
|
|
3923
|
+
display: flex;
|
|
3924
|
+
width: 100%;
|
|
3925
|
+
box-sizing: border-box;
|
|
3926
|
+
align-items: center;
|
|
3927
|
+
gap: 0.5rem;
|
|
3928
|
+
padding: 0.375rem 2rem 0.375rem 0.5rem;
|
|
3929
|
+
border-radius: var(--pont2-radius-sm);
|
|
3930
|
+
font-size: var(--pont2-text-sm);
|
|
3931
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3932
|
+
cursor: default;
|
|
3933
|
+
outline: none;
|
|
3934
|
+
user-select: none;
|
|
3935
|
+
}
|
|
3936
|
+
[data-pont2-combobox-item][data-highlighted] {
|
|
3937
|
+
background-color: var(--pont2-accent);
|
|
3938
|
+
color: var(--pont2-accent-foreground);
|
|
3939
|
+
}
|
|
3940
|
+
[data-pont2-combobox-item][data-highlighted] * {
|
|
3941
|
+
color: var(--pont2-accent-foreground);
|
|
3942
|
+
}
|
|
3943
|
+
[data-pont2-combobox-item][data-disabled] {
|
|
3944
|
+
pointer-events: none;
|
|
3945
|
+
opacity: 0.5;
|
|
3946
|
+
}
|
|
3947
|
+
[data-pont2-combobox-item] svg {
|
|
3948
|
+
pointer-events: none;
|
|
3949
|
+
flex-shrink: 0;
|
|
3950
|
+
}
|
|
3951
|
+
[data-pont2-combobox-item] svg:not([class*="size-"]) {
|
|
3952
|
+
width: 1rem;
|
|
3953
|
+
height: 1rem;
|
|
3954
|
+
}
|
|
3955
|
+
/* .cn-combobox-item-indicator "pointer-events-none absolute right-2 flex size-4 items-center justify-center" */
|
|
3956
|
+
[data-pont2-combobox-item-indicator] {
|
|
3957
|
+
pointer-events: none;
|
|
3958
|
+
position: absolute;
|
|
3959
|
+
right: 0.5rem;
|
|
3960
|
+
display: flex;
|
|
3961
|
+
width: 1rem;
|
|
3962
|
+
height: 1rem;
|
|
3963
|
+
align-items: center;
|
|
3964
|
+
justify-content: center;
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
/* empty: "text-muted-foreground hidden w-full justify-center py-2 text-center text-sm
|
|
3968
|
+
group-data-empty/combobox-content:flex" */
|
|
3969
|
+
:is(pont2-prim-combobox-empty, [data-pont2-combobox-empty]) {
|
|
3970
|
+
display: none;
|
|
3971
|
+
width: 100%;
|
|
3972
|
+
justify-content: center;
|
|
3973
|
+
padding: 0.5rem 0;
|
|
3974
|
+
text-align: center;
|
|
3975
|
+
color: var(--pont2-muted-foreground);
|
|
3976
|
+
font-size: var(--pont2-text-sm);
|
|
3977
|
+
line-height: var(--pont2-text-sm--line-height);
|
|
3978
|
+
}
|
|
3979
|
+
[data-pont2-combobox-content][data-empty] [data-pont2-combobox-empty] {
|
|
3980
|
+
display: flex;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
:is(pont2-prim-combobox-group, [data-pont2-combobox-group]) {
|
|
3984
|
+
display: block;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
/* label: "text-muted-foreground px-2 py-1.5 text-xs" */
|
|
3988
|
+
:is(pont2-prim-combobox-label, [data-pont2-combobox-label]) {
|
|
3989
|
+
display: block;
|
|
3990
|
+
padding: 0.375rem 0.5rem;
|
|
3991
|
+
color: var(--pont2-muted-foreground);
|
|
3992
|
+
font-size: var(--pont2-text-xs);
|
|
3993
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
/* separator: is-a Separator + "-mx-1 my-1" */
|
|
3997
|
+
[data-pont2-combobox-separator] {
|
|
3998
|
+
width: auto;
|
|
3999
|
+
margin: 0.25rem -0.25rem;
|
|
4000
|
+
}
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
/* ../primitives/tooltip/tooltip.css */
|
|
4004
|
+
/*
|
|
4005
|
+
* Tooltip. shadcn (Base UI, Vega):
|
|
4006
|
+
* content: "z-50 w-fit max-w-xs origin-(--transform-origin) bg-foreground text-background"
|
|
4007
|
+
* + .cn-tooltip-content "inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs
|
|
4008
|
+
* has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:rounded-sm" + enter/exit animation
|
|
4009
|
+
* arrow: "size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground"
|
|
4010
|
+
* placed per side (data-[side=top]:-bottom-2.5, …). pont2 draws it as ::before.
|
|
4011
|
+
*/
|
|
4012
|
+
@layer pont2.primitives {
|
|
4013
|
+
:is(pont2-prim-tooltip-content, [data-pont2-tooltip-content]) {
|
|
4014
|
+
display: inline-flex;
|
|
4015
|
+
align-items: center;
|
|
4016
|
+
gap: 0.375rem;
|
|
4017
|
+
width: fit-content;
|
|
4018
|
+
max-width: 20rem;
|
|
4019
|
+
padding: 0.375rem 0.75rem;
|
|
4020
|
+
border-radius: var(--pont2-radius-md);
|
|
4021
|
+
background-color: var(--pont2-foreground);
|
|
4022
|
+
color: var(--pont2-background);
|
|
4023
|
+
font-size: var(--pont2-text-xs);
|
|
4024
|
+
line-height: var(--pont2-text-xs--line-height);
|
|
4025
|
+
overflow: visible;
|
|
4026
|
+
}
|
|
4027
|
+
[data-pont2-tooltip-content]:has([data-slot="kbd"]) {
|
|
4028
|
+
padding-right: 0.375rem;
|
|
4029
|
+
}
|
|
4030
|
+
[data-pont2-tooltip-content] [data-slot="kbd"] {
|
|
4031
|
+
position: relative;
|
|
4032
|
+
isolation: isolate;
|
|
4033
|
+
border-radius: var(--pont2-radius-sm);
|
|
4034
|
+
}
|
|
4035
|
+
|
|
4036
|
+
[data-pont2-tooltip-content]::before {
|
|
4037
|
+
content: "";
|
|
4038
|
+
position: absolute;
|
|
4039
|
+
width: 0.625rem;
|
|
4040
|
+
height: 0.625rem;
|
|
4041
|
+
border-radius: 2px;
|
|
4042
|
+
background-color: var(--pont2-foreground);
|
|
4043
|
+
rotate: 45deg;
|
|
4044
|
+
z-index: -1;
|
|
4045
|
+
}
|
|
4046
|
+
[data-pont2-tooltip-content][data-side="top"]::before {
|
|
4047
|
+
bottom: -0.3125rem;
|
|
4048
|
+
left: calc(var(--pont2-arrow-x, 50%) - 0.3125rem);
|
|
4049
|
+
}
|
|
4050
|
+
[data-pont2-tooltip-content][data-side="bottom"]::before {
|
|
4051
|
+
top: -0.3125rem;
|
|
4052
|
+
left: calc(var(--pont2-arrow-x, 50%) - 0.3125rem);
|
|
4053
|
+
}
|
|
4054
|
+
[data-pont2-tooltip-content]:is([data-side="left"], [data-side="inline-start"])::before {
|
|
4055
|
+
right: -0.3125rem;
|
|
4056
|
+
top: calc(var(--pont2-arrow-y, 50%) - 0.3125rem);
|
|
4057
|
+
}
|
|
4058
|
+
[data-pont2-tooltip-content]:is([data-side="right"], [data-side="inline-end"])::before {
|
|
4059
|
+
left: -0.3125rem;
|
|
4060
|
+
top: calc(var(--pont2-arrow-y, 50%) - 0.3125rem);
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
/* --- end overlays (C) --- */
|
|
4065
|
+
|
|
4066
|
+
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
4067
|
+
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
4068
|
+
/* ../kit/alert/alert.css */
|
|
4069
|
+
/*
|
|
4070
|
+
* <pont2-alert> (kit composite). Everything shadcn defines comes from the
|
|
4071
|
+
* primitive recipe (primitives/alert/alert.css), which matches this element
|
|
4072
|
+
* through [data-pont2-alert]. This file adds only what the composite adds:
|
|
4073
|
+
* the warning / success / info statuses, coloured like shadcn's destructive
|
|
4074
|
+
* variant ("text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90").
|
|
4075
|
+
*/
|
|
4076
|
+
@layer pont2.kit {
|
|
4077
|
+
pont2-alert {
|
|
4078
|
+
--_pont2-alert-status: currentColor;
|
|
4079
|
+
}
|
|
4080
|
+
pont2-alert[data-status="warning"] {
|
|
4081
|
+
--_pont2-alert-status: var(--pont2-warning);
|
|
4082
|
+
}
|
|
4083
|
+
pont2-alert[data-status="success"] {
|
|
4084
|
+
--_pont2-alert-status: var(--pont2-success);
|
|
4085
|
+
}
|
|
4086
|
+
pont2-alert[data-status="info"] {
|
|
4087
|
+
--_pont2-alert-status: var(--pont2-info);
|
|
4088
|
+
}
|
|
4089
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) {
|
|
4090
|
+
color: var(--_pont2-alert-status);
|
|
4091
|
+
}
|
|
4092
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) > [data-slot="alert-description"] {
|
|
4093
|
+
color: color-mix(in oklab, var(--_pont2-alert-status) 90%, transparent);
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
/* ../kit/avatar/avatar.css */
|
|
4098
|
+
/*
|
|
4099
|
+
* <pont2-avatar> (kit composite). All styling comes from the primitive recipe
|
|
4100
|
+
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
4101
|
+
* identity attributes; the composite adds no visual rules of its own.
|
|
4102
|
+
*
|
|
4103
|
+
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
4104
|
+
* where composite-specific rules go when they appear.
|
|
4105
|
+
*/
|
|
4106
|
+
@layer pont2.kit {
|
|
4107
|
+
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
4108
|
+
pont2-avatar:not([data-pont2-avatar]) {
|
|
4109
|
+
display: inline-flex;
|
|
4110
|
+
width: 2rem;
|
|
4111
|
+
height: 2rem;
|
|
4112
|
+
}
|
|
4113
|
+
pont2-avatar:not([data-pont2-avatar])[size="sm"] {
|
|
4114
|
+
width: 1.5rem;
|
|
4115
|
+
height: 1.5rem;
|
|
4116
|
+
}
|
|
4117
|
+
pont2-avatar:not([data-pont2-avatar])[size="lg"] {
|
|
4118
|
+
width: 2.5rem;
|
|
4119
|
+
height: 2.5rem;
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
/* ../kit/input-otp/input-otp.css */
|
|
4124
|
+
/*
|
|
4125
|
+
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
4126
|
+
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
4127
|
+
* and the parts' identity attributes.
|
|
4128
|
+
*
|
|
4129
|
+
* Added here: the composite has no children before upgrade, so it reserves the
|
|
4130
|
+
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
4131
|
+
*/
|
|
4132
|
+
@layer pont2.kit {
|
|
4133
|
+
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
4134
|
+
display: flex;
|
|
4135
|
+
min-height: 2.25rem;
|
|
4136
|
+
}
|
|
4137
|
+
}
|