@cleen/ui 0.1.40 → 0.1.42
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 +9 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2598,14 +2598,17 @@ type SelectOptionProps = ComponentProps<typeof components.Option>;
|
|
|
2598
2598
|
type SelectOptionCustomProps = SelectOptionProps & {
|
|
2599
2599
|
isHovered: boolean;
|
|
2600
2600
|
};
|
|
2601
|
+
type SelectOptionData = {
|
|
2602
|
+
id?: string | number;
|
|
2603
|
+
label?: ReactNode;
|
|
2604
|
+
sublabel?: ReactNode;
|
|
2605
|
+
value?: unknown;
|
|
2606
|
+
icon?: ReactNode | ((props: SelectOptionCustomProps) => ReactNode);
|
|
2607
|
+
[key: string]: unknown;
|
|
2608
|
+
};
|
|
2601
2609
|
|
|
2602
2610
|
interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDisabled' | 'options'> {
|
|
2603
|
-
options?:
|
|
2604
|
-
label?: ReactNode;
|
|
2605
|
-
sublabel?: ReactNode;
|
|
2606
|
-
value?: unknown;
|
|
2607
|
-
icon?: ReactNode | ((props: SelectOptionCustomProps) => ReactNode);
|
|
2608
|
-
}[];
|
|
2611
|
+
options?: SelectOptionData[];
|
|
2609
2612
|
label?: ReactNode;
|
|
2610
2613
|
sublabel?: ReactNode;
|
|
2611
2614
|
emboldenOptions?: boolean;
|