y200subcontrols 0.1.360 → 0.1.362

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.
@@ -20,7 +20,7 @@ export let isHeaderRow = false;
20
20
  {theme === 'white' ? 'bg-white text-black' : ''}
21
21
  "
22
22
  >
23
- <slot name="header" />
23
+ <slot />
24
24
  </thead>
25
25
  {:else}
26
26
  <tr
@@ -9,7 +9,6 @@ declare const __propDef: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {
12
- header: {};
13
12
  default: {};
14
13
  };
15
14
  exports?: {} | undefined;
@@ -1,11 +1,13 @@
1
- <script>export let hasFooter = false;
1
+ <script>import DataTableRow from "./DataTableRow.svelte";
2
+ export let hasFooter = false;
3
+ export let theme = void 0;
2
4
  </script>
3
5
 
4
6
  <div class="w-full border border-slate-300 overflow-clip rounded-md">
5
7
  <table class="w-full border-collapse">
6
- <thead class="bg-gray-500 text-gray-50 border-b-2 border-b-gray-700">
8
+ <DataTableRow theme = {theme} isHeaderRow={true}>
7
9
  <slot name="thead" />
8
- </thead>
10
+ </DataTableRow>
9
11
  <tbody>
10
12
  <slot />
11
13
  </tbody>
@@ -1,7 +1,9 @@
1
1
  import { SvelteComponent } from "svelte";
2
+ import type { ColorThemes } from "./types.js";
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  hasFooter?: boolean;
6
+ theme?: ColorThemes | undefined;
5
7
  };
6
8
  events: {
7
9
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.1.360",
3
+ "version": "0.1.362",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",