@gridui/metrics-section 1.2.0 → 1.2.1
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 +7 -0
- package/dist/styles.css +31 -1
- package/docs/catalog.json +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -39,3 +39,10 @@ own requests, calculations, formatting, localized text, and retry actions.
|
|
|
39
39
|
|
|
40
40
|
Each Metric item may also provide direction, align, valueSize and supplementary.
|
|
41
41
|
The section retains ownership of its Grid layout and loading/error boundaries.
|
|
42
|
+
|
|
43
|
+
## Sizing and density
|
|
44
|
+
|
|
45
|
+
MetricsSectionItem continues to accept Metric valueSize per item. Section padding and loading state are independent; a typography choice does not become a whole-section control size.
|
|
46
|
+
|
|
47
|
+
See the [shared sizing contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/sizing.md)
|
|
48
|
+
for native attributes, scope precedence, tokens and target behavior.
|
package/dist/styles.css
CHANGED
|
@@ -73,6 +73,9 @@
|
|
|
73
73
|
.gridui-u-grid--border-border {
|
|
74
74
|
border-color: var(--gridui-border);
|
|
75
75
|
}
|
|
76
|
+
.gridui-u-grid--bg-background {
|
|
77
|
+
background-color: var(--gridui-background);
|
|
78
|
+
}
|
|
76
79
|
.gridui-u-grid--bg-border {
|
|
77
80
|
background-color: var(--gridui-border);
|
|
78
81
|
}
|
|
@@ -484,6 +487,7 @@
|
|
|
484
487
|
.gridui-frame-surface {
|
|
485
488
|
position: relative;
|
|
486
489
|
isolation: isolate;
|
|
490
|
+
z-index: var(--gridui-z-boundary);
|
|
487
491
|
}
|
|
488
492
|
.gridui-frame-surface:focus-within, .gridui-frame-surface:has(:where(a[href], button, input, select, textarea, summary, [tabindex], [role="button"], [role="link"]):hover) {
|
|
489
493
|
z-index: var(--gridui-z-interaction);
|
|
@@ -516,6 +520,15 @@
|
|
|
516
520
|
height: 5px;
|
|
517
521
|
background: linear-gradient(var(--gridui-border), var(--gridui-border));
|
|
518
522
|
}
|
|
523
|
+
.gridui-frame-decoration[data-decoration="rings"] {
|
|
524
|
+
--gridui-frame-decoration-width: 7px;
|
|
525
|
+
--gridui-frame-decoration-outset: 4px;
|
|
526
|
+
display: block;
|
|
527
|
+
inset-block: calc(0px - min(4px, var(--gridui-frame-decoration-block-clearance, 4px))) auto;
|
|
528
|
+
height: 7px;
|
|
529
|
+
border-radius: 50%;
|
|
530
|
+
box-shadow: inset 0 0 0 1px var(--gridui-border);
|
|
531
|
+
}
|
|
519
532
|
@media (min-width: 40rem) {
|
|
520
533
|
.gridui-frame-decoration {
|
|
521
534
|
display: block;
|
|
@@ -590,10 +603,27 @@
|
|
|
590
603
|
grid-column: var(--gridui-span);
|
|
591
604
|
padding: var(--gridui-padding);
|
|
592
605
|
}
|
|
593
|
-
.gridui-grid-all > .gridui-grid-item {
|
|
606
|
+
.gridui-grid-all:where(:not([data-adaptive-frame])) > .gridui-grid-item {
|
|
594
607
|
border-right: 1px solid var(--gridui-border);
|
|
595
608
|
border-bottom: 1px solid var(--gridui-border);
|
|
596
609
|
}
|
|
610
|
+
.gridui-grid[data-adaptive-frame] {
|
|
611
|
+
position: relative;
|
|
612
|
+
}
|
|
613
|
+
.gridui-grid[data-adaptive-frame="all"] {
|
|
614
|
+
border: 1px solid var(--gridui-border);
|
|
615
|
+
}
|
|
616
|
+
.gridui-grid[data-adaptive-frame]::before {
|
|
617
|
+
content: "";
|
|
618
|
+
position: absolute;
|
|
619
|
+
inset: 0;
|
|
620
|
+
pointer-events: none;
|
|
621
|
+
background-color: var(--gridui-border);
|
|
622
|
+
clip-path: var(--gridui-grid-seam-clip, inset(50%));
|
|
623
|
+
}
|
|
624
|
+
.gridui-grid[data-adaptive-frame]:dir(rtl)::before {
|
|
625
|
+
transform: scaleX(-1);
|
|
626
|
+
}
|
|
597
627
|
.gridui-grid-internal > .gridui-grid-item {
|
|
598
628
|
position: relative;
|
|
599
629
|
background-color: var(--gridui-background);
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/metrics-section",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"category": "landing",
|
|
6
6
|
"description": "GridUI React metrics section",
|
|
7
7
|
"usage": "`MetricsSection` from `@gridui/metrics-section` composes a full-width summary heading and Metric cells inside one `Grid frame=\"internal\"`. Grid draws the heading seam and cell separators; FrameSection owns the outer frame. MetricsSection sets 16px block and 24px inline title padding, 24px metric padding, one column below 40rem, and two columns above it. An incomplete final row fills the available tracks. No application-specific border styles or divider flags are needed.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/metrics-section",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "GridUI React metrics section",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"react-dom": "^19.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@gridui/grid": "^3.
|
|
36
|
-
"@gridui/loading-surface": "^1.3.
|
|
37
|
-
"@gridui/metric": "^1.2.
|
|
38
|
-
"@gridui/panel": "^2.1.
|
|
39
|
-
"@gridui/style-utils": "^4.
|
|
40
|
-
"@gridui/theme": "^
|
|
35
|
+
"@gridui/grid": "^3.3.0",
|
|
36
|
+
"@gridui/loading-surface": "^1.3.1",
|
|
37
|
+
"@gridui/metric": "^1.2.1",
|
|
38
|
+
"@gridui/panel": "^2.1.1",
|
|
39
|
+
"@gridui/style-utils": "^4.1.0",
|
|
40
|
+
"@gridui/theme": "^5.0.0",
|
|
41
41
|
"class-variance-authority": "0.7.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|