@godxjp/ui 13.16.2 → 13.16.4
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.
|
@@ -80,6 +80,11 @@
|
|
|
80
80
|
color: hsl(var(--info));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/* Body stacks text vertically (title over description). The ≥sm two-column
|
|
84
|
+
* layout exists ONLY to push an actions slot to the end — gate it on
|
|
85
|
+
* :has(alert-actions), otherwise bare AlertTitle + AlertDescription (the
|
|
86
|
+
* catalog example, AlertQueryError, the docs page) split into meaningless
|
|
87
|
+
* side-by-side columns (godxjp-ui#106). */
|
|
83
88
|
[data-slot="alert-body"] {
|
|
84
89
|
display: flex;
|
|
85
90
|
flex: 1;
|
|
@@ -89,10 +94,23 @@
|
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
@media (min-width: 640px) {
|
|
92
|
-
[data-slot="alert-body"] {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
[data-slot="alert-body"]:has(> [data-slot="alert-actions"]) {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
100
|
+
column-gap: var(--alert-space-gap);
|
|
101
|
+
row-gap: var(--alert-inner-space-gap);
|
|
102
|
+
align-items: start;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-slot="alert-body"]:has(> [data-slot="alert-actions"])
|
|
106
|
+
> :not([data-slot="alert-actions"]) {
|
|
107
|
+
grid-column: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-slot="alert-body"]:has(> [data-slot="alert-actions"])
|
|
111
|
+
> [data-slot="alert-actions"] {
|
|
112
|
+
grid-column: 2;
|
|
113
|
+
grid-row: 1;
|
|
96
114
|
}
|
|
97
115
|
}
|
|
98
116
|
|
package/dist/styles/index.css
CHANGED
|
@@ -23,7 +23,12 @@
|
|
|
23
23
|
* `var(--radius-2xl)` directly; without a generated utility Tailwind drops the unused var). */
|
|
24
24
|
@source inline("rounded-{xs,xl,2xl}");
|
|
25
25
|
@source inline("text-2xs");
|
|
26
|
-
|
|
26
|
+
/* `.js` matters: the published package ships only compiled JS under dist (no
|
|
27
|
+
* .tsx sources), and this file is copied verbatim into dist/styles — without
|
|
28
|
+
* it Tailwind finds no component classes in consumers (unstyled popovers and
|
|
29
|
+
* selects, and Radix scroll-lock freezes the page because pointer-events-auto
|
|
30
|
+
* is never emitted). In-repo the glob scans src; published, it scans dist. */
|
|
31
|
+
@source "../**/*.{tsx,ts,js}";
|
|
27
32
|
@import "../tokens/base.css";
|
|
28
33
|
@import "./density.css";
|
|
29
34
|
@import "./shell-layout.css";
|