@yselimcan/ui 0.0.39 → 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 +19 -0
- package/dist/index.js +7498 -7350
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -476,6 +476,25 @@ export declare function RadioGroup({ className, ...props }: RadioGroup_2.Props):
|
|
|
476
476
|
|
|
477
477
|
export declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): JSX.Element;
|
|
478
478
|
|
|
479
|
+
export declare function SearchableDropdown<T extends object>({ items, value, onChange, onSelect, filterFn, renderItem, getItemKey, getDisplayValue, placeholder, onAddNew, addNewLabel, className, disabled, variant, }: SearchableDropdownProps<T>): JSX.Element;
|
|
480
|
+
|
|
481
|
+
export declare interface SearchableDropdownProps<T extends object> {
|
|
482
|
+
items: T[];
|
|
483
|
+
value?: string;
|
|
484
|
+
onChange?: (value: string) => void;
|
|
485
|
+
onSelect?: (item: T | null) => void;
|
|
486
|
+
filterFn: (item: T, searchTerm: string) => boolean;
|
|
487
|
+
renderItem: (item: T) => React_2.ReactNode;
|
|
488
|
+
getItemKey: (item: T) => string | number;
|
|
489
|
+
getDisplayValue: (item: T) => string;
|
|
490
|
+
placeholder?: string;
|
|
491
|
+
onAddNew?: (searchTerm: string) => void;
|
|
492
|
+
addNewLabel?: string;
|
|
493
|
+
className?: string;
|
|
494
|
+
disabled?: boolean;
|
|
495
|
+
variant?: 'default' | 'outline';
|
|
496
|
+
}
|
|
497
|
+
|
|
479
498
|
export declare const Select: typeof Select_2.Root;
|
|
480
499
|
|
|
481
500
|
export declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select_2.Popup.Props & Pick<Select_2.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): JSX.Element;
|