'use client' import { ForwardedRef, forwardRef, ReactNode, SelectHTMLAttributes } from 'react' import { PktInputWrapper } from '../inputwrapper/InputWrapper' export type TSelectOption = { value: string label: string selected?: boolean disabled?: boolean } export interface IPktSelectProps extends SelectHTMLAttributes { ariaDescribedby?: string ariaLabelledby?: string children?: ReactNode | ReactNode[] disabled?: boolean errorMessage?: string | ReactNode | ReactNode[] hasError?: boolean helptext?: string | ReactNode | ReactNode[] helptextDropdown?: string | ReactNode | ReactNode[] helptextDropdownButton?: string id: string inline?: boolean fullwidth?: boolean label: string name?: string optionalTag?: boolean optionalText?: string requiredTag?: boolean requiredText?: string tagText?: string | null options?: Array<{ value: string; label: string; disabled?: boolean }> } export const PktSelect = forwardRef( ( { ariaDescribedby, ariaLabelledby, children, className, disabled = false, errorMessage, hasError, helptext, helptextDropdown, helptextDropdownButton, id, inline = false, fullwidth = false, label, name, optionalTag = false, optionalText, requiredTag = false, requiredText, tagText, ...props }: IPktSelectProps, ref: ForwardedRef, ) => { const classNames = [className, 'pkt-select'].join(' ') return ( ) }, ) PktSelect.displayName = 'PktSelect'