function addFromElementWithIcon(key, options, modifier = '', prefix = '') {
      if (isEmpty(options)) {
        return;
      }

      addComponents(
        replaceIconDeclarations(
          {
            [`${prefix}.form__${key}${modifier}`]: merge(
              options.borderWidth === undefined
                ? {}
                : {
                    '&::-ms-check': {
                      '@media not print': {
                        borderWidth: options.borderWidth
                      }
                    }
                  },
              options
            )
          },
          ({ icon = options.icon, iconColor = options.iconColor }) => {
            return {
              '&:checked': {
                backgroundImage: `url("${svgToDataUri(
                  typeof icon === 'function' ? icon(iconColor) : icon
                )}")`
              }
            };
          }
        )
      );
    }
// To be used with Radio and Checkbox elements
To be used with Radio and Checkbox elements
To be used with Radio and Checkbox elements
function addFromElementWithIcon(key, options, modifier = '', prefix = '') {
      if (isEmpty(options)) {
        return;
      }
      addComponents(
        replaceIconDeclarations(
          {
            [`${prefix}.form__${key}${modifier}`]: merge(
              options.borderWidth === undefined
                ? {}
                : {
                    '&::-ms-check': {
                      '@media not print': {
                        borderWidth: options.borderWidth
                      }
                    }
                  },
              options
            )
          },
          ({ icon = options.icon, iconColor = options.iconColor }) => {
            return {
              '&:checked': {
                backgroundImage: `url("${svgToDataUri(
                  typeof icon === 'function' ? icon(iconColor) : icon
                )}")`
              }
            };
          }
        )
      );
    }
function addFromElementWithIcon ( key , options , modifier = '' , prefix = '' ) { if ( isEmpty ( options ) ) { return ; } addComponents ( replaceIconDeclarations ( { [ ` ${ prefix } ${ key } ${ modifier } ` ] : merge ( options . borderWidth === undefined ? { } : { '&::-ms-check' : { '@media not print' : { borderWidth : options . borderWidth } } } , options ) } , ( { icon = options . icon , iconColor = options . iconColor } ) => { return { '&:checked' : { backgroundImage : ` ${ svgToDataUri ( typeof icon === 'function' ? icon ( iconColor ) : icon ) } ` } } ; } ) ) ; }
To be used with Radio and Checkbox elements
To be used with Radio and Checkbox elements