cursedbelt 5.94.0 → 5.96.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.
Files changed (71) hide show
  1. package/dist/react/canvas-hud/index.d.ts +2 -2
  2. package/dist/react/canvas-hud/index.d.ts.map +1 -1
  3. package/dist/react/canvas-hud/index.js +1 -1
  4. package/dist/react/canvas-hud/index.js.map +1 -1
  5. package/dist/react/canvas-hud/viewport.d.ts +32 -0
  6. package/dist/react/canvas-hud/viewport.d.ts.map +1 -1
  7. package/dist/react/canvas-hud/viewport.js +51 -0
  8. package/dist/react/canvas-hud/viewport.js.map +1 -1
  9. package/dist/react/components/AppShell.d.ts +12 -1
  10. package/dist/react/components/AppShell.d.ts.map +1 -1
  11. package/dist/react/components/AppShell.js +24 -5
  12. package/dist/react/components/AppShell.js.map +1 -1
  13. package/dist/react/components/ComboboxField.js +2 -2
  14. package/dist/react/components/ComboboxField.js.map +1 -1
  15. package/dist/react/components/DatePicker.d.ts +9 -5
  16. package/dist/react/components/DatePicker.d.ts.map +1 -1
  17. package/dist/react/components/DatePicker.js +192 -27
  18. package/dist/react/components/DatePicker.js.map +1 -1
  19. package/dist/react/components/InlineEditableText.d.ts +12 -2
  20. package/dist/react/components/InlineEditableText.d.ts.map +1 -1
  21. package/dist/react/components/InlineEditableText.js +11 -8
  22. package/dist/react/components/InlineEditableText.js.map +1 -1
  23. package/dist/react/components/Popover.d.ts +7 -1
  24. package/dist/react/components/Popover.d.ts.map +1 -1
  25. package/dist/react/components/Popover.js +54 -4
  26. package/dist/react/components/Popover.js.map +1 -1
  27. package/dist/react/components/suggestionList.js +2 -2
  28. package/dist/react/components/suggestionList.js.map +1 -1
  29. package/dist/react/lib/dateText.d.ts +21 -0
  30. package/dist/react/lib/dateText.d.ts.map +1 -0
  31. package/dist/react/lib/dateText.js +94 -0
  32. package/dist/react/lib/dateText.js.map +1 -0
  33. package/dist/react/lib/floatingSide.d.ts +42 -0
  34. package/dist/react/lib/floatingSide.d.ts.map +1 -0
  35. package/dist/react/lib/floatingSide.js +54 -0
  36. package/dist/react/lib/floatingSide.js.map +1 -0
  37. package/dist/react/lib/floatingStyles.d.ts +12 -0
  38. package/dist/react/lib/floatingStyles.d.ts.map +1 -1
  39. package/dist/react/lib/floatingStyles.js +12 -0
  40. package/dist/react/lib/floatingStyles.js.map +1 -1
  41. package/dist/styles-areas/analytics.css +11 -10
  42. package/dist/styles-areas/data-table.css +13 -12
  43. package/dist/styles-areas/fields.css +12 -10
  44. package/dist/styles-areas/stats.css +12 -11
  45. package/dist/styles-areas/wizard.css +6 -6
  46. package/dist/styles-utilities.css +15 -0
  47. package/package.json +3 -2
  48. package/src/react/canvas-hud/index.ts +10 -0
  49. package/src/react/canvas-hud/viewport.spec.ts +70 -0
  50. package/src/react/canvas-hud/viewport.ts +77 -0
  51. package/src/react/components/AppShell.spec.tsx +53 -0
  52. package/src/react/components/AppShell.tsx +79 -23
  53. package/src/react/components/ComboboxField.tsx +2 -2
  54. package/src/react/components/ControlHeightScale.spec.tsx +2 -2
  55. package/src/react/components/DatePicker.spec.tsx +186 -5
  56. package/src/react/components/DatePicker.tsx +416 -63
  57. package/src/react/components/InlineEditableText.spec.tsx +29 -0
  58. package/src/react/components/InlineEditableText.tsx +26 -10
  59. package/src/react/components/Popover.tsx +62 -5
  60. package/src/react/components/suggestionList.tsx +2 -2
  61. package/src/react/lib/dateText.ts +94 -0
  62. package/src/react/lib/floatingSide.spec.ts +37 -0
  63. package/src/react/lib/floatingSide.ts +73 -0
  64. package/src/react/lib/floatingStyles.spec.ts +36 -1
  65. package/src/react/lib/floatingStyles.ts +13 -0
  66. package/src/styles-areas/analytics.css +11 -10
  67. package/src/styles-areas/data-table.css +13 -12
  68. package/src/styles-areas/fields.css +12 -10
  69. package/src/styles-areas/stats.css +12 -11
  70. package/src/styles-areas/wizard.css +6 -6
  71. 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
