@cleen/ui 0.1.33 → 0.1.34

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
@@ -8,7 +8,7 @@ import { WaveSurferOptions as WaveSurferOptions$1 } from 'wavesurfer.js/dist/typ
8
8
  import { DayPickerProps, DateRange } from 'react-day-picker';
9
9
  import * as react_toastify from 'react-toastify';
10
10
  import { ToastOptions, ToastContainerProps } from 'react-toastify';
11
- import ReactSelect, { SelectInstance, GroupBase } from 'react-select';
11
+ import ReactSelect, { components, SelectInstance, GroupBase } from 'react-select';
12
12
 
13
13
  interface TooltipProps extends ComponentProps<'div'> {
14
14
  label?: ReactNode;
@@ -2593,7 +2593,18 @@ interface RangeSliderProps {
2593
2593
  */
2594
2594
  declare const RangeSlider: react__default.FC<RangeSliderProps>;
2595
2595
 
2596
- interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDisabled'> {
2596
+ type SelectOptionProps = ComponentProps<typeof components.Option>;
2597
+ type SelectOptionCustomProps = SelectOptionProps & {
2598
+ isHovered: boolean;
2599
+ };
2600
+
2601
+ interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDisabled' | 'options'> {
2602
+ options?: {
2603
+ label?: ReactNode;
2604
+ sublabel?: ReactNode;
2605
+ value?: unknown;
2606
+ icon?: ReactNode | ((props: SelectOptionCustomProps) => ReactNode);
2607
+ }[];
2597
2608
  label?: ReactNode;
2598
2609
  sublabel?: ReactNode;
2599
2610
  emboldenOptions?: boolean;