From 76b71061195a0b2505cddfb20b757a21f78ef8d9 Mon Sep 17 00:00:00 2001 From: John Panos Date: Thu, 1 Aug 2024 14:38:39 -0700 Subject: [PATCH] ignore --- src/components/Select/Select.tsx | 250 ++++++++++++++++++++----------- 1 file changed, 164 insertions(+), 86 deletions(-) diff --git a/src/components/Select/Select.tsx b/src/components/Select/Select.tsx index 65eabc35..7e116ef4 100644 --- a/src/components/Select/Select.tsx +++ b/src/components/Select/Select.tsx @@ -1,118 +1,196 @@ -// @ts-ignore -import React, { useState, useRef, useEffect } from 'react'; +// @ts-nocheck +import React, { useState, forwardRef, useEffect } from 'react'; import ReactSelect, { - components as ReactSelectComponents, - Props as ReactSelectProps, + OptionProps, + MultiValueProps, + IndicatorProps, + StylesConfig, + Props as SelectProps, ActionMeta, - SingleValue, - MultiValue, - ValueContainerProps, } from 'react-select'; import AsyncSelect from 'react-select/async'; import AsyncCreatableSelect from 'react-select/async-creatable'; import CreatableSelect from 'react-select/creatable'; +import Badge from '../Badge/Badge'; +import Icon from '../Icon/Icon'; -export interface Option { - label: string; - value: any; -} +// Type definitions +type OptionType = { label: string; value: any; disabled?: boolean }; -interface SelectProps extends Omit, 'onChange'> { - options?: Option[]; - defaultValue?: Option | Option[] | null; - value?: Option | Option[] | null; - onChange?: (value: Option | Option[] | null, action: ActionMeta