+ const MONTHS = [
13
+ 'january',
14
+ 'february',
15
+ 'march',
16
+ 'april',
17
+ 'may',
18
+ 'june',
19
+ 'july',
20
+ 'august',
21
+ 'september',
22
+ 'october',
23
+ 'november',
24
+ 'december',
25
+ ];
26
+ /** A month index (0-11) for a name or a 3+ letter prefix of one ("sept", "Dec"), else -1. */
27
+ function monthIndex(word) {
28
+ const w = word.toLowerCase().replace(/\.$/, '');
29
+ if (w.length < 3)
30
+ return -1;
31
+ return MONTHS.findIndex((name) => name.startsWith(w));
32
+ }
33
+ function expandYear(token, now) {
34
+ if (/^\d{4}$/.test(token)) {
35
+ const year = Number(token);
36
+ return year >= 1000 ? year : null;
37
+ }
38
+ if (/^\d{2}$/.test(token)) {
39
+ const year = 2000 + Number(token);
40
+ return year > now.getFullYear() + 10 ? year - 100 : year;
41
+ }
42
+ return null;
43
+ }
44
+ function build(year, month, day) {
45
+ if (year === null)
46
+ return { ok: false, reason: 'Use a four-digit year' };
47
+ if (month < 0 || month > 11)
48
+ return { ok: false, reason: 'That month does not exist' };
49
+ const date = new Date(year, month, day);
50
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
51
+ return { ok: false, reason: 'That date does not exist' };
52
+ }
53
+ const mm = String(month + 1).padStart(2, '0');
54
+ const dd = String(day).padStart(2, '0');
55
+ return { ok: true, iso: `${String(year).padStart(4, '0')}-${mm}-${dd}` };
56
+ }
57
+ const INVALID = { ok: false, reason: 'Enter a date like Dec 5, 2015 or 12/5/2015' };
58
+ /** Parse typed text into an ISO `YYYY-MM-DD` day. Pure; `now` only picks the century of a 2-digit year. */
59
+ export function parseDateText(text, now = new Date()) {
60
+ const raw = text.trim();
61
+ if (!raw)
62
+ return INVALID;
63
+ // Numeric forms: Y-M-D (ISO first), then M/D/Y with / - or . between.
64
+ const numeric = raw.match(/^(\d{1,4})([/.-])(\d{1,2})\2(\d{1,4})$/);
65
+ if (numeric) {
66
+ const [, a, , b, c] = numeric;
67
+ if (a.length === 4)
68
+ return build(expandYear(a, now), Number(b) - 1, Number(c));
69
+ return build(expandYear(c, now), Number(a) - 1, Number(b));
70
+ }
71
+ // Month-name forms, in any order of day / month / year.
72
+ const tokens = raw
73
+ .replace(/,/g, ' ')
74
+ .split(/\s+/)
75
+ .filter(Boolean)
76
+ .filter((t) => t.toLowerCase() !== 'of');
77
+ if (tokens.length !== 3)
78
+ return INVALID;
79
+ const nameAt = tokens.findIndex((t) => monthIndex(t) >= 0);
80
+ if (nameAt < 0)
81
+ return INVALID;
82
+ const month = monthIndex(tokens[nameAt]);
83
+ const nums = tokens
84
+ .filter((_, i) => i !== nameAt)
85
+ .map((t) => t.replace(/^(\d{1,2})(st|nd|rd|th)$/i, '$1'));
86
+ if (!nums.every((t) => /^\d+$/.test(t)))
87
+ return INVALID;
88
+ const [first, second] = nums;
89
+ // "2015 Dec 5": a four-digit first number is the year. Otherwise day then year.
90
+ if (first.length === 4)
91
+ return build(expandYear(first, now), month, Number(second));
92
+ return build(expandYear(second, now), month, Number(first));
93
+ }
94
+ //# sourceMappingURL=dateText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateText.js","sourceRoot":"","sources":["../../../src/react/lib/dateText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,MAAM,GAAG;IACb,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW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AAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAwB,CAAC;IACjD,gFAAgF;IAChF,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACpF,OAAO,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Which side of its anchor a floating panel opens on, decided from the panel's NATURAL size.
3
+ *
4
+ * 🔴 Radix's `flip` cannot do this for the belt's panels. `FLOATING_CONTENT_BASE` caps a panel's
5
+ * height at the room on its side (`--radix-popper-available-height`) so a long menu scrolls
6
+ * instead of running off the screen, and a panel capped to the room it has never overflows, so
7
+ * `flip` never fires. A tall panel opened toward the cramped side stayed there and shrank, with
8
+ * the roomy side empty. Measured 2026-10-26 in photos' "Who is this?" (forge task 3776): at
9
+ * 1280×720, a face with 322px above and 335px below kept the panel below it at 295px, its last
10
+ * button at y=841, off the screen.
11
+ *
12
+ * So the side is chosen here, against the height the content WOULD take uncapped (its
13
+ * `scrollHeight`): the side asked for if the panel fits there, else the opposite side, else
14
+ * BESIDE the anchor (where a wide screen has the whole height), else whichever of the asked-for
15
+ * side and its opposite has more room. The height cap stays. It is what keeps the last case on
16
+ * the screen.
17
+ */
18
+ export type FloatingSide = 'top' | 'right' | 'bottom' | 'left';
19
+ interface Rect {
20
+ top: number;
21
+ right: number;
22
+ bottom: number;
23
+ left: number;
24
+ }
25
+ interface Size {
26
+ width: number;
27
+ height: number;
28
+ }
29
+ /**
30
+ * @param requested the side the caller asked for
31
+ * @param anchor the trigger's or anchor's rect, in viewport pixels
32
+ * @param viewport the visible viewport
33
+ * @param panel the panel's natural size, uncapped
34
+ * @param gap the space kept between anchor and panel (`sideOffset`), plus the collision
35
+ * padding kept from the screen's edge
36
+ */
37
+ export declare function floatingSideFor(requested: FloatingSide, anchor: Rect, viewport: Size, panel: Size, gap: {
38
+ offset: number;
39
+ padding: number;
40
+ }): FloatingSide;
41
+ export {};
42
+ //# sourceMappingURL=floatingSide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floatingSide.d.ts","sourceRoot":"","sources":["../../../src/react/lib/floatingSide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/D,UAAU,IAAI;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAWD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,IAAI,EACX,GAAG,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC,YAAY,CAiBd"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Which side of its anchor a floating panel opens on, decided from the panel's NATURAL size.
3
+ *
4
+ * 🔴 Radix's `flip` cannot do this for the belt's panels. `FLOATING_CONTENT_BASE` caps a panel's
5
+ * height at the room on its side (`--radix-popper-available-height`) so a long menu scrolls
6
+ * instead of running off the screen, and a panel capped to the room it has never overflows, so
7
+ * `flip` never fires. A tall panel opened toward the cramped side stayed there and shrank, with
8
+ * the roomy side empty. Measured 2026-10-26 in photos' "Who is this?" (forge task 3776): at
9
+ * 1280×720, a face with 322px above and 335px below kept the panel below it at 295px, its last
10
+ * button at y=841, off the screen.
11
+ *
12
+ * So the side is chosen here, against the height the content WOULD take uncapped (its
13
+ * `scrollHeight`): the side asked for if the panel fits there, else the opposite side, else
14
+ * BESIDE the anchor (where a wide screen has the whole height), else whichever of the asked-for
15
+ * side and its opposite has more room. The height cap stays. It is what keeps the last case on
16
+ * the screen.
17
+ */
18
+ const OPPOSITE = {
19
+ top: 'bottom',
20
+ bottom: 'top',
21
+ left: 'right',
22
+ right: 'left',
23
+ };
24
+ const isVertical = (side) => side === 'top' || side === 'bottom';
25
+ /**
26
+ * @param requested the side the caller asked for
27
+ * @param anchor the trigger's or anchor's rect, in viewport pixels
28
+ * @param viewport the visible viewport
29
+ * @param panel the panel's natural size, uncapped
30
+ * @param gap the space kept between anchor and panel (`sideOffset`), plus the collision
31
+ * padding kept from the screen's edge
32
+ */
33
+ export function floatingSideFor(requested, anchor, viewport, panel, gap) {
34
+ const room = {
35
+ top: anchor.top - gap.offset - gap.padding,
36
+ bottom: viewport.height - anchor.bottom - gap.offset - gap.padding,
37
+ left: anchor.left - gap.offset - gap.padding,
38
+ right: viewport.width - anchor.right - gap.offset - gap.padding,
39
+ };
40
+ const fits = (side) => isVertical(side)
41
+ ? room[side] >= panel.height && panel.width <= viewport.width - 2 * gap.padding
42
+ : room[side] >= panel.width && panel.height <= viewport.height - 2 * gap.padding;
43
+ const opposite = OPPOSITE[requested];
44
+ if (fits(requested))
45
+ return requested;
46
+ if (fits(opposite))
47
+ return opposite;
48
+ const beside = isVertical(requested) ? ['right', 'left'] : ['bottom', 'top'];
49
+ for (const side of beside)
50
+ if (fits(side))
51
+ return side;
52
+ return room[requested] >= room[opposite] ? requested : opposite;
53
+ }
54
+ //# sourceMappingURL=floatingSide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floatingSide.js","sourceRoot":"","sources":["../../../src/react/lib/floatingSide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAgBH,MAAM,QAAQ,GAAuC;I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SAAS,CAAC;IACtC,IAAI,IAAI,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IACpC,MAAM,MAAM,GAAmB,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7F,KAAK,MAAM,IAAI,IAAI,MAAM;QAAE,IAAI,IAAI,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;IACvD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAClE,CAAC"}
@@ -23,6 +23,18 @@
23
23
  * so it reads as a floating surface rather than as a pane that ran out of screen.
