{"version":3,"file":"SelectInput.contexts.mjs","sources":["../../../src/inputs/SelectInput/SelectInput.contexts.tsx"],"sourcesContent":["import React, { createContext } from 'react';\n\n/**\n * Context for passing props to the SelectInputTriggerButton component.\n */\nexport interface SelectInputTriggerButtonPropsContextValue {\n  ref?: React.ForwardedRef<HTMLButtonElement | null>;\n  id?: string;\n  onClick?: (event: React.MouseEvent) => void;\n  onKeyDown?: (event: React.KeyboardEvent) => void;\n  size?: 'sm' | 'md' | 'lg';\n  [key: string]: unknown;\n}\n\n/**\n * Context for passing props to the SelectInputTriggerButton component.\n */\nexport const SelectInputTriggerButtonPropsContext =\n  createContext<SelectInputTriggerButtonPropsContextValue>({});\n\n/**\n * Context for providing the total count of items in a SelectInput.\n * Used for ARIA accessibility to inform screen readers about the total number of options.\n */\nexport const SelectInputItemsCountContext = createContext<number | undefined>(undefined);\n\n/**\n * Context for providing the current item position in a SelectInput.\n * Used for ARIA accessibility to inform screen readers about the position of the option.\n */\nexport const SelectInputItemPositionContext = createContext<number | undefined>(undefined);\n\n/**\n * Context indicating whether an option's content is rendered within the trigger button.\n * When true, certain styling adjustments are applied to make the content fit better in the trigger.\n */\nexport const SelectInputOptionContentWithinTriggerContext = createContext(false);\n\n// Re-export types from the original contexts module for backward compatibility\nexport type { WithInputAttributesProps } from '../contexts';\n"],"names":["SelectInputTriggerButtonPropsContext","createContext","SelectInputItemsCountContext","undefined","SelectInputItemPositionContext","SelectInputOptionContentWithinTriggerContext"],"mappings":";;AAcA;;AAEG;MACUA,oCAAoC,gBAC/CC,aAAa,CAA4C,EAAE;AAE7D;;;AAGG;MACUC,4BAA4B,gBAAGD,aAAa,CAAqBE,SAAS;AAEvF;;;AAGG;MACUC,8BAA8B,gBAAGH,aAAa,CAAqBE,SAAS;AAEzF;;;AAGG;MACUE,4CAA4C,gBAAGJ,aAAa,CAAC,KAAK;;;;"}