@onsvisual/svelte-components 1.1.54 → 1.1.55

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.
@@ -51,18 +51,24 @@
51
51
  const width = getContext("width") || "wide";
52
52
  const colWidth = getContext("colWidth") || null;
53
53
  const rowHeight = getContext("rowHeight") || null;
54
- const colClass = cls
55
- ? cls
56
- : colWidth
57
- ? calcSpans(classes?.[width]?.[colWidth] || [], colspan)
58
- .map((c) => `ons-col-${c}`)
59
- .join(" ")
60
- : "";
54
+
55
+ const colClass = colWidth
56
+ ? calcSpans(classes?.[width]?.[colWidth] || [], colspan)
57
+ .map((c) => `ons-col-${c}`)
58
+ .join(" ")
59
+ : "";
61
60
  </script>
62
61
 
63
62
  {#if colWidth}
64
63
  <div
65
- class="ons-grid__col {colClass}"
64
+ class="ons-grid__col {cls || colClass}"
65
+ style:height={typeof rowHeight === "number" ? `${rowHeight}px` : rowHeight}
66
+ >
67
+ <slot />
68
+ </div>
69
+ {:else if cls}
70
+ <div
71
+ class="ons-grid__col {cls}"
66
72
  style:height={typeof rowHeight === "number" ? `${rowHeight}px` : rowHeight}
67
73
  >
68
74
  <slot />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run build:package && npm run build:docs",