24
24
  */
25
25
  export declare const FLOATING_COLLISION_PADDING = 16;
26
+ /**
27
+ * The class every Base UI `*.Positioner` carries (ComboboxField's list, the Autocomplete
28
+ * suggestion list) — its stacking AND its pointer events, one string so the two cannot drift.
29
+ *
30
+ * 🔴 `pointer-events-auto`: Base UI portals the list into `<body>`, and an open Radix modal
31
+ * (a belt `Modal` or `Drawer`) sets `body { pointer-events: none }`, so a list opened inside a
32
+ * dialog painted over it and every tap fell through to the dialog (measured 2026-10-25, photos'
33
+ * place picker in the phone's Details drawer, forge task 3764). Radix still counts a press on the
34
+ * list as inside — its DismissableLayer tracks the React tree — so the dialog stays open.
35
+ * `floatingStyles.spec.ts` fails on a Positioner in this library that does not use it.
36
+ */
37
+ export declare const BASE_UI_POSITIONER = "pointer-events-auto z-[var(--z-popover)]";
26
38
  /**
27
39
  * Base surface for any floating panel: overlay elevation, popover tokens, ring-free.
28
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"floatingStyles.d.ts","sourceRoot":"","sources":["../../../src/react/lib/floatingStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,QAIY,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,QAOS,CAAC;AAEzC;;8BAE8B;AAC9B,eAAO,MAAM,kBAAkB,QAAkB,CAAC"}
1
+ {"version":3,"file":"floatingStyles.d.ts","sourceRoot":"","sources":["../../../src/react/lib/floatingStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,6CAA6C,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,QAIY,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,QAOS,CAAC;AAEzC;;8BAE8B;AAC9B,eAAO,MAAM,kBAAkB,QAAkB,CAAC"}
@@ -25,6 +25,18 @@ import { TAP_TARGET_HEIGHT } from './tapTarget.js';
25
25
  * so it reads as a floating surface rather than as a pane that ran out of screen.
26
26
  */
