@nadicodeai/ui 12.1.215 → 12.1.216

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.
@@ -1 +1 @@
1
- {"version":3,"file":"collection-filters.d.ts","sourceRoot":"","sources":["../../src/components/collection-filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC3C,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA8HF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACpC,IAAI,EAA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C,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,sBAAsB,4BAmFzE"}
@@ -32,7 +32,7 @@ function FilterPicker({ facets, copy, initialField, returnFocus, children, }) {
32
32
  setOpen(next);
33
33
  if (next)
34
34
  changeField(initialField);
35
- }, children: [_jsx(PopoverTrigger, { render: children }), _jsxs(PopoverContent, { align: "start", className: "max-h-(--available-height) overflow-y-auto", initialFocus: input, children: [_jsx(PopoverTitle, { className: "sr-only", children: facet?.label ?? copy.add }), facet ? (_jsx(Button, { variant: "ghost", className: "justify-start", prefix: _jsx(ArrowLeft, {}), onClick: () => changeField(undefined), children: copy.back })) : null, _jsxs(Command, { label: facet ? `${copy.searchValues}: ${facet.label}` : copy.searchFields, resultCount: copy.results, onKeyDown: (event) => {
35
+ }, children: [_jsx(PopoverTrigger, { render: children }), _jsxs(PopoverContent, { align: "start", initialFocus: input, children: [_jsx(PopoverTitle, { className: "sr-only", children: facet?.label ?? copy.add }), facet ? (_jsx(Button, { variant: "ghost", className: "justify-start", prefix: _jsx(ArrowLeft, {}), onClick: () => changeField(undefined), children: copy.back })) : null, _jsxs(Command, { label: facet ? `${copy.searchValues}: ${facet.label}` : copy.searchFields, resultCount: copy.results, onKeyDown: (event) => {
36
36
  if (event.key === "Backspace" && !search && facet) {
37
37
  event.preventDefault();
38
38
  changeField(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-heatmap.d.ts","sourceRoot":"","sources":["../../../src/components/heatmap/calendar-heatmap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAWvD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,M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B,EAAE,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,SAAS,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,mDAMjC,wBAAwB,gCAoB1B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC,GAAG;IAC/F,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,uDAKnC,0BAA0B,gCA+C5B,CAAC"}
@@ -9,7 +9,7 @@ import { getYear } from "date-fns/getYear";
9
9
  import { nextDay } from "date-fns/nextDay";
10
10
  import { parseISO } from "date-fns/parseISO";
11
11
  import { subWeeks } from "date-fns/subWeeks";
12
- import { createContext, Fragment, use, useMemo, useState } from "react";
12
+ import { createContext, Fragment, use, useMemo } from "react";
13
13
  import { cn } from "../../lib/utils.js";
14
14
  // Non-normalized: 1 empty + (levels-1) colored steps. Normalized: levels colored steps, no empty.
15
15
  const colorStepCount = (levels, isNormalized) => Math.max(1, isNormalized ? levels : levels - 1);
@@ -313,36 +313,38 @@ export const CalendarHeatmap = ({ data, weekStart = 0, continuousMonths = true,
313
313
  }), [locale, labelsProp]);
314
314
  const labelHeight = fontSize + LABEL_MARGIN;
315
315
  const firstDatum = data[0];
316
- const [thisYear] = useState(() => new Date().getFullYear());
317
- const year = firstDatum ? getYear(parseISO(firstDatum.date)) : thisYear;
316
+ // Only drawn data has a year: an empty heatmap draws its empty state, so it never reads the clock.
317
+ const year = firstDatum ? getYear(parseISO(firstDatum.date)) : undefined;
318
318
  const totalCount = totalCountProp ?? dataWithLevels.reduce((sum, activity) => sum + (activity.value ?? 0), 0);
319
319
  const blockWidth = blockSize * blockAspectRatio;
320
320
  const width = weeks.length * (blockWidth + blockMargin) - blockMargin;
321
321
  const height = labelHeight + (blockSize + blockMargin) * 7 - blockMargin;
322
- const contextValue = useMemo(() => ({
323
- data: dataWithLevels,
324
- weeks,
325
- yearRows,
326
- blockMargin,
327
- blockRadius,
328
- blockSize,
329
- blockAspectRatio,
330
- blockWidth,
331
- fontSize,
332
- labels,
333
- labelHeight,
334
- levels,
335
- isNormalized,
336
- totalCount,
337
- weekStart,
338
- year,
339
- width,
340
- height,
341
- hasEmptyColumn,
342
- continuousMonths,
343
- locale,
344
- colors,
345
- }), [
322
+ const contextValue = useMemo(() => year === undefined
323
+ ? undefined
324
+ : {
325
+ data: dataWithLevels,
326
+ weeks,
327
+ yearRows,
328
+ blockMargin,
329
+ blockRadius,
330
+ blockSize,
331
+ blockAspectRatio,
332
+ blockWidth,
333
+ fontSize,
334
+ labels,
335
+ labelHeight,
336
+ levels,
337
+ isNormalized,
338
+ totalCount,
339
+ weekStart,
340
+ year,
341
+ width,
342
+ height,
343
+ hasEmptyColumn,
344
+ continuousMonths,
345
+ locale,
346
+ colors,
347
+ }, [
346
348
  dataWithLevels,
347
349
  weeks,
348
350
  yearRows,
@@ -366,7 +368,7 @@ export const CalendarHeatmap = ({ data, weekStart = 0, continuousMonths = true,
366
368
  locale,
367
369
  colors,
368
370
  ]);
369
- if (data.length === 0) {
371
+ if (contextValue === undefined) {
370
372
  if (!emptyState)
371
373
  return null;
372
374
  return emptyState;
@@ -1 +1 @@
1
- {"version":3,"file":"model-mark.d.ts","sourceRoot":"","sources":["../../src/components/model-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0E/B,gHAAgH;AAChH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAShD;AA8DD,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,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
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { cn } from "../lib/utils.js";
4
+ import { scopedIds } from "../internal/scoped-ids.js";
4
5
  /**
5
6
  * The one table of names: an OpenRouter author slug whose maker LobeHub's icon
6
7
  * set files under another name. Every other author is looked up by its slug.
@@ -112,17 +113,6 @@ function makerMark(name) {
112
113
  function sizedToGlyph(svg) {
113
114
  return svg.replace(/^<svg\b/, '<svg class="size-full"');
114
115
  }
115
- /** The artwork's ids, scoped to one drawing, so two marks on a page never share a gradient. */
116
- function scopedIds(svg, scope) {
117
- let scoped = svg;
118
- for (const [, id] of svg.matchAll(/\sid="([^"]+)"/g)) {
119
- scoped = scoped
120
- .replaceAll(`id="${id}"`, `id="${scope}-${id}"`)
121
- .replaceAll(`#${id})`, `#${scope}-${id})`)
122
- .replaceAll(`#${id}"`, `#${scope}-${id}"`);
123
- }
124
- return scoped;
125
- }
126
116
  /**
127
117
  * The tile and the name. `svg` is the maker's mark, `null` when LobeHub has
128
118
  * none, and `undefined` while it loads, when the tile stays empty at its size.
@@ -117,7 +117,7 @@ function moveFocus(event) {
117
117
  focusIn(row, "check");
118
118
  }
119
119
  function MultiSelectContent({ className, align = "start", sideOffset = 8, onKeyDown, ...props }) {
120
- return (_jsx(PopoverContent, { "data-slot": "multi-select-content", align: align, sideOffset: sideOffset, className: cn("max-h-[min(calc(var(--available-height)-(--spacing(4))),24rem)] w-auto min-w-(--anchor-width) gap-0 overflow-y-auto p-2", className), onKeyDown: (event) => {
120
+ return (_jsx(PopoverContent, { "data-slot": "multi-select-content", align: align, sideOffset: sideOffset, className: cn("max-h-[min(calc(var(--available-height)-(--spacing(4))),24rem)] w-auto min-w-(--anchor-width) gap-0 p-2", className), onKeyDown: (event) => {
121
121
  onKeyDown?.(event);
122
122
  if (!event.defaultPrevented)
123
123
  moveFocus(event);
@@ -1,4 +1,4 @@
1
- import { type IconifyIcon, type IconProps } from "@iconify/react/offline";
1
+ import type { IconifyIcon } from "@iconify/react/offline";
2
2
  import * as React from "react";
3
3
  /**
4
4
  * The platforms the products name, operating systems, hypervisors, messaging
@@ -24,7 +24,7 @@ declare const PLATFORMS: {
24
24
  type PlatformName = keyof typeof PLATFORMS;
25
25
  /** Whether a name, such as a channel a record reports, is a platform with a mark. */
26
26
  declare function isPlatform(name: string): name is PlatformName;
27
- type PlatformMarkProps = Omit<IconProps, "children" | "icon" | "ref"> & {
27
+ type PlatformMarkProps = Omit<React.ComponentProps<"svg">, "children" | "dangerouslySetInnerHTML"> & {
28
28
  platform: PlatformName;
29
29
  /** The box in CSS pixels; the artwork keeps its own ratio inside it. */
30
30
  size?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B;;;;;GAKG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;CAcwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG;IACtE,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAgBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAY1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B;;;;;GAKG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;CAcwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAC3B,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,GAAG,yBAAyB,CACvC,GAAG;IACF,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAoBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from "@iconify/react/offline";
3
2
  import apple from "@iconify-icons/logos/apple";
4
3
  import discord from "@iconify-icons/logos/discord-icon";
5
4
  import google from "@iconify-icons/logos/google-icon";
@@ -13,6 +12,7 @@ import whatsapp from "@iconify-icons/logos/whatsapp-icon";
13
12
  import { alveareMarkGeometry } from "@nadicodeai/design-system/assets/alveare-geometry";
14
13
  import * as React from "react";
15
14
  import { esxi, proxmox } from "../internal/hypervisor-marks.js";
15
+ import { scopedIds } from "../internal/scoped-ids.js";
16
16
  /**
17
17
  * Alveare, nadicode's own chat, which no catalogue carries: its mark, drawn from
18
18
  * Alveare's geometry without the app icon's tile, boxed to the cells, each cell
@@ -78,6 +78,10 @@ function silhouette(icon) {
78
78
  function PlatformMark({ platform, size = 24, ...props }) {
79
79
  const icon = PLATFORMS[platform];
80
80
  const scope = React.useId().replace(/[^\w]/g, "");
81
- return (_jsx(Icon, { ...props, "aria-hidden": "true", "data-platform": platform, "data-slot": "platform-mark", fill: silhouette(icon) ? "currentColor" : undefined, height: size, icon: icon, id: scope, width: size }));
81
+ // Drawn here rather than by Iconify's `Icon`, whose own id scoping reads `Math.random()` while it renders, which
82
+ // a prerender refuses.
83
+ return (_jsx("svg", { ...props, "aria-hidden": "true", "data-platform": platform, "data-slot": "platform-mark",
84
+ // oxlint-disable-next-line react/no-danger -- the artwork is this module's own: Iconify's `logos` modules, Alveare's geometry and the hypervisor marks, never input from a person or a server response
85
+ dangerouslySetInnerHTML: { __html: scopedIds(icon.body, scope) }, fill: silhouette(icon) ? "currentColor" : undefined, height: size, viewBox: `${icon.left ?? 0} ${icon.top ?? 0} ${icon.width ?? 16} ${icon.height ?? 16}`, width: size, xmlns: "http://www.w3.org/2000/svg" }));
82
86
  }
83
87
  export { PlatformMark, isPlatform };
@@ -10,8 +10,9 @@ import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
10
10
  * that adds a record use `FormDialog`. For one phrase use `Tooltip`; facts on hover are a
11
11
  * `HoverCard`, which only this package's components draw, such as `RecordTime`. The product-design
12
12
  * skill's patterns.md, "Choose the surface for a change", decides which surface a job takes.
13
- * @behaviour Solid floating surface, 12 px padding and gap. Opens on click, closes on Escape or
14
- * outside press, focus returns to the trigger. A control set applies at once, with no Save inside;
13
+ * @behaviour Solid floating surface, 12 px padding and gap. It never runs past the window: it is no
14
+ * taller or wider than the room beside its trigger, and what does not fit scrolls inside it. Opens
15
+ * on click, closes on Escape or outside press, focus returns to the trigger. A control set applies at once, with no Save inside;
15
16
  * a feedback form is the exception: its button sends it, it shows its pending and result state, and
16
17
  * it keeps what was typed when sending fails.
17
18
  * @words Title names the control's job (*Filter skills*); an optional one-line description. Options
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAKrE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,qBAE9E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,qBAEnE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,WAAe,EACf,IAAe,EACf,UAAc,EACd,MAAM,EACN,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,GAC7B,IAAI,CACF,gBAAgB,CAAC,UAAU,CAAC,KAAK,EACjC,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAC3D,qBAyBF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,qBAQ1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,WAAW,CAAC,KAAK,qBAQtF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAKrE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,qBAE9E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,qBAEnE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,WAAe,EACf,IAAe,EACf,UAAc,EACd,MAAM,EACN,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,GAC7B,IAAI,CACF,gBAAgB,CAAC,UAAU,CAAC,KAAK,EACjC,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAC3D,qBAyBF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,qBAQ1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,WAAW,CAAC,KAAK,qBAQtF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -12,8 +12,9 @@ import { anchoredOverlayMotion } from "../lib/motion.js";
12
12
  * that adds a record use `FormDialog`. For one phrase use `Tooltip`; facts on hover are a
13
13
  * `HoverCard`, which only this package's components draw, such as `RecordTime`. The product-design
14
14
  * skill's patterns.md, "Choose the surface for a change", decides which surface a job takes.
15
- * @behaviour Solid floating surface, 12 px padding and gap. Opens on click, closes on Escape or
16
- * outside press, focus returns to the trigger. A control set applies at once, with no Save inside;
15
+ * @behaviour Solid floating surface, 12 px padding and gap. It never runs past the window: it is no
16
+ * taller or wider than the room beside its trigger, and what does not fit scrolls inside it. Opens
17
+ * on click, closes on Escape or outside press, focus returns to the trigger. A control set applies at once, with no Save inside;
17
18
  * a feedback form is the exception: its button sends it, it shows its pending and result state, and
18
19
  * it keeps what was typed when sending fails.
19
20
  * @words Title names the control's job (*Filter skills*); an optional one-line description. Options
@@ -29,7 +30,7 @@ function PopoverTrigger({ ...props }) {
29
30
  return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
30
31
  }
31
32
  function PopoverContent({ className, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor, ...props }) {
32
- return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, anchor: anchor, className: "isolate z-50", children: _jsx(PopoverPrimitive.Popup, { "data-slot": "popover-content", "data-nc-ui": "", className: cn("pointer-events-auto", "z-50 flex w-72 flex-col gap-control-padding-inline rounded-lg border-0 bg-popover p-control-padding-inline text-sm text-popover-foreground nc-elevation-floating outline-hidden", anchoredOverlayMotion, className), ...props }) }) }));
33
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, anchor: anchor, className: "isolate z-50", children: _jsx(PopoverPrimitive.Popup, { "data-slot": "popover-content", "data-nc-ui": "", className: cn("pointer-events-auto", "z-50 flex max-h-(--available-height) w-72 max-w-(--available-width) flex-col gap-control-padding-inline overflow-y-auto rounded-lg border-0 bg-popover p-control-padding-inline text-sm text-popover-foreground nc-elevation-floating outline-hidden", anchoredOverlayMotion, className), ...props }) }) }));
33
34
  }
34
35
  function PopoverHeader({ className, ...props }) {
35
36
  return (_jsx("div", { "data-slot": "popover-header", className: cn("flex flex-col gap-0.5 text-sm", className), ...props }));
@@ -36,7 +36,7 @@ export function ScopeSwitcher({ value, options, onValueChange, copy, create, var
36
36
  onValueChange(next);
37
37
  };
38
38
  const switchable = options.length > 1 || create !== undefined;
39
- return (_jsxs("span", { "data-slot": "scope-switcher", className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { "aria-hidden": switchable ? "true" : undefined, className: cn("text-xs font-medium text-muted-foreground", variant === "navigation" && "sr-only"), children: copy.label }), switchable ? (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsxs(PopoverTrigger, { render: _jsx(Button, { variant: "ghost", className: cn("min-w-0 max-w-64 shrink", variant === "navigation" && "max-w-full"), prefix: current?.mark ? _jsx("span", { "aria-hidden": "true", children: current.mark }) : undefined, suffix: _jsx(ChevronsUpDown, { "aria-hidden": "true" }) }), children: [_jsxs("span", { className: "sr-only", children: [copy.label, ":"] }), " ", _jsx("span", { className: "truncate", children: currentLabel })] }), _jsxs(PopoverContent, { align: "start", className: cn("w-72 max-w-[calc(100vw-2rem)] p-0", variant === "navigation" && "w-96"), initialFocus: search, children: [_jsx(PopoverTitle, { className: "sr-only", children: copy.label }), _jsxs(Command, { label: copy.search, resultCount: copy.results, children: [_jsx(CommandInput, { ref: search, "aria-label": copy.search, placeholder: copy.search }), _jsxs(CommandList, { label: copy.label, children: [_jsx(CommandEmpty, { children: copy.empty }), groups.map(([group, items]) => (_jsx(CommandGroup, { heading: group, children: items.map((option) => (_jsxs(CommandItem, { value: option.value, keywords: [
39
+ return (_jsxs("span", { "data-slot": "scope-switcher", className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { "aria-hidden": switchable ? "true" : undefined, className: cn("text-xs font-medium text-muted-foreground", variant === "navigation" && "sr-only"), children: copy.label }), switchable ? (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsxs(PopoverTrigger, { render: _jsx(Button, { variant: "ghost", className: cn("min-w-0 max-w-64 shrink", variant === "navigation" && "max-w-full"), prefix: current?.mark ? _jsx("span", { "aria-hidden": "true", children: current.mark }) : undefined, suffix: _jsx(ChevronsUpDown, { "aria-hidden": "true" }) }), children: [_jsxs("span", { className: "sr-only", children: [copy.label, ":"] }), " ", _jsx("span", { className: "truncate", children: currentLabel })] }), _jsxs(PopoverContent, { align: "start", className: cn("w-72 p-0", variant === "navigation" && "w-96"), initialFocus: search, children: [_jsx(PopoverTitle, { className: "sr-only", children: copy.label }), _jsxs(Command, { label: copy.search, resultCount: copy.results, children: [_jsx(CommandInput, { ref: search, "aria-label": copy.search, placeholder: copy.search }), _jsxs(CommandList, { label: copy.label, children: [_jsx(CommandEmpty, { children: copy.empty }), groups.map(([group, items]) => (_jsx(CommandGroup, { heading: group, children: items.map((option) => (_jsxs(CommandItem, { value: option.value, keywords: [
40
40
  option.label,
41
41
  ...(option.group ? [option.group] : []),
42
42
  ...(option.keywords ?? []),
@@ -0,0 +1,3 @@
1
+ /** An artwork's ids, scoped to one drawing, so two marks on a page never share a gradient. */
2
+ export declare function scopedIds(svg: string, scope: string): string;
3
+ //# sourceMappingURL=scoped-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoped-ids.d.ts","sourceRoot":"","sources":["../../src/internal/scoped-ids.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAS5D"}
@@ -0,0 +1,11 @@
1
+ /** An artwork's ids, scoped to one drawing, so two marks on a page never share a gradient. */
2
+ export function scopedIds(svg, scope) {
3
+ let scoped = svg;
4
+ for (const [, id] of svg.matchAll(/\sid="([^"]+)"/g)) {
5
+ scoped = scoped
6
+ .replaceAll(`id="${id}"`, `id="${scope}-${id}"`)
7
+ .replaceAll(`#${id})`, `#${scope}-${id})`)
8
+ .replaceAll(`#${id}"`, `#${scope}-${id}"`);
9
+ }
10
+ return scoped;
11
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AA+BA,iBAAS,gBAAgB,gCAexB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAkIQ,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AA+BA,iBAAS,gBAAgB,gCAgBxB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAkIQ,CAAC"}
@@ -23,7 +23,7 @@ function CalendarSpecimen() {
23
23
  from: new Date(2026, 9, 7),
24
24
  to: new Date(2026, 9, 13),
25
25
  });
26
- return (_jsx(Calendar, { defaultMonth: new Date(2026, 9, 1), maxValue: new Date(2026, 9, 16), minValue: new Date(2026, 9, 5), mode: "range", onSelect: setRange, selected: range }));
26
+ return (_jsx(Calendar, { defaultMonth: new Date(2026, 9, 1), maxValue: new Date(2026, 9, 16), minValue: new Date(2026, 9, 5), mode: "range", onSelect: setRange, selected: range, today: new Date(2026, 9, 9) }));
27
27
  }
28
28
  function CollectionSearchSpecimen() {
29
29
  const [value, setValue] = useState("");
@@ -1836,7 +1836,7 @@ export const USAGE = [
1836
1836
  summary: "A small control set tied to its trigger, on a solid floating surface.",
1837
1837
  when: "A small control set tied to its trigger: filters, a scope chooser, a date range, a feedback form. The page stays live behind it.",
1838
1838
  instead: "A record's commands are its `ActionMenu`, a page's are `PageActions`' `menu`. For a form that adds a record use `FormDialog`. For one phrase use `Tooltip`; facts on hover are a `HoverCard`, which only this package's components draw, such as `RecordTime`. The product-design skill's patterns.md, \"Choose the surface for a change\", decides which surface a job takes.",
1839
- behaviour: "Solid floating surface, 12 px padding and gap. Opens on click, closes on Escape or outside press, focus returns to the trigger. A control set applies at once, with no Save inside; a feedback form is the exception: its button sends it, it shows its pending and result state, and it keeps what was typed when sending fails.",
1839
+ behaviour: "Solid floating surface, 12 px padding and gap. It never runs past the window: it is no taller or wider than the room beside its trigger, and what does not fit scrolls inside it. Opens on click, closes on Escape or outside press, focus returns to the trigger. A control set applies at once, with no Save inside; a feedback form is the exception: its button sends it, it shows its pending and result state, and it keeps what was typed when sending fails.",
1840
1840
  words: "Title names the control's job (*Filter skills*); an optional one-line description. Options are nouns.",
1841
1841
  access: "Trigger has a visible name and `aria-expanded`. The popup is a labelled dialog that does not trap focus; Tab leaves it in order. Nothing essential shows only on hover: what a person needs to read stays visible in the trigger or the page, never only in the popup's hover state.",
1842
1842
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.215",
3
+ "version": "12.1.216",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.215",
85
+ "@nadicodeai/design-system": "12.1.216",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",