@gridui/citation-popover 1.1.0 → 1.2.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/README.md +8 -1
- package/dist/citation-popover/citation-popover.d.ts +3 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/styles.css +68 -78
- package/dist/styles.local.css +0 -8
- package/docs/catalog.json +1 -1
- package/docs/reference/citation-popover.md +14 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -22,5 +22,12 @@ See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/
|
|
|
22
22
|
## Local color scopes
|
|
23
23
|
|
|
24
24
|
Pass `portalContainer` to CitationPopover to mount its citation popup
|
|
25
|
-
inside a `data-gridui-
|
|
25
|
+
inside a `data-gridui-color-variant` region. The default remains the document body.
|
|
26
26
|
Inline content continues inheriting from its actual DOM parent.
|
|
27
|
+
|
|
28
|
+
## Sizing and density
|
|
29
|
+
|
|
30
|
+
size selects the citation trigger geometry; width independently selects the quote panel CSS width, defaulting to 20rem. Quotation typography and intrinsic content height remain unchanged.
|
|
31
|
+
|
|
32
|
+
See the [shared sizing contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/sizing.md)
|
|
33
|
+
for native attributes, scope precedence, tokens and target behavior.
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
* @namespace CitationPopover
|
|
5
5
|
* @description Citation Popover
|
|
6
6
|
*/
|
|
7
|
+
import type { Size } from "@gridui/theme";
|
|
7
8
|
import { type PopoverPanelProps } from "@gridui/popover";
|
|
8
9
|
import type { SourceItem } from "@gridui/source-list";
|
|
9
10
|
import { type FC, type ReactNode } from "react";
|
|
10
11
|
export type CitationPopoverProps = {
|
|
12
|
+
readonly size?: Size;
|
|
13
|
+
readonly width?: PopoverPanelProps["width"];
|
|
11
14
|
readonly portalContainer?: PopoverPanelProps["container"];
|
|
12
15
|
readonly source: SourceItem;
|
|
13
16
|
readonly marker: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/citation-popover/style.ts
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
var citationStyles = cva("gridui-u-citation-popover--
|
|
3
|
+
var citationStyles = cva("gridui-u-citation-popover--max-w-[calc(100vw-32px)] gridui-u-citation-popover--wrap-anywhere gridui-u-citation-popover--[&_a]:text-link");
|
|
4
4
|
var citationQuoteStyles = cva("gridui-u-citation-popover--mx-0 gridui-u-citation-popover--border-s-2 gridui-u-citation-popover--border-border gridui-u-citation-popover--ps-gridui-16 gridui-u-citation-popover--[&_mark]:bg-accent-background gridui-u-citation-popover--[&_mark]:text-accent-foreground");
|
|
5
5
|
|
|
6
6
|
// src/citation-popover/citation-popover.tsx
|
|
@@ -8,7 +8,7 @@ import { Popover, PopoverPanel, PopoverTrigger } from "@gridui/popover";
|
|
|
8
8
|
import { useId } from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
var CitationPopover = (props) => {
|
|
11
|
-
const { portalContainer, source, marker, label, openLabel, quote, unmatchedLabel } = props;
|
|
11
|
+
const { size = "medium", width = "20rem", portalContainer, source, marker, label, openLabel, quote, unmatchedLabel } = props;
|
|
12
12
|
const id = useId();
|
|
13
13
|
const excerpt = source.excerpt ?? "";
|
|
14
14
|
const index = quote ? excerpt.indexOf(quote) : -1;
|
|
@@ -16,6 +16,7 @@ var CitationPopover = (props) => {
|
|
|
16
16
|
/* @__PURE__ */ jsx(
|
|
17
17
|
PopoverTrigger,
|
|
18
18
|
{
|
|
19
|
+
size,
|
|
19
20
|
"aria-label": label,
|
|
20
21
|
children: marker
|
|
21
22
|
}
|
|
@@ -23,6 +24,7 @@ var CitationPopover = (props) => {
|
|
|
23
24
|
/* @__PURE__ */ jsxs(
|
|
24
25
|
PopoverPanel,
|
|
25
26
|
{
|
|
27
|
+
width,
|
|
26
28
|
container: portalContainer,
|
|
27
29
|
"aria-labelledby": id,
|
|
28
30
|
className: citationStyles(),
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/citation-popover/style.ts", "../src/citation-popover/citation-popover.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Citation Popover\n * @namespace CitationPopover\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const citationStyles = cva(\"gridui-u-citation-popover--
|
|
5
|
-
"mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,iBAAiB,IAAI,
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Citation Popover\n * @namespace CitationPopover\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const citationStyles = cva(\"gridui-u-citation-popover--max-w-[calc(100vw-32px)] gridui-u-citation-popover--wrap-anywhere gridui-u-citation-popover--[&_a]:text-link\");\n\nexport const citationQuoteStyles = cva(\"gridui-u-citation-popover--mx-0 gridui-u-citation-popover--border-s-2 gridui-u-citation-popover--border-border gridui-u-citation-popover--ps-gridui-16 gridui-u-citation-popover--[&_mark]:bg-accent-background gridui-u-citation-popover--[&_mark]:text-accent-foreground\");\n", "/**\n * @author WMXPY\n * @package Citation Popover\n * @namespace CitationPopover\n * @description Citation Popover\n */\n\nimport type { Size } from \"@gridui/theme\";\nimport { citationQuoteStyles, citationStyles } from \"./style\";\nimport { Popover, PopoverPanel, type PopoverPanelProps, PopoverTrigger } from \"@gridui/popover\";\nimport type { SourceItem } from \"@gridui/source-list\";\nimport { type FC, type ReactNode, useId } from \"react\";\n\nexport type CitationPopoverProps = {\n readonly size?: Size;\n readonly width?: PopoverPanelProps[\"width\"];\n readonly portalContainer?: PopoverPanelProps[\"container\"];\n readonly source: SourceItem;\n readonly marker: ReactNode;\n readonly label: string;\n readonly openLabel: string;\n readonly quote?: string;\n readonly unmatchedLabel: string;\n};\n\nexport const CitationPopover: FC<CitationPopoverProps> = (props: CitationPopoverProps) => {\n const { size = \"medium\", width = \"20rem\", portalContainer, source, marker, label, openLabel, quote, unmatchedLabel } = props;\n const id = useId();\n const excerpt = source.excerpt ?? \"\";\n const index = quote ? excerpt.indexOf(quote) : -1;\n return (<Popover>\n <PopoverTrigger\n size={size}\n aria-label={label}\n >\n {marker}\n </PopoverTrigger>\n <PopoverPanel\n width={width}\n container={portalContainer}\n aria-labelledby={id}\n className={citationStyles()}\n >\n <strong\n id={id}\n >\n {source.title}\n </strong>\n {source.description && (<p>\n {source.description}\n </p>)}\n {excerpt && (<blockquote\n className={citationQuoteStyles()}\n >\n {quote && index >= 0 ? (<>\n {excerpt.slice(0, index)}\n <mark>\n {quote}\n </mark>\n {excerpt.slice(index + quote.length)}\n </>) : excerpt}\n </blockquote>)}\n {quote && index < 0 && (<p\n role=\"status\"\n >\n {unmatchedLabel}\n </p>)}\n <a\n href={source.href}\n >\n {openLabel}\n </a>\n </PopoverPanel>\n </Popover>);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,iBAAiB,IAAI,yIAAyI;AAEpK,IAAM,sBAAsB,IAAI,4QAA4Q;;;ACFnT,SAAS,SAAS,cAAsC,sBAAsB;AAE9E,SAAkC,aAAa;AAoBvC,SAuBgC,UAvBhC,KAuBgC,YAvBhC;AAND,IAAM,kBAA4C,CAAC,UAAgC;AACtF,QAAM,EAAE,OAAO,UAAU,QAAQ,SAAS,iBAAiB,QAAQ,QAAQ,OAAO,WAAW,OAAO,eAAe,IAAI;AACvH,QAAM,KAAK,MAAM;AACjB,QAAM,UAAU,OAAO,WAAW;AAClC,QAAM,QAAQ,QAAQ,QAAQ,QAAQ,KAAK,IAAI;AAC/C,SAAQ,qBAAC,WACL;AAAA;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,cAAY;AAAA,QAEX;AAAA;AAAA,IACL;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,WAAW;AAAA,QACX,mBAAiB;AAAA,QACjB,WAAW,eAAe;AAAA,QAE1B;AAAA;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cAEC,iBAAO;AAAA;AAAA,UACZ;AAAA,UACC,OAAO,eAAgB,oBAAC,OACpB,iBAAO,aACZ;AAAA,UACC,WAAY;AAAA,YAAC;AAAA;AAAA,cACV,WAAW,oBAAoB;AAAA,cAE9B,mBAAS,SAAS,IAAK,iCACnB;AAAA,wBAAQ,MAAM,GAAG,KAAK;AAAA,gBACvB,oBAAC,UACI,iBACL;AAAA,gBACC,QAAQ,MAAM,QAAQ,MAAM,MAAM;AAAA,iBACvC,IAAO;AAAA;AAAA,UACX;AAAA,UACC,SAAS,QAAQ,KAAM;AAAA,YAAC;AAAA;AAAA,cACrB,MAAK;AAAA,cAEJ;AAAA;AAAA,UACL;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACG,MAAM,OAAO;AAAA,cAEZ;AAAA;AAAA,UACL;AAAA;AAAA;AAAA,IACJ;AAAA,KACJ;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
|
-
@layer theme {
|
|
5
|
-
:root, :host {
|
|
6
|
-
--spacing: 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
4
|
@layer utilities {
|
|
10
5
|
.gridui-u-button--pointer-events-none {
|
|
11
6
|
pointer-events: none;
|
|
@@ -13,24 +8,13 @@
|
|
|
13
8
|
.gridui-u-button--inline-flex {
|
|
14
9
|
display: inline-flex;
|
|
15
10
|
}
|
|
11
|
+
.gridui-u-button--size-\(--_gridui-button-min\) {
|
|
12
|
+
width: var(--_gridui-button-min);
|
|
13
|
+
height: var(--_gridui-button-min);
|
|
14
|
+
}
|
|
16
15
|
.gridui-u-button--h-full {
|
|
17
16
|
height: 100%;
|
|
18
17
|
}
|
|
19
|
-
.gridui-u-button--h-gridui-control {
|
|
20
|
-
height: var(--gridui-control-min-height);
|
|
21
|
-
}
|
|
22
|
-
.gridui-u-button--min-h-18 {
|
|
23
|
-
min-height: calc(var(--spacing) * 18);
|
|
24
|
-
}
|
|
25
|
-
.gridui-u-button--min-h-gridui-control {
|
|
26
|
-
min-height: var(--gridui-control-min-height);
|
|
27
|
-
}
|
|
28
|
-
.gridui-u-button--min-h-gridui-control-large {
|
|
29
|
-
min-height: var(--gridui-control-min-height-large);
|
|
30
|
-
}
|
|
31
|
-
.gridui-u-button--min-h-gridui-control-small {
|
|
32
|
-
min-height: var(--gridui-control-min-height-small);
|
|
33
|
-
}
|
|
34
18
|
.gridui-u-button--w-fit {
|
|
35
19
|
width: fit-content;
|
|
36
20
|
}
|
|
@@ -40,14 +24,14 @@
|
|
|
40
24
|
.gridui-u-button--w-gridui-64 {
|
|
41
25
|
width: var(--gridui-space-64);
|
|
42
26
|
}
|
|
43
|
-
.gridui-u-button--w-gridui-control {
|
|
44
|
-
width: var(--gridui-control-min-height);
|
|
45
|
-
}
|
|
46
27
|
.gridui-u-button--w-gridui-control-large {
|
|
47
|
-
width: var(--gridui-control-min-height-large);
|
|
28
|
+
width: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
29
|
+
}
|
|
30
|
+
.gridui-u-button--w-gridui-control-medium {
|
|
31
|
+
width: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
48
32
|
}
|
|
49
33
|
.gridui-u-button--w-gridui-control-small {
|
|
50
|
-
width: var(--gridui-control-min-height-small);
|
|
34
|
+
width: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
51
35
|
}
|
|
52
36
|
.gridui-u-button--max-w-full {
|
|
53
37
|
max-width: 100%;
|
|
@@ -253,35 +237,10 @@
|
|
|
253
237
|
.gridui-u-button--\[\&_svg\]\:shrink-0 svg {
|
|
254
238
|
flex-shrink: 0;
|
|
255
239
|
}
|
|
256
|
-
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:h-18.gridui-button-extra-large {
|
|
257
|
-
height: calc(var(--spacing) * 18);
|
|
258
|
-
}
|
|
259
|
-
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:w-18.gridui-button-extra-large {
|
|
260
|
-
width: calc(var(--spacing) * 18);
|
|
261
|
-
}
|
|
262
|
-
.gridui-u-button--\[\&\.gridui-button-large\]\:h-gridui-control-large.gridui-button-large {
|
|
263
|
-
height: var(--gridui-control-min-height-large);
|
|
264
|
-
}
|
|
265
|
-
.gridui-u-button--\[\&\.gridui-button-large\]\:w-gridui-control-large.gridui-button-large {
|
|
266
|
-
width: var(--gridui-control-min-height-large);
|
|
267
|
-
}
|
|
268
|
-
.gridui-u-button--\[\&\.gridui-button-small\]\:h-gridui-control-small.gridui-button-small {
|
|
269
|
-
height: var(--gridui-control-min-height-small);
|
|
270
|
-
}
|
|
271
|
-
.gridui-u-button--\[\&\.gridui-button-small\]\:w-gridui-control-small.gridui-button-small {
|
|
272
|
-
width: var(--gridui-control-min-height-small);
|
|
273
|
-
}
|
|
274
|
-
@media (pointer: coarse) {
|
|
275
|
-
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:h-gridui-control.gridui-button-small {
|
|
276
|
-
height: var(--gridui-control-min-height);
|
|
277
|
-
}
|
|
278
|
-
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:w-gridui-control.gridui-button-small {
|
|
279
|
-
width: var(--gridui-control-min-height);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
240
|
}
|
|
283
241
|
@layer components {
|
|
284
242
|
.gridui-button {
|
|
243
|
+
min-height: var(--_gridui-button-min);
|
|
285
244
|
border: 1px solid transparent;
|
|
286
245
|
}
|
|
287
246
|
.gridui-button-cell {
|
|
@@ -327,8 +286,27 @@
|
|
|
327
286
|
transform: var(--gridui-motion-transform, translate(calc(-1 * var(--gridui-space-4)), calc(-1 * var(--gridui-space-4))));
|
|
328
287
|
}
|
|
329
288
|
}
|
|
289
|
+
.gridui-button-medium {
|
|
290
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
291
|
+
padding-block: var(--gridui-space-8);
|
|
292
|
+
padding-inline: var(--gridui-space-16);
|
|
293
|
+
}
|
|
294
|
+
.gridui-button-small {
|
|
295
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
296
|
+
padding-block: var(--gridui-space-4);
|
|
297
|
+
padding-inline: var(--gridui-space-8);
|
|
298
|
+
}
|
|
299
|
+
.gridui-button-large {
|
|
300
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
301
|
+
padding-block: var(--gridui-space-8);
|
|
302
|
+
padding-inline: var(--gridui-space-24);
|
|
303
|
+
}
|
|
304
|
+
.gridui-button-extra-large {
|
|
305
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-extra-large), var(--gridui-target-min-size));
|
|
306
|
+
padding-block: var(--gridui-space-16);
|
|
307
|
+
padding-inline: var(--gridui-space-24);
|
|
308
|
+
}
|
|
330
309
|
.gridui-button-group {
|
|
331
|
-
--gridui-button-group-padding-block: var(--gridui-space-24);
|
|
332
310
|
container: gridui-button-group / inline-size;
|
|
333
311
|
min-width: 0;
|
|
334
312
|
}
|
|
@@ -371,12 +349,19 @@
|
|
|
371
349
|
min-width: 0;
|
|
372
350
|
}
|
|
373
351
|
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item] {
|
|
374
|
-
|
|
375
|
-
padding: var(--gridui-button-group-padding-block) var(--gridui-space-24);
|
|
352
|
+
padding-block: var(--gridui-button-group-padding-block, var(--_gridui-button-group-block, var(--gridui-space-8)));
|
|
376
353
|
border: 0;
|
|
377
354
|
border-radius: 0;
|
|
378
355
|
}
|
|
379
356
|
}
|
|
357
|
+
@layer components {
|
|
358
|
+
.gridui-button-group-items > [data-size="small"] {
|
|
359
|
+
--_gridui-button-group-block: var(--gridui-space-4);
|
|
360
|
+
}
|
|
361
|
+
.gridui-button-group-items > [data-size="extra-large"] {
|
|
362
|
+
--_gridui-button-group-block: var(--gridui-space-16);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
380
365
|
@property --tw-border-style {
|
|
381
366
|
syntax: "*";
|
|
382
367
|
inherits: false;
|
|
@@ -403,11 +388,6 @@
|
|
|
403
388
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
404
389
|
@layer properties;
|
|
405
390
|
@layer theme, base, components, utilities;
|
|
406
|
-
@layer theme {
|
|
407
|
-
:root, :host {
|
|
408
|
-
--spacing: 0.25rem;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
391
|
@layer utilities {
|
|
412
392
|
.gridui-u-overlay--z-\(--gridui-z-popover\) {
|
|
413
393
|
z-index: var(--gridui-z-popover);
|
|
@@ -422,9 +402,6 @@
|
|
|
422
402
|
width: var(--gridui-space-16);
|
|
423
403
|
height: var(--gridui-space-16);
|
|
424
404
|
}
|
|
425
|
-
.gridui-u-overlay--min-h-10 {
|
|
426
|
-
min-height: calc(var(--spacing) * 10);
|
|
427
|
-
}
|
|
428
405
|
.gridui-u-overlay--min-w-0 {
|
|
429
406
|
min-width: 0px;
|
|
430
407
|
}
|
|
@@ -463,15 +440,9 @@
|
|
|
463
440
|
.gridui-u-overlay--p-0 {
|
|
464
441
|
padding: 0px;
|
|
465
442
|
}
|
|
466
|
-
.gridui-u-overlay--p-gridui-8 {
|
|
467
|
-
padding: var(--gridui-space-8);
|
|
468
|
-
}
|
|
469
443
|
.gridui-u-overlay--px-gridui-8 {
|
|
470
444
|
padding-inline: var(--gridui-space-8);
|
|
471
445
|
}
|
|
472
|
-
.gridui-u-overlay--py-gridui-8 {
|
|
473
|
-
padding-block: var(--gridui-space-8);
|
|
474
|
-
}
|
|
475
446
|
.gridui-u-overlay--type-data {
|
|
476
447
|
font: var(--gridui-type-data);
|
|
477
448
|
font-family: var(--gridui-font-body);
|
|
@@ -578,6 +549,25 @@
|
|
|
578
549
|
animation: none;
|
|
579
550
|
}
|
|
580
551
|
}
|
|
552
|
+
.gridui-overlay-list {
|
|
553
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
554
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
555
|
+
}
|
|
556
|
+
.gridui-overlay-density-compact {
|
|
557
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-small);
|
|
558
|
+
--gridui-overlay-row-padding: var(--gridui-space-4);
|
|
559
|
+
}
|
|
560
|
+
.gridui-overlay-density-comfortable {
|
|
561
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
562
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
563
|
+
}
|
|
564
|
+
.gridui-overlay-list-item {
|
|
565
|
+
min-block-size: max(var(--gridui-overlay-row-min, var(--gridui-control-min-height-medium)), var(--gridui-target-min-size));
|
|
566
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
567
|
+
}
|
|
568
|
+
.gridui-overlay-list-label {
|
|
569
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
570
|
+
}
|
|
581
571
|
}
|
|
582
572
|
@property --tw-border-style {
|
|
583
573
|
syntax: "*";
|
|
@@ -662,8 +652,8 @@
|
|
|
662
652
|
.gridui-u-source-list--border-border {
|
|
663
653
|
border-color: var(--gridui-border);
|
|
664
654
|
}
|
|
665
|
-
.gridui-u-source-list--py
|
|
666
|
-
padding-block: var(--gridui-
|
|
655
|
+
.gridui-u-source-list--py-\(--gridui-source-block\) {
|
|
656
|
+
padding-block: var(--gridui-source-block);
|
|
667
657
|
}
|
|
668
658
|
.gridui-u-source-list--ps-gridui-32 {
|
|
669
659
|
padding-inline-start: var(--gridui-space-32);
|
|
@@ -696,6 +686,14 @@
|
|
|
696
686
|
padding-inline-start: var(--gridui-space-16);
|
|
697
687
|
}
|
|
698
688
|
}
|
|
689
|
+
@layer components {
|
|
690
|
+
.gridui-source-list {
|
|
691
|
+
--gridui-source-block: var(--gridui-space-8);
|
|
692
|
+
}
|
|
693
|
+
.gridui-source-list[data-density="compact"] {
|
|
694
|
+
--gridui-source-block: var(--gridui-space-4);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
699
697
|
@property --tw-border-style {
|
|
700
698
|
syntax: "*";
|
|
701
699
|
inherits: false;
|
|
@@ -712,18 +710,10 @@
|
|
|
712
710
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
713
711
|
@layer properties;
|
|
714
712
|
@layer theme, base, components, utilities;
|
|
715
|
-
@layer theme {
|
|
716
|
-
:root, :host {
|
|
717
|
-
--spacing: 0.25rem;
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
713
|
@layer utilities {
|
|
721
714
|
.gridui-u-citation-popover--mx-0 {
|
|
722
715
|
margin-inline: 0px;
|
|
723
716
|
}
|
|
724
|
-
.gridui-u-citation-popover--w-80 {
|
|
725
|
-
width: calc(var(--spacing) * 80);
|
|
726
|
-
}
|
|
727
717
|
.gridui-u-citation-popover--max-w-\[calc\(100vw-32px\)\] {
|
|
728
718
|
max-width: calc(100vw - 32px);
|
|
729
719
|
}
|
package/dist/styles.local.css
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
|
-
@layer theme {
|
|
5
|
-
:root, :host {
|
|
6
|
-
--spacing: 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
4
|
@layer utilities {
|
|
10
5
|
.gridui-u-citation-popover--mx-0 {
|
|
11
6
|
margin-inline: 0px;
|
|
12
7
|
}
|
|
13
|
-
.gridui-u-citation-popover--w-80 {
|
|
14
|
-
width: calc(var(--spacing) * 80);
|
|
15
|
-
}
|
|
16
8
|
.gridui-u-citation-popover--max-w-\[calc\(100vw-32px\)\] {
|
|
17
9
|
max-width: calc(100vw - 32px);
|
|
18
10
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/citation-popover",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"category": "dashboard",
|
|
6
6
|
"description": "GridUI React citation popover",
|
|
7
7
|
"usage": "Component reference contains focused API pages for each public component.",
|
|
@@ -19,6 +19,20 @@ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/
|
|
|
19
19
|
|
|
20
20
|
The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
|
|
21
21
|
|
|
22
|
+
### size
|
|
23
|
+
|
|
24
|
+
``Size | undefined`` · Optional
|
|
25
|
+
|
|
26
|
+
Default: ``"medium"``
|
|
27
|
+
|
|
28
|
+
Component size preset.
|
|
29
|
+
|
|
30
|
+
### width
|
|
31
|
+
|
|
32
|
+
``Property.Width<string | number> | undefined`` · Optional
|
|
33
|
+
|
|
34
|
+
Default: ``"20rem"``
|
|
35
|
+
|
|
22
36
|
### portalContainer
|
|
23
37
|
|
|
24
38
|
``Element | DocumentFragment | null | undefined`` · Optional
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/citation-popover",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "GridUI React citation popover",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"react-dom": "^19.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@gridui/popover": "^
|
|
36
|
-
"@gridui/source-list": "^1.
|
|
37
|
-
"@gridui/theme": "^
|
|
35
|
+
"@gridui/popover": "^2.0.0",
|
|
36
|
+
"@gridui/source-list": "^1.2.0",
|
|
37
|
+
"@gridui/theme": "^5.0.0",
|
|
38
38
|
"class-variance-authority": "0.7.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|