UNPKG

@grafana/ui

Version:
1 lines 1.08 kB
{"version":3,"file":"styles.mjs","sources":["../../../../src/components/Segment/styles.ts"],"sourcesContent":["import { css } from '@emotion/css';\n\nimport { GrafanaTheme, GrafanaTheme2 } from '@grafana/data';\n\nexport const getSegmentStyles = (theme: GrafanaTheme | GrafanaTheme2) => {\n const palette = 'v1' in theme ? theme.v1.palette : theme.palette;\n\n return {\n segment: css({\n cursor: 'pointer',\n width: 'auto',\n }),\n\n queryPlaceholder: css({\n color: palette.gray2,\n }),\n\n disabled: css({\n cursor: 'not-allowed',\n opacity: 0.65,\n boxShadow: 'none',\n }),\n };\n};\n"],"names":[],"mappings":";;AAIa,MAAA,gBAAA,GAAmB,CAAC,KAAwC,KAAA;AACvE,EAAA,MAAM,UAAU,IAAQ,IAAA,KAAA,GAAQ,KAAM,CAAA,EAAA,CAAG,UAAU,KAAM,CAAA,OAAA;AAEzD,EAAO,OAAA;AAAA,IACL,SAAS,GAAI,CAAA;AAAA,MACX,MAAQ,EAAA,SAAA;AAAA,MACR,KAAO,EAAA;AAAA,KACR,CAAA;AAAA,IAED,kBAAkB,GAAI,CAAA;AAAA,MACpB,OAAO,OAAQ,CAAA;AAAA,KAChB,CAAA;AAAA,IAED,UAAU,GAAI,CAAA;AAAA,MACZ,MAAQ,EAAA,aAAA;AAAA,MACR,OAAS,EAAA,IAAA;AAAA,MACT,SAAW,EAAA;AAAA,KACZ;AAAA,GACH;AACF;;;;"}