@marvelousdesigner/design-system
Advanced tools
Comparing version 0.1.11-omega-5 to 0.1.11-omega-6
@@ -10,3 +10,3 @@ import React, { RefObject } from "react"; | ||
selectedItem: T | null; | ||
updateSelectedItem: (index: string | number) => void; | ||
updateSelectedItem: (selectValue: string) => void; | ||
itemList: T[]; | ||
@@ -17,5 +17,5 @@ listRef: RefObject<HTMLDivElement>; | ||
declare const SelectContext: React.Context<UseSelectReturn<SelectItem> | null>; | ||
declare const SelectProvider: ({ value, defaultValueId, setValue, size, isReverse, options, children, }: { | ||
declare const SelectProvider: ({ value, defaultValue, setValue, size, isReverse, options, children, }: { | ||
value: SelectItem[]; | ||
defaultValueId: string | number; | ||
defaultValue: string; | ||
setValue: React.Dispatch<React.SetStateAction<SelectItem | null>>; | ||
@@ -22,0 +22,0 @@ size: "L" | "l" | "S" | "s"; |
@@ -6,3 +6,3 @@ import React from "react"; | ||
declare const Select: { | ||
({ data, size, isReverse, setValue, defaultValueId, options, children, }: any): React.JSX.Element; | ||
({ data, size, isReverse, setValue, defaultValue, options, children, }: any): React.JSX.Element; | ||
Trigger: ({ as, ...props }: any) => React.JSX.Element; | ||
@@ -9,0 +9,0 @@ List: ({ as, ...props }: any) => React.JSX.Element; |
import React from "react"; | ||
import type { SelectItem } from "@components/Select/types"; | ||
declare const Item: ({ id, label, Icon }: SelectItem) => React.JSX.Element; | ||
declare const Item: ({ id, label, Icon, value }: SelectItem) => React.JSX.Element; | ||
export { Item }; |
@@ -6,2 +6,4 @@ import React from "react"; | ||
Icon?: any; | ||
value: string; | ||
isDefault?: boolean; | ||
}; | ||
@@ -14,3 +16,3 @@ type TriggerProps = { | ||
label?: string; | ||
value: string | number; | ||
value: string; | ||
defaultValue?: string; | ||
@@ -17,0 +19,0 @@ disabled?: boolean; |
{ | ||
"name": "@marvelousdesigner/design-system", | ||
"version": "0.1.11-omega-5", | ||
"version": "0.1.11-omega-6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -7,2 +7,4 @@ import React from "react"; | ||
Icon?: any; | ||
value: string; | ||
isDefault?: boolean; | ||
}; | ||
@@ -16,3 +18,3 @@ | ||
label?: string; | ||
value: string | number; | ||
value: string; | ||
defaultValue?: string; | ||
@@ -19,0 +21,0 @@ disabled?: boolean; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
786571
5774