@rezcom/rez-components 0.0.3 → 0.0.41

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.
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ import Carousel from './ui/Carousel.svelte';
3
3
  import Dropdown from './ui/Dropdown.svelte';
4
4
  import Modal from './ui/Modal.svelte';
5
5
  import type { DropdownItem } from './util/type.js';
6
- export { Button, Carousel, Dropdown, Modal, type DropdownItem };
6
+ export { Button, Carousel, Dropdown, Modal };
7
+ export type { DropdownItem };
@@ -11,7 +11,7 @@
11
11
  firstItemDefault?: boolean;
12
12
 
13
13
  // Function that fires when the user selects something
14
- onselect: (selection: string) => void;
14
+ onselect: (selection: any) => void;
15
15
 
16
16
  // List of selections
17
17
  items: DropdownItem[];
@@ -2,7 +2,7 @@ import type { DropdownItem } from '../util/type.js';
2
2
  interface DropdownProps {
3
3
  defaultLabel?: string;
4
4
  firstItemDefault?: boolean;
5
- onselect: (selection: string) => void;
5
+ onselect: (selection: any) => void;
6
6
  items: DropdownItem[];
7
7
  itemColor?: string;
8
8
  textColor?: string;
@@ -1,4 +1,4 @@
1
1
  export interface DropdownItem {
2
2
  label: string;
3
- value: string;
3
+ value: any;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rezcom/rez-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.41",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",