@khipu/design-system 0.3.5-alpha.5 → 0.3.5-alpha.6

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.
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
15
15
  * Source: design-system/src/tokens/tokens.json
16
- * Generated: 2026-08-13T18:35:56.760Z
16
+ * Generated: 2026-08-14T15:09:26.125Z
17
17
  *
18
18
  * To regenerate:
19
19
  * cd design-system && npm run tokens:generate
@@ -15,7 +15,7 @@
15
15
  *
16
16
  * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
17
17
  * Source: design-system/src/tokens/tokens.json
18
- * Generated: 2026-08-13T18:35:56.760Z
18
+ * Generated: 2026-08-14T15:09:26.125Z
19
19
  *
20
20
  * To regenerate:
21
21
  * cd design-system && npm run tokens:generate
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@khipu/design-system/beercss",
3
- "version": "0.3.5-alpha.5",
3
+ "version": "0.3.5-alpha.6",
4
4
  "description": "Khipu BeerCSS bundle with Material Design 3 and Khipu customizations",
5
- "buildDate": "2026-08-13T18:35:59.338Z",
5
+ "buildDate": "2026-08-14T15:09:28.792Z",
6
6
  "includes": {
7
7
  "beercss": "4.0.1",
8
8
  "khipu-tokens": "latest",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "scopeClass": ".kds-theme-root",
21
21
  "cdn": {
22
- "css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.5/dist/beercss/khipu-beercss.min.css",
23
- "cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.5/dist/beercss/khipu-beercss.scoped.min.css",
24
- "js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.5/dist/beercss/khipu-beercss.min.js"
22
+ "css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.6/dist/beercss/khipu-beercss.min.css",
23
+ "cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.6/dist/beercss/khipu-beercss.scoped.min.css",
24
+ "js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.6/dist/beercss/khipu-beercss.min.js"
25
25
  }
26
26
  }
package/dist/index.js CHANGED
@@ -219,10 +219,18 @@ function useCardHeightTransition() {
219
219
  return;
220
220
  }
221
221
  const observers = [];
222
- const animate = (card, from, to) => card.animate(
223
- [{ height: `${from}px` }, { height: `${to}px` }],
224
- { duration: CARD_TRANSITION_MS, easing: "ease-out" }
225
- );
222
+ const animate = (card, from, to) => {
223
+ card.style.height = `${from}px`;
224
+ const animation = card.animate(
225
+ [{ height: `${from}px` }, { height: `${to}px` }],
226
+ { duration: CARD_TRANSITION_MS, easing: "ease-out" }
227
+ );
228
+ const release = () => {
229
+ card.style.height = "";
230
+ };
231
+ animation.finished.then(release).catch(release);
232
+ return animation;
233
+ };
226
234
  const observe = (card) => {
227
235
  if (card.getAttribute(CARD_MARK_ATTRIBUTE) === "on") {
228
236
  return;
package/dist/index.mjs CHANGED
@@ -91,10 +91,18 @@ function useCardHeightTransition() {
91
91
  return;
92
92
  }
93
93
  const observers = [];
94
- const animate = (card, from, to) => card.animate(
95
- [{ height: `${from}px` }, { height: `${to}px` }],
96
- { duration: CARD_TRANSITION_MS, easing: "ease-out" }
97
- );
94
+ const animate = (card, from, to) => {
95
+ card.style.height = `${from}px`;
96
+ const animation = card.animate(
97
+ [{ height: `${from}px` }, { height: `${to}px` }],
98
+ { duration: CARD_TRANSITION_MS, easing: "ease-out" }
99
+ );
100
+ const release = () => {
101
+ card.style.height = "";
102
+ };
103
+ animation.finished.then(release).catch(release);
104
+ return animation;
105
+ };
98
106
  const observe = (card) => {
99
107
  if (card.getAttribute(CARD_MARK_ATTRIBUTE) === "on") {
100
108
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khipu/design-system",
3
- "version": "0.3.5-alpha.5",
3
+ "version": "0.3.5-alpha.6",
4
4
  "description": "Khipu Design System - UI components and design tokens for the Khipu payment platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",