luna-plus 0.0.22 → 0.0.23

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.
@@ -626,6 +626,10 @@
626
626
  });
627
627
  };
628
628
 
629
+ // Table classes
630
+ const tableClasses = $derived(
631
+ `lm-table${border ? " lm-table--border" : ""}${stripe ? " lm-table--striped" : ""}${size !== "default" ? ` lm-table--${size}` : ""}${fit ? " lm-table--fit" : ""}${highlightCurrentRow ? " lm-table--highlight-current-row" : ""}${loading ? " is-loading" : ""}${flexible ? " lm-table--flexible" : ""}${scrollbarAlwaysOn ? " lm-table--scrollbar-always-on" : ""}${cls ? ` ${cls}` : ""}`,
632
+ );
629
633
 
630
634
  // Table style
631
635
  const tableStyle = $derived.by(() => {
@@ -651,7 +655,7 @@
651
655
  });
652
656
  </script>
653
657
 
654
- <div {...attrs} bind:this={tableRef} style={tableStyle}>
658
+ <div {...attrs} bind:this={tableRef} class={tableClasses} style={tableStyle}>
655
659
  <Loading visible={loading} lock={false}>
656
660
  <div class="lm-table__inner-wrapper" onscroll={handleScroll}>
657
661
  <table class="lm-table__table" style:table-layout={tableLayout} cellspacing="0" cellpadding="0" border="0">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-plus",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "A modern Svelte 5 component library with 60+ components",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",