UNPKG

911 BSource Map (JSON)View Raw
1{"version":3,"file":"getPlaceholderStyles.js","sourceRoot":"../src/","sources":["styles/getPlaceholderStyles.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,MAAc;IACjD,OAAO;QACL,SAAS,EAAE;YACT,eAAe,EAAE,MAAM;YACvB,wBAAwB,EAAE,MAAM;YAChC,yBAAyB,EAAE,MAAM;SAClC;KACF,CAAC;AACJ,CAAC;AARD,oDAQC","sourcesContent":["import { IStyle } from '@uifabric/merge-styles';\n\n/**\n * Generates placeholder style for each of the browsers supported by office-ui-fabric-react.\n * @param styles - The style to use.\n * @returns The placeholder style object for each browser depending on the placeholder directive it uses.\n */\nexport function getPlaceholderStyles(styles: IStyle): IStyle {\n return {\n selectors: {\n '::placeholder': styles, // Chrome, Safari, Opera, Firefox\n ':-ms-input-placeholder': styles, // IE 10+\n '::-ms-input-placeholder': styles, // Edge\n },\n };\n}\n"]}
\No newline at end of file