@khipu/design-system 0.2.0-alpha.82 → 0.2.0-alpha.83
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/dist/beercss/khipu-beercss.css +5 -2
- package/dist/beercss/khipu-beercss.js +4 -0
- package/dist/beercss/khipu-beercss.min.css +1 -1
- package/dist/beercss/khipu-beercss.min.js +1 -1
- package/dist/beercss/khipu-beercss.scoped.css +5 -2
- package/dist/beercss/khipu-beercss.scoped.min.css +1 -1
- package/dist/beercss/metadata.json +5 -5
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +13 -2
- package/dist/index.mjs +14 -3
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
13
13
|
* Source: design-system/src/tokens/tokens.json
|
|
14
|
-
* Generated: 2026-
|
|
14
|
+
* Generated: 2026-07-01T02:24:50.156Z
|
|
15
15
|
*
|
|
16
16
|
* To regenerate:
|
|
17
17
|
* cd design-system && npm run tokens:generate
|
|
@@ -5728,7 +5728,10 @@ dialog#surveyModal button.circle {
|
|
|
5728
5728
|
}
|
|
5729
5729
|
|
|
5730
5730
|
.kds-expand-panel.open {
|
|
5731
|
-
|
|
5731
|
+
/* Fallback cap for no-JS consumers. With JS (React useExpandToggle / vanilla
|
|
5732
|
+
initExpandToggle) the panel's inline max-height is set to its exact scrollHeight,
|
|
5733
|
+
which overrides this and prevents clipping regardless of content length. */
|
|
5734
|
+
max-height: 2000px;
|
|
5732
5735
|
margin-top: 0;
|
|
5733
5736
|
}
|
|
5734
5737
|
|
|
@@ -1051,8 +1051,12 @@ const ui = _context.ui;
|
|
|
1051
1051
|
if (panel) {
|
|
1052
1052
|
if (expanded) {
|
|
1053
1053
|
panel.classList.remove('open');
|
|
1054
|
+
// Clear the inline cap so the CSS collapse rule (max-height: 0) animates the close.
|
|
1055
|
+
panel.style.maxHeight = '';
|
|
1054
1056
|
} else {
|
|
1055
1057
|
panel.classList.add('open');
|
|
1058
|
+
// Size to the content so the expand fits any length instead of clipping a fixed cap.
|
|
1059
|
+
panel.style.maxHeight = panel.scrollHeight + 'px';
|
|
1056
1060
|
}
|
|
1057
1061
|
}
|
|
1058
1062
|
});
|