luna-plus 0.0.26 → 0.0.27

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.
@@ -66,7 +66,7 @@
66
66
  lazy = false,
67
67
  load,
68
68
  treeProps = { hasChildren: "hasChildren", children: "children", checkStrictly: false },
69
- tableLayout = "fixed",
69
+ tableLayout,
70
70
  scrollbarAlwaysOn = false,
71
71
  flexible = false,
72
72
  showOverflowTooltip: globalShowOverflowTooltip,
@@ -646,6 +646,10 @@
646
646
  `lm-table__table${cls ? ` ${cls}` : ""}`,
647
647
  );
648
648
 
649
+ const effectiveTableLayout = $derived(
650
+ tableLayout ?? (fit ? "fixed" : "auto"),
651
+ );
652
+
649
653
  // Cleanup
650
654
  $effect(() => {
651
655
  return () => {
@@ -662,7 +666,7 @@
662
666
  <table
663
667
  {...attrs}
664
668
  class={tableElementClasses}
665
- style:table-layout={tableLayout}
669
+ style:table-layout={effectiveTableLayout}
666
670
  cellspacing="0"
667
671
  cellpadding="0"
668
672
  border="0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-plus",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "A modern Svelte 5 component library with 60+ components",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",