UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

31 lines (23 loc) 1.15 kB
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ /* eslint-disable max-len */ import oneOfRequiredProperty from '../../utilities/warning/one-of-required-property'; import oneOfComponent from '../../utilities/warning/one-of-component'; import deprecatedProperty from '../../utilities/warning/deprecated-property'; var checkProps = function checkProps() {}; if (process.env.NODE_ENV !== 'production') { checkProps = function checkProps(COMPONENT, props) { oneOfRequiredProperty(COMPONENT, { ariaLabelledby: props.ariaLabelledby, heading: props.heading }); if (props.children !== undefined) { oneOfComponent(COMPONENT, props, 'children', ['SLDSButton', 'a', 'button']); } deprecatedProperty(COMPONENT, props.isInline, 'isInline', 'position="relative"'); deprecatedProperty(COMPONENT, props.closeButtonAssistiveText, 'closeButtonAssistiveText', "assistiveText['closeButton']"); }; } export default checkProps; //# sourceMappingURL=check-props.js.map