27
27
  export const FLOATING_COLLISION_PADDING = 16;
28
+ /**
29
+ * The class every Base UI `*.Positioner` carries (ComboboxField's list, the Autocomplete
30
+ * suggestion list) — its stacking AND its pointer events, one string so the two cannot drift.
31
+ *
32
+ * 🔴 `pointer-events-auto`: Base UI portals the list into `<body>`, and an open Radix modal
33
+ * (a belt `Modal` or `Drawer`) sets `body { pointer-events: none }`, so a list opened inside a
34
+ * dialog painted over it and every tap fell through to the dialog (measured 2026-10-25, photos'
35
+ * place picker in the phone's Details drawer, forge task 3764). Radix still counts a press on the
36
+ * list as inside — its DismissableLayer tracks the React tree — so the dialog stays open.
37
+ * `floatingStyles.spec.ts` fails on a Positioner in this library that does not use it.
38
+ */
39
+ export const BASE_UI_POSITIONER = 'pointer-events-auto z-[var(--z-popover)]';
28
40
  /**
29
41
  * Base surface for any floating panel: overlay elevation, popover tokens, ring-free.
30
42
  *
@@ -1 +1 @@
1
- {"version":3,"file":"floatingStyles.js","sourceRoot":"","sources":["../../../src/react/lib/floatingStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAChC,0FAA0F;IAC1F,8CAA8C;IAC9C,iFAAiF;IACjF,4CAA4C,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,0GAA0G;IAC1G,+EAA+E;IAC/E,gFAAgF;IAChF,6EAA6E;IAC7E,GAAG,iBAAiB,GAAG;IACvB,iEAAiE;IACjE,sCAAsC,CAAC;AAEzC;;8BAE8B;AAC9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"floatingStyles.js","sourceRoot":"","sources":["../../../src/react/lib/floatingStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,0CAA0C,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAChC,0FAA0F;IAC1F,8CAA8C;IAC9C,iFAAiF;IACjF,4CAA4C,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,0GAA0G;IAC1G,+EAA+E;IAC/E,gFAAgF;IAChF,6EAA6E;IAC7E,GAAG,iBAAiB,GAAG;IACvB,iEAAiE;IACjE,sCAAsC,CAAC;AAEzC;;8BAE8B;AAC9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC"}
@@ -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
- * 142 candidate(s).
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-40 fade-in focus-visible:ring-field-ring/40 from-card");
38
- @source inline("gap-x-6 h-0 h-105 has-[[aria-invalid=true]]:border-field-error hover:bg-background");
39
- @source inline("hover:bg-muted/40 hover:border-field-ring hover:text-warning italic justify-self-end");
40
- @source inline("last:border-0 left-11 left-2.5 list-none max-h-88 max-sm:flex-1 max-sm:flex-wrap max-sm:min-w-0");
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 pt-1 py-0! resize-none");
44
- @source inline("resize-y right-3 ring-field-error/30 self self-stretch shadow-[1px_0_0_0_var(--color-border)]");
45
- @source inline("shrink-[2] size-7 slide-in-from-top-1 table-fixed text-[length:0] text-accent-solid-foreground");
46
- @source inline("text-field-placeholder text-success text-xl to-transparent top-3 w-0 w-0! w-11 w-12 w-20 w-32");
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
- * 137 candidate(s).
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-40 fade-in focus-visible:ring-field-ring/40 from-card");
38
- @source inline("gap-x-6 h-0 h-105 has-[[aria-invalid=true]]:border-field-error hover:bg-background");
39
- @source inline("hover:bg-muted/40 hover:border-field-ring hover:text-warning justify-self-end last:border-0");
40
- @source inline("left-11 left-2.5 list-none max-h-88 max-sm:flex-1 max-sm:flex-wrap max-sm:min-w-0");
41
- @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
- @source inline("max-w-60 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");
43
- @source inline("ordinal p-0! pb-1.5 pl-1.5 pr-0.5 pr-10 pr-16 pr-3 pr-9 pt-1 py-0! resize-none resize-y right-3");
44
- @source inline("ring-field-error/30 self self-stretch shadow-[1px_0_0_0_var(--color-border)] size-7");
45
- @source inline("slide-in-from-top-1 table-fixed text-[length:0] text-accent-solid-foreground");
46
- @source inline("text-field-placeholder text-success text-xl to-transparent top-3 w-0! w-11 w-12 w-20 w-32 w-36");
47
- @source inline("w-40 w-88");
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
- * 87 candidate(s).
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-40");
32
- @source inline("focus-visible:border-border-strong focus-visible:ring-0 focus-visible:ring-field-ring/40");
33
- @source inline("focus-within:ring-offset-1 focus-within:ring-ring group-focus-within:opacity-100 h-105 h-12");
34
- @source inline("h-3.5 has-[[aria-invalid=true]]:border-field-error hover:bg-muted/50 hover:border-field-ring");
35
- @source inline("hover:scale-110 hover:text-warning italic left-2.5 li list-none md:flex-col md:gap-0.5");
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 pr-16 pr-2");
41
- @source inline("pr-3 pr-9 pt-1 resize-none resize-y right-1.5 right-3 ring-accent/30 ring-field-error/30");
42
- @source inline("self-stretch size-7 size-9 size-full sm:w-11 sm:w-56 text-field-placeholder text-success text-xl");
43
- @source inline("top-1.5 w-20 w-32 w-36 w-40 w-88 w-fit w-max whitespace-pre");
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
- * 86 candidate(s).
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 gap-x-1.5 gap-x-2");
31
- @source inline("gap-y-0.5 grid-cols-[minmax(0,1fr)_auto] group-focus-visible/meter:opacity-100");
32
- @source inline("group-focus-visible/stat:opacity-100 group-focus-visible/tile:opacity-100");
33
- @source inline("group-hover/meter:opacity-100 group-hover/stat:opacity-100 group-hover/tile:opacity-100");
34
- @source inline("group/meter group/stat group/tile h-105 has-[[aria-invalid=true]]:border-field-error");
35
- @source inline("hover:bg-muted/50 hover:border-field-ring hover:text-warning last:pr-1 left-3");
36
- @source inline("left-[var(--timeline-rail-x)] list-none min-h-20 min-h-9 min-w-34 min-w-full mr-0.5 mr-1.5 mr-2");
37
- @source inline("normal-case pl-1.5 pr-16 pr-3 pt-1 resize-none resize-y ring-field-error/30 rounded-b-md");
38
- @source inline("rounded-t-md row-start-1 self-stretch shadow-md size-7 sm:col-auto sm:col-span-1 sm:flex-nowrap");
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
- * 25 candidate(s).
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 h-105 has-[[aria-invalid=true]]:border-field-error");
29
- @source inline("hover:border-field-ring hover:text-warning min-h-20 mr-1.5 mr-2 pl-1.5 pr-16 pr-3 resize-none");
30
- @source inline("resize-y ring-field-error/30 self-stretch size-7 sm:inline text-field-placeholder text-xl w-36");
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");
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedbelt",
3
- "version": "5.94.0",
3
+ "version": "5.96.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "description": "The React design system of the cursedbelt split — components, styles, theme. cursedbelt-core below it; server tier in cursedbelt-server.",
@@ -100,6 +100,7 @@
100
100
  "e2e:page-layout": "playwright test --config e2e/playwright.config.ts page-layout.spec.ts",
101
101
  "e2e:touch": "playwright test --config e2e/playwright.config.ts --project=touch",
102
102
  "e2e:tap-away": "playwright test --config e2e/playwright.config.ts tap-away.spec.ts",
103
+ "e2e:popover-room": "playwright test --config e2e/playwright.config.ts popover-room.spec.ts",
103
104
  "done:serial": "bun run typecheck && bun run lint && bun run test && bun run build",
104
105
  "paths": "bun run scripts/paths.ts",
105
106
  "surface": "public-surface",
@@ -951,7 +952,7 @@
951
952
  "@vidstack/react": "1.15.6",
952
953
  "@vitejs/plugin-react": "^5.2.0",
953
954
  "cursedbelt-server": "^4.43.1",
954
- "cursedops": "^0.19.0",
955
+ "cursedops": "^0.20.0",
955
956
  "diff": "^9.0.0",
956
957
  "emoji-mart": "^5.6.0",
957
958
  "hls.js": "^1.5.0",
@@ -24,17 +24,27 @@ export type {
24
24
  CanvasSize,
25
25
  CanvasView,
26
26
  FitOptions,
27
+ ImageZoomLimits,
27
28
  LevelOfDetail,
28
29
  LevelOfDetailThresholds,
29
30
  } from './viewport.js';
30
31
  export {
31
32
  centerView,
33
+ clampImageView,
32
34
  clampScale,
33
35
  fitScale,
34
36
  fitView,
37
+ IMAGE_FIT,
38
+ IMAGE_ZOOM_STEPS,
39
+ imageWheelFactor,
40
+ imageZoomLabel,
41
+ isImageZoomed,
35
42
  LEVEL_OF_DETAIL,
36
43
  levelOfDetail,
44
+ panImageBy,
45
+ stepImageScale,
37
46
  visibleBounds,
38
47
  wheelZoomFactor,
39
48
  zoomAt,
49
+ zoomImageAt,
40
50
  } from './viewport.js';