@hyvor/design 2.1.17 → 2.1.18

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.
@@ -1,11 +1,13 @@
1
1
  <script lang="ts">
2
2
  import { getContext, type Snippet } from 'svelte';
3
+ import type { HTMLAttributes } from 'svelte/elements';
3
4
 
4
- interface Props {
5
+ interface ComponentProps {
5
6
  children: Snippet;
6
- [key: string]: any;
7
7
  }
8
8
 
9
+ type Props = ComponentProps & HTMLAttributes<HTMLDivElement>;
10
+
9
11
  let { children, ...rest }: Props = $props();
10
12
 
11
13
  const { head } = getContext<{ head: boolean }>('table-row');
@@ -1,8 +1,9 @@
1
1
  import { type Snippet } from 'svelte';
2
- interface Props {
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ interface ComponentProps {
3
4
  children: Snippet;
4
- [key: string]: any;
5
5
  }
6
+ type Props = ComponentProps & HTMLAttributes<HTMLDivElement>;
6
7
  declare const TableCell: import("svelte").Component<Props, {}, "">;
7
8
  type TableCell = ReturnType<typeof TableCell>;
8
9
  export default TableCell;
@@ -1,12 +1,15 @@
1
1
  <script lang="ts">
2
2
  import { setContext, type Snippet } from 'svelte';
3
+ import type { HTMLAttributes } from 'svelte/elements';
3
4
 
4
- interface Props {
5
+ interface ComponentProps {
5
6
  head?: boolean;
6
7
  section?: boolean;
7
8
  children: Snippet;
8
9
  }
9
10
 
11
+ type Props = ComponentProps & HTMLAttributes<HTMLDivElement>;
12
+
10
13
  const { head = false, section = false, children, ...rest }: Props = $props();
11
14
 
12
15
  setContext('table-row', { head, section });
@@ -1,9 +1,11 @@
1
1
  import { type Snippet } from 'svelte';
2
- interface Props {
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ interface ComponentProps {
3
4
  head?: boolean;
4
5
  section?: boolean;
5
6
  children: Snippet;
6
7
  }
8
+ type Props = ComponentProps & HTMLAttributes<HTMLDivElement>;
7
9
  declare const TableRow: import("svelte").Component<Props, {}, "">;
8
10
  type TableRow = ReturnType<typeof TableRow>;
9
11
  export default TableRow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyvor/design",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "repository": {