You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.7 KiB
1 line
2.7 KiB
{"ast":null,"code":"import dangerousStyleValue from \"./dangerousStyleValue\";\nfunction setValueForStyles(node, styles) {\n var style = node.style;\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n var isCustomProperty = styleName.indexOf('--') === 0;\n var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n if (isCustomProperty) {\n style.setProperty(styleName, styleValue);\n } else {\n style[styleName] = styleValue;\n }\n }\n}\nexport default setValueForStyles;","map":{"version":3,"names":["dangerousStyleValue","setValueForStyles","node","styles","style","styleName","hasOwnProperty","isCustomProperty","indexOf","styleValue","setProperty"],"sources":["/Users/mathildejean/Documents/BUT/LaSuperMeteo/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/modules/setValueForStyles/index.js"],"sourcesContent":["/* eslint-disable */\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * From React 16.3.0\n * \n */\nimport dangerousStyleValue from './dangerousStyleValue';\n/**\n * Sets the value for multiple styles on a node. If a value is specified as\n * '' (empty string), the corresponding style property will be unset.\n *\n * @param {DOMElement} node\n * @param {object} styles\n */\n\nfunction setValueForStyles(node, styles) {\n var style = node.style;\n\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n\n var isCustomProperty = styleName.indexOf('--') === 0;\n var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n\n if (isCustomProperty) {\n style.setProperty(styleName, styleValue);\n } else {\n style[styleName] = styleValue;\n }\n }\n}\n\nexport default setValueForStyles;"],"mappings":"AAWA,OAAOA,mBAAmB;AAS1B,SAASC,iBAAiB,CAACC,IAAI,EAAEC,MAAM,EAAE;EACvC,IAAIC,KAAK,GAAGF,IAAI,CAACE,KAAK;EAEtB,KAAK,IAAIC,SAAS,IAAIF,MAAM,EAAE;IAC5B,IAAI,CAACA,MAAM,CAACG,cAAc,CAACD,SAAS,CAAC,EAAE;MACrC;IACF;IAEA,IAAIE,gBAAgB,GAAGF,SAAS,CAACG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACpD,IAAIC,UAAU,GAAGT,mBAAmB,CAACK,SAAS,EAAEF,MAAM,CAACE,SAAS,CAAC,EAAEE,gBAAgB,CAAC;IAEpF,IAAIF,SAAS,KAAK,OAAO,EAAE;MACzBA,SAAS,GAAG,UAAU;IACxB;IAEA,IAAIE,gBAAgB,EAAE;MACpBH,KAAK,CAACM,WAAW,CAACL,SAAS,EAAEI,UAAU,CAAC;IAC1C,CAAC,MAAM;MACLL,KAAK,CAACC,SAAS,CAAC,GAAGI,UAAU;IAC/B;EACF;AACF;AAEA,eAAeR,iBAAiB"},"metadata":{},"sourceType":"module","externalDependencies":[]} |