UNPKG

@grafana/ui

Version:
1 lines 1.29 kB
{"version":3,"file":"IndicatorsContainer.mjs","sources":["../../../../src/components/Select/IndicatorsContainer.tsx"],"sourcesContent":["import { cx, css } from '@emotion/css';\nimport { forwardRef } from 'react';\n\nimport { useTheme2 } from '../../themes/ThemeContext';\nimport { getInputStyles } from '../Input/Input';\n\nexport const IndicatorsContainer = forwardRef<HTMLDivElement, React.PropsWithChildren>((props, ref) => {\n const { children } = props;\n const theme = useTheme2();\n const styles = getInputStyles({ theme, invalid: false });\n\n return (\n <div\n className={cx(\n styles.suffix,\n css({\n position: 'relative',\n })\n )}\n ref={ref}\n >\n {children}\n </div>\n );\n});\n\nIndicatorsContainer.displayName = 'IndicatorsContainer';\n"],"names":[],"mappings":";;;;;;AAMO,MAAM,mBAAsB,GAAA,UAAA,CAAoD,CAAC,KAAA,EAAO,GAAQ,KAAA;AACrG,EAAM,MAAA,EAAE,UAAa,GAAA,KAAA;AACrB,EAAA,MAAM,QAAQ,SAAU,EAAA;AACxB,EAAA,MAAM,SAAS,cAAe,CAAA,EAAE,KAAO,EAAA,OAAA,EAAS,OAAO,CAAA;AAEvD,EACE,uBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,EAAA;AAAA,QACT,MAAO,CAAA,MAAA;AAAA,QACP,GAAI,CAAA;AAAA,UACF,QAAU,EAAA;AAAA,SACX;AAAA,OACH;AAAA,MACA,GAAA;AAAA,MAEC;AAAA;AAAA,GACH;AAEJ,CAAC;AAED,mBAAA,CAAoB,WAAc,GAAA,qBAAA;;;;"}