cursedbelt 5.94.0 → 5.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/components/AppShell.d.ts +12 -1
- package/dist/react/components/AppShell.d.ts.map +1 -1
- package/dist/react/components/AppShell.js +24 -5
- package/dist/react/components/AppShell.js.map +1 -1
- package/dist/react/components/ComboboxField.js +2 -2
- package/dist/react/components/ComboboxField.js.map +1 -1
- package/dist/react/components/DatePicker.d.ts +9 -5
- package/dist/react/components/DatePicker.d.ts.map +1 -1
- package/dist/react/components/DatePicker.js +192 -27
- package/dist/react/components/DatePicker.js.map +1 -1
- package/dist/react/components/InlineEditableText.d.ts +12 -2
- package/dist/react/components/InlineEditableText.d.ts.map +1 -1
- package/dist/react/components/InlineEditableText.js +11 -8
- package/dist/react/components/InlineEditableText.js.map +1 -1
- package/dist/react/components/suggestionList.js +2 -2
- package/dist/react/components/suggestionList.js.map +1 -1
- package/dist/react/lib/dateText.d.ts +21 -0
- package/dist/react/lib/dateText.d.ts.map +1 -0
- package/dist/react/lib/dateText.js +94 -0
- package/dist/react/lib/dateText.js.map +1 -0
- package/dist/react/lib/floatingStyles.d.ts +12 -0
- package/dist/react/lib/floatingStyles.d.ts.map +1 -1
- package/dist/react/lib/floatingStyles.js +12 -0
- package/dist/react/lib/floatingStyles.js.map +1 -1
- package/dist/styles-areas/analytics.css +11 -10
- package/dist/styles-areas/data-table.css +13 -12
- package/dist/styles-areas/fields.css +12 -10
- package/dist/styles-areas/stats.css +12 -11
- package/dist/styles-areas/wizard.css +6 -6
- package/dist/styles-utilities.css +15 -0
- package/package.json +1 -1
- package/src/react/components/AppShell.spec.tsx +53 -0
- package/src/react/components/AppShell.tsx +79 -23
- package/src/react/components/ComboboxField.tsx +2 -2
- package/src/react/components/ControlHeightScale.spec.tsx +2 -2
- package/src/react/components/DatePicker.spec.tsx +186 -5
- package/src/react/components/DatePicker.tsx +416 -63
- package/src/react/components/InlineEditableText.spec.tsx +29 -0
- package/src/react/components/InlineEditableText.tsx +26 -10
- package/src/react/components/suggestionList.tsx +2 -2
- package/src/react/lib/dateText.ts +94 -0
- package/src/react/lib/floatingStyles.spec.ts +36 -1
- package/src/react/lib/floatingStyles.ts +13 -0
- package/src/styles-areas/analytics.css +11 -10
- package/src/styles-areas/data-table.css +13 -12
- package/src/styles-areas/fields.css +12 -10
- package/src/styles-areas/stats.css +12 -11
- package/src/styles-areas/wizard.css +6 -6
- package/src/styles-utilities.css +15 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed-date parsing for {@link DatePicker} (forge task 3764).
|
|
3
|
+
*
|
|
4
|
+
* Accepts what a person actually types, American English first:
|
|
5
|
+
* `2015-12-05`, `12/5/2015` (month first), `12-5-2015`, `12.5.2015`, `Dec 5 2015`,
|
|
6
|
+
* `December 5, 2015`, `5 Dec 2015`, `Dec 5th, 2015`, `2015 Dec 5`. A two-digit year is
|
|
7
|
+
* read as the nearest sensible century: `15` is 2015, and `99` is 1999 (a year more than
|
|
8
|
+
* ten years ahead of today reads as the century before). Anything else — a day that does
|
|
9
|
+
* not exist, a three-digit year, stray words — is refused with a short reason, never
|
|
10
|
+
* guessed at.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export type DateTextResult = { ok: true; iso: string } | { ok: false; reason: string };
|
|
14
|
+
|
|
15
|
+
const MONTHS = [
|
|
16
|
+
'january',
|
|
17
|
+
'february',
|
|
18
|
+
'march',
|
|
19
|
+
'april',
|
|
20
|
+
'may',
|
|
21
|
+
'june',
|
|
22
|
+
'july',
|
|
23
|
+
'august',
|
|
24
|
+
'september',
|
|
25
|
+
'october',
|
|
26
|
+
'november',
|
|
27
|
+
'december',
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
/** A month index (0-11) for a name or a 3+ letter prefix of one ("sept", "Dec"), else -1. */
|
|
31
|
+
function monthIndex(word: string): number {
|
|
32
|
+
const w = word.toLowerCase().replace(/\.$/, '');
|
|
33
|
+
if (w.length < 3) return -1;
|
|
34
|
+
return MONTHS.findIndex((name) => name.startsWith(w));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function expandYear(token: string, now: Date): number | null {
|
|
38
|
+
if (/^\d{4}$/.test(token)) {
|
|
39
|
+
const year = Number(token);
|
|
40
|
+
return year >= 1000 ? year : null;
|
|
41
|
+
}
|
|
42
|
+
if (/^\d{2}$/.test(token)) {
|
|
43
|
+
const year = 2000 + Number(token);
|
|
44
|
+
return year > now.getFullYear() + 10 ? year - 100 : year;
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function build(year: number | null, month: number, day: number): DateTextResult {
|
|
50
|
+
if (year === null) return { ok: false, reason: 'Use a four-digit year' };
|
|
51
|
+
if (month < 0 || month > 11) return { ok: false, reason: 'That month does not exist' };
|
|
52
|
+
const date = new Date(year, month, day);
|
|
53
|
+
if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
|
|
54
|
+
return { ok: false, reason: 'That date does not exist' };
|
|
55
|
+
}
|
|
56
|
+
const mm = String(month + 1).padStart(2, '0');
|
|
57
|
+
const dd = String(day).padStart(2, '0');
|
|
58
|
+
return { ok: true, iso: `${String(year).padStart(4, '0')}-${mm}-${dd}` };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const INVALID: DateTextResult = { ok: false, reason: 'Enter a date like Dec 5, 2015 or 12/5/2015' };
|
|
62
|
+
|
|
63
|
+
/** Parse typed text into an ISO `YYYY-MM-DD` day. Pure; `now` only picks the century of a 2-digit year. */
|
|
64
|
+
export function parseDateText(text: string, now: Date = new Date()): DateTextResult {
|
|
65
|
+
const raw = text.trim();
|
|
66
|
+
if (!raw) return INVALID;
|
|
67
|
+
|
|
68
|
+
// Numeric forms: Y-M-D (ISO first), then M/D/Y with / - or . between.
|
|
69
|
+
const numeric = raw.match(/^(\d{1,4})([/.-])(\d{1,2})\2(\d{1,4})$/);
|
|
70
|
+
if (numeric) {
|
|
71
|
+
const [, a, , b, c] = numeric as unknown as [string, string, string, string, string];
|
|
72
|
+
if (a.length === 4) return build(expandYear(a, now), Number(b) - 1, Number(c));
|
|
73
|
+
return build(expandYear(c, now), Number(a) - 1, Number(b));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Month-name forms, in any order of day / month / year.
|
|
77
|
+
const tokens = raw
|
|
78
|
+
.replace(/,/g, ' ')
|
|
79
|
+
.split(/\s+/)
|
|
80
|
+
.filter(Boolean)
|
|
81
|
+
.filter((t) => t.toLowerCase() !== 'of');
|
|
82
|
+
if (tokens.length !== 3) return INVALID;
|
|
83
|
+
const nameAt = tokens.findIndex((t) => monthIndex(t) >= 0);
|
|
84
|
+
if (nameAt < 0) return INVALID;
|
|
85
|
+
const month = monthIndex(tokens[nameAt] as string);
|
|
86
|
+
const nums = tokens
|
|
87
|
+
.filter((_, i) => i !== nameAt)
|
|
88
|
+
.map((t) => t.replace(/^(\d{1,2})(st|nd|rd|th)$/i, '$1'));
|
|
89
|
+
if (!nums.every((t) => /^\d+$/.test(t))) return INVALID;
|
|
90
|
+
const [first, second] = nums as [string, string];
|
|
91
|
+
// "2015 Dec 5": a four-digit first number is the year. Otherwise day then year.
|
|
92
|
+
if (first.length === 4) return build(expandYear(first, now), month, Number(second));
|
|
93
|
+
return build(expandYear(second, now), month, Number(first));
|
|
94
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from 'bun:test';
|
|
2
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { readdirSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import {
|
|
5
|
+
BASE_UI_POSITIONER,
|
|
5
6
|
FLOATING_COLLISION_PADDING,
|
|
6
7
|
FLOATING_CONTENT_BASE,
|
|
7
8
|
FLOATING_ITEM_BASE,
|
|
@@ -66,3 +67,37 @@ describe('the floating layer — DESIGN.md §5 containment', () => {
|
|
|
66
67
|
expect(FLOATING_ITEM_BASE).toContain(TAP_TARGET_HEIGHT);
|
|
67
68
|
});
|
|
68
69
|
});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 🔴 A Base UI list portals into `<body>`, which an open Radix modal makes
|
|
73
|
+
* `pointer-events: none` — inside a Modal or Drawer it painted and took no tap (forge task 3764).
|
|
74
|
+
* Every Positioner in the library must carry {@link BASE_UI_POSITIONER}, found by sweep so a new
|
|
75
|
+
* field cannot be the one that forgets.
|
|
76
|
+
*/
|
|
77
|
+
describe('Base UI lists take a tap inside a dialog', () => {
|
|
78
|
+
/** Each `<X.Positioner …>` opening tag in `text` that does not use BASE_UI_POSITIONER. */
|
|
79
|
+
const bare = (text: string): string[] =>
|
|
80
|
+
[...text.matchAll(/<(\w+)\.Positioner\b[^>]*>/g)].filter((m) => !m[0].includes('BASE_UI_POSITIONER')).map((m) => m[0]);
|
|
81
|
+
|
|
82
|
+
test('the class turns pointer events back on, at the popover layer', () => {
|
|
83
|
+
expect(BASE_UI_POSITIONER.split(' ')).toEqual(expect.arrayContaining(['pointer-events-auto', 'z-[var(--z-popover)]']));
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test('every Positioner in cursedbelt uses it', () => {
|
|
87
|
+
const offenders: string[] = [];
|
|
88
|
+
let seen = 0;
|
|
89
|
+
for (const rel of readdirSync(REACT_DIR, { recursive: true }) as string[]) {
|
|
90
|
+
if (!/\.tsx?$/.test(rel) || /\.spec\.tsx?$/.test(rel)) continue;
|
|
91
|
+
const text = readFileSync(join(REACT_DIR, rel), 'utf8');
|
|
92
|
+
seen += [...text.matchAll(/\.Positioner\b/g)].length;
|
|
93
|
+
for (const tag of bare(text)) offenders.push(`${rel}: ${tag.slice(0, 80)}`);
|
|
94
|
+
}
|
|
95
|
+
expect(seen).toBeGreaterThan(0);
|
|
96
|
+
expect(offenders).toEqual([]);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
test('the failure path: a Positioner with only a z-index is caught', () => {
|
|
100
|
+
expect(bare("<Combobox.Positioner sideOffset={4} className='z-[var(--z-popover)]'>")).toHaveLength(1);
|
|
101
|
+
expect(bare('<Autocomplete.Positioner sideOffset={4} className={BASE_UI_POSITIONER}>')).toHaveLength(0);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
@@ -28,6 +28,19 @@ import { TAP_TARGET_HEIGHT } from './tapTarget.js';
|
|
|
28
28
|
*/
|
|
29
29
|
export const FLOATING_COLLISION_PADDING = 16;
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* The class every Base UI `*.Positioner` carries (ComboboxField's list, the Autocomplete
|
|
33
|
+
* suggestion list) — its stacking AND its pointer events, one string so the two cannot drift.
|
|
34
|
+
*
|
|
35
|
+
* 🔴 `pointer-events-auto`: Base UI portals the list into `<body>`, and an open Radix modal
|
|
36
|
+
* (a belt `Modal` or `Drawer`) sets `body { pointer-events: none }`, so a list opened inside a
|
|
37
|
+
* dialog painted over it and every tap fell through to the dialog (measured 2026-10-25, photos'
|
|
38
|
+
* place picker in the phone's Details drawer, forge task 3764). Radix still counts a press on the
|
|
39
|
+
* list as inside — its DismissableLayer tracks the React tree — so the dialog stays open.
|
|
40
|
+
* `floatingStyles.spec.ts` fails on a Positioner in this library that does not use it.
|
|
41
|
+
*/
|
|
42
|
+
export const BASE_UI_POSITIONER = 'pointer-events-auto z-[var(--z-popover)]';
|
|
43
|
+
|
|
31
44
|
/**
|
|
32
45
|
* Base surface for any floating panel: overlay elevation, popover tokens, ring-free.
|
|
33
46
|
*
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 150 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
@source inline("[&>*]:hidden [&>*]:max-w-none [&>svg]:size-3.5 active:cursor-grabbing basis basis-full");
|
|
35
35
|
@source inline("bg-[var(--cb-frozen-bg)] bg-accent/15 bg-card/95 bg-gradient-to-t bg-muted/30 bg-muted/50");
|
|
36
36
|
@source inline("border-accent-solid border-accent/60 border-b-0! border-field-error border-solid border-t-2 col");
|
|
37
|
-
@source inline("collapse cursor-grab disabled:opacity-
|
|
38
|
-
@source inline("gap-x-6 h-0 h-105
|
|
39
|
-
@source inline("
|
|
40
|
-
@source inline("
|
|
37
|
+
@source inline("collapse cursor-grab disabled:opacity-30 disabled:opacity-40 fade-in");
|
|
38
|
+
@source inline("focus-visible:ring-field-ring/40 from-card gap-x-6 grid-cols-3 grid-cols-4 h-0 h-105 h-3.5");
|
|
39
|
+
@source inline("has-[[aria-invalid=true]]:border-field-error hover:bg-background hover:bg-muted/40");
|
|
40
|
+
@source inline("hover:border-field-ring hover:text-warning italic justify-self-end last:border-0 left-11");
|
|
41
|
+
@source inline("left-2.5 list-none max-h-60 max-h-88 max-sm:flex-1 max-sm:flex-wrap max-sm:min-w-0");
|
|
41
42
|
@source inline("max-sm:min-w-24 max-sm:min-w-32 max-sm:ml-13.5 max-sm:w-auto max-w-32 max-w-36 max-w-45 max-w-48");
|
|
42
43
|
@source inline("max-w-60 min-h-20 min-h-dvh min-w-0! min-w-20 min-w-4 min-w-52 min-w-max mr-2 mt-1.5 mt-3 mt-4");
|
|
43
|
-
@source inline("not-italic ordinal p-0! pb-1.5 pl-1.5 pr-0.5 pr-10 pr-16 pr-3 pr-9
|
|
44
|
-
@source inline("resize-y right-3 ring-field-error/30 self self-stretch
|
|
45
|
-
@source inline("shrink-[2] size-7 slide-in-from-top-1 table-fixed
|
|
46
|
-
@source inline("text-
|
|
47
|
-
@source inline("w-36 w-40 w-88");
|
|
44
|
+
@source inline("not-italic ordinal p-0! pb-1.5 pl-1.5 pointer-coarse:pr-12 pr-0.5 pr-10 pr-11 pr-16 pr-3 pr-9");
|
|
45
|
+
@source inline("pt-1 py-0! resize-none resize-y right-3 ring-field-error/30 self self-stretch");
|
|
46
|
+
@source inline("shadow-[1px_0_0_0_var(--color-border)] shrink-[2] size-7 slide-in-from-top-1 table-fixed");
|
|
47
|
+
@source inline("text-[length:0] text-accent-solid-foreground text-field-placeholder text-success text-xl");
|
|
48
|
+
@source inline("to-transparent top-3 w-0 w-0! w-11 w-12 w-20 w-3.5 w-32 w-36 w-40 w-88");
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 145 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
@source inline("[&>*]:hidden [&>*]:max-w-none [&>svg]:size-3.5 active:cursor-grabbing basis-full");
|
|
35
35
|
@source inline("bg-[var(--cb-frozen-bg)] bg-accent/15 bg-card/95 bg-gradient-to-t bg-muted/30 bg-muted/50");
|
|
36
36
|
@source inline("border-accent-solid border-accent/60 border-b-0! border-field-error border-solid border-t-2 col");
|
|
37
|
-
@source inline("collapse cursor-grab disabled:opacity-
|
|
38
|
-
@source inline("gap-x-6 h-0 h-105
|
|
39
|
-
@source inline("
|
|
40
|
-
@source inline("
|
|
41
|
-
@source inline("max-
|
|
42
|
-
@source inline("max-
|
|
43
|
-
@source inline("
|
|
44
|
-
@source inline("
|
|
45
|
-
@source inline("
|
|
46
|
-
@source inline("
|
|
47
|
-
@source inline("
|
|
37
|
+
@source inline("collapse cursor-grab disabled:opacity-30 disabled:opacity-40 fade-in");
|
|
38
|
+
@source inline("focus-visible:ring-field-ring/40 from-card gap-x-6 grid-cols-3 grid-cols-4 h-0 h-105 h-3.5");
|
|
39
|
+
@source inline("has-[[aria-invalid=true]]:border-field-error hover:bg-background hover:bg-muted/40");
|
|
40
|
+
@source inline("hover:border-field-ring hover:text-warning justify-self-end last:border-0 left-11 left-2.5");
|
|
41
|
+
@source inline("list-none max-h-60 max-h-88 max-sm:flex-1 max-sm:flex-wrap max-sm:min-w-0 max-sm:min-w-24");
|
|
42
|
+
@source inline("max-sm:min-w-32 max-sm:ml-13.5 max-sm:w-auto max-w-32 max-w-36 max-w-45 max-w-48 max-w-60");
|
|
43
|
+
@source inline("min-h-20 min-h-dvh min-w-0! min-w-4 min-w-52 min-w-max mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal");
|
|
44
|
+
@source inline("p-0! pb-1.5 pl-1.5 pointer-coarse:pr-12 pr-0.5 pr-10 pr-11 pr-16 pr-3 pr-9 pt-1 py-0!");
|
|
45
|
+
@source inline("resize-none resize-y right-3 ring-field-error/30 self self-stretch");
|
|
46
|
+
@source inline("shadow-[1px_0_0_0_var(--color-border)] size-7 slide-in-from-top-1 table-fixed text-[length:0]");
|
|
47
|
+
@source inline("text-accent-solid-foreground text-field-placeholder text-success text-xl to-transparent top-3");
|
|
48
|
+
@source inline("w-0! w-11 w-12 w-20 w-3.5 w-32 w-36 w-40 w-88");
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 94 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
@@ -28,17 +28,19 @@
|
|
|
28
28
|
@source inline("[scrollbar-width:none] appearance-none aria-checked:ring-2 aria-checked:ring-foreground");
|
|
29
29
|
@source inline("aria-checked:ring-offset-1 bg-accent/15 bg-surface-sunken/80 bg-warning/10 border-border/40");
|
|
30
30
|
@source inline("border-field-error caret-transparent cursor-text data-[state=checked]:ring-foreground");
|
|
31
|
-
@source inline("data-[state=checked]:ring-offset-1 disabled:hover:scale-100 disabled:opacity-
|
|
32
|
-
@source inline("focus-visible:border-border-strong focus-visible:ring-0
|
|
33
|
-
@source inline("focus-
|
|
34
|
-
@source inline("
|
|
35
|
-
@source inline("
|
|
31
|
+
@source inline("data-[state=checked]:ring-offset-1 disabled:hover:scale-100 disabled:opacity-30");
|
|
32
|
+
@source inline("disabled:opacity-40 focus-visible:border-border-strong focus-visible:ring-0");
|
|
33
|
+
@source inline("focus-visible:ring-field-ring/40 focus-within:ring-offset-1 focus-within:ring-ring grid-cols-3");
|
|
34
|
+
@source inline("grid-cols-4 group-focus-within:opacity-100 h-105 h-12 h-3.5");
|
|
35
|
+
@source inline("has-[[aria-invalid=true]]:border-field-error hover:bg-muted/50 hover:border-field-ring");
|
|
36
|
+
@source inline("hover:scale-110 hover:text-warning italic left-2.5 li list-none max-h-60 md:flex-col md:gap-0.5");
|
|
36
37
|
@source inline("md:justify-start md:overflow-visible md:text-left md:w-full min-h-20 min-w-64 min-w-full");
|
|
37
38
|
@source inline("min-w-max mix-blend-difference mr-2 pl-1.5 pl-2.5 pointer-coarse:before:-left-1");
|
|
38
39
|
@source inline("pointer-coarse:before:-right-1 pointer-coarse:before:absolute");
|
|
39
40
|
@source inline("pointer-coarse:before:bottom-[calc(var(--hit-slop-y)*-1)]");
|
|
40
|
-
@source inline("pointer-coarse:before:top-[calc(var(--hit-slop-y)*-1)] pointer-coarse:items-center
|
|
41
|
-
@source inline("pr-3 pr-9 pt-1 resize-none resize-y right-1.5 right-3
|
|
42
|
-
@source inline("self-stretch size-7 size-9 size-full sm:w-11 sm:w-56
|
|
43
|
-
@source inline("top-1.5 w-20 w-32 w-36 w-40 w-88 w-fit w-max
|
|
41
|
+
@source inline("pointer-coarse:before:top-[calc(var(--hit-slop-y)*-1)] pointer-coarse:items-center");
|
|
42
|
+
@source inline("pointer-coarse:pr-12 pr-11 pr-16 pr-2 pr-3 pr-9 pt-1 resize-none resize-y right-1.5 right-3");
|
|
43
|
+
@source inline("ring-accent/30 ring-field-error/30 self-stretch size-7 size-9 size-full sm:w-11 sm:w-56");
|
|
44
|
+
@source inline("text-field-placeholder text-success text-xl top-1.5 w-20 w-3.5 w-32 w-36 w-40 w-88 w-fit w-max");
|
|
45
|
+
@source inline("whitespace-pre");
|
|
44
46
|
@source inline('pointer-coarse:before:content-[""]');
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 94 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
@source inline("[&>div]:sm:[grid-template-columns:…] [&_svg]:size-3.5 basis-40 bg-accent/15 bg-accent/40");
|
|
28
28
|
@source inline("bg-background/70 bg-success/10 bg-warning/10 bg-warning/20 border-field-error border-l-2");
|
|
29
29
|
@source inline("border-l-border-strong border-l-destructive border-l-warning bottom-3 col col-span-2 col-start-2");
|
|
30
|
-
@source inline("collapse cursor-help divide-x first:pl-1 focus-visible:ring-field-ring/40
|
|
31
|
-
@source inline("gap-y-0.5 grid-cols-[minmax(0,1fr)_auto]
|
|
32
|
-
@source inline("group-focus-visible/
|
|
33
|
-
@source inline("group-
|
|
34
|
-
@source inline("group/meter group/stat group/tile h-105
|
|
35
|
-
@source inline("hover:bg-muted/50 hover:border-field-ring
|
|
36
|
-
@source inline("left-[var(--timeline-rail-x)] list-none
|
|
37
|
-
@source inline("
|
|
38
|
-
@source inline("
|
|
30
|
+
@source inline("collapse cursor-help disabled:opacity-30 divide-x first:pl-1 focus-visible:ring-field-ring/40");
|
|
31
|
+
@source inline("gap-x-1.5 gap-x-2 gap-y-0.5 grid-cols-3 grid-cols-4 grid-cols-[minmax(0,1fr)_auto]");
|
|
32
|
+
@source inline("group-focus-visible/meter:opacity-100 group-focus-visible/stat:opacity-100");
|
|
33
|
+
@source inline("group-focus-visible/tile:opacity-100 group-hover/meter:opacity-100 group-hover/stat:opacity-100");
|
|
34
|
+
@source inline("group-hover/tile:opacity-100 group/meter group/stat group/tile h-105 h-3.5");
|
|
35
|
+
@source inline("has-[[aria-invalid=true]]:border-field-error hover:bg-muted/50 hover:border-field-ring");
|
|
36
|
+
@source inline("hover:text-warning last:pr-1 left-3 left-[var(--timeline-rail-x)] list-none max-h-60 min-h-20");
|
|
37
|
+
@source inline("min-h-9 min-w-34 min-w-full mr-0.5 mr-1.5 mr-2 normal-case pl-1.5 pointer-coarse:pr-12 pr-11");
|
|
38
|
+
@source inline("pr-16 pr-3 pt-1 resize-none resize-y ring-field-error/30 rounded-b-md rounded-t-md row-start-1");
|
|
39
|
+
@source inline("self-stretch shadow-md size-7 sm:col-auto sm:col-span-1 sm:flex-nowrap");
|
|
39
40
|
@source inline("sm:grid-cols-[minmax(7rem,18rem)_minmax(4rem,1fr)_auto]");
|
|
40
41
|
@source inline("sm:grid-cols-[minmax(7rem,34rem)_minmax(4rem,1fr)_auto] sm:row-auto sm:truncate text-3xl");
|
|
41
42
|
@source inline("text-[length:var(--text-glyph)] text-field-placeholder text-foreground/80 text-success text-xl");
|
|
42
|
-
@source inline("top-7 tracking-normal w-36 w-48 w-88 whitespace-pre z-[1]");
|
|
43
|
+
@source inline("top-7 tracking-normal w-3.5 w-36 w-48 w-88 whitespace-pre z-[1]");
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 33 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
25
25
|
* import closures rather than a hand-written list, is scripts/styleAreas.ts.
|
|
26
26
|
*/
|
|
27
|
-
@source inline("border-field-error collapse disabled:bg-transparent disabled:opacity-100");
|
|
28
|
-
@source inline("focus-visible:ring-field-ring/40
|
|
29
|
-
@source inline("hover:border-field-ring hover:text-warning
|
|
30
|
-
@source inline("
|
|
31
|
-
@source inline("w-88");
|
|
27
|
+
@source inline("border-field-error collapse disabled:bg-transparent disabled:opacity-100 disabled:opacity-30");
|
|
28
|
+
@source inline("focus-visible:ring-field-ring/40 grid-cols-3 grid-cols-4 h-105 h-3.5");
|
|
29
|
+
@source inline("has-[[aria-invalid=true]]:border-field-error hover:border-field-ring hover:text-warning max-h-60");
|
|
30
|
+
@source inline("min-h-20 mr-1.5 mr-2 pl-1.5 pointer-coarse:pr-12 pr-11 pr-16 pr-3 resize-none resize-y");
|
|
31
|
+
@source inline("ring-field-error/30 self-stretch size-7 sm:inline text-field-placeholder text-xl w-3.5 w-36 w-88");
|
package/src/styles-utilities.css
CHANGED
|
@@ -773,6 +773,9 @@
|
|
|
773
773
|
.max-h-56 {
|
|
774
774
|
max-height: calc(var(--spacing) * 56);
|
|
775
775
|
}
|
|
776
|
+
.max-h-60 {
|
|
777
|
+
max-height: calc(var(--spacing) * 60);
|
|
778
|
+
}
|
|
776
779
|
.max-h-64 {
|
|
777
780
|
max-height: calc(var(--spacing) * 64);
|
|
778
781
|
}
|
|
@@ -1371,6 +1374,9 @@
|
|
|
1371
1374
|
.grid-cols-2 {
|
|
1372
1375
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1373
1376
|
}
|
|
1377
|
+
.grid-cols-3 {
|
|
1378
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1379
|
+
}
|
|
1374
1380
|
.grid-cols-4 {
|
|
1375
1381
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1376
1382
|
}
|
|
@@ -2733,6 +2739,9 @@
|
|
|
2733
2739
|
.pr-10 {
|
|
2734
2740
|
padding-right: calc(var(--spacing) * 10);
|
|
2735
2741
|
}
|
|
2742
|
+
.pr-11 {
|
|
2743
|
+
padding-right: calc(var(--spacing) * 11);
|
|
2744
|
+
}
|
|
2736
2745
|
.pr-16 {
|
|
2737
2746
|
padding-right: calc(var(--spacing) * 16);
|
|
2738
2747
|
}
|
|
@@ -4183,6 +4192,9 @@
|
|
|
4183
4192
|
.disabled\:opacity-0:disabled {
|
|
4184
4193
|
opacity: 0%;
|
|
4185
4194
|
}
|
|
4195
|
+
.disabled\:opacity-30:disabled {
|
|
4196
|
+
opacity: 30%;
|
|
4197
|
+
}
|
|
4186
4198
|
.disabled\:opacity-40:disabled {
|
|
4187
4199
|
opacity: 40%;
|
|
4188
4200
|
}
|
|
@@ -5243,6 +5255,9 @@
|
|
|
5243
5255
|
.pointer-coarse\:p-0 {
|
|
5244
5256
|
padding: 0px;
|
|
5245
5257
|
}
|
|
5258
|
+
.pointer-coarse\:pr-12 {
|
|
5259
|
+
padding-right: calc(var(--spacing) * 12);
|
|
5260
|
+
}
|
|
5246
5261
|
.pointer-coarse\:opacity-100 {
|
|
5247
5262
|
opacity: 100%;
|
|
5248
5263
|
